Audience Item API V3

Introduction

Audience Items represent an audience segment you want to target. They are defined by the third-party audience tracking provider you have chosen to integrate with MRM rather than by FreeWheel.

You can reuse audience items for all the sites and site sections within your network. You can customize the audience item name, draw multiple data sources across providers, and combine data sources into one audience item.

With Audience Item API V3, you can:

  • Show audience items
  • Create audience items
  • Update audience items

Related Documentation

Refer to the following documentation for more information about FreeWheel products and APIs:

Resources

URIs

The Audience Item API v3 identifies two Uniform Resource Identifiers (URIs):

Type of URIURI
Productionhttps://api.freewheel.tv/services/v3/audience_items/[FW_ID].xml?[parameter1]=[query1]&...
Staginghttps://api.stg.freewheel.tv/services/v3/audience_items/[FW_ID].xml?[parameter1]=[query1]&...

Audience Item API Attributes

Attributes represent and describe data associated with an object, in this case the Audience Item object. Attributes are organized in sets. The attribute set determines the fields that are available during data entry, and the values that appear to the client. Use Audience Item API Attributes in conjunction with Audience Item API methods to accomplish your ad tech objectives.

Basic Attributes

The following attributes are included in basic GET requests.

Function/NodeDescriptionData Type(s)Creatable?Updatable?Notes
idResource IDFW_IDNoNoAssigned automatically during POST
nameThe name of the audience itemStringYesYesMust be unique in the network.

Accepted length of name string is between 3 and 255 characters.
descriptionDescription of the audience itemStringYesYesMaximum accepted length of description string is 2048 characters.
external_idExternal ID for the audience itemStringYesYesMust be unique in the network
precedencePrecedence of the audience itemIntegerYesYesAccepted values are between -100 and 100.
statusStatus for the audience item
  • ACTIVE
  • INACTIVE
YesYesThese values must be provided in ALL CAPITAL letters.
created_atThe created time of the audience itemDatetimeNoNo
custom_targetingThe custom targeting criteriaCustom Targeting CriteriaYesYesThere should be at least one key-value pair.

Custom Targeting Criteria Attributes

The following attributes are included in basic GET requests.

Function/NodeDescriptionData Type(s)Creatable?Updatable?
includeContains sets of key-value pairs to include in the audience item targetingTargeting Inclusions AttributesYesYes
excludeContains key-value pairs that need to be excluded from audience item targetingTargeting Exclusions AttributesYesYes

Targeting Inclusions Attributes - Child Attributes of Custom Targeting Criteria Attributes

The following attributes are included in basic GET requests.

Function/NodeDescriptionData Type(s)Creatable?Updatable?Notes
setContains key-value pairs and the relation between themInclude SetsYesYesSets and the placement of relation_between_sets are strictly interpreted based on the order in which they are provided in the request. For example, in the Create method sample below, the first and second nodes would have an OR relationship because it is placed between them. HTTP responses would be similarly ordered.
relation_between_setsThe relationship between the sets to include
  • AND
  • OR
YesYesThe number of relation_between_sets nodes must be smaller than the number of set nodes by 1.

Include Sets Attributes - Child Attributes of Targeting Inclusions Attributes

Function/NodeDescriptionData Type(s)Creatable?UpdatableIncluded in basic GET?Notes
key_valueKey/value pairSetYesYesYesMust follow the specific format key=value.

When you use attributes hosted by FreeWheel (true for most Audience Item API V3 scenarios), a prefix indicating the data provider must also be applied.

A full key/value pair would follow this format:
_fwu:[dataProviderID]:[attributeName]=[attributeValue].

Accepted length of key string is between 1 and 125 characters.

Accepted length of value string is between 1 and 125 characters.
relation_in_setRelation of key-value pairs within the set
  • AND
  • OR
YesYesYes

Targeting Exclusions Attributes - Child Attributes of Custom Targeting Criteria Attributes

Function/NodeDescriptionData Type(s)Creatable?UpdatableIncluded in basic GET?Notes
key_valueKey/value pairSetYesYesYesMust follow the specific format key=value.

When you use attributes hosted by FreeWheel (true for most Audience Item API V3 scenarios), a prefix indicating the data provider must also be applied.

A full key/value pair would follow this format:
_fwu:[dataProviderID]:[attributeName]=[attributeValue].