Content Package API V3

Introduction

A content package is an advanced combination of different content assets such as videos, sites, groups, etc. Once created, a Content Package can be targeted when trafficking a Placement.

📘

The differences between this API and Placement API v3 content targeting via content package is that this API is used to create, edit and view a network's content package, whereas the Placement API v3 content targeting via content package is used to set content targeting using a predefined content package, either created by this API or in the UI.

You can use this API to accomplish the following content package tasks:

  • View a content package
  • Create a content package
  • Edit a content package

Related Documentation

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

Resources

URI(s)

The Content Package API v3 identifies two Uniform Resource Identifiers (URIs), a List and an Instance as identified in the following table:

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

Content Package API Attributes

Attributes represent and describe data associated with an object, in this case the Content Package 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 Content Package API Attributes in conjunction with Content Package API methods to accomplish your ad tech objectives.

Basic Attributes

Basic attributes describe fundamental properties of a content package.

The attributes below can all be included in basic GET requests.

ParameterDescriptionData Type(s)Creatable?Updateable?Comments
idThe ID of the content packageFW_IDNoNoAssigned automatically upon creation of the package
nameThe Name of the content packageStringRequiredYesContent Package Name must be unique in a network
includeContains all media items and their MRM IDs.

Possible media object:
  • video
  • series
  • video_group
  • site_section
  • site
  • site_group
Normal Include/Exclude Content Package Details ; Advanced Include Content Package DetailsYesYes
excludeSame format as includeNormal Include/Exclude Content Package DetailsYesYes
created_atDate and time that the Content Package is createdDatetimeNoNoThe Datetime format follows ISO 8061 format in UTC timezone, with precision to seconds. For example: 2016-09-04T10:59:01Z
statusThe status of the content package
  • ACTIVE
  • INACTIVE
NoYesThese values must be provided in ALL CAPITAL letters. When a package is created via the API the status will be set to 'INACTIVE' by default.

Normal Include/Exclude Content Package Details

The attributes below can all be included in basic GET requests.

Function/NodeDescriptionValue TypeCreatable?Updateable?
videoVideo asset content itemsSet<FW_ID>YesYes
seriesSeries content itemsSet<FW_ID>YesYes
video_groupVideo group content itemsSet<FW_ID>YesYes
site_sectionSite section content itemsSet<FW_ID>YesYes
siteSite content itemsSet<FW_ID>YesYes
site_groupSite group content itemsSet<FW_ID>YesYes

Advanced Include Content Package Details

The attributes below can be included in basic GET requests.

Function/NodeDescriptionValue TypeCreatable?Updateable?Comments
setSets of content object groupsSetYesYesA maximum of Only support 3 sets is supported.
relation_between_setsThe relationship between two setsSet<'AND', 'OR'>YesYesValid and required only when there are two or more sets; The number of relation_between_sets node should be set to - 1.

Set Attributes - Child Attributes of Advanced Include Content Package Details Attributes

The attributes below are all creatable and can be included in basic GET requests.

Function/NodeDescriptionValue TypeUpdateable?Comments
videoVideo asset content itemsSet<FW_ID>Yes
seriesSeries content itemsSet<FW_ID>Yes
video_groupVideo group content itemsSet<FW_ID>Yes
site_sectionSite section content itemsSet<FW_ID>Yes
siteSite content itemsSet<FW_ID>Yes
site_groupSite group content itemsSet<FW_ID>Yes
relation_in_setThe relationship of content objects within the set'AND', 'OR'YesA single set can only have one relation_in_set node.