AdsApp.Recommendation Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
This represents a Google Ads recommendation and offers methods to interact with it.
You can apply the recommendation and retrieve its associated ad group, campaign, or shopping entities.
The recommendation provides base stats and potential stats after applying it.
You can get the entity type and resource name of the recommendation.
The type of the recommendation can also be retrieved.
Represents a Google Ads recommendation. Methods:
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:
getBaseStats()
Returns the base stats for the account at the time the recommendation was
generated. Return values:
getCampaign()
Return the campaign that this recommendation is for or null
if
this recommendation is not for a specific campaign. Return values:
getEntityType()
Returns the type of this entity as a String
, in this case, "Recommendation"
. Return values:
getPotentialStats()
Returns the estimated stats for the account if the recommendation is
applied. Return values:
getResourceName()
Returns the resource name of the recommendation. Return values:
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:
Return the shopping campaign that this recommendation is for or null
if this recommendation is not for a specific shopping
campaign. Return values:
getType()
Returns the type of the recommendation. See the
Google Ads API documentation
for possible values. Return values:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-03 UTC."],[],[]]