Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Alternatively, an roAssociativeArray can wrap and mimic the interface of the roVideoPlayer parameter of stitchedAdHandledEvent(). See method description for the minimum required key-value pairs. This wrapped interface is useful if there are other actions to be taken on player control methods (such as analytics fired when the stream is paused, etc.).

Example

For an example, see: ServerStitchedAdSDK1Sample.zip

Testing your RAF Implementation

...

URL ParameterDescription

ROKU_ADS_TRACKING_ID

RIDA (Roku ID for Advertising) value used for device identification

ROKU_ADS_LIMIT_TRACKING

Set to true or false, depending on whether user has limited ad tracking

ROKU_ADS_APP_ID

Identifies the client application making the ad request

ROKU_ADS_APP_VERSION

Used to obtain the application version string

ROKU_ADS_LIB_VERSION

Used to obtain the RAF library version string

ROKU_ADS_CONTENT_ID

Identifies the content to allow for ad targeting

ROKU_ADS_CONTENT_GENRE

Identifies the content categorization to allow for ad targeting

ROKU_ADS_CONTENT_LENGTH

Improves ad targeting by providing length of content (in number of seconds)

ROKU_ADS_USER_AGENT

Device model and firmware version

ROKU_ADS_DEVICE_MODEL

Device model

ROKU_ADS_EXTERNAL_IP

External IP address of the device

ROKU_ADS_DISPLAY_WIDTH

Width of device display

ROKU_ADS_DISPLAY_HEIGHT

Height of device display

ROKU_ADS_TIMESTAMP

Current timestamp value (number of milliseconds elapsed since 00:00:00 1/1/1970 GMT)

ROKU_ADS_CACHE_BUSTER

Makes the URL unique to avoid retrieving cached ad server responses, or to ensure proper counting of unique event tracking beacons

ROKU_ADS_KIDS_CONTENT

Mark ad requests as "directed towards children." This macro is designed to help your channel comply with the Children's Online Privacy Protection Act (COPPA)

Example

To make an ad request that requires the application ID, user agent, and timestamp values, call setAdUrl() with those parameters set:

...