AdsApp.AssetGroup
Stay organized with collections
Save and categorize content based on your preferences.
Represents a Google Ads asset group. An asset can be an image, text, or
video. Asset groups are collections of assets primarily used by Performance
Max campaigns.
Methods:
addAsset(asset, fieldType)
Adds an asset to this asset group.
Arguments:
Name | Type | Description |
asset |
AdsApp.Asset |
The asset to add to this asset group. |
fieldType |
String |
The placement of the asset within the asset group. See the
API
documentation for a complete list. |
Return values:
enable()
Enables the asset group.
Returns nothing.
getEntityType()
Returns the type of this entity as a
String
, in this case,
"AssetGroup"
.
Return values:
Type | Description |
String |
Type of this entity: "AssetGroup" . |
getId()
Returns the ID of the asset group.
Return values:
Type | Description |
String |
The ID of the asset group. |
getName()
Returns the name of this asset group.
Return values:
Type | Description |
String |
The name of this asset group. |
Returns the performance max campaign to which this asset group
belongs or
null
if it does not belong to a performance max
campaign.
Return values:
Type | Description |
AdsApp.PerformanceMaxCampaign |
The performance max campaign to which this asset group
belongs or
null if it does not belong to a performance max campaign. |
getResourceName()
Returns the resource name of the asset group.
Return values:
Type | Description |
String |
The resource name of the asset group. |
isEnabled()
Returns
true
if the asset group is enabled.
Return values:
Type | Description |
boolean |
true if the asset group is enabled. |
isPaused()
Returns
true
if the asset group is paused.
Return values:
Type | Description |
boolean |
true if the asset group is paused. |
isRemoved()
Returns
true
if the asset group is removed.
Return values:
Type | Description |
boolean |
true if the asset group is removed. |
pause()
Pauses the asset group.
Returns nothing.
removeAsset(asset, fieldType)
Removes an asset from this asset group.
Returns nothing.
Arguments:
Name | Type | Description |
asset |
AdsApp.Asset |
The asset to remove from this asset group. |
fieldType |
String |
The placement of the asset within the asset group. See the
API
documentation for a complete list. |
setName(name)
Sets the name of the asset group.
Returns nothing.
Arguments:
Name | Type | Description |
name |
String |
The new name for the asset group. |
urls()
Provides access to this asset group's URL fields.
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-01-28 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-01-28 UTC."],[[["Represents a Google Ads asset group, which is a collection of images, text, and video assets."],["Primarily used by Performance Max campaigns to easily manage creative elements."],["Provides methods for adding, removing, enabling, pausing assets, and managing basic settings like name and status."],["Can be linked to a specific Performance Max campaign to tailor assets for optimal performance."]]],[]]