Ad Position Targeting

This article describes resources that enable you to read and define ad position targeting.

Overview

The Oath Ad Platforms DSP supports AD_POSITION targeting for lines serving display ads.

Endpoint

/traffic/lines/{id}/targeting
  • A GET request enables you to view ad positions targeted by the specified line.
  • A POST request enables you to target ad positions with the specified line.

Resources

The targeting resource is the standard Oath Ad Platforms DSP resource for targeting consumers based on their profiles, behaviors, and ad content.

This resource comprises multiple fields that enable you to specify line targeting across many types of targets including the SEGMENT, EXCHANGES, and AD_POSITION target types.

The targeting resource is defined by the following AD_POSITION targeting type-specific fields:

Field Description Data Type
id Specifies the line ID. integer
positions

For display ads, specifies location on the page where the ad appears:

  • ABOVE_FOLD - The ad serves on the top 50% of the page.
  • PARTIAL_VIEW - The ad serves when at least 25% of the ad is visible. .
  • BELOW_FOLD - The ad serves on the bottom 50% of the page.
  • UNKNOWN - The ad serves in an unknown position.
  • ALL
array

Note

For a complete list of targeting resource fields, see Targeting Object.

Read Ad Position Targets

Returns a list of targets for the specified line.

GET /traffic/lines/{id}/targeting

The resource returns information about all of the target types enabled and all of the targets specified for the line including positions.

To learn more, see Read Line Targeting.

Add/Update Ad Position Targets

Specifies ad positions to target.

POST /traffic/lines/{id}/targeting/

Parameters

The line ID is specified in the path of the URL. All other parameters are specified in the body of the application/json payload.

Parameter Parameter Type Definition Data Type Required
id path Specifies the line lD. integer Y
positions body

For display ads, specifies location on the page where the ad appears:

  • ABOVE_FOLD - The ad serves on the top 50% of the page.
  • PARTIAL_VIEW - The ad serves when at least 25% of the ad is visible. .
  • BELOW_FOLD - The ad serves on the bottom 50% of the page.
  • UNKNOWN - The ad serves in an unknown position.
  • ALL
array Y
types body

Specifies an array of targeting types to target. To target consumers by ad position, AD_POSITION targeting type must be specified.

To learn more, see Targeting Types.

array Y

Example Request

The line ID is specified in the path of the resource endpoint:

POST traffic/lines/365277/targeting/

All other parameters are specified in the body of the application/json payload.

{
  "targetingLines": {
    "positions": [
      "ABOVE_FOLD"
    ]
  },
  "types": [
    {
      "name": "AD_POSITION",
      "isTargeted": true
    }
  ]
}

See also

About Targeting