Represents a Google Ads recommendation.

### Methods:

| Member | Type | Description |
|---|---|---|
| [apply()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation.md.txt#apply) | `void` | Apply the recommendation. |
| [getAdGroup()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation.md.txt#getAdGroup) | `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.md.txt#getBaseStats) | `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.md.txt#getCampaign) | `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.md.txt#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.md.txt#getPotentialStats) | `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.md.txt#getResourceName) | `String` | Returns the resource name of the recommendation. |
| [getShoppingAdGroup()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_recommendation.md.txt#getShoppingAdGroup) | `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.md.txt#getShoppingCampaign) | `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.md.txt#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 |
|---|---|
| `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 |
|---|---|
| `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 |
|---|---|
| `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 |
|---|---|
| `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 |
|---|---|
| `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 |
|---|---|
| `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. |