Ad Unit Node API V3

Introduction

An Ad Unit is a term for a "class" of ad. You can use Ad Unit Nodes to pair ad opportunities in requests with the appropriate ads booked in MRM.

📘

Note

The Placement API v3 ad product section updates ALL of a placement's ad units. This API only updates one ad unit in a placement.

You can use Ad Unit Node API V3 to:

  • List ad unit nodes within the current network in most-recent-first order
  • Show information about an ad unit node
  • Update an ad unit node
  • Activate an ad unit node
  • Deactivate an ad unit node

Related Documentation

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

Resources

URI(s)

The Ad Unit API v3 identifies two Uniform Resource Identifiers (URIs):

EnvironmentURI
Productionhttps://api.freewheel.tv/services/v3/ad_unit_nodes/[FW_ID].xml?[parameter1]=[query1]&...
Staginghttps://api.stg.freewheel.tv/services/v3/ad_unit_nodes/[FW_ID].xml?[parameter1]=[query1]&...

Ad Unit Node API Attributes

Attributes represent and describe data associated with an object, in this case the Ad Unit Node object. Attributes are organized in sets. The attribute set determines the fields available during data entry, and the values that appear to the client. Use Ad Unit Node API Attributes in conjunction with Ad Unit Node API methods to accomplish your ad tech objectives.

Basic Attributes

The purpose of this attribute set is to identify and define an ad unit node. Basic attributes describe fundamental properties of an ad unit. These attributes identify the name, ID, billing term, discounts, contacts, user assignments, address, financial information, industry, and status of the ad unit.

None of the attributes below are creatable.

Function/NodeDescriptionData Type(s)Included in basic GET?Updatable?Comments
idThe ID of the ad unit nodeFW_IDNoNoAssigned automatically during POST
nameThe name of the ad unitStringNoYes
ad_unit_idThe ID of the adFW_IDNoYes
placement_idThe ID of the placement to which this ad unit node belongsFW_IDNoYes
external_idThe external ID of the ad unit nodeStringYesYes
price_modelThe price model of the placement'ACTUAL_EcPM',
'FLAt-FEE_SPONSORSHIP'
NoYes
priceThe price of the ad unit nodeFloatNoYes
accounting_priceThe accounting price|FloatYesYesValid only when placement_type == MAKE_GOOD
budgetThe budget info of the ad unit nodeBudget AttributesYesYes
statusThe MRM status of the ad unit node'ACTIVE', 'IN_ACTIVE'NoYesThese values must be provided in ALL CAPITAL letters.
typeThe type of the ad unit|'INSTREAM', 'OVERLAY', 'DISPLAY'NoYes
regulated_displayIndicate if the ad unit node is a regulated display adBooleanYesYesValid only when type == DISPLAY and link_method = LINK_WHERE_POSSIBLE or ALL_LINKED
ad_unit_package_idThe ID of the ad unit package that the ad unit node belongs toFW_IDNoYesValid only when the ad unit was added from the ad unit package
creativeThe creative info of the ad unit nodeCreative AttributesYesNo
bid_priceThe bid price of the ad unit node.DecimalYesYesBidding capabilites are gated by a network function. Contact your FreeWheel account team for more information.
bid_price_settingsThe bid price configuration of the ad unit node.

Valid values:

NOT_SET

NETWORK_DEFAULT

OVERRIDE_RATIO

OVERRIDE_PRICE
EnumYesYesBidding capabilites are gated by a network function. Contact your FreeWheel account team for more information.
bid_price_override_ratioThe ratio that a user manually sets as the % of ad unit price for bid priceEnumYesYesBidding capabilites are gated by a network function. Contact your FreeWheel account team for more information.

Budget Attribute Definitions

All of the parameters below are updatable and included in basic GET requests.

Function/NodeDescriptionData Type(s)Creatable?Comments
impression_capThe impression cap for this specific ad unitIntegerNoValid only when link_method is NOT_LINKED, LINK_WHERE_POSSIBLE or advanced linking
exclude_from_invoiceIndicates if the ad unit node should be excluded from the invoiceBooleanNoValid when budget_model != 'EVERGREEN'
exclude_from_budgetIndicates if the ad unit node should be excluded from the insertion order's budgetBooleanNoValid only when link_method is LINK_WHERE_POSSIBLE, ALL_LINKED or custom set

Creative Attribute Definitions

None of the parameters below are creatable nor included in basic GET requests.

Function/NodeDescriptionValue TypeUpdateable?
idThe id of the creativeFW_IDNo
nameThe name of the creative.StringNo
statusThe status of the creative. Valid values: ‘ACTIVE’, ‘IN_ACTIVE’enumYes

Basic Attributes POST Code Sample

The following example POST code shows you how to set up a budget for an ad unit node.

<ad_unit_node>
  <budget>
    <exclude_from_invoice>true</exclude_from_invoice>
    <exclude_from_budget>true</exclude_from_budget>
    <impression_cap>100</impression_cap>
  </budget>
</ad_unit_node>