Targeting object

The targeting object is provided as part of the API call when creating line items and creatives. The basic structure of this object is shown below:

{
    "targeting": {
        "deviceTargets": [],
        "adUnitTarget": {},
        "userSegmentTargets": [],
        "dateTarget": {},
        "geospatialTargets": [],
        "keyValueTargets": [],
        "siteTarget": {},
        "adUnitMatchingLabelTargets": [],
        "categoryTargets": [],
        "namedLocationTarget": {},
        "dayPartingTargets": [],
        "retargetingTargets": [],
        "keywordTargets": [],
        "ipAddressTarget": {},
        "siteGroupTarget": {}
    }
}

Fields:

Name
Restriction
Description

deviceTargets

Array

adUnitTarget

Object

userSegmentTargets

Array

dateTarget

Object

geospatialTargets

Array

keyValueTargets

Array

siteTarget

Object

adUnitMatchingLabelTargets

Array

categoryTargets

Array

namedLocationTarget

Object

dayPartingTargets

Array

retargetingTargets

Array

keywordTargets

Array

ipAddressTarget

Object

siteGroupTarget

Object

Device targets

The device targets can be found with it's endpoint /devices.

Name
Data type
Values

targetedBrands

String

UNKNOWN, DESKTOP, APPLE, NOKIA, HTC, SAMSUNG, SONY_ERICSSON, LG, MOTOROLA, RIM, HUAWEI, ZTE, ASUS, PANASONIC, FUJITSU, SHARP, NEC, KYOCERA, ACER

targetedOSes

String

UNKNOWN, WINDOWS_PHONE, WINDOWS, MACINTOSH, IOS, ANDROID, LINUX, SUNOS, BSD, SYMBIAN, BLACKBERRY

targetedDeviceTypes

String

DESKTOP, TABLET, MOBILE

Ad unit targets

The id of the ad units can be found at this endpoint: /adunits.

Segment targets

The id of the segments can be found here at this endpoint: /segments.

When posting targeting data only the id of the adunit is required.

Date targets

All dates must be specified as follows: yyyy-mm-ddThh:mm:ss.

Name
Data type
Values

dateTarget

Object

The date target object.

dateRanges

Array

An array containing the range objects.

first

String

Start of the date range.

second

String

End of the date range.

Geospatial targets

The polygons follow the format of GeoJson.

Key value targets

  • OR values are separated byt objects in the initial array.

  • AND values are separated with keys within entries

  • AND-NOTare speccified with notEntries as listed above.

Site targets

The id of the sites can be found at this endpoint: /sites.

When posting targeting data only the id of the site is required.

Ad unit matching label targets

The ad unit matching labels has to be present on the ad unit for the matching label targeting to work.

For matching labels to work you will need to divide the targeting into separate objects as specified above.

Category targets

  • OR values are separated byt objects in the initial array.

  • AND values are added within the array.

  • AND-NOTare speccified with notEntries as listed above.

Location targets

The id of the location can be found at this endpoint: /location.

When posting targeting data only the id of the location is required.

Day parting targets

you can add multiple dayparts by adding multiple objects.

The daypart object is divided in these paramters:

Name
Data type
Values

daysOfWeek

Array

"MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"

hoursOfDay

Array

An array containing numbers 0 for 00:00 - 00:59, 1 for 01:00 - 01:59 etc. up to 23 for 23:00 - 23:59.

timeZoneSetting

String

"USER" for user time zone and "SYSTEM" for the system time zone.

Keyword targets

  • OR values are separated byt objects in the initial array.

  • AND values are added within the array.

  • AND-NOTare speccified with notEntries as listed above.

Retargeting targets

  • OR values are separated byt objects in the initial array.

  • AND values are added within the array.

  • AND-NOTare speccified with notEntries as listed above.

IP targets

Contains addresses which is a comma seperated array of IP values. You can add multiple IP addresses by separating each individual one by a comma. For instance, inputting 118.16.78.34, 205.112.45.0/24 will match any of 118.16.78.34 and 205.112.45.0 through to 205.112.45.255. The IP targets follow the CIDR notation.

Site group targets

The id of the sites can be found at this endpoint: /sitegroups.

When posting targeting data only the id of the site is required.

Examples

A GET request for a targeting object:

Last updated