AdWords
3.1K members online now
3.1K members online now
Improve your AdWords performance and boost your ROI, CTR, and Quality Score
Guide Me
star_border
Reply

Need an AdWords script that adjust bids by impression

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hey all.

 

I'm looking for some script in which I can increase the bids for 0 impression keywords and decrease the bid for keywords with more than XX impressions, with top and bottom limits.

 

I need to control my costs and that's one of the ways I intend to do so.

 

Can someone help me out?

 

Thanks!

 

 

Re: Need an AdWords script that adjust bids by impression

[ Edited ]
Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆

Hi Pedro.

You don't need AdWords scripts for that.
You can use an automated rules. Below is an example configuration for increasing bids if there wasn't impressions in previous day.

 

adwords rule.png

 

But if you must to do this by script below is an example one:

 

var dateRange = "YESTERDAY";
var decreaseCpcMultiplier = 0.97;
var increaseCpcMultiplier = 1.03;
var minImpressios = 100;

function main() {
var campaigns = AdWordsApp.campaigns().withCondition("Status = ENABLED").get();
while(campaigns.hasNext()){
var campaign = campaigns.next();
var adgroups = campaign.adGroups().withCondition("Status = ENABLED").get();
while(adgroups.hasNext()){
var adgroup = adgroups.next();
var keywords = adgroup.keywords().withCondition("Status = ENABLED").get();
while(keywords.hasNext()){
var keyword = keywords.next();
var impressions = keyword.getStatsFor(dateRange).getImpressions();
var cpc = keyword.bidding().getCpc();
if(impressions == 0){
var newCpc = cpc * increaseCpcMultiplier;

keyword.bidding().setCpc(newCpc);
}
else if(impressions > minImpressios){
var newCpc = cpc * decreaseCpcMultiplier;

keyword.bidding().setCpc(newCpc);
}

}
}
}
}

 

But I'm not sure that the number of impressions is the best metric for making bids adjustments.

Re: Need an AdWords script that adjust bids by impression

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
It may be not the best metric, but what I need now is just to impress no matter what position.
I believe it will help to control the cost for a while, since I will keep impressing for a low bid.