AdWords
5K members online now
For issues or questions regarding logging in, account access, or account security
Guide Me
star_border
Reply

Pausing the ads with lowest CTR for each ad group

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Pausing the ads with lowest CTR for each ad group on a condition that the ad group must contain more than 4 ads.

Pausing the ads with lowest CTR for each ad group

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Here is a sample script i have started working upon. Need to modify it for the condition that each ad group must contain more than 4 active ads.

 

function main() {
// Let's start by getting all of the adGroups that are active
var ag_iter = AdWordsApp.adGroups()
.withCondition("Status = ENABLED")
.get();

// Then we will go through each one
while (ag_iter.hasNext()) {
var ag = ag_iter.next();
var ad_iter = ag.ads()
.withCondition("Status = ENABLED")
.withCondition("Impressions > 100")
.forDateRange("LAST_14_DAYS")
.orderBy("Ctr ASC")
.withLimit(2)
.get();
if(ad_iter.hasNext()) {
ad_iter.next().pause();
}
}
}

 

 

P.S: Found this From the Community