Root object of Google Ads scripts API. Exposes methods for

- Fetching Google Ads entities
- Querying Google Ads reports
- Accessing information about the state of the current execution

### Methods:

| Member | Type | Description |
|---|---|---|
| [adAssets()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#adAssets) | `AdsApp.AdAssets` | Returns the Google Ads asset interface. |
| [adGroupTargeting()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#adGroupTargeting) | `AdsApp.AccountAdGroupTargeting` | Provides access to ad group-level targeting criteria, currently just audiences. |
| [adGroups()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#adGroups) | `AdsApp.AdGroupSelector` | Returns the selector of all ad groups in the account. |
| [adParams()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#adParams) | `AdsApp.AdParamSelector` | Returns the selector of all ad params in the account. |
| [ads()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#ads) | `AdsApp.AdSelector` | Returns the selector of all ads in the account. |
| [biddingStrategies()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#biddingStrategies) | `AdsApp.BiddingStrategySelector` | Returns the selector of all flexible bidding strategies in the account. |
| [budgetOrders()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#budgetOrders) | `AdsApp.BudgetOrderSelector` | Returns the selector of all budget orders in the account. |
| [budgets()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#budgets) | `AdsApp.BudgetSelector` | Returns the selector of all budgets in the account. |
| [bulkUploads()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#bulkUploads) | `AdsApp.BulkUploads` | Provides access to bulk uploads: [FileUpload](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload.md.txt), [CsvUpload](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_csvupload.md.txt). |
| [campaigns()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#campaigns) | `AdsApp.CampaignSelector` | Returns the selector of all search and display campaigns in the account. |
| [createLabel(name, description, backgroundColor)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#createLabel_name-description-backgroundColor) | `void` | Creates a new Label. |
| [currentAccount()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#currentAccount) | `AdsApp.Account` | Returns miscellaneous information about the Google Ads account in which the script is currently running. |
| [display()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#display) | `AdsApp.Display` | Provides access to display criteria that have been added to this account: [Audience](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_audience.md.txt), [DisplayKeyword](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaykeyword.md.txt), [Placement](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_placement.md.txt), [Topic](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_topic.md.txt). |
| [drafts()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#drafts) | `AdsApp.DraftSelector` | Returns the selector of all drafts in the account. |
| [excludedPlacementLists()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#excludedPlacementLists) | `AdsApp.ExcludedPlacementListSelector` | Returns a selector of all excluded placement lists in this account. |
| [experiments()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#experiments) | `AdsApp.ExperimentSelector` | Returns the selector of all experiments in the account. |
| [extensions()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#extensions) | `AdsApp.Extensions` | Provides access to ad extensions that have been added to this account: [Callout](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_callout.md.txt), [MobileApp](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_mobileapp.md.txt), [PhoneNumber](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_phonenumber.md.txt), [Price](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_price.md.txt), [Sitelink](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_sitelink.md.txt), and [Snippet](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_snippet.md.txt). |
| [getExecutionInfo()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#getExecutionInfo) | `AdsApp.ExecutionInfo` | Returns miscellaneous information about the current script execution. |
| [keywords()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#keywords) | `AdsApp.KeywordSelector` | Returns the selector of all keywords in the account. |
| [labels()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#labels) | `AdsApp.LabelSelector` | Returns the selector of all labels in the account. |
| [mutate(operation, optArgs)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#mutate_operation-optArgs) | `AdsApp.MutateResult` | Executes a Google Ads mutate. |
| [mutateAll(operations, optArgs)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#mutateAll_operations-optArgs) | `AdsApp.MutateResult[]` | Executes multiple Google Ads mutates. |
| [negativeKeywordLists()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#negativeKeywordLists) | `AdsApp.NegativeKeywordListSelector` | Returns a selector of all negative keyword lists in this account. |
| [newExcludedPlacementListBuilder()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#newExcludedPlacementListBuilder) | `AdsApp.ExcludedPlacementListBuilder` | Returns a new excluded placement list builder for this account. |
| [newExperimentBuilder()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#newExperimentBuilder) | `AdsApp.ExperimentBuilder` | Returns the builder for creating an experiment. |
| [newNegativeKeywordListBuilder()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#newNegativeKeywordListBuilder) | `AdsApp.NegativeKeywordListBuilder` | Returns a new negative keyword list builder for this account. |
| [performanceMaxCampaigns()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#performanceMaxCampaigns) | `AdsApp.PerformanceMaxCampaignSelector` | Returns the selector of all performance max campaigns in the account. |
| [productAds()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#productAds) | `AdsApp.ProductAdSelector` | Returns the selector of all product ads in the account. |
| [productGroups()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#productGroups) | `AdsApp.ProductGroupSelector` | Returns the selector of all product groups in the account. |
| [recommendations()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#recommendations) | `AdsApp.RecommendationSelector` | Returns the selector of all recommendations in the account. |
| [report(query, optArgs)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#report_query-optArgs) | `AdsApp.Report` | Fetches a Google Ads report. |
| [search(query, optArgs)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#search_query-optArgs) | `AdsApp.SearchRowIterator` | Executes a Google Ads Search. |
| [shoppingAdGroupTargeting()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#shoppingAdGroupTargeting) | `AdsApp.AccountShoppingAdGroupTargeting` | Provides access to shopping ad group-level targeting criteria, currently just audiences. |
| [shoppingAdGroups()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#shoppingAdGroups) | `AdsApp.ShoppingAdGroupSelector` | Returns the selector of all shopping ad groups in the account. |
| [shoppingCampaignTargeting()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#shoppingCampaignTargeting) | `AdsApp.AccountShoppingCampaignTargeting` | Provides access to shopping campaign-level targeting criteria, currently just audiences. |
| [shoppingCampaigns()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#shoppingCampaigns) | `AdsApp.ShoppingCampaignSelector` | Returns the selector of all shopping campaigns in the account. |
| [targeting()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#targeting) | `AdsApp.Targeting` | Provides access to campaign-level targeting criteria: device targeting, ad scheduling, location targeting, and audiences. |
| [userlists()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#userlists) | `AdsApp.UserListSelector` | Returns the selector of all user lists in the account. |
| [videoAdGroups()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#videoAdGroups) | `AdsApp.VideoAdGroupSelector` | Returns the selector of all video ad groups in the account. |
| [videoAds()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#videoAds) | `AdsApp.VideoAdSelector` | Returns the selector of all video ads in the account. |
| [videoCampaigns()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#videoCampaigns) | `AdsApp.VideoCampaignSelector` | Returns the selector of all video campaigns in the account. |
| [videoTargeting()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.md.txt#videoTargeting) | `AdsApp.VideoTargeting` | Provides access to video criteria that have been added to this account: [VideoAge](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoage.md.txt), [VideoAudience](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoaudience.md.txt), [VideoGender](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videogender.md.txt), [VideoKeyword](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videokeyword.md.txt), [VideoMobileAppCategory](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileappcategory.md.txt) [VideoMobileApplication](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileapplication.md.txt), [VideoParentalStatus](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoparentalstatus.md.txt), [VideoPlacement](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoplacement.md.txt), [VideoTopic](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videotopic.md.txt), [VideoYouTubeChannel](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubechannel.md.txt), [VideoYouTubeVideo](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubevideo.md.txt). |

## `adAssets()`

Returns the Google Ads asset interface. This supports selecting assets and building new assets.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.AdAssets` | The ad asset interface. |

## `adGroupTargeting()`

Provides access to ad group-level targeting criteria, currently just audiences.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.AccountAdGroupTargeting` | Access to ad group-level targeting criteria. |

## `adGroups()`

Returns the selector of all ad groups in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.AdGroupSelector` | The selector of all ad groups in the account. |

## `adParams()`

Returns the selector of all ad params in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.AdParamSelector` | The selector of all ad params in the account. |

## `ads()`

Returns the selector of all ads in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.AdSelector` | The selector of all ads in the account. |

## `biddingStrategies()`

Returns the selector of all flexible bidding strategies in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.BiddingStrategySelector` | The selector of all flexible bidding strategies in the account. |

## `budgetOrders()`

Returns the selector of all budget orders in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.BudgetOrderSelector` | The selector of all budget orders in the account. |

## `budgets()`

Returns the selector of all budgets in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.BudgetSelector` | The selector of all budgets in the account. |

## `bulkUploads()`

Provides access to bulk uploads: [FileUpload](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload.md.txt), [CsvUpload](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_csvupload.md.txt).

### Return values:

| Type | Description |
|---|---|
| `AdsApp.BulkUploads` | Access to bulk uploads. |

## `campaigns()`

Returns the selector of all search and display campaigns in the account.

```
var campaignSelector = AdsApp.campaigns();
```

### Return values:

| Type | Description |
|---|---|
| `AdsApp.CampaignSelector` | The selector of all search and display campaigns in the account. |

## `createLabel(name, description, backgroundColor)`

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:

```
AdsApp.createLabel("My Label");

AdsApp.createLabel(
  "Modified by script", "These ads have been modified by a script");

AdsApp.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':
AdsApp.createLabel("Good", "", "#0088FF");

// WRONG: This will set the description to '#0088FF':
AdsApp.createLabel("Bad", "#0088FF");
```

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| name | `String` | The name of the new Label. Label names are case sensitive and must be unique. Max length is `100` characters. Any leading or trailing white spaces will be trimmed. |
| description | `String` | *Optional.* The description of the new label. If not specified, the description will be empty. Max length is `200` characters. |
| backgroundColor | `String` | *Optional.* The background color of the new label. The color must be specified in either RGB form (`#RRGGBB` or `#RGB`), or one of the [16 basic CSS color names](http://www.w3.org/TR/css3-color/#html4). If not specified, the new label will assume an arbitrary background color. |

## `currentAccount()`

Returns miscellaneous information about the Google Ads account in which the script is currently running.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.Account` | Miscellaneous information about the Google Ads account in which the script is currently running. |

## `display()`

Provides access to display criteria that have been added to this account: [Audience](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_audience.md.txt), [DisplayKeyword](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaykeyword.md.txt), [Placement](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_placement.md.txt), [Topic](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_topic.md.txt).

### Return values:

| Type | Description |
|---|---|
| `AdsApp.Display` | Access to the display criteria that have been added to this account. |

## `drafts()`

Returns the selector of all drafts in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.DraftSelector` | The selector of all drafts in the account. |

## `excludedPlacementLists()`

Returns a selector of all excluded placement lists in this account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ExcludedPlacementListSelector` | A selector of all excluded placement lists in this account. |

## `experiments()`

Returns the selector of all experiments in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ExperimentSelector` | The selector of all experiments in the account. |

## `extensions()`

Provides access to ad extensions that have been added to this account: [Callout](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_callout.md.txt), [MobileApp](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_mobileapp.md.txt), [PhoneNumber](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_phonenumber.md.txt), [Price](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_price.md.txt), [Sitelink](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_sitelink.md.txt), and [Snippet](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_snippet.md.txt).

### Return values:

| Type | Description |
|---|---|
| `AdsApp.Extensions` | Access to ad extensions that have been added to this account. |

## `getExecutionInfo()`

Returns miscellaneous information about the current script execution.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ExecutionInfo` | Miscellaneous information about the current script execution. |

## `keywords()`

Returns the selector of all keywords in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.KeywordSelector` | The selector of all keywords in the account. |

## `labels()`

Returns the selector of all labels in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.LabelSelector` | The selector of all labels in the account. |

## `mutate(operation, optArgs)`

Executes a Google Ads mutate.

The operation argument is a [MutateOperation](https://developers.google.com/google-ads/api/rest/reference/rest/latest/MutateOperation) as defined in the [Google Ads API REST Interface](https://developers.google.com/google-ads/api/rest/overview.md.txt).

Example usages:

```
const customerId = AdsApp.currentAccount().getCustomerId();
const campaignId = 12345;

const createAdGroupResponse = AdsApp.mutate(
  {
    adGroupOperation: {
      create: {
        campaign: `customers/${customerId}/campaigns/${campaignId}`,
        name: 'My Ad Group Name',
        cpcBidMicros: '1230000' // $1.23 in micros
      }
    }
  });
const keywordText = 'Example Text';
const finalUrl = 'https://example.final.url.com/';
const createKeywordResponse = AdsApp.mutate(
  {
    adGroupCriterionOperation: {
      create: {
        adGroup: createAdGroupResponse.getResourceName(),
        keyword: {
          matchType: 'BROAD',
          text: keywordText
        },
        finalUrls: [ finalUrl ]
      }
    }
  });
```

This method also accepts an optional arguments object. The following
fields are supported:

| Name | Type | Description |
|---|---|---|
| apiVersion | `String` | The Google Ads API version to query. [Sunsetted versions](https://developers.google.com/google-ads/api/docs/sunset-dates.md.txt) are not allowed. Defaults to the most recent supported version. |

### Arguments:

| Name | Type | Description |
|---|---|---|
| operation | `Object` | The Google Ads API mutate operation. |
| optArgs | `Object` | Optional arguments. |

### Return values:

| Type | Description |
|---|---|
| `AdsApp.MutateResult` | The result of the mutate. |

## `mutateAll(operations, optArgs)`

Executes multiple Google Ads mutates.

The operations argument is an array of [MutateOperation](https://developers.google.com/google-ads/api/rest/reference/rest/latest/MutateOperation) objects as defined in the [Google Ads API REST Interface](https://developers.google.com/google-ads/api/rest/overview.md.txt).

Example usages:

```
const customerId = AdsApp.currentAccount().getCustomerId();
const campaignId = 12345;
const keywordText = 'Example Text';
const finalUrl = 'https://example.final.url.com/';

const mutateResponses = AdsApp.mutateAll([
  {
    adGroupOperation: {
      create: {
        resourceName: `customers/${customerId}/adGroups/-1`
        campaign: `customers/${customerId}/campaigns/${campaignId}`,
        name: 'My Ad Group Name',
        cpcBidMicros: '1230000' // $1.23 in micros
      }
    }
  },
  {
    adGroupCriterionOperation: {
      create: {
        adGroup: `customers/${customerId}/adGroups/-1`,
        keyword: {
          matchType: 'BROAD',
          text: keywordText
        },
        finalUrls: [ finalUrl ]
      }
    }
  }]);
```

This method also accepts an optional arguments object. The following
fields are supported:

| Name | Type | Description |
|---|---|---|
| apiVersion | `String` | The Google Ads API version to query. [Sunsetted versions](https://developers.google.com/google-ads/api/docs/sunset-dates.md.txt) are not allowed. Defaults to the most recent supported version. |
| partialFailure | `boolean` | If `false`, then all operations either succeed together, or all fail. If `true`, then some operations may succeed while others fail. |

### Arguments:

| Name | Type | Description |
|---|---|---|
| operations | `Object[]` | The Google Ads API mutate operations. |
| optArgs | `Object` | Optional arguments. |

### Return values:

| Type | Description |
|---|---|
| `AdsApp.MutateResult[]` | The results of the mutates. |

## `negativeKeywordLists()`

Returns a selector of all negative keyword lists in this account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.NegativeKeywordListSelector` | A selector of all negative keyword lists in this account. |

## `newExcludedPlacementListBuilder()`

Returns a new excluded placement list builder for this account. Once `builder.build()` is called, the new excluded placement list will be created in this account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ExcludedPlacementListBuilder` | The excluded placement list builder used to create a new excluded placement list in this account. |

## `newExperimentBuilder()`

Returns the builder for creating an experiment.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ExperimentBuilder` | The builder for creating an experiment in the account. |

## `newNegativeKeywordListBuilder()`

Returns a new negative keyword list builder for this account. Once `builder.build()` is called, the new negative keyword list will be created in this account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.NegativeKeywordListBuilder` | The negative keyword list builder used to create a new negative keyword list in this account. |

## `performanceMaxCampaigns()`

Returns the selector of all performance max campaigns in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.PerformanceMaxCampaignSelector` | The selector of all performance max campaigns in the account. |

## `productAds()`

Returns the selector of all product ads in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ProductAdSelector` | The selector of all product ads in the account. |

## `productGroups()`

Returns the selector of all product groups in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ProductGroupSelector` | The selector of all product groups in the account. |

## `recommendations()`

Returns the selector of all recommendations in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.RecommendationSelector` | The selector of all recommendations in the account. |

## `report(query, optArgs)`

Fetches a Google Ads report.

Example usages:

```
var report1 = AdsApp.report(
    'SELECT search_term_view.search_term, metrics.ctr ' +
    'FROM   search_term_view ' +
    'WHERE  segments.date BETWEEN "2013-01-01" AND "2013-03-01"');

var report2 = AdsApp.report(
    'SELECT ad_group.id, ad_group_criterion.criterion_id, ' +
    '       ad_group_criterion.keyword.text, metrics.impressions, ' +
    '       metrics.clicks ' +
    'FROM   keyword_view ' +
    'WHERE  segments.date BETWEEN "2013-01-01" AND "2013-03-01"', {
      apiVersion: 'v26'
    });

var report3 = AdsApp.report(
    'SELECT ad_group.id, ad_group_criterion.criterion_id, ' +
    '       ad_group_criterion.keyword.text, ' +
    '       campaign.name, metrics.impressions, metrics.clicks ' +
    'FROM   keyword_view ' +
    'WHERE  segments.date BETWEEN "2013-01-01" AND "2013-03-01"', {
      apiVersion: 'v26'
    });
```

Reports are specified through a GAQL query. For GAQL details, see the
[GAQL guide](https://developers.google.com/google-ads/api/docs/query/overview.md.txt) and [the list of accessible
resources and fields.](https://developers.google.com/google-ads/api/fields/latest/overview)

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. This field is not allowed when the query uses GAQL. See [here](https://developers.google.com/google-ads/api/docs/reporting/zero-impressions) for details on how GAQL handles zero impressions. Defaults to `true` for AWQL queries. |
| returnMoneyInMicros | `boolean` | Whether or not to represent money in micros ('1370000') or in currency ('1.37'). This field is not allowed when the query uses GAQL. In that case, all money values are represented in micros. Defaults to `false` for AWQL queries. |
| apiVersion | `String` | For GAQL queries, the Google Ads API version to query. [Sunsetted versions](https://developers.google.com/google-ads/api/docs/sunset-dates.md.txt) for GAQL queries are not allowed. |
| 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`. |

### Arguments:

| Name | Type | Description |
|---|---|---|
| query | `String` | AWQL or GAQL query specifying the report. |
| optArgs | `Object` | Optional arguments. |

### Return values:

| Type | Description |
|---|---|
| `AdsApp.Report` | The requested report. |

## `search(query, optArgs)`

Executes a Google Ads Search.

Example usages:

```
var search1 = AdsApp.search(
    'SELECT search_term_view.search_term, metrics.ctr ' +
    'FROM   search_term_view ' +
    'WHERE  segments.date BETWEEN "2013-01-01" AND "2013-03-01"');

var search2 = AdsApp.search(
    'SELECT ad_group.id, ad_group_criterion.criterion_id, ' +
    ' ad_group_criterion.keyword.text, campaign.name, ' +
    ' metrics.impressions, metrics.clicks ' +
    'FROM keyword_view ' +
    'WHERE segments.date BETWEEN ' +
    ' "2013-01-01" AND "2013-03-01"', {
      apiVersion: 'v26'
    });
```

Searches are specified via a GAQL query. For detailed information,
please see [the GAQL guide](https://developers.google.com/google-ads/api/docs/query/overview.md.txt)
and [the list of resources
and fields.](https://developers.google.com/google-ads/api/fields/latest/overview)

This method also accepts an optional arguments object. Currently, there
is only one supported field:

| Name | Type | Description |
|---|---|---|
| apiVersion | `String` | The Google Ads API version to query. [Sunsetted versions](https://developers.google.com/google-ads/api/docs/sunset-dates.md.txt) are not allowed. Defaults to the most recent supported version. |

### Arguments:

| Name | Type | Description |
|---|---|---|
| query | `String` | GAQL search query. |
| optArgs | `Object` | Optional arguments. |

### Return values:

| Type | Description |
|---|---|
| `AdsApp.SearchRowIterator` | The requested report. |

## `shoppingAdGroupTargeting()`

Provides access to shopping ad group-level targeting criteria, currently just audiences.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.AccountShoppingAdGroupTargeting` | Access to shopping ad group-level targeting criteria. |

## `shoppingAdGroups()`

Returns the selector of all shopping ad groups in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ShoppingAdGroupSelector` | The selector of all shopping ad groups in the account. |

## `shoppingCampaignTargeting()`

Provides access to shopping campaign-level targeting criteria, currently just audiences.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.AccountShoppingCampaignTargeting` | Access to shopping campaign-level targeting criteria. |

## `shoppingCampaigns()`

Returns the selector of all shopping campaigns in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ShoppingCampaignSelector` | The selector of all shopping campaigns in the account. |

## `targeting()`

Provides access to campaign-level targeting criteria: device targeting, ad scheduling, location targeting, and audiences.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.Targeting` | Access to campaign-level targeting criteria. |

## `userlists()`

Returns the selector of all user lists in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.UserListSelector` | The selector of all user lists in the account. |

## `videoAdGroups()`

Returns the selector of all video ad groups in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.VideoAdGroupSelector` | The selector of all video ad groups in the account. |

## `videoAds()`

Returns the selector of all video ads in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.VideoAdSelector` | The selector of all video ads in the account. |

## `videoCampaigns()`

Returns the selector of all video campaigns in the account.

### Return values:

| Type | Description |
|---|---|
| `AdsApp.VideoCampaignSelector` | The selector of all video campaigns in the account. |

## `videoTargeting()`

Provides access to video criteria that have been added to this account: [VideoAge](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoage.md.txt), [VideoAudience](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoaudience.md.txt), [VideoGender](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videogender.md.txt), [VideoKeyword](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videokeyword.md.txt), [VideoMobileAppCategory](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileappcategory.md.txt) [VideoMobileApplication](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videomobileapplication.md.txt), [VideoParentalStatus](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoparentalstatus.md.txt), [VideoPlacement](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoplacement.md.txt), [VideoTopic](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videotopic.md.txt), [VideoYouTubeChannel](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubechannel.md.txt), [VideoYouTubeVideo](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubevideo.md.txt).

### Return values:

| Type | Description |
|---|---|
| `AdsApp.VideoTargeting` | Access to the video criteria that have been added to this account. |