AdsApp.ShoppingAdGroupBuilder
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
A Shopping Ad Group Builder is used to construct a shopping ad group.
The build() method creates the ShoppingAdGroup and returns an operation to access the result or any errors.
Methods like withCpc(), withName(), and withStatus() allow setting specific properties of the shopping ad group being built.
If the name is not set, a default name is used, and if the status is not set, it defaults to ENABLED.
Builder for a shopping ad group under construction.
Typical usage:
varshoppingAdGroupBuilder=campaign.newAdGroupBuilder();varshoppingAdGroupOperation=shoppingAdGroupBuilder.withName("shopping ad group name").withStatus("PAUSED").build();varshoppingAdGroup=shoppingAdGroupOperation.getResult();
Sets the status of the new shopping ad group to the specified value.
build()
Creates a ShoppingAdGroup.
Returns a ShoppingAdGroupOperation
that can be used to get the new shopping ad group (or access any associated
errors if creation failed).
The shopping ad group builder with the specified max CPC.
withName(name)
Sets the name of the new shopping ad group to the specified value. If ad
group name is not set, the shopping ad group will assume a default name
('Ad Group #5').
[[["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-10-16 UTC."],[],[]]