Hi,
I have a script that automatically bids up high Impression production, with no clicks, by 10% increments each day, until such a time that someone clicks on that product. However I need to implement a control/cap on this and was wondering if anyone has anything that would work with this scenario. My base code is as follows:
function main() {
var productGroups = AdsApp.productGroups()
.withCondition("Clicks = 0")
.withCondition("Impressions > 500")
.forDateRange("ALL_TIME")
.get();
while(productGroups.hasNext()){
var productGroup = productGroups.next();
var currentMaxCpc = productGroup.getMaxCpc();
productGroup.setMaxCpc( currentMaxCpc * 1.05 );
}
}
ideally i'd like to exclude any products that have a MaxCpc =/> to £2.80.
Any thoughts would be appreciated.
Many Thanks,
James