AdWords
5.2K members online now
5.2K members online now
Get started with AdWords - learn the basics to get set up for success
Guide Me
star_border
Reply

How to Pause Empty Ad Groups?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Is there anyway to Pause Ad Groups in One Click at these following 3 Conditions :
1. If there is no Ads, but with Keyword.
2. If there are , but No Keywords.
3. If there are no ads, no keywords

3 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by Sumanth Sridhar (Rising Star)
September 2015

Re: How to Pause Empty Ad Groups?

Top Contributor
# 5
Top Contributor

@Sumanth Sridhar I'm not Nisal, but will I do?  @Akshay S

 

It's actually pretty simple to do with Scripts as there's a method that checks for the number of items in a selector.  The script below should do it.  As usual, PREVIEW the script before running and check the log and change tabs to check it's doing what you expect before running it.  You may want to add a line to Label paused Groups for later identification.

 

function main() {
var adGroupIter = AdWordsApp.adGroups()
.withCondition("CampaignStatus = 'ENABLED'")
.withCondition("Status = 'ENABLED'")
.get();

while (adGroupIter.hasNext()) {
var thisGroup = adGroupIter.next();
var numAds = thisGroup.ads()
.withCondition("Status = 'ENABLED'")
.get().totalNumEntities();
var numKeywords = thisGroup.keywords()
.withCondition("Status = 'ENABLED'")
.get().totalNumEntities();
if(numAds == 0 || numKeywords == 0) {
thisGroup.pause();
}
}
}

 

AdWords Top Contributor Google+ Profile | Partner Profile | AdWords Audits

View solution in original post

Re: How to Pause Empty Ad Groups?

Rising Star
# 2
Rising Star
Hi Akshay,

This is an easy task when done from the Editor.

The moment you download the entire account, you will get a error message against every adgroup that does not contain the essential elements in them, i.e. ad copies or keywords.

You can then sort the adgroups in the adgroups tab and sort them according to the error message and once you have all of such adgroups at the top of the page, you can select all of them and then pause them together.

Hope this Helps!

Cheers!

Shashank
Cheers,
Shashank Singh, AdWords Rising Star |
Did you find any helpful responses or answers to your query? If yes, please hit "Like" or "Accept as Solution"

Re: How to Pause Empty Ad Groups?

Rising Star
# 3
Rising Star

@ShashankSingh: +1

 

@Nisal L: Looping you in to see if there's a way out with scripts.. I wanted to do something similar on a large account, eventually ended up with editor. I found this script (one at the bottom) to pause ad groups. Is it possible to include a condition to check for no ads / keywords in this script?

 

Sumanth

Sumanth Sridhar

Re: How to Pause Empty Ad Groups?

Explorer ✭ ☆ ☆
# 4
Explorer ✭ ☆ ☆
Hi Akshay S,
It is also very easy when you do it from adwords. You just have to have to click on all online campaign and you can find out the adroup with no ads and keywords and pause it, but if you are handling an account with numerous number of campaign you should use adwords editor.
Marked as Best Answer.
Solution
Accepted by Sumanth Sridhar (Rising Star)
September 2015

Re: How to Pause Empty Ad Groups?

Top Contributor
# 5
Top Contributor

@Sumanth Sridhar I'm not Nisal, but will I do?  @Akshay S

 

It's actually pretty simple to do with Scripts as there's a method that checks for the number of items in a selector.  The script below should do it.  As usual, PREVIEW the script before running and check the log and change tabs to check it's doing what you expect before running it.  You may want to add a line to Label paused Groups for later identification.

 

function main() {
var adGroupIter = AdWordsApp.adGroups()
.withCondition("CampaignStatus = 'ENABLED'")
.withCondition("Status = 'ENABLED'")
.get();

while (adGroupIter.hasNext()) {
var thisGroup = adGroupIter.next();
var numAds = thisGroup.ads()
.withCondition("Status = 'ENABLED'")
.get().totalNumEntities();
var numKeywords = thisGroup.keywords()
.withCondition("Status = 'ENABLED'")
.get().totalNumEntities();
if(numAds == 0 || numKeywords == 0) {
thisGroup.pause();
}
}
}

 

AdWords Top Contributor Google+ Profile | Partner Profile | AdWords Audits

Re: How to Pause Empty Ad Groups?

Rising Star
# 6
Rising Star

Certainly Jon!

 

It works like a charm.

 

Thanks a ton!

Sumanth

Sumanth Sridhar

Re: How to Pause Empty Ad Groups?

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭
@Jon_Gritton

This script working only on text ads?
because on log i see that the ad group with banners gonna pause

thanks for your help

Re: How to Pause Empty Ad Groups?

Top Contributor
# 8
Top Contributor

@Shiran Y do these Groups have any Keywords?  If they're enabled for the Display network it's possible they're not using Keywords for targeting (only topics, interests, audiences, etc.).  The script checks each group and will pause if it has no Ads or if it has no Keywords, so this is probably why.

 

For it to work for Groups without Keywords, you'd need to check for other forms of targeting.

 

Jon

AdWords Top Contributor Google+ Profile | Partner Profile | AdWords Audits

Re: How to Pause Empty Ad Groups?

Visitor ✭ ✭ ✭
# 9
Visitor ✭ ✭ ✭
@Jon_Gritton
right!!!
after i noticed that...
i change the condition :
because i have display and search on same account.

if(numAds == 0 ) {
thisGroup.pause();
}

tnx

How to Pause Empty Ad Groups?

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

Does empty ad group make some effect on quality score?