AdsApp.​Recommendation

Represents a Google Ads recommendation.

Methods:

MemberTypeDescription
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:

TypeDescription
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:

TypeDescription
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:

TypeDescription
AdsApp.Campaign The campaign for this recommendation.

getEntityType()

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

Return values:

TypeDescription
String Type of this entity: "Recommendation".

getPotentialStats()

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

Return values:

TypeDescription
AdsApp.RecommendationStats The estimated stats for the account if the recommendation is applied.

getResourceName()

Returns the resource name of the recommendation.

Return values:

TypeDescription
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:

TypeDescription
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:

TypeDescription
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:

TypeDescription
String The type of the recommendation.