Yield Optimization Volume Cap API V4

This page will help you get started with Yield Optimization Volume Cap API V4.

The Yield Optimization Volume Cap API V4 allows you to perform a series of interactive operations on the Volume Cap type of Yield Optimization rules.

📘

Note

Yield Optimization Volume Cap API V4 functionality is only available for Marketplace users.

You can use the Yield Optimization Volume Cap API V4 to:

  • Create a new Yield Optimization Volume Cap rule;
  • Update an existing Yield Optimization Volume Cap rule, including the activation and deactivation;
  • Retrieve a list of Yield Optimization Volume Cap 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 Volume Cap rule;

GENERAL RESOURCE URIS


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

BASIC ATTRIBUTES

NameTypeDescriptionGet Only?Notes
idFW_IDThe ID of the yield optimization volume cap rule.Yes
network_idFW_IDThe ID of the network which the yield optimization volume cap rule belongs to.Yes
nameStringThe name of the yield optimization volume cap rule.The maximum length of characters is 255
descriptionStringThe description of the yield optimization volume cap rule.The maximum length of characters is 500.
start_timeTimeThe start time of the yield optimization volume cap rule.The value must be later than current time.
end_timeTimeThe end time of the yield optimization volume cap rule.
It would return empty when end_time is ongoing.
The value must be later than start time and current time.
If it's an ongoing order, the end_time would be empty.
statusEnumThe status of the yield optimization volume cap rule.
Valid values:

- ACTIVE
- INACTIVE
-NOT_START
-EXPIRED
goal_typeEnumThe cap model of a yield optimization volume cap rule.
Valid values:

- VOLUME_CAP
supplies_and_optimization_goalsArray of the set of supplies_and_optimization_goalThe supplies and optimization goals of a multiple-mode yield optimization volume cap rule allow a flexible way to configure the supply scope in expressions composed of multiple dimensions.Only be valid when supply mode is MULTIPLE
The maximum number of supplies_and_optimization_goal sets is 20.
application_scopeEnumThe demand application scope of a yield optimization volume cap 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 volume cap rule.
demand_typeEnumThe demand type that the volume cap rule takes effect on.
Valid values:

- PLACEMENT
- MARKETPLACE_INVENTORY_ORDER
- PROGRAMMATIC_GUARANTEED_DEAL
MARKETPLACE_INVENTORY_ORDER is only valid for Marketplace sellers.
PROGRAMMATIC_GUARANTEED_DEAL is only valid for Programmatic customers.
risk_levelEnumThe risk level of yield optimization distribution. Valid values:

- SAFE
- LIGHT_RISK
- MEDIUM_RISK
- HEAVY_RISK
- IGNORE_GOAL

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.
expressionSetThe supply scope expressions are composed of multiple dimensions to which the rule would apply.
cap_valueIntegerThe cap value of a multiple volume cap YO rule for one individual optimization goal. The value must be between 0 and 100.
labelStringThe label of an 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 statement 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