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();
}
}
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:
Regards,
|
||||||
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
|
||||||
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.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/adwords-scripts/JSlR0Yx8vYc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
adwords-scrip...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-scripts/NmEtE000000000000000000000000000000000000000000000RN7L9K001gzrO33bTJStiLHCVoCqig%40sfdc.net.