Yield Optimization Inventory Value Distribution API V4

This page will help you get started with Yield Optimization Inventory Value Distribution API V4.

The Yield Optimization Inventory Value Distribution API V4 allows you to perform a series of interactive operations on the Distributions type of Yield Optimization rules.

📘

Note

Yield Optimization Inventory Value Distribution API V4 functionality is only available for Marketplace users.

You can use the Yield Optimization Inventory Value Distribution API V4 to:

  • Create a new Yield Optimization Inventory Value Distribution rule;
  • Update an existing Yield Optimization Inventory Value Distribution rule, including the activation and deactivation;
  • Retrieve a list of Yield Optimization Inventory Value Distribution rules of your current network with basic attributes returned and query the list by id, name, application_scope, demand_type, and status;
  • Retrieve full attributes of an individual Yield Optimization Inventory Value Distribution rule;

GENERAL RESOURCE URIS

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

BASIC ATTRIBUTES

NameTypeDescriptionGet Only?Notes
idFW_IDThe ID of the yield optimization inventory value distribution rule.Yes
network_idFW_IDThe id of network which the yield optimization inventory value distribution rule belongs to.Yes
nameStringThe name of the yield optimization inventory value distribution rule.The maximum length of characters is 255
descriptionStringThe description of the yield optimization inventory value distribution rule.The maximum length of characters is 500.
start_timeTimeThe start time of the yield optimization inventory value distribution rule.The value must be later than current time.
end_timeTimeThe end time of the yield optimization inventory value distribution rule.The value must be later than start time and current time
It would return empty when end_time is ongoing.
statusEnumThe status of yield optimization inventory value distribution.
Valid values:
- ACTIVE
- INACTIVE
supplies_and_optimization_goalsArray of the set of supplies_and_optimization_goalThe supplies and optimization goals of a yield optimization inventory value distribution rule allow a flexible way to configure the supply scope in expressions composed of multiple dimensions.The maximum number of supplies_and_optimization_goal sets is 20.
cpm_of_other_suppliesDecimalThe CPM of other supplies. The value should be non-negative.
price_goalDecimalThe price goal of yield optimization inventory value distribution.The value should be non-negative or -2 (using placement price).
application_scopeEnumThe demand application scope of a yield optimization inventory value distribution rule. It determines whether the rule applies to a specific demand object or the whole network.
Valid values:
- GLOBAL
- DEMAND_TYPE_SPECIFIC
Each network can only have one GLOBAL distribution rule.
demand_typeEnumThe demand type that yield optimization inventory value distribution rule takes effect on.
Valid values:
- PLACEMENT
demandsArray of the set of demandThe demand details of selected demand_type of the yield optimization inventory value distribution rule apply to.It will return empty if application_scope = GLOBAL

Supplies and Optimization Goal - Child Attributes

NameTypeDescriptionNotes
expression_and_goal_idIntegerThe supply and optimization goal id of an optimization goal.The ID will be generated the first time push a new goal;
If the user would like to update an existing optimization goal attribute, please ensure to pass the corresponding expression_and_goal_id in the request. Otherwise a new goal would be created.
expressionExpressionThe supply scope expressions are composed of multiple dimensions that the rule would apply to.
cpmDecimalThe CPM of the current optimization goal.The value must be non-negative
labelStringThe label of the current optimization goal.The maximum length of this field is 255.

Expression - Child Attributes

NameTypeDescriptionNotes
relation_between_statementsEnumThe operator of an expression indicates the logical relationship across all relations/statements within the current optimization goal.
Valid values: AND, OR
statementsArray of StatementEach relation contains multiple sets composed of corresponding inclusive and exclusive items.

Statements - Child Attributes

NameTypeDescriptionNotes
relation_between_setsEnumThe operator of a relation/statement indicates the logical relationship across all sets within the current relation.
Valid values: AND, OR
setsArray of SetEach set has its own inclusive and exclusive items.

Set - Child Attributes

NameTypeDescriptionNotes
item_inclusion_exclusion_typeEnumIt indicates that the items below will be inclusive or exclusive items.
If this field is true, it means EXCLUDE the items.
If the field is false, it means INCLUDE the items
itemsArray of ItemInclusive or exclusive items of each individual set of an optimization goal.

Item - Child Attributes

NameTypeDescriptionGet Only?Notes
typeEnumThe type of items to be selected into relation/statement sets.
Valid values are ENDPOINT_OWNER, ENDPOINT_NAME,COUNTRY, STATE, DMA, POSTAL_CODE, STREAM_MODE, PROGRAMMER, BRAND, CHANNEL, DEVICE, ENVIRONMENT, OS, GENRE, LANGUAGE, TV_RATING, DURATION, DAYPART, INVENTORY_ORDER, INVENTORY_PACKAGE
INVENTORY_ORDER is only valid for Marketplace buyers.
INVENTORY_PACKAGE Is only valid for Marketplace customers.
idFW_IDThe id of the included/excluded item.

Demand - Child Attributes

NameTypeDescriptionGet Only?Notes
demand_idFW_IDThe ID of the demand object that the YO rule applied to.Yes
demand_nameStringThe name of the demand object that the YO rule applied to.Yes
public_idStringThe external_deal_id of the programmatic deal that the YO rule applies to.Yesvalid only when demand_type = PROGRAMMATIC_GUARANTEED_DEAL