Key-value targeting in Google Ad Manager

  • 14 / 03 / 2024
  • Alicja Graczyk
Key-value targeting in Google Ad Manager

The value of ad inventory is one of the primary factors that contribute to the success of content monetization. The more advertisers perceive your ad space as valuable, the more they are willing to cooperate with you. Key-value targeting lets you better define your precious ad inventory. Don’t hesitate to read our article and allow yourself to earn more!

Ad targeting

The purpose of ad targeting is to match user preferences by finding and serving ads to an audience with certain traits. Many characteristics can be taken into account, such as people’s age, place of residence, or lifestyle choices. Importantly, browser history can also be a source of valuable information and be used for ad targeting. The calculation is simple: the more effective the ad targeting, the higher the likelihood that the advertising campaign will be successful.

source: https://giphy.com/

Types of ad targeting:

  • Location targeting is used to find and show ads to people in specific areas such as cities, countries, states, or even specific facilities like airports;
  • Device targeting can be utilized to target specific devices, including tablets, connected TVs, or smartphones;
  • Operating system targeting that enables to serve ads on devices of certain operating systems like Android, macOS, etc.;
  • Custom targeting lets set up specific conditions that are not included in default targeting options in GAM;
  • Targeting options for video and audio (currently in the Beta versions) can help, for instance, test whether targeting ads to certain ad video types like pre-roll is worth it.

Google Ad Manager custom targeting

Custom targeting is an Ad Manager feature that lets you add key-values, audience segments, or content metadata in line items that store important details about ads. In this article, we will focus in particular on key-value targeting. It allows you to utilize information you learned about your visitors (like their age, gender, or localization) to characterize parts of your inventory. By doing so, ads displayed on your website will be better directed. Your ad inventory will also have higher value, as it’s going to be more defined, and most advertisers aim to get to a specific kind of audience. Importantly, this feature cannot be used for targeting concrete people; also, you can’t use IP addresses. However, you can target specific inventory that includes:

  • particular pages of your website,
  • only individual areas of the web page,
  • or other ad inventory.

Key-values are available in the targeting picker, a kind of list available at GAMs dashboard and incorporated in ad tags.

Key-values types

There are two types of key-values, and they are:

  • dynamic key-values
    should be utilized when you wish to set a specific key but don’t want to set values. They are helpful when you are sure about the term “investment”, but you are not certain about “gold investment”, “safe investment”, or some other option. There are several ways how you can set dynamic values, it all depends on what typographic symbol you use:

    • exact match
      when you type a certain word or phrase, meaning only that will be included,
    • “begins with” match
      when you add an asterisk (*) after your chosen phrase, matches will include that word and what comes after it. For example, when you set the phrase “investment*”, phrases like “investment advice” are going to be taken into account,
    • “include” match
      made with a tilde () placed before your chosen phrase. It allows you to choose to include also a word that comes before your phrase. In the case of “investment” it’s going to be, for instance, “gold investment”,
    • “begins with” and “include” match
      it’s a combination of two aforementioned cases, so if you decide to set “investment*”, the matches will include phrases like “gold investment advice”,
    • values with spaces
      they act like regular characters. For example, in the case of “Roman architecture*”, a match could be “Roman architecture history” but not “Romanesque architecture”;
  • predefined key-values
    are used in situations where you know the range of values. For instance, if the targeted audience is young adults, you can set age as a key and its values to “25-35”.

Setting up key-values

Before setting up key-values you have to acknowledge the following:

  • Key names rules:
    • it doesn’t matter whether you use small or capital letters,
    • don’t add numbers at the beginning of the phrase,
    • you shouldn’t include spaces in your phrases;
  • The difference between names and display names:
    • name is utilized in ad tags. It potentially may be visible in the ad request URL and consecutively by someone from your audience who checks the ad request,
    • display names, on the other hand, may be seen by people who run specific ad campaigns (traffickers) in targeting picker, when they include, for example, custom targeting line items.

Here is what the whole process looks like:

  1. Create key-values;
  2. Add key-values to the ad requests (include them in Google Publisher Tag – GPT);
  3. Target key-values in line items.

1. Create key-values

  1. Log in to your Google Ad Manager account;
  2. Go to “Inventory” and then “Key-values”;
  3. After clicking “New key-value” write a “Name” and a “Display name”;
  4. Pick a “Value type” – it can be either dynamic or predefined;
  5. At this stage, you can also decide whether to “Include values in reporting” or “Include values in reporting & add key as custom dimension”;
  6. At this point, you can save and add values later or add them immediately. We recommend doing it straight away. To do that, proceed once again to “Inventory” and then “Key-values”;
  7. After finding specific keys, choose “New values”;
  8. Enter one or more of them – you don’t have to save the values you enter.

