Yield Optimization Inventory Prioritization API V4

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

📘

Note

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

You can use the Yield Optimization Inventory Prioritization API V4 to:

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

GENERAL RESOURCE URIS


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

BASIC ATTRIBUTES

NameTypeDescriptionGet Only?Notes
idFW_IDThe ID of the yield optimization inventory prioritization rule.Yes
network_idFW_IDThe ID of the network which the yield optimization prioritization belongs to.Yes
nameStringThe name of the yield optimization prioritization rule.The maximum length of characters is 255
descriptionStringThe description of the yield optimization prioritization rule.The maximum length of characters is 500.
statusEnumThe status of the yield optimization prioritization rule.
Valid values:

- ACTIVE
- INACTIVE
-NOT_START
-EXPIRED
risk_levelEnumThe risk level of yield optimization prioritization rule.
Valid values:

- SAFE
- LIGHT_RISK
- MEDIUM_RISK
- HEAVY_RISK
- IGNORE_GOAL
prioritization_tieringSetThe prioritization tiering of each inventory source type including both parent and child tiering.At least two supply source tiers (parent/child) of a certain prioritization rule.
application_scopeEnumThe demand application scope of a yield optimization prioritization 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 prioritization rule.
demand_typeEnumThe demand type that the prioritization rule takes effect on.
Valid values:

- PLACEMENT
start_timeTimeThe start time of the yield optimization distribution rule.NoThe value must be later than current time.
end_timeTimeThe end time of the yield optimization distribution rule.NoThe value must be later than start time and current time
It would return empty when end_time is ongoing.
rule_typeStringThe type of yield optimization prioritization rule.

Valid values:

- STANDALONE
- NESTED
No

Prioritization Tiering - Child Attributes

NameTypeDescriptionNotes
parent_level_tieringArray of sub-parent_level_tieringThe parent level tiering allows to apply the prioritization tiering to the supply source categories level.
child_level_tieringArray of set sub-child_level_tieringThe child level tiering allows to apply the prioritization tiering to the individual supply object level.

Sub Parent Level Tiering - Child Attributes

NameTypeDescriptionNotes
supply_typeEnumThe supply source category of parent-level supply. Valid values are: OWNED_AND_OPERATED, MRM_RULE, INVENTORY_ORDER, and INVENTORY_SPLIT_ORDER.INVENTORY_ORDER and INVENTORY_SPLIT_ORDER are only valid for Marketplace buyers.
priorityIntegerThe priority/tier of the corresponding supply_type.The value must be between 1 and 120.
nested_inventory_prioritizationSetThe inventory prioritization rule of the current optimization goal, expressed as a nested set.The value only need to filled when a nested inventory prioritization is needed.

Nested Inventory Prioritization - Child Attributes

NameTypeDescriptionGet Only?Notes
idFW_IDThe ID of the nested yield optimization inventory prioritization rule.NoThis value should be filled when creating a new distribution with nested inventory prioritization.
nameStringThe name of the nested yield optimization prioritization rule.YesThe maximum length of characters is 255.
descriptionStringThe description of the nested yield optimization prioritization rule.YesThe maximum length of characters is 500.
prioritization_tieringSetThe prioritization tiering of each inventory source type including both parent and child tiering.YesAt least two supply source tiers (parent/child) of a certain prioritization rule.

Sub Child Level Tiering - Child Attributes

NameTypeDescriptionGet Only?Notes
supply_typeEnumThe supply source category of child-level supply items. Valid values are:
INVENTORY_ORDER, INVENTORY_SPLIT_ORDER, and INVENTORY_PACKAGE.
INVENTORY_ORDER, INVENTORY_SPLIT_ORDER are only valid for Marketplace buyers.
INVENTORY_PACKAGE Is only valid for Marketplace customers.
supply_idFW_IDThe FW ID of the child-level supply item for tiering.
supply_nameStringThe name of the child-level supply item for tiering.Yes
priorityIntegerThe priority/tier of the child-level supply item for tiering.The value must be between 1 and 120.
nested_inventory_prioritizationSetThe inventory prioritization rule of the current optimization goal, expressed as a nested set.The value only need to filled when a nested inventory prioritization is needed.

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