Inventory Package API V4

Overview

The Inventory Package API V4 can create, retrieve, and update inventory packages in your network. Inventory packages consist of standardized inventory (standard attributes) and non-standardized inventory (network items). Once created, inventory packages can be used for campaign targeting.

Marketplace clients can use this API to accomplish the following tasks:

  • Get a list of inventory packages belonging to the current network. Retrieved IDs are essential for further Marketplace Inventory trafficking through Placement API V3
  • Create inventory package that include or exclude standard attributes and networks items
  • Update inventory packages with new targeting goals
  • Activate or deactivate existing inventory packages

👍

Note

To enable Marketplace, contact your account representative.

📘

Note

This API supports JSON format only. XML format is not supported.

General Resource Uniform Resource Identifiers (URI)

TypeURI
Production Instancehttps://api.freewheel.tv/services/v4/inventory_packages?{param1}={query1}&...
Staging Instancehttps://api.stg.freewheel.tv/services/v4/inventory_packages?{param1}={query1}&...

Query Parameters

📘

Note

Parameters and values are case-sensitive.

ParameterTypeDescription
namestringSpecify filtering criteria by inventory package name. Filtering can match names composed of continuous characters with specified strings. Maximum character length is 255.

For example, a request containing ?name=STB retrieves a list of all inventory packages whose names contains the characters STB, like STBVOD package or Linear STB package.
statusenumSpecify filtering criteria by inventory package status.

Valid values:
  • ACTIVE
  • INACTIVE
pageint32Specify the number of pages in the returned list.
Default value = 1

Maximum value = 1000
per_pageint32Specify the number of items shown on each page.
Default value = 20

Valid value range = 5-50
updated_atstringUse the following syntax to filter inventory packages by last updated time:
  • At or earlier an updated timestamp: prefix an ellipsis (..) to the timestamp. E.g. updated_at=..2021-03-01T13:47:00Z
  • At or later an updated timestamp: append an ellipsis (..) to the timestamp. E.g. updated_at=2021-03-01T13:47:00Z..
  • A closed interval period: put an ellipsis (..) between two timestamps. E.g. updated_at=2021-03-01T00:00:00Z..2021-03-31T23:59:59Z


Use the following syntax to sort the list of inventory packages by the time of last updated:
  • In ascending order: no prefix to the updated_at parameter. E.g. updated_at=..2021-03-01T13:47:00Z
  • In descending order: prefix a minus (-) to the updated_at parameter . E.g. -updated_at=..2021-03-01T13:47:00Z

Request Body Attributes

User can include these attributes when creating an inventory package with the POST method. This table also provides information on whether the attribute can be updated via PUT. For an interactive example, see Create Inventory Package

NameTypeDescriptionMandatory?Creatable?Updatable?
idFW_IDID of an inventory packageYesYesNo
namestringName of an inventory packageYesYesYes
descriptionstringDescription of an inventory packageNoYesYes
statusenumStatus of an inventory package

Valid values:
ACTIVE
INACTIVE
YesNoYes
targetingobjectINCLUDE or EXCLUDE standard attributes and network items. Must include at least 1 standard attribute.Yes, if SSP targeting is not configured.YesYes
ssp_targetingobjectINCLUDE or EXCLUDE SSP-specific standard attributes and network items. Must include at least 1 standard attribute.Yes, if MRM targeting is not configured.YesYes
created_atdate-time stringCreation time of an inventory packageYes
updated_atdate-time stringLast-updated time of an inventory packageYes

Targeting Attributes

The following attributes apply to thetargeting andssp_targetingobjects.

📘

Note

SSP targeting is gated by a network function. Please contact your FreeWheel account team to enable this feature.

NameTypeDescriptionMandatory?Creatable?Updatable?
includeobjectConsists of sets of standard attributes and network items and their logical relationshipYesYesYes
excludeobjectConsists of sets of standard attributes and network items and their logical relationshipNoYesYes

Include Object Attributes

NameTypeDescriptionMandatory?Creatable?Updatable?
setsarrayArray of items such as standard attributes and network items that need to be targetedNoYesYes
item_setsarray of objectsList of items that need to be targetedNoYesYes
relationshipstringValid values:
AND
OR
YesYesYes

Exclude Object Attributes

NameTypeDescriptionMandatory?Creatable?Updatable?
item_setsarray of objectsSets of standard attributes or network item values, and their logical relationshipYesYesYes

Item Sets Attributes

NameTypeDescriptionMandatory?Creatable?Updatable?
item_listsarray of objectsList of items to targetYesYesYes
targeting_typestringValid values:
For targeting, CONTENT, PLATFORM, GEO, VIDEO, SITE
For SSP targeting, CONTENT, PLATFORM, GEO, SSP
YesYesYes
relationshipstringValid values:
AND
OR
YesYesYes

Item Lists Attributes

NameTypeDescriptionMandatory?Creatable?Updatable?
relationshipstringValid values:
AND
OR
YesYesYes
itemsarray of objectsArray of items such as standard attributes and network items based on the selected targeting typeYesYesYes

Item Lists Object Attributes

NameTypeDescriptionMandatory?Creatable?Updatable?
idstringID of the targeted itemYesYesYes
typestringValid values:
For targeting,
STANDARD_CONTENT_PROGRAMMER, STANDARD_CONTENT_BRAND, STANDARD_CONTENT_CHANNEL, INVENTORY_SOURCE, STANDARD_GENRE, STANDARD_CONTENT_LANGUAGE, STANDARD_CONTENT_RATING, STANDARD_CONTENT_FORM, STREAM_MODE, STANDARD_CONTENT_DAYPART, STANDARD_SUBSCRIPTION_MODEL, STANDARD_CONTENT_CREDENTIAL_STATUS, STANDARD_CONTENT_TERRITORY, STANDARD_CONTENT_SERIES, ENDPOINT, ENDPOINT_OWNER, STANDARD_DEVICE, STANDARD_ENVIRONMENT, STANDARD_OS, IP_ENABLED_AUDIENCE,GEO, STATE, DMA, POSTAL_CODE, COUNTRY, ASSET, ASSET_GROUP, SERIES, SECTION, SECTION_GROUP, SITE

For SSP targeting,
STANDARD_SSP_CHANNEL, STANDARD_PUBLISHER, STANDARD_IAB_CATEGORY, STANDARD_SSP_ENDPOINT, STANDARD_APP, STANDARD_SITE_DOMAIN
YesYesYes