Key-values let you define custom targeting. They are included in ad tags and used in line item targeting and more. Learn more about key-values. If you need the step-by-step on how to add a key-value, jump to How to add keys and values.
Once you create key-values, you or a resource familiar with tagging webpages and apps needs to include them in Google Publisher Tags (GPT) or the Google Mobile Ads SDK. You can then target key-values in line items, proposal line items, and other items.
Before you add a key-value, you should be familiar with how they work. If you're not, review the following to get started:
- Get started with key-values
- Predefined and dynamic key-values
- Names versus display names
- Valid key-value entry
Add keys
- Sign in to Google Ad Manager.
- Navigate to Inventory Key-values.
- Click New key-value.
- Enter a Name (to be used in the ad request) and a Display name (to be seen by traffickers). Learn more about names versus display names.
- Select a Value type.
- Dynamic: Users will enter targeting values when creating line items or checking inventory.
- Predefined: Users will select from predefined targeting values.
Learn more about predefined and dynamic key-values.
- Under "Report on values," select how or if this key-value appears in reports.
- Add values. Adding values is optional before saving. Learn how to add values.
- Click Save.
Add values
You can save a key without adding values. However, a key won't be serviceable until you define values.
You must first enter the value name (what appear in an ad request URL) before you can enter its display name. Learn more about names versus display names.
- Navigate to Inventory Key-values.
- Find the key to which you want to add values and go to its details page.
- Click New values.
- Enter one or multiple values.
There's no need to save when entering values. Click the pencil icon from the list of values to edit the display name.