The selector of all product ads in the shopping ad group.
applyLabel(name)
Applies a label to the shopping ad group. name of the label is case-sensitive.
Operation will fail if the label with the specified name does not already exist in the account.
Note that the shopping ad group cannot not have more than 50 labels.
Returns nothing.
Arguments:
Name
Type
Description
name
String
Name of the label to apply.
bidding()
Provides access to this shopping ad group's bidding fields.
Creates the root product group of the shopping ad group (if one doesn't already exist). Newly
constructed shopping ad groups as well as ones modified by other means may not have any product
groups.
The shopping campaign to which this shopping ad group belongs.
getEntityType()
Returns the type of this entity as a String, in this case, "ShoppingAdGroup".
Return values:
Type
Description
String
Type of this entity: "ShoppingAdGroup".
getId()
Returns the ID of the shopping ad group.
Return values:
Type
Description
long
The ID of the shopping ad group.
getMobileBidModifier()
Returns the mobile bid modifier for this ad group.
The bid modifier is a multiplier applied to the shopping ad group's bids on mobile devices.
So, for instance, a bid modifier of 1.1 increases the bid to 110% of its original
value, and changes a bid of $5.00 to $5.50.
Note that when you set a mobile bid modifier at both campaign- and ad group-level in a
single campaign, the shopping ad group mobile bid modifier will be used when determining your
bid.
Returns stats for the specified custom date range. Both parameters can be either an object
containing year, month, and day fields, or an 8-digit string in YYYYMMDD form. For
instance, March 24th, 2013 is represented as either {year: 2013, month: 3, day:
24} or "20130324". The date range is inclusive on both ends, so forDateRange("20130324", "20130324") defines a range of a single day.
Arguments:
Name
Type
Description
dateFrom
Object
Start date of the date range. Must be either a string in YYYYMMDD form,
or an object with year, month and day properties.
dateTo
Object
End date of the date range. Must be either a string in YYYYMMDD form, or
an object with year, month and day properties.
The selector of all product groups in the shopping ad group.
removeLabel(name)
Removes a label from the shopping ad group. name of the label is case-sensitive.
Operation will fail if the label with the specified name does not already exist in the account.
Returns nothing.
Arguments:
Name
Type
Description
name
String
Name of the label.
rootProductGroup()
Returns the root product group of the shopping ad group or null if one does not exist.
The root product group of the shopping ad group or null if one does not exist.
setMobileBidModifier(modifier)
Sets the mobile bid modifier for this ad group to the specified value.
The bid modifier is a multiplier applied to the shopping ad group's bids on mobile devices.
So, for instance, a bid modifier of 1.1 increases the bid to 110% of its original
value, and changes a bid of $5.00 to $5.50.
Note that when you set a mobile bid modifier at both campaign- and ad group-level in a
single campaign, the shopping ad group mobile bid modifier will be used when determining your
bid.