Audience Definition API V4

Overview

The Audience Definition API V4 is a group of endpoints that provides key management of audience definitions 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
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 segment targeting
  • Return segments by data provider, name, segment ID, ingestion status, and 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
Segmentshttps://api.freewheel.tv/services/v4/segment/{parameter}https://api.stg.freewheel.tv/services/v4/segment/{parameter}

Workflows

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
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