This script is an updated version of our in-market audience bidding script that automatically applies modifiers for device, location, in-market and remarketing audiences based on performance.
The original script looks at campaigns’ CPC over a given time range and sets bid modifiers to each of the campaign-level in-market audiences based on performance. If there are no campaign-level audiences, the tool will apply bid modifiers to all in-market audiences at ad group-level.
This one does the same, but includes device, location and remarketing audiences!
And where the old script only looked at minimum impressions as a threshold, this one has extra filters to choose from: minimum cost and minimum number of conversions. You can also weight the modifiers if the volume is low.
Just like the original script, it does calculated modifiers based on the following formula: Modifier = Entity CPA / Audience CPA, where ‘Entity’ is the campaign or ad group.
As always, copy the script below and paste it in the scripts section of Google Ads.
You’ll need to set all the following variables correctly to make sure the script does exactly what you want it to do.
To start, use CAMPAIGN_NAME_DOES_NOT_CONTAIN and CAMPAIGN_NAME_CONTAINS to exclude or include specific campaigns.
Next up, your targeting options! These are pretty self-explanatory, set them to true to enable them: DO_DEVICES, DO_LOCATIONS, DO_IN_MARKET_AUDIENCES, DO_OTHER_AUDIENCES.
Use DATE_RANGE to determine the time frame for the script to look at, using one of these options.
Set MINIMUM_IMPRESSIONS, MINIMUM_CONVERSIONS, and MINIMUM_COST to the minimum number of each you want a campaign of ad group to have to be considered.
To be on the safe side, use MIN_BID_MODIFIER and MAX_BID_MODIFIER to define the upper and lower bounds for the bid modifiers to fall into.
If you would like to weight the modifiers based on the number of conversions, use CAMPAIGN_BID_MODIFIER_WEIGHTS or ADGROUP_BID_MODIFIER_WEIGHTS