More, more, more about custom targeting

Read more

With custom targeting, you can define your own targeting criteria for information that you collect from your users (for example age, gender, or content) that DFP Small Business wouldn't otherwise be able to determine.

Learn more about the general concept of custom targeting.

Custom targeting comes in two flavors:

  • Pre-defined custom targeting:

    This is the most commonly used form of custom targeting where you pre-define the values for a certain key. For example:
    key = gender
    values = male, female

  • Free-form custom targeting:

    With free-form key-values, you define the key but the values are dynamically passed to the ad tag based on information about a user or a user's behavior. If you require more than 200 possible targeting values per key and don't want to define your targeting values in advance, use free-form targeting instead of custom targeting.

In order to get started with custom targeting, follow these steps:

  1. Before you can start targeting ads to those custom targeting criteria, forecasting or reporting on them, you will have to define them in your inventory. Learn how to define your custom targeting criteria.

  2. In order for DFP Small Business to pick up the custom targeting criteria you will have to pass it into the DFP Small Business tags. This will not happen manually and requires some input from your end. Find an example of the GPT with the following example line of code defining the custom targeting criteria on your page:

    .setTargeting("interests", ["sports", "music", "movies"]);

  3. Now you can start targeting ads to these custom targeting criteria. You can add targeting to existing line items or to new line items in the line item settings “Add targeting”. Once that is done your line item will only serve to the pages that match the custom targeting criteria you’ve defined in the line item settings.

    Good to know: Predefined custom targeting will be fully taken into account for forecasting if it has been added 28 days prior to the forecast.