Language Targeting

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

Overview

Target lines based on the language users most frequently view in their browsers. Advertisers can target or exclude specific languages.

The Oath Ad Platforms DSP supports LANGUAGES targeting for lines serving display and video ads.

Endpoint

/traffic/lines/{id}/targeting
  • A GET request enables you to view languages targeted by the specified line.
  • A POST request enables you to target languages 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 LANGUAGES target type.

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

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

Specifies the languages targeted:

  • UNKNOWN
  • ENGLISH
  • CHINESE
  • SPANISH
  • JAPANESE
  • PORTUGUESE
  • GERMAN
  • ARABIC
  • FRENCH
  • RUSSIAN
  • DUTCH
  • SWEDISH
  • ITALIAN
  • INDONESIAN
  • ALL
array

Note

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

Read Language 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 languages.

To learn more, see Read Line Targeting.

Add/Update Language Targets

Adds or udpates language targets for the specified line.

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 Description Data Type Required?
id path Specifies the line ID. integer Y
languages body

Specifies the languages targeted:

  • UNKNOWN
  • ENGLISH
  • CHINESE
  • SPANISH
  • JAPANESE
  • PORTUGUESE
  • GERMAN
  • ARABIC
  • FRENCH
  • RUSSIAN
  • DUTCH
  • SWEDISH
  • ITALIAN
  • INDONESIAN
  • ALL
array Y
types body

Specifies an array of targeting types to target. To target consumers by language, the LANGUAGES 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.

{
  "languages": [
    "ENGLISH",
    "FRENCH"
  ],
  "types": [
    {
      "name": "LANGUAGES",
      "isTargeted": true
    }
  ]
}

See also

About Targeting