Audience Definition API V4

Overview

The Audience Definition API V4 is a group of endpoints that provides key management of audience definitions, geo groups, and audience segments. By creating an audience definition, publishers can exert granular control over the location and traits of their target audience. Once defined, audience definitions can be used in placement and campaign targeting.

Audience definitions are reusable objects for all sites and site sections within a network. Audience definitions may draw from multiple data sources across providers, as well as combine data sources into one definition. They are defined by the third-party audience tracking provider you have chosen to integrate with MRM, not by FreeWheel.

FeatureGETPOSTPUTDELETE
Audience DefinitionsXXXX
Geo GroupsXX
SegmentsX

Leverage the Audience Definition API to accomplish the following tasks:

  • Retrieve metadata for all audience definitions in a network
  • Create and update an audience definition with geo group and segment targeting
  • Create geo groups by zip code
  • Search segments by data provider, name, ID, or number of segments per provider

Uniform Resource Identifiers (URI)

FeatureProduction URIStaging URI
Audience Definitionhttps://api.freewheel.tv/services/v4/audience_definitionhttps://api.stg.freewheel.tv/services/v4/audience_definition
Geo Grouphttps://api.freewheel.tv/services/v4/audience_definition/geo_grouphttps://api.stg.freewheel.tv/services/v4/audience_definition/geo_group
Segmentshttps://api.freewheel.tv/services/v4/segment/{parameter}https://api.stg.freewheel.tv/services/v4/segment/{parameter}

Workflows

Update an Audience Definition with a Geo Group

Publisher

  1. Requests all geo groups in the network with GET, or creates a new geo group with POST.

FreeWheel

  1. Returns a geo group ID.

Publisher

  1. Adds the geo group ID to the audience definition's location_targets array.

FreeWheel

  1. Updates the audience definition with the new geo targeting.

Update an Audience Definition with a Segment

Publisher

  1. Requests segments by data provider or name.

FreeWheel

  1. Returns a list of segment IDs, as well as other segment information.

Publisher

  1. Adds the segment ID to the audience definition's targets array.

FreeWheel

  1. Updates the audience definition with the new segment targeting.

Attributes

Audience Definition Attributes

The following attributes are used when creating an audience definition with the POST method. This table also provides information on whether the attribute can be updated via PUT. For an interactive example, see Create Audience Definition.

NameTypeDescriptionMandatory?Updatable?
idintegerAudience definition ID used when updatingYesYes
namestringName of the audience definitionYesYes
descriptionstringDescription of the audience definitionNoYes
targetsarraySegment targeting of the audience definitionYesYes
location_targetsarrayGeo targeting of the audience definitionNoYes
activebooleanTrue if the audience definition should be activated, default value is falseNoYes
graph_optimizationstringIf the graph optimization is enabled. This is only applicable if the network graph optimization is set as "custom".
Default empty string equals "off".
NoYes

Targets Child Attributes

NameTypeDescriptionMandatory?Updatable?
kindstringINCLUDE or EXCLUDE from targetingYesYes
target_idsarray of stringsArray of FreeWheel segment IDs for targetingYesYes

Location Targets Child Attributes

NameTypeDescriptionMandatory?Updatable?
kindstringINCLUDE or EXCLUDE from targetingNoYes
target_idsarray of stringsArray of geo group IDs for targetingNoYes

Geo Group Attributes

The following attributes are used when creating a geo group with the POST method. This table also provides information on whether the attribute can be updated via PUT. For an interactive example, see Create Geo Group

NameTypeDescriptionMandatory?Updatable?
namestringName of the geo groupYesNo
descriptionstringDescription of the geo groupNoNo
postal_codesarray of stringsPostal codes to include in the geo groupYesNo