Methods:
Member | Type | Description |
---|---|---|
apply | void |
Apply the recommendation. |
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 | AdsApp.RecommendationStats |
Returns the base stats for the account at the time the recommendation was generated. |
getCampaign | AdsApp.Campaign |
Return the campaign that this recommendation is for or null if
this recommendation is not for a specific campaign. |
getEntityType | String |
Returns the type of this entity as a String , in this case,
"Recommendation" . |
getPotentialStats | AdsApp.RecommendationStats |
Returns the estimated stats for the account if the recommendation is applied. |
getResourceName | String |
Returns the resource name of the recommendation. |
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 | AdsApp.ShoppingCampaign |
Return the shopping campaign that this recommendation is for or
null if this recommendation is not for a specific shopping
campaign. |
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 for possible values. Return values:
Type | Description |
---|---|
String |
The type of the recommendation. |