AdsApp.AdCustomizerSource
Stay organized with collections
Save and categorize content based on your preferences.
Represents an ad customizer data source for expanded text ads as seen in the
"Data feeds" section of Business data. Each ad customizer source has a unique
name and a set of attributes. The attributes are defined by an attribute
name, which must be unique across attributes within the data source, and a
type, which must be one of the following:
text, number, price,
date
. An ad customizer source can have zero or more
AdCustomizerItems in it.
Methods:
adCustomizerItemBuilder()
Returns a builder for a new item in this data source.
Return values:
getAttributes()
Returns a map from attribute name to attribute type. Contains all of the
attributes in this ad customizer data source. For instance, a data source
that contains the item attributes
item
(of type
text
),
numLeft
(of type
number
), and
lowCost
(of type
price
) would return
{item:
'text', numLeft: 'number', lowCost: 'price'}
.
Return values:
Type | Description |
Object |
The name-type pairs of the ad customizer source's item attributes. |
getEntityType()
Returns the type of this entity as a
String
, in this case,
"AdCustomizerSource"
.
Return values:
Type | Description |
String |
Type of this entity: "AdCustomizerSource" . |
getName()
Returns the name of the ad customizer source.
Return values:
Type | Description |
String |
The name of the ad customizer source. |
items()
Returns the selector of all items in this ad customizer data source.
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."],[[["Ad customizer data sources are used for expanded text ads and are found in the \"Data feeds\" section of Business data."],["Each source has a unique name and attributes defined by a name and a type (text, number, price, or date)."],["Sources can contain multiple AdCustomizerItems, managed through a builder and selector for adding and accessing items."],["Developers can retrieve attribute information using `getAttributes()` and source name using `getName()`."]]],[]]