Insertion Order API V3

Introduction

Insertion Orders (IOs) act as organizational groups of Placements. The Actions and Settings applicable to IOs are managerial tasks and configurations that apply to all placements within an IO.

You can use the Insertion Order API V3 to:

View (List) insertion ordersGet specific widget information
Create insertion ordersList placements for an insertion order
Update insertion ordersList variants of an insertion order
Create a proposed insertion orderTransfer budget to an insertion order
Update a proposed insertion orderBook an insertion order
Show information about an insertion orderUnbook an insertion order
Delete an insertion orderChange proposal status of an insertion order

Related Documentation

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

Resources

URI(s)

The Insertion Order 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/insertion_orders/[FW_ID].xml?[parameter1]=[query1]&...
Staginghttps://api.stg.freewheel.tv/v3/insertion_orders/[FW_ID].xml?[parameter1]=[query1]&...

Insertion Order API Attributes

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

Create/Update Attributes

ParameterDescriptionData Type(s)Creatable?Updateable?MandatoryComments
insertion_order_idThe identification number of the Insertion Order.IntegerYesYesNoYou can search, update, and delete by by the insertion_order_id.
nameInsertion Order nameStringYesYesYes
descriptionStringYesYesNo
client_poClient purchase orderStringYesYesNo
external_idThe external ID of the insertion orderStringYesYesNo
primary_sales_personPrimary sales person nameStringYesYesNoOn create only
primary_traffickerPrimary trafficker nameStringYesNoNoOn create only
currencyThe 3 letter currency codesStringYesNoNoValid when a network supports multiple currencies.
budgetThe budget of the Insertion OrderSetYesYesNo
deliveryThe delivery info of the insertion orderSetYesYesNo
stageThe stage of the insertion order
  • BOOKED
  • NOT_BOOKED
  • PROPOSAL
NoNoNo

Primary User Role Attributes - Child Attributes of Assigned User Attributes

NameType(s)MandatoryDetails
role_idIntegerYesPre-defined system-level role IDs
role_nameStringNoRole name. Only returned in GET action. PUT/POST ignore it if passed.

Assignments Attributes - Child Attributes of Create/Update Attributes

NameType(s)DetailsMandatory
assigned_userSetArray of assigned user(s)Yes

Assigned User Attributes - Child Attributes of Assignments Attributes

NameType(s)*MandatoryDetails
user_idIntegerYesValid user ID
user_full_nameStringNoUser full name. Only return in GET action. PUT/POST ignore it if passed.

Budget Attributes - Child Attributes of Create/Update Attributes

NameType(s)DetailsMandatoryNotes
budget_modelValid values:

<ul
  • CURRENCY_TARGET
  • IMPRESSION_TARGET
  • EVERGREEN
  • The budget model of the insertion orderYesEVERGREEN' is GET only
    currencyFloatThe currency goal of the insertion orderYesValid and required only when budget_model == 'CURRENCY_TARGET'.
    impressionIntegerThe impression goal of the insertion orderYesValid and required only when budget_model == 'IMPRESSION_TARGET'.
    over_delivery_valueFloatThe over delivery amount percentageNoValid only when budget_model == 'CURRENCY_TARGET' or 'IMPRESSION_TARGET'. If it is not set, the network default value is used.

    Additional Contacts Attributes - Child Attributes of Create/Update Attributes

    NameType(s)DetailsMandatoryNotes
    contact_typeStringType of contactYes
    nameStringName of contactYes
    phoneStringPhone number of the contactYes
    emailStringEmail of the contactYes
    primaryBooleanYes, if the contact is primaryNoOnly one contact can be set as the primary contact. If this field is not set, we will set the default value: FALSE

    Delivery Attribute - Child Attributes of Create/Update Attributes

    The attribute below is not included in basic GET requests.

    Function/NodeDescriptionData Type(s)*Creatable?*Updateable?Comments
    frequency_capSet of frequency caps, for each frequency capFrequency Cap AttributesYesYesOnly 3 frequency caps are supported at most.

    Frequency Cap Attributes - Child of Delivery Attribute

    The attribute below can be included in basic GET requests.

    Function/NodeDescriptionData Type(s)Creatable?Updateable?
    valueThe cap valueIntegerYesYes
    typeThe cap type valid values:
    • IMPRESSION
    • PACKAGE
    EnumYesYes
    periodThe cap period valid enum values:
    • TEN_MIN
    • HOUR
    • DAY
    • WEEK
    • 30DAYS
    • STREAM
    • ASSET
    • SITE_SECTION
    • CAMPAIGN
    Enum or Integer: Specified in minutesYesYes

    Body Attributes

    NameType(s)Details
    idFW_IDID of the insertion order
    campaign_idFW_IDID of the campaign that this insertion order belongs to
    nameStringInsertion Order name
    descriptionStringBoth
    client_poStringClient purchase order
    brand_idFW_IDThe Brand ID of the advertiser
    currencyStringThe 3 letter currency codes
    scheduleSetA set of IO start time, end time, and timezone
    stage'BOOKED', 'NOT_BOOKED', 'PROPOSAL'The stage of the insertion order
    external_idStringThe external ID of the insertion order
    primary_sales_personStringPrimary Sales Person name
    primary_traffickerStringPrimary Trafficker name
    budgetSetThe budget of the insertion order
    workflow_stepSetThe workflow step
    workflow_step_ownersSetWorkflow step owners
    count_in_revenue_forecastBooleanIf the insertion order counts in revenue forecasting
    ecpmSet
    costSetThe gross and net cost of the insertion order

    The following attributes are only available for Networks with Sales Proposal enabled:

    NameType(s)Details
    rfp_budgetFloatRFP budget
    rate_card_idFW_IDRate card ID
    total_billable_event_goalInteger
    total_p2plus_impressionsInteger
    primary_variant_idFW_IDPrimary variant ID

    Schedule Attributes - Child Attributes of Body Attributes

    NameType(s)**DetailsMandatoryNotes
    start_timeTimeThe start time of the placement|YesUses ISO-8061 time format
    end_timeTimeThe end time of the placementNoUses ISO-8061 time format. If a Placement is ongoing, end_time is optional.
    time_zoneStringThe time zone of the placement|Yes

    Workflow Step Attributes - Child Attributes of Body Attributes

    NameType(s)DetailsMandatoryNotes
    workflow_step_idFW_IDThe id of this workflow stepYesOnly available for Networks with Sales Proposal enabled
    workflow_step_nameStringThe name of this workflow stepYes
    workflow_step_type
    • PROPOSAL
    • NORMAL
    • LOST_DEAL
    Workflow step typeYesIf Sales Proposal is enabled, workflow_step_type will return in response body.

    Workflow Step Owners Attributes - Child Attributes of Body Attributes

    NameType(s)DetailsMandatory
    user_idFW_IDThe id of the userNo
    user_group_idFW_IDThe id of the user groupNo
    role_idFW_IDThe id of the roleNo

    eCPM Attributes - Child Attributes of Body Attributes

    NameType(s)DetailsMandatory
    gross_ecpmFloat (2 decimal places)The gross eCPMYes
    net_ecpmFloat (2 decimal places)The net eCPMYes

    Cost Attributes - Child Attributes of Body Attributes

    NameType(s)DetailsMandatoryNotes
    gross_costFloat (2 decimal places)The gross costYesWhen enabling sales proposals, cost value will be retrieve from primary variant's placements.
    net_costFloat (2 decimal places)The net costYesWhen enabling sales proposals, cost value will be retrieve from primary variant's placements.