Universal App Campaigns (UAC) - Google Ads Script - Auto Export Performance

862 views
Skip to first unread message

Michael Bogosian

unread,
Feb 22, 2022, 4:51:11 AM2/22/22
to Google Ads Scripts Forum
Greetings - I can't find any documentation to support my need. I'd like to export each ad groups asset performance for all campaigns in my account. 

At the moment, there is no tool to mass export all ad asset performance in a campaign. You have to go to each individual ad group, click through to the ad asset level, and export. It's very tedious and time consuming. 

I'd like to be able to write a script that exports all of them into a singular google sheet where I can manipulate the data on a set schedule like once a week.

Help!!!

- M

Google Ads Scripts Forum Advisor

unread,
Feb 23, 2022, 2:47:10 AM2/23/22
to adwords...@googlegroups.com

Hello Michael,

 

Thank you for reaching out to the Google Ads Script support channel. I’m James, allow me to assist you.

 

Can you confirm if this AdsApp.​AssetIterator is what you are looking for? The said iterator allows you to retrieve all the ad assets in your campaigns. However, this functionality is only available in Google Ads Script beta version and it is not yet supported on the current version of the Google Ads Scripts.

 

Having said that, could you please try the AdsApp.​AssetIterator on your end and let me know how it goes?

 

On the other hand, since you’re looking to export those data to google sheet, then you may implement the spreadSheet functionality. To know more about the said functionality, you may follow this guide.

 

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2WxspF:ref

Michael Bogosian

unread,
Feb 23, 2022, 10:23:36 AM2/23/22
to Google Ads Scripts Forum on behalf of adsscripts
Thank you for getting back to me. Do I need to enable the beta features or can I just go ahead and try it out?

--
Mike Bogosian
Director of Paid Media


--
-- 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/2Qa77WagxAs/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/NLqpH000000000000000000000000000000000000000000000R7QYYD00YaqGIel-RkuBXRwsmRrPiw%40sfdc.net.

Michael Bogosian

unread,
Feb 23, 2022, 10:34:19 AM2/23/22
to Google Ads Scripts Forum on behalf of adsscripts
Nevermind... I was able to enable it. 

Any chance you can draft me a script to work off of...


--
Mike Bogosian
Director of Paid Media


Google Ads Scripts Forum Advisor

unread,
Feb 24, 2022, 1:52:42 AM2/24/22
to adwords...@googlegroups.com

Hello Mike,

 

Yes, you need to to enable the beta feature on your Script interface or editor before you can execute the said iterator. For sample code snippet, you may refer here.

Thijs Joosten

unread,
Nov 8, 2022, 5:12:45 AM11/8/22
to Google Ads Scripts Forum
Hi there,

I've also tried implementing the script. But I receive an error notification if I simply copy-paste the script into the Google Ads Script field (with the 'new version for scripts' enabled. I get the following error notification:

InputError: Unrecognized function name "main" 
 at k (adsapp_compiled:379:11) 
 at Object.<anonymous> (adsapp_compiled:19141:13)

Am I missing something?

Thanks for the help!

Op donderdag 24 februari 2022 om 07:52:42 UTC+1 schreef adsscripts:
Schermafbeelding 2022-11-08 om 11.11.40.png

Google Ads Scripts Forum

unread,
Nov 13, 2022, 11:35:12 PM11/13/22
to Google Ads Scripts Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-scripts/c/2Qa77WagxAs) from the forum as it wasn't routed to our support queue.

Regards,
Yasmin
Google Ads Scripts Team

Google Ads Scripts Forum

unread,
Nov 14, 2022, 1:34:06 AM11/14/22
to Google Ads Scripts Forum
Hello,

As per the error, you would need to put the function getTextAdsIteratorInAdGroup inside another function called main.

Let us know how it goes.


Regards,
Yasmin
Google Ads Scripts Team

Andrea Dalla Rosa

unread,
Nov 10, 2023, 9:52:31 AM11/10/23
to Google Ads Scripts Forum
Hello, I am looking exactly the same script, it it possible to share a draft please?
thank you very much
Reply all
Reply to author
Forward
0 new messages