I want to remove AdGroup via Google Ad Script

140 views
Skip to first unread message

Pawan Kaushik

unread,
Jul 14, 2019, 2:17:51 AM7/14/19
to Google Ads Scripts Forum
I want to remove AdGroup via Google Ad Script once my automation script meets a certain condition. 

Below code is for pausing the Ad group, It's working fine but I want to remove the Adgroup, don't want to pause them.

Code:
var adGroup = adGroupIterator.next();
adGroup.pause();

Regards,
Pawan

Pawan Kaushik

unread,
Jul 16, 2019, 1:07:50 PM7/16/19
to Google Ads Scripts Forum
Can Someone Help me on this?

Google Ads Scripts Forum Advisor Prod

unread,
Jul 16, 2019, 4:45:39 PM7/16/19
to adwords-scripts+apn2wqefd-uysyxy...@googlegroups.com, adwords-scripts+apn2wqefd-uysyxy...@googlegroups.co, adwords...@googlegroups.com
Hi Pawan,

There is no direct remove method in the ad group class. However, you can remove ad groups with Bulk Uploads.

Regards,
Matt
Google Ads Scripts Team 

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