How to pause the Performance Max campaign using Google Ads Scripts?

516 views
Skip to first unread message

Mat

unread,
Apr 14, 2022, 8:20:27 AM4/14/22
to Google Ads Scripts Forum
If you use AdsApp.campaigns() there are no Performance Max campaigns to get.

Google Ads Scripts Forum Advisor

unread,
Apr 20, 2022, 1:19:57 AM4/20/22
to adwords...@googlegroups.com

Hello Mat,

I’m James from the Google Ads scripts support team. Thank you for reaching out to us.

Unfortunately, retrieving and pausing Performance Max campaigns is not yet supported using the campaign selector. Instead, you can only retrieve those types of campaigns using reporting that utilize the campaign resource in its query. You may refer here for more information and sample reporting implementation.

Let me know if you have any questions.

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2a3Cou:ref

Daniel Alvarado

unread,
May 3, 2022, 5:36:03 PM5/3/22
to Google Ads Scripts Forum
Hi James, 

When you say he can use the campaign resource in the query. Does that mean we can perform operations using the resource name through the Scripts API? OR am I reading that incorrectly? The Campaign resource link you posted makes reference to the Google Ads API docs which is confusing. 

Daniel Alvarado

unread,
May 3, 2022, 5:38:05 PM5/3/22
to Google Ads Scripts Forum
Also, I know I'm hijacking this thread :P But can you give us a list of campaign types that ARE NOT supported via the standard Campaign Selector? I know Smart campaigns were not supported in the previous version, how about Discovery and Local campaigns? 

Google Ads Scripts Forum Advisor

unread,
May 4, 2022, 5:13:47 AM5/4/22
to adwords...@googlegroups.com

Hello Daniel,

Thank you for looping in. Allow me to assist you.

I would like to clarify first that the new script experience infrastructure is now based on Google Ads API. Therefore, it now utilizes the Google Ads API resources upon using the Ads script reporting. Now to answer your question if you can perform any operations, No, it doesn’t allow you to perform any operations. Instead, you can only retrieve those data. 

On the other hand, only search and display campaigns are supported in the campaign selector. The rest should use the specific selector (ShoppingCampaignSelector for shopping and VideoCampaignSelector for video campaigns). Aside from those, other campaigns are not yet supported in any campaign selector within Google Ads scripts including discovery and local campaigns. For now, I can only confirm that you can only retrieve local campaigns via AdsApp.search / report.

However, I believe that there’s already a feature request placed in our internal team and currently on discussion. Having said that, there is no guarantee that this kind of functionality will be implemented anytime soon in the Google Ads Scripts. In the meantime, kindly keep an eye to our blog for updates and new releases on this.

Regards,

Reply all
Reply to author
Forward
0 new messages