An object that contains methods for getting ad builders. For example, to build an expanded text ad, call the object's expandedTextAdBuilder method to get the ExpandedTextAdBuilder object.
newKeywordBuilder
Gets a builder used to add a keyword to this ad group.
The root product group in this ad group. Returns null if the ad group doesn't contain product groups.
setEndDate(string endDate)
Sets the date when ads in this ad group stop serving. Set an end date only if you want ads in the group to stop serving on a specific date.
Arguments
Name
Type
Description
endDate
string
The date when ads in the ad group stop serving. Specify the date in the form, YYYYMMDD.
Returns
Type
Description
void
Returns nothing.
setEndDate(Object endDate)
Sets the date when ads in this ad group stop serving. Set an end date only if you want ads in the group to stop serving on a specific date.
Arguments
Name
Type
Description
endDate
Object
The date when ads in this ad group stop serving. Specify the date using an object with the following fields:
year
month
day
For example: var date = {year: 2018, month: 5, day: 13};
The month is one-based where 1 is January and 12 is December.
Returns
Type
Description
void
Returns nothing.
setName(string name)
Sets this ad group's name.
Arguments
Name
Type
Description
name
string
The name of this ad group. The name may contain a maximum of 256 characters and must be unique amongst all ad groups in the campaign.
Returns
Type
Description
void
Returns nothing.
setStartDate(string startDate)
Sets the date when ads in this ad group start serving. Set a start date only if you want ads in the group to start serving on a specific date; otherwise, they start serving immediately.
Arguments
Name
Type
Description
endDate
string
The date when ads in this ad group start serving. Specify the date in the form, YYYYMMDD.
Returns
Type
Description
void
Returns nothing.
setStartDate(Object startDate)
Sets the date when ads in this ad group start serving. Set a start date only if you want ads in the group to start serving on a specific date; otherwise, they start serving immediately.
Arguments
Name
Type
Description
endDate
Object
The date when ads in this ad group start serving. Specify the date using an object with the following fields:
year
month
day
For example: var date = {year: 2018, month: 5, day: 13};
The month is one-based where 1 is January and 12 is December.
Returns
Type
Description
void
Returns nothing.
targeting
Provides access to ad group level targeting criteria: location targeting.