Script RSAs Headline Evaluation

55 views
Skip to first unread message

Philipp Waloszyk

unread,
Dec 15, 2022, 8:06:36 PM12/15/22
to Google Ads Scripts Forum

Hello,


i would like to implement a script in my account to evaluate the played out Headlines of the RSAs in my account. I have tried to start with the following script, but it does not work. Can somenone help me out here? 




function main() {

 

  // Get all responsive search ads in the account

  var ads = AdsApp.ads().withCondition('Type = RESPONSIVE_SEARCH_AD').get();

 

  // Iterate over the ads

  while (ads.hasNext()) {

    var ad = ads.next();

 

    // Get the played headlines for the ad

    var headlines = ad.getHeadlines();

 

    // Log the played headlines to the script logs

    Logger.log('Played headlines for ad with ID ' + ad.getId() + ': ' + headlines.join(', '));

 

    // Save the changes to the ad

    ad.update();

  }

}

Google Ads Scripts Forum Advisor

unread,
Dec 16, 2022, 2:18:57 AM12/16/22
to adwords...@googlegroups.com

Hello Philipp,

Thank you for reaching out to us.

Can you please provide more details with your concern so that we can have a clear understanding on what you’re trying to achieve using Google Ads scripts? Also, it would be helpful if you could also provide us with the following items below:

  • Google Ads account ID / CID
  • Script name

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2h3f6O:ref

Philipp Waloszyk

unread,
Dec 20, 2022, 3:04:15 AM12/20/22
to Google Ads Scripts Forum on behalf of adsscripts
Hello James,

here comes the Google Ads Account ID : 580-352-5833

and the script name is : RSA Headlines Evaluation

It would be great to have this problem solved, so that we can evaluate the share of outplayed Headlines of the RSAs with Brand / not Brand.

Thanks a lot and have nice day!

Best,

Philipp




Philipp Waloszyk
Junior Account Manager

GroupM Germany GmbH & Co. KG


Derendorfer Allee 10 | 40476 Düsseldorf | Germany

https://campus.groupm.de/
https://www.groupm.com/

Follow us: https://www.facebook.com/GroupM-Deutschland-1434893150137286 | https://twitter.com/GroupMGermany | https://www.xing.com/companies/groupmgermanygmbh | https://www.linkedin.com/company/groupm-germany/ | https://www.instagram.com/groupm_germany/?hl=de



  
    


Von: Google Ads Scripts Forum on behalf of adsscripts <adwords...@googlegroups.com>
Gesendet: Freitag, 16. Dezember 2022 08:19
An: adwords...@googlegroups.com
Betreff: RE: Script RSAs Headline Evaluation

Hello Philipp,

Thank you for reaching out to us.

Can you please provide more details with your concern so that we can have a clear understanding on what you’re trying to achieve using Google Ads scripts? Also, it would be helpful if you could also provide us with the following items below:
• Google Ads account ID / CID
• Script name
Regards,

James Howell
Google Ads Scripts Team


 


ref:_00D1U1174p._5004Q2h3f6O:ref
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://urldefense.com/v3/__https://developers.google.com/adwords/scripts/community__;!!MOA0!Yf08Gjk1FQnsgi7yCtwagbuawYm3Uhds0Ihluuty45o8fEKuuXLXJtnz_RZiN6SxEqlsTo1ZB80mxdCkBH7-z4HVwKFStG9mwylazTo$.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://urldefense.com/v3/__https://groups.google.com/d/topic/adwords-scripts/JSlR0Yx8vYc/unsubscribe__;!!MOA0!Yf08Gjk1FQnsgi7yCtwagbuawYm3Uhds0Ihluuty45o8fEKuuXLXJtnz_RZiN6SxEqlsTo1ZB80mxdCkBH7-z4HVwKFStG9mxhRfa9w$.
To unsubscribe from this group and all its topics, send an email to mailto:adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://urldefense.com/v3/__https://groups.google.com/d/msgid/adwords-scripts/QqEER000000000000000000000000000000000000000000000RMZ2ZA00WiX8JsYHSMiHCm-nPCc1fw*40sfdc.net?utm_medium=email&utm_source=footer__;JQ!!MOA0!Yf08Gjk1FQnsgi7yCtwagbuawYm3Uhds0Ihluuty45o8fEKuuXLXJtnz_RZiN6SxEqlsTo1ZB80mxdCkBH7-z4HVwKFStG9mi0tujKc$.

groupm Germany GmbH & Co. KG
Amtsgericht Düsseldorf HRA 25601

persönlich haftender Gesellschafter: groupm Germany Deutschland Verwaltungs GmbH
Amtsgericht Frankfurt am Main HRB 55322
Geschäftsführer: Thorsten Ebbing ▪ Karin Roß ▪ Manuela Speckamp-Schmitt ▪ Stefan Radner ▪ Christoph Speck


Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message, you should destroy this message. For more information on GroupM's business ethical standards and corporate responsibility policies, please refer to GroupM's website

Google Ads Scripts Forum Advisor

unread,
Dec 20, 2022, 4:34:45 PM12/20/22
to adwords...@googlegroups.com
Hi Philipp,

The script fails when ad.update() is called on line 17. The function, update(), is not a method of the Ad class.

It's unclear what you want the update method to do to each ad, but you might consider creating your own function, and passing each iterated ad to that custom function. 

Regards,

Google Logo
Matt
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2h3f6O:ref

Philipp Waloszyk

unread,
Dec 21, 2022, 3:53:12 AM12/21/22
to Google Ads Scripts Forum on behalf of adsscripts

Hi Matt,

 

thank you very much for the update. Are you able to create the code of the script or adapting this custom function, so that I can implemantate the script and try, if it works out. That would be great.

 

Best,

 

Philipp

 

 

Philipp Waloszyk

Junior Account Manager

GroupM Germany GmbH & Co. KG


Derendorfer Allee 10 | 40476 Düsseldorf | Germany

 

Von: Google Ads Scripts Forum on behalf of adsscripts <adwords...@googlegroups.com>

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.


---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.

Google Ads Scripts Forum Advisor

unread,
Dec 21, 2022, 10:39:55 AM12/21/22
to adwords...@googlegroups.com
Hi Philipp,

We may be able to assist with some sample code, but we would require a detailed description for the function first.

Thanks,
Reply all
Reply to author
Forward
0 new messages