In-Market Audiences Bidding Script

Generally, in-market audiences work pretty well. Add a couple in a campaign with a 0% bid modifier, collect data on how they perform, and then bid up or down on them. You can probably expect some pretty good results, in which case you’ll naturally want to raise bids as soon as possible. But bear in mind that they’re not infallible. You need to keep a close eye on in-market audiences because sometimes performance can decline with them.

Monitoring campaigns and adjusting bids accordingly is key, but manually? No thanks!

What’s included?

How does the script work?

This script will implement bid adjustments to your in-market audiences for you. Simple as that. 

It looks at your 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.

The modifiers are applied according to this formula: Modifier = Entity CPA / Audience CPA, where ‘Entity’ is the campaign or ad group.

How do I use it?

In Google Ads, go to Bulk Actions, then choose Scripts. On the Scripts page, click on the big “+” button, and paste in the script below.

Before you start, there are a few options available for you to customize the script to your liking:

  • Use DATE_RANGE to choose the time period the script should analyze. You can find a list of supported values here.
  • With MINIMUM_IMPRESSIONS, you can set whether a campaign needs to have a certain number of impressions to be looked at.
  • You may want to exclude certain campaigns entirely with CAMPAIGN_NAME_DOES_NOT_CONTAIN. If you’ve got a good naming system, you can use this to filter out campaign types, e.g., brand or generic campaigns.
  • Alternatively, you might want to only look at specific campaigns by specifying CAMPAIGN_NAME_CONTAINS

The In-Market Audiences Bidding Script code