This is the legacy documentation for Google Ads scripts. Go to the current docs.

AdsApp.​BudgetOrderSelector

Fetches budget orders.

Typical usage:

 var budgetOrderIterator = AdsApp.budgetOrders()
   .withCondition("Status = ACTIVE")
   .get();

Methods:

MemberTypeDescription
get AdsApp.BudgetOrderIterator Fetches the requested budgetOrders and returns an iterator.
withCondition AdsApp.BudgetOrderSelector Adds the specified condition to the selector.

get()

Fetches the requested budgetOrders and returns an iterator.

Return values:

TypeDescription
AdsApp.BudgetOrderIterator Iterator of the requested budgetOrders.

withCondition(condition)

Adds the specified condition to the selector.

Supports only:

 "Status = ACTIVE"
The purpose of this is to return only the current budget order.

Arguments:

NameTypeDescription
condition String Condition to add to the selector.

Return values:

TypeDescription
AdsApp.BudgetOrderSelector The selector with the condition applied.