Represents a Google Ads recommendation.

### Methods:

| Member | Type | Description |
|---|---|---|
| [apply()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#apply) | `void` | Apply the recommendation. |
| [getAdGroup()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#getAdGroup) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adgroup` | Return the ad group that this recommendation is for or `null` if this recommendation is not for a specific ad group. |
| [getBaseStats()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#getBaseStats) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendationstats` | Returns the base stats for the account at the time the recommendation was generated. |
| [getCampaign()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#getCampaign) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaign` | Return the campaign that this recommendation is for or `null` if this recommendation is not for a specific campaign. |
| [getEntityType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#getEntityType) | `String` | Returns the type of this entity as a `String`, in this case, `"Recommendation"`. |
| [getPotentialStats()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#getPotentialStats) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendationstats` | Returns the estimated stats for the account if the recommendation is applied. |
| [getResourceName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#getResourceName) | `String` | Returns the resource name of the recommendation. |
| [getShoppingAdGroup()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#getShoppingAdGroup) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingadgroup` | Return the shopping ad group that this recommendation is for or `null` if this recommendation is not for a specific shopping ad group. |
| [getShoppingCampaign()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#getShoppingCampaign) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingcampaign` | Return the shopping campaign that this recommendation is for or `null` if this recommendation is not for a specific shopping campaign. |
| [getType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation#getType) | `String` | Returns the type of the recommendation. |

## `apply()`

Apply the recommendation.

Note: Some recommendations require additional input. These
recommendations cannot be applied through scripts at this time.

Returns nothing.

## `getAdGroup()`

Return the ad group that this recommendation is for or `null` if this recommendation is not for a specific ad group.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adgroup` | The ad group for this recommendation. |

## `getBaseStats()`

Returns the base stats for the account at the time the recommendation was generated.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendationstats` | The base stats for the account at the time the recommendation was generated. |

## `getCampaign()`

Return the campaign that this recommendation is for or `null` if this recommendation is not for a specific campaign.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaign` | The campaign for this recommendation. |

## `getEntityType()`

Returns the type of this entity as a `String`, in this case, `"Recommendation"`.

### Return values:

| Type | Description |
|---|---|
| `String` | Type of this entity: `"Recommendation"`. |

## `getPotentialStats()`

Returns the estimated stats for the account if the recommendation is applied.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendationstats` | The estimated stats for the account if the recommendation is applied. |

## `getResourceName()`

Returns the resource name of the recommendation.

### Return values:

| Type | Description |
|---|---|
| `String` | The resource name of the recommendation. |

## `getShoppingAdGroup()`

Return the shopping ad group that this recommendation is for or `null` if this recommendation is not for a specific shopping ad group.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingadgroup` | The shopping ad group for this recommendation. |

## `getShoppingCampaign()`

Return the shopping campaign that this recommendation is for or `null` if this recommendation is not for a specific shopping campaign.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingcampaign` | The shopping campaign for this recommendation. |

## `getType()`

Returns the type of the recommendation. See [the
Google Ads API documentation](https://developers.google.com/google-ads/api/reference/rpc/latest/RecommendationTypeEnum.RecommendationType) for possible values.

### Return values:

| Type | Description |
|---|---|
| `String` | The type of the recommendation. |