2. Add key-values to the ad requests

  • To target only certain slots on a given page, include key-values in Google Publisher Tag (GPT), use Slot.setTargeting() function, and alter the code when necessary:

const slot = googletag
.defineSlot("/1234567/sports", [160, 600], "div")
.addService(googletag.pubads())
;

Example with a single value for a key:
slot.setTargeting("allow_expandable", "true");

Example with multiple values for a key inside an array:
slot.setTargeting("interests", ["sports", "music"]);

  • To target the whole ad inventory on a given page, include key-values in Google Publisher Tag (GPT), use googletag.pubads().setTargeting() function, and alter the code when necessary:

Example with a single value for a key:
googletag.pubads().setTargeting("interests", "sports");

Example with multiple values for a key inside an array:
googletag.pubads().setTargeting("interests", ["sports", "music"]).

3. Target key-values in line items

  1. Log in to your Google Ad Manager account;
  2. Go to GAM home page and then “Delivery” and after that “Line items”;
  3. Choose the line item you prefer;
  4. In the “Ad targeting” section, pick the “Custom targeting” drop-down, now choose the key and pick desired values;
  5. Click “Save”.

Make a report

To see a report on key-values, you have to set keys as “reportable” first. Remember that you can set up to 30 thousand of them. In case you exceed this limit, you won’t be able to set new ones and add values to keys that are already there. Additionally, in the case of creating a line item, it would be impossible to add dynamic values in targeting. To set keys as “reportable”:

  1. Log in to your Google Ad Manager account;
  2. Go to “Inventory” and then “Key-values”;
  3. Choose a specific key you want to utilize in the GAM report;
  4. Click “Include values in reporting”, which can be found beneath “Report on values”;
  5. After clicking “Save”, you should spot on the “Key-values” page that the value in the “Reportable” column will be updated to “On”.

However, if you want to elevate your report, it’s advisable to turn your most important “predefined” keys into “custom dimensions”. Importantly, you can only add up to ten of them, so plan in advance because deleting custom dimensions can have bad consequences. After taking that into account, follow these simple steps:

  1. Log in to your Google Ad Manager account;
  2. Go to “Inventory” and then “Key-values”;
  3. Pick a key you want to utilize in the GAM report;
  4. Click “Include values in reporting & add key as custom dimension”, which can be found beneath “Report on values”;
  5. Include targeting values of your choosing and choose “Save”;
  6. The “Reported values” column on the “Key-values” page will show how many custom values were reported in the last 7 days.

To make a report with custom dimensions included:

  1. Log in to your Google Ad Manager account and go to “Reporting”, after that to “Reports”, and finally, “New report”;
  2. Choose “Custom Dimensions”, located in the “Dimensions” part of the page;
  3. Pick a key, or multiple keys, that have been turned from “predefined” keys into “custom dimensions”;
  4. Select options that suit you;
  5. Now you can either:
    • choose to run the report immediately – select “Run”,
    • decide to delay the run of your report – select “Save” and set the time,
    • opt for saving and running your report now – select “Save and run”.

How to delete key values

Deleting set keys or their values is a simple procedure. You just have to click the checkbox, which is located side by side with a certain key or value, and select “Delete”. When you wish to add certain keys or values again, you have to start everything from the beginning. Interestingly, in the case of re-adding a key that existed before, values that were paired with that key reappear to make the process easier. Good luck!

Read also

How much traffic does a website need to make money?
How much traffic does a website need to make money?

How much traffic does a website need to make money?

Are you considering a blogging career and wondering how much traffic you need to generate income? There is no better place to start than here! Read this article and find out what aspects to consider to effectively monetize your content!

Read more
Google Analytics 4 – change is coming
Google Analytics 4 – change is coming

Google Analytics 4 – change is coming

Security and efficiency are the most critical factors in the publishing industry. That is why it needs to be constantly developed. Meet the newest changes in Google Analytics introduced by Google. Don’t wait!

Read more

Find the best solutions
for your business

Benefit from expert knowledge

Start earning more

Registration to the optAd360 network

Increase your ad revenue!

Join satisfied publishers who, thanks to the optimization of their advertising space
with our technology, started to generate greater profits.

Sign up