AI-generated Key Takeaways
-
This tool enables access to targeting criteria at the shopping ad group level, specifically focusing on audiences.
-
The
audiences()
method specializes the selector to returnShoppingAdGroupAudience
criteria. -
A
ShoppingAdGroupAudienceSelector
is used to selectShoppingAdGroupAudience
criteria and is demonstrated in the example code. -
The tool is able to retrieve audience data using metrics such as impressions and sort the results.
For instance, to select all audiences targeted by shopping ad groups you might use:
var shoppingAudienceSelector = AdsApp.shoppingAdGroupTargeting() .audiences() .withCondition("metrics.impressions > 100") .forDateRange("LAST_MONTH") .orderBy("metrics.clicks DESC"); var shoppingAudienceIterator = shoppingAudienceSelector.get(); while (shoppingAudienceIterator.hasNext()) { var shoppingAudience = shoppingAudienceIterator.next(); }
Methods:
Member | Type | Description |
---|---|---|
audiences() | AdsApp.ShoppingAdGroupAudienceSelector |
Specializes this selector to return ShoppingAdGroupAudience criteria. |
audiences()
Specializes this selector to return ShoppingAdGroupAudience
criteria. Return values:
Type | Description |
---|---|
AdsApp.ShoppingAdGroupAudienceSelector |
A selector for ShoppingAdGroupAudience criteria. |