Hi,
I referred to the documentation which mentions that I can add a headline to my ad using Google Ads Scripts. According to the documentation (https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_responsivevideoadbuilder#withHeadline_1), it requires the headline value to be a string and works fine when adding a single headline. However, I'm looking to add multiple headlines to my ad using Google Ads Scripts.
I've verified that it's possible to add up to five headlines to Responsive Video Ads using the Google Ads GUI. Could you please advise on how to achieve this using Google Ads Scripts?
Your assistance would be greatly appreciated.
Hi,
Thank you for reaching out to the Google Ads Scripts support team.
I would suggest that you define the “headline” variable with an array of five headlines and call it using “AdsApp.ResponsiveVideoAdBuilder.withHeadline(headline)”. Given below are a couple of examples;
var headline = [“headline 1”, “headline 2”, “headline 3”, “headline 4”, “headline 5”];
or AdsApp.ResponsiveVideoAdBuilder.withHeadline(headline1);
AdsApp.ResponsiveVideoAdBuilder.withHeadline(headline2);
AdsApp.ResponsiveVideoAdBuilder.withHeadline(headline3);
AdsApp.ResponsiveVideoAdBuilder.withHeadline(headline4);
AdsApp.ResponsiveVideoAdBuilder.withHeadline(headline5);
If the above methods do not work, it is better to add the headlines manually via the UI.
I hope this helps! Kindly get back to us if you still have any issues.
Thanks,Hi,
Thank you for your response and suggestions. I appreciate your help with this matter.
I have tried the approaches you mentioned, but unfortunately, I'm still facing difficulties in adding multiple headlines to Responsive Video Ads using Google Ads Scripts. Specifically, using an array of headlines as suggested gave me "Value too long" error. When using withHealine multiple times, it only takes one headline which is last in order.
Could you please confirm if there are any additional steps or considerations I should be aware of? The goal is to automate the creation and editing of more than 100 campaigns daily, so finding a script-based solution is crucial for efficiency.
Managing this from the GUI will be a tedious task because of the high volumes.
Your further guidance on this would be greatly appreciated.
Thank you once again for your assistance.
Hi,
I would like to inform you that adding multiple headlines is not supported as per the Google Ads Scripts documentation. I suggest that you create the headlines manually in the UI.
I hope this helps! Kindly reach out to us if you still have any concerns.
![]() |
Google Ads Scripts Team |