AdsManagerApp.AccountLabel
Stay organized with collections
Save and categorize content based on your preferences.
Represents a Google Ads account-level label.
Methods:
Member | Type | Description |
accounts |
AdsManagerApp.ManagedAccountSelector |
Returns the selector of all accounts to which the account label is applied. |
getEntityType |
String |
Returns the type of this entity as a String , in this case,
"AccountLabel" . |
getId |
String |
Returns the ID of the account label. |
getName |
String |
Returns the name of the account label. |
getResourceName |
String |
Returns the resource name of the account label. |
remove |
void |
Removes the account label. |
setName |
void |
Changes the name of the account label. |
accounts()
Returns the selector of all accounts to which the account label is applied.
Return values:
getEntityType()
Returns the type of this entity as a
String
, in this case,
"AccountLabel"
.
Return values:
Type | Description |
String |
Type of this entity: "AccountLabel" . |
getId()
Returns the ID of the account label.
Return values:
Type | Description |
String |
ID of the account label. |
getName()
Returns the name of the account label.
Return values:
Type | Description |
String |
Name of the account label. |
getResourceName()
Returns the resource name of the account label.
Return values:
Type | Description |
String |
Resource name of the account label. |
remove()
Removes the account label.
Returns nothing.
setName(name)
Changes the name of the account label. The name must be unique, non-empty,
and may not be longer than
40
characters. Any leading or
trailing white spaces will be trimmed.
Returns nothing.
Arguments:
Name | Type | Description |
name |
String |
The new name. |
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 an account-level label within a Google Ads account, allowing for organization and management."],["Provides methods to access and modify the label's properties, including its name, ID, and associated accounts."],["Enables retrieval of a selector for all accounts to which the label is applied."],["Includes functionality to remove the label and change its name, subject to certain constraints."],["Returns the type of this entity as a string, which is \"AccountLabel\"."]]],[]]