Ad Creative Scheduling API v4

Introduction

With the Ad Creative Scheduling API v4 you can:

  • Set scheduling information for Creatives attached to Placements' Ads
  • Get scheduling methods for Creatives attached to Placements' Ads

Resources

URIs

The Ad Creative Scheduling API v4 identifies two Uniform Resource Identifiers (URIs):

EnvironmentURI
Staginghttps://api.stg.freewheel.tv/services/v4/ads/{ad_id}/scheduling
Productionhttps://api.freewheel.tv/services/v4/ads/{ad_id}/scheduling

Attributes

NameTypeDescriptionValidationsIncluded in GET?
ad_idFW_IDCurrent network assigned Ad Unit Node IDNo
schedulingSee Scheduling Parameters belowRoot node of ad scheduling settingsRequiredYes

Scheduling Parameters

All of the following parameters are included in GET requests.

NameTypeDescriptionValidations when updated
schedulableBooleanIndicates whether the ad is schedulable or notNot updatable
scheduling_methodThe following options are supported:

  • EQUAL_WEIGHTING
  • PERCENTAGE_WEIGHTING
  • AB_TESTING
  • SEQUENCE
  • FLIGHTING
  • FLIGHTING_AND_WEIGHTING
  • AUDIENCE_TARGETING
  • ADVANCED_FLIGHTING_AND_WEIGHTING
The scheduling methodOne selection is required.

Not all Scheduling Methods may be available based on your network functions and the number of schedulable creative instances the ad has.
scheduling_itemsSee Scheduling_Item Parameters below.Details of scheduling setting

Required when scheduling_method is:

  • EQUAL_WEIGHTING
  • PERCENTAGE_WEIGHTING
  • AB_TESTING
  • SEQUENCE
  • FLIGHTING
  • FLIGHTING_AND_WEIGHTING
scheduling_setsSee Scheduling_Set Parameters below.Details of scheduling settingRequired when scheduling method is AUDIENCE_TARGETING or ADVANCED_FLIGHTING_AND_WEIGHTING

When schedulingmethod is **AUDIENCE TARGETING, the order of the scheduling_set** items defines the priority of each audience match if a request matches more than one audience item. The last scheduling_set in the array list should represent the default behavior that occurs when no audience match is made.

scheduling_item Parameters

All of the following parameters are included in GET requests.

NameTypeDescriptionValidations when update
creative_idIntegerFreeWheel Creative IDRequired
weighting_factorIntegerPercentage of weighting

Required when scheduling_method is:

  • PERCENTAGE_WEIGHTING
  • AB_TESTING
  • FLIGHTING_AND_WEIGHTING
sequenceIntegerRotation Sequence

Required when scheduling_method is SEQUENCE
Yes
flighting_startDate-Time (YYYY-MM-DD HH:MM:SS UTC)The start date of the item in UTC.

Required when scheduling_method is:

  • FLIGHTING
  • FLIGHTING_AND_WEIGHTING
flighting_endDate-Time (YYYY-MM-DD HH:MM:SS UTC).The end date of the item in UTC.

Required when scheduling_method is:

  • FLIGHTING
  • FLIGHTING_AND_WEIGHTING

scheduling_set Parameters

When schedulingmethod is AUDIENCE TARGETING, the order of the scheduling_set items defines the priority of each audience match if a request matches more than one audience item. The last scheduling_set in the array list should represent the default behavior that occurs when no audience match is made.

The following parameters are included in GET requests.

NameTypeDescriptionValidations when update
audience_item_idIntegerFW Audience Item IDRequired for custom scheduling_set

Should not be duplicated for each custom scheduling_set
scheduling_set_itemsList of scheduling_set_itemDetails of scheduling_set_itemAt least one item is required.
flighting_startDate-Time (YYYY-MM-DD HH:MM:SS UTC)The start date of the flighting period for the scheduling set, in UTC.Required and available only when scheduling_method is ADVANCED_FLIGHTING_AND_WEIGHTING.
flighting_endDate-Time (YYYY-MM-DD HH:MM:SS UTC)The end date of the flighting period for the scheduling set, in UTC.Required and available only when scheduling_method is ADVANCED_FLIGHTING_AND_WEIGHTING.

scheduling_set_item Parameters

The following parameters are included in GET requests.

NameTypeDescriptionValidations when update
creative_idIntegerFW Creative IDRequired
flighting_startDate-Time (YYYY-MM-DD HH:MM:SS UTC)The start date of the item in UTC.Optional, , available only when scheduling_method is AUDIENCE_TARGETING.
flighting_endDate-Time (YYYY-MM-DD HH:MM:SS UTC)The end date of the item in UTC.Optional, available only when scheduling_method is AUDIENCE_TARGETING.
weighting_factorIntegerPercentage of weightingOptional, available only when scheduling_method is ADVANCED_FLIGHTING_AND_WEIGHTING.