Pulling Report for all clients with 'Optimized Target' set to OFF

28 views
Skip to first unread message

siddharth harpale

unread,
Jun 7, 2022, 1:22:55 AM6/7/22
to Google Ads Scripts Forum
Hi team,

I am looking to pull a report  for all companies across the book that one of my seller is assigned to (on Connect Sales) on Display, Discovery and Youtube campaigns that have optimized targeting set to OFF. All i need is a list of campaigns per client. Is there a way to do this?

Thanks a lot!

Best,
Siddharth 

Google Ads Scripts Forum Advisor

unread,
Jun 7, 2022, 5:57:26 AM6/7/22
to adwords...@googlegroups.com
Hi Siddharth,

Thank you for reaching out to us.

With regard to your concern, there are two ways to extract all the campaigns per client: Since you will be running the script on the MCC level, you will need to iterate first through child accounts using the accounts method. Once you've retrieved the client accounts, you can iterate through them using the iterator's hasNext and next methods. You need to use the select method to switch the execution context to a client account.

Regards,
Google Logo
Teejay Wennie
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2bcwjt:ref
Reply all
Reply to author
Forward
0 new messages