Returns the selector of all ad customizer data sources in the account.
Returns the selector of all ad customizer data sources in the account.
Returns the selector of all ad groups in the account.
Returns the selector of all ad groups in the account.
Returns the selector of all ad params in the account.
Returns the selector of all ad params in the account.
Returns the selector of all ads in the account.
Returns the selector of all ads in the account.
Returns the selector of all flexible bidding strategies in the account.
Returns the selector of all flexible bidding strategies in the account.
Returns the selector of all budgets in the account.
Returns the selector of all budgets in the account.
Provides access to bulk uploads: FileUpload , CsvUpload .
Provides access to bulk uploads: FileUpload , CsvUpload .
Returns the selector of all campaigns in the account.
Returns the selector of all campaigns in the account.
Creates a new Label.
Creates a new Label. You must always specify a name, but description and color are optional.
Note that you cannot create more than 100,000 labels per account.
Usage examples:
AdWordsApp.createLabel("My Label"); AdWordsApp.createLabel("Modified by script", "These ads have been modified by a script"); AdWordsApp.createLabel("Bad Keywords", "These keywords are performing poorly", "red");You must specify optional arguments in order, i.e. you cannot specify color without the description.
// CORRECT: This will set the color to '#0088FF': AdWordsApp.createLabel("Good", "", "#0088FF"); // WRONG: This will set the description to '#0088FF': AdWordsApp.createLabel("Bad", "#0088FF");
Returns nothing.
Returns miscellaneous information about the AdWords account in which the script is currently running.
Returns miscellaneous information about the AdWords account in which the script is currently running.
Provides access to display criteria that have been added to this account: Audience , DisplayKeyword , Placement , Topic .
Provides access to display criteria that have been added to this account: Audience , DisplayKeyword , Placement , Topic .
Provides access to ad extensions that have been added to this account: Sitelink , PhoneNumber , MobileApp .
Provides access to ad extensions that have been added to this account: Sitelink , PhoneNumber , MobileApp .
Returns miscellaneous information about the current script execution.
Returns miscellaneous information about the current script execution.
Returns the selector of all keywords in the account.
Returns the selector of all keywords in the account.
Returns the selector of all labels in the account.
Returns the selector of all labels in the account.
Returns a new ad customizer source builder for this account.
Returns a new ad customizer source builder for this account. Once AdCustomizerSourceBuilder.build() is called, the ad customizer source will be created in this account.
Returns the selector of all product ads in the account.
Returns the selector of all product ads in the account.
Returns the selector of all product groups in the account.
Returns the selector of all product groups in the account.
Fetches an AdWords report.
Fetches an AdWords report.
Example usages:
var report1 = AdWordsApp.report( 'SELECT Query, Ctr ' + 'FROM SEARCH_QUERY_PERFORMANCE_REPORT ' + 'DURING 20130101,20130301'); var report2 = AdWordsApp.report( 'SELECT AdGroupId, Id, KeywordText, Impressions, Clicks ' + 'FROM KEYWORDS_PERFORMANCE_REPORT ' + 'DURING 20130101,20130301', { includeZeroImpressions: false, returnMoneyInMicros: true, apiVersion: 'v201402' });
Reports are specified via an AWQL query. For detailed information, please see the AWQL guide and the list of report types and fields.
This method also accepts an optional arguments object. The following optional arguments are supported:
Name | Type | Description |
---|---|---|
includeZeroImpressions | boolean |
Whether or not to include entities that had zero impressions in the report. Defaults to true . |
returnMoneyInMicros | boolean |
Whether or not to represent money in micros ('1370000') or in currency ('1.37'). Defaults to false . |
apiVersion | String |
The AdWords API version to query. Sunsetted versions are not allowed. Defaults to the most recent supported version. |
resolveGeoNames | boolean |
Whether or not to convert Geo CriteriaIds (e.g. CountryCriteriaId and CityCriteriaId) into names (e.g. 'United States' and 'San Francisco'). Set to true if you want names. Set to false if you want numerical IDs. Defaults to true . |
Returns the selector of all shopping ad groups in the account.
Returns the selector of all shopping ad groups in the account.
Returns the selector of all shopping campaigns in the account.
Returns the selector of all shopping campaigns in the account.
Provides access to campaign-level targeting criteria: device targeting, ad scheduling, and location targeting.
Provides access to campaign-level targeting criteria: device targeting, ad scheduling, and location targeting.
Entry point for the AdWords API