This is the legacy documentation for Google Ads scripts. Go to the current docs.

AdsApp.​AdCustomizerSource

Stay organized with collections Save and categorize content based on your preferences.
Represents an ad customizer data source as seen in the Business Data section of the Shared Library. 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 many AdCustomizerItems in it, or it can have none. Refer to the feature guide for more information.

Methods:

MemberTypeDescription
adCustomizerItemBuilder AdsApp.AdCustomizerItemBuilder Returns a builder for a new item in this data source.
getAttributes Object Returns a map from attribute name to attribute type.
getEntityType String Returns the type of this entity as a String, in this case, "AdCustomizerSource".
getName String Returns the name of the ad customizer source.
items AdsApp.AdCustomizerItemSelector Returns the selector of all items in this ad customizer data source.

adCustomizerItemBuilder()

Returns a builder for a new item in this data source.

Return values:

TypeDescription
AdsApp.AdCustomizerItemBuilder AdCustomizerItemBuilder used to add an item to the ad customizer source.

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:

TypeDescription
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:

TypeDescription
String Type of this entity: "AdCustomizerSource".

getName()

Returns the name of the ad customizer source.

Return values:

TypeDescription
String The name of the ad customizer source.

items()

Returns the selector of all items in this ad customizer data source.

Return values:

TypeDescription
AdsApp.AdCustomizerItemSelector The selector of all items in this ad customizer data source.