Adds an attribute of the given name and type to the new ad customizer source.
Adds an attribute of the given name and type to the new ad customizer source. Existing attributes are not modified.
Valid types are text, number, price, date
.
An error will be thrown if the additional attribute's name is one of start date, end date, device preference, scheduling, target campaign, target ad group, keyword text, match type, keyword, id
, case insensitive.
An attribute named custom id
(case insensitive) will be interpreted as a special attribute, which has the additional requirement of each item in the data source having unique value for that attribute.
Adds a set of attributes to the new ad customizer source.
Adds a set of attributes to the new ad customizer source. Existing attributes are not modified. The set of new attributes are specified by an object where the keys are the names and the values are the respective types of the attributes. For instance,
var attributes = {item: "text", numLeft: "number", lowCost: "price"}; var builder = AdWordsApp.newAdCustomizerSourceBuilder(); var adCustomizerSource = builder .withName("Inventory") .addAttributes(attributes) .build();
adds the attributes
item
(of type
text
),
numLeft
(of type
number
), and
lowCost
(of type
price
) to the new ad customizer data source named "Inventory".
Valid attribute types are text, number, price, date
.
An error will be thrown if an additional attribute's name is one of start date, end date, device preference, scheduling, target campaign, target ad group, keyword text, match type, keyword, id
, case insensitive.
Sets the name of the new ad customizer source to the specified value.
Sets the name of the new ad customizer source to the specified value. This field is required.
Builder for AdCustomizerSource objects. For example, to create an ad customizer source with name "Inventory", and attributes "item" (of type
text
), "numLeft" (of typenumber
), and "lowCost" (of typeprice
):