BingAdsApp

This is the top-level object used to access and manage a single account.

Methods

Method Name Return Type Description
adGroups AdGroupSelector Gets a selector used to filter the list of ad groups in this account.
ads AdSelector Gets a selector used to filter the list of ads in this account.
budgets BudgetSelector Gets a selector used to filter the list of shared budgets in this account.
campaigns CampaignSelector Gets a selector used to filter the list of campaigns in this account.
currentAccount Account Gets the account that the script is currently processing.
keywords KeywordSelector Gets a selector used to filter the list of keywords in this account.
negativeKeywordLists NegativeKeywordListSelector Gets a selector used to filter the list of negative keyword lists in this account.
newNegativeKeywordListBuilder NegativeKeywordListBuilder Gets a builder used to add a negative keyword list to this account.

adGroups

Gets a selector used to filter the list of ad groups in this account.

Returns

Type Description
AdGroupSelector A selector used to filter the list of ad groups in the current account.

ads

Gets a selector used to filter the list of ads in this account.

Returns

Type Description
AdSelector A selector used to filter the list of ads in the current account.

budgets

Gets a selector used to filter the list of shared budgets in this account.

This method returns only shared budgets. To get unshared (individual campaign) budgets, call the specific campaign's getBudget method. The campaign's budget is not shared if the isExplicitlyShared method returns false.

Returns

Type Description
BudgetSelector A selector used to filter the list of shared budgets in the current account.

campaigns

Gets a selector used to filter the list of campaigns in this account.

Returns

Type Description
CampaignSelector A selector used to filter the list of campaigns in the current account.

currentAccount

Gets the account that the script is currently processing.

Note

To use this method in a multi-account scenario, first select an account to manage. If you call this method before selecting an account, the call returns null.

Returns

Type Description
Account The account that the script is currently processing. To see how to use this in a multi-account scenario, see the select method of AccountsApp.

keywords

Gets a selector used to filter the list of keywords in this account.

Returns

Type Description
KeywordSelector A selector used to filter the list of keywords in the current account.

negativeKeywordLists

Gets a selector used to filter the list of negative keyword lists in this account.

Returns

Type Description
NegativeKeywordListSelector A selector used to filter the list of negative keyword lists in the current account.

newNegativeKeywordListBuilder

Gets a builder used to add a negative keyword list to this account.

Returns

Type Description
NegativeKeywordListBuilder A builder used to add a negative keyword list to the current account.

See also

Single account access