Set ad customizer attribute value using Google Ads Scripts

121 views
Skip to first unread message

Salar Kat

unread,
Dec 19, 2023, 3:41:19 AM12/19/23
to Google Ads Scripts Forum

Hi.

In my Google Ads advertising account I go to “Tools an Settings” -> “Setup” -> “Bussiness Data”

Then on the left I click “Ad customizer attributes” and create an attribute with the name “Price” and data type “Number”.

Then I go to my campaign in the “Ad groups” section. Click “Columns” -> ”Modify Columns” and check column “Price (Number)” from “Ad customizer attributes” section.

Now I can set the “Price” ad customizer attribute value for each ad group and then insert it into the ad {CUSTOMIZER.Price:150}

where 150 is the default value in case the “Price” ad customizer attribute value is not specified.

QUESTION: how can I set the “Price” ad customizer attribute value at the ad group level, but not manually, but using a Google Ads Script?

P.S. I'm looking for a method like

adGroup.setAdCustomizer(name, value);

but can't find it in the reference https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_adgroup

 

Sigurd Fabrin

unread,
Dec 19, 2023, 4:41:00 AM12/19/23
to Google Ads Scripts Forum
To get dynamic content into RSAs, I use bulk uploads. This can be done using a script, but for this specific task I just use a scheduled import, as I already have the data in a Google sheet


Sigurd

Salar Kat

unread,
Dec 21, 2023, 4:32:20 PM12/21/23
to Google Ads Scripts Forum
I don't use Google Sheets. I'm getting pricing data from a website in JSON format and converting the JSON into a javascript object. But I don’t understand how to continue bulk upload this data. Do you have an example script on how to implement bulk upload of any data using Google Ads Scripts?

вторник, 19 декабря 2023 г. в 11:41:00 UTC+2, Sigurd Fabrin:

Google Ads Scripts Forum Advisor

unread,
Dec 21, 2023, 9:52:00 PM12/21/23
to adwords...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads Scripts Team. 

By reviewing your query, I understand that you are looking for a bulk upload example. I would like to inform you that Google Ads scripts let you make bulk changes to your account by uploading data in CSV format. You can upload data from a CSV file from Google Drive, a Google spreadsheet, a Microsoft Excel spreadsheet, or construct a bulk upload request in your script at runtime. Refer to the example and Bulk Upload for more information.

This message is in relation to case "ref:!00D1U01174p.!5004Q02r3Cvu:ref"

Thanks,
 
Google Logo Google Ads Scripts Team

 

Reply all
Reply to author
Forward
0 new messages