About assets and creatives

Assets

Assets are raw video or image files that have been uploaded and registered with the API. Once registered, an asset gets a persistent unique identifier (UID) that can be referenced across one or more creatives. Your creative needs an asset to be served to a Roku viewer.

Creatives

A creative is the servable object that carries an ad experience to a Roku viewer. It contains one or more raw media files (called “assets”) along with optional third-party impression tracking URLs.

Assets and creatives are managed separately. The asset upload flow gives you asset UIDs, which you then attach to a creative either at creation time or via a subsequent PATCH.

The full workflow runs in two parts: upload and register your assets first, then create and publish your creative. For action ads, the overlay is generated from message copy and branding using an asset blueprint. See About blueprints.

Creative types

Creatives have a creative_type which determines their overall structure and which ad units they contain. After you set the creative_type when you first make a creative, you can't change it.

TypeDescription
videoStandard video ad with no interactive element
action_adVideo paired with an interactive overlay (e.g. ok-to-text)

How action ad overlays are made

Overlays are generated from an asset blueprint. You can’t build and upload your own, and blueprints can’t be edited after they’re created. See About blueprints for more information.

Ad units

A creative contains one or more ad units, the slots that hold assets. In API payloads, ad units are referenced by their key (video or action) inside the ad_units object. Each ad unit has an ad_unit_type field that describes its function.

Ad unit reference - keys and types

Ad unit keyAd unit typeUsed inDescription
videostandard_videovideo, action_adHolds the main video asset
actionok_to_textaction_ad onlyHolds the interactive overlay assets and properties
actionok_to_checkoutaction_ad only, read-onlyHolds commerce flow overlay assets and properties.

Action properties

On ad_units.action, for action_ad creatives:

FieldValuesNotes
interaction_typesend_text | commerce_flowOnly the send_text can be configured via Ads API.
advertiser_namestringUsed in the SMS copy. Defaults to ad account name.

Action ads have an ad_unit with an action ad unit key and have either the ok_to_text or ok_to_checkout ad unit types.

ok_to_text properties

On ad_units.action, when ad_unit_type is ok_to_text:

FieldNotes
smsPart of the SMS message sent to the advertiser
message_linkLink included in the SMS message sent to the advertiser

ok_to_checkout properties

ok_to_checkout is read-only by design. GET /developer/creatives/{uid} returns an ok_to_checkout_properties object when a creative has one, but the create POST) and update PATCH) request schemas have no field for setting it. You can't build or edit an ok_to_checkout ad unit through the Ads API, only read one. For the same reason, interaction_type accepts commerce_flow in the enum but there's no way to configure the resulting ad unit, so use send_text.

ok_to_checkout properties fields (GET only):

  • product_catalog_uid
  • product_id
  • message_link
  • text_message
  • vendor_id
  • overlay_image_1
  • overlay_image_2

Learn more about Action ads - Action Ads Deep Dive | Roku Self Serve Help Center.

Asset roles

The asset role controls how the asset renders when the creative is delivered to Roku viewers. You assign an asset role to each asset in an ad unit.

RoleAd unitAsset type
mainvideovideo
overlay_1actionimage
overlay_2actionimage

Blueprints product the assets for the overlay_1 and overlay_2 roles. See About blueprints for more information.

Create a creative

High level overview

  1. Request asset upload URL - make a POST developer/assets/uploads call.
  2. Upload the asset file - make a PUT pre-signed URL. This is a call to the cloud storage from the URL received, not to the Ads API.
  3. Poll for ingestion and validate asset spec compliance - make a GET developer/assets/uploads call.
  4. Register the asset - make a POST developer/assets call.
  5. (For action ads) Generate the overlay via blueprints - make a POST /developer/assets/blueprints call, then poll GET /developer/assets.
  6. List assets to get asset uid for creative - make a GET /developer/assets call.
  7. Create the creative - make a POST developer/creatives call.
  8. Publish the creative - make a POST developer/creatives/{uid}/publish call.
  9. Check on published status - make a GET developer/creatives/{uid} call.

Detailed procedure

Step 1 — Request asset upload URL

API call: POST /developer/assets/uploads

Call this endpoint once per file to get a pre-signed S3 upload URL. Save the filename from the response; you'll need it to register your assets in Step 4.

FieldRequiredValuesNotes
account_uidYesstringThe account that will own the asset
nameYesstringDisplay name. No uniqueness enforced
asset_typeYesvideo, imageDetermines how the file is processed

The response includes:

  • filename - system-assigned, unique per upload
  • upload_url - pre-signed S3 URL. PUTyour file directly to this URL in Step 2.

Step 2 — Upload the file to S3

API call: PUT to upload_url (direct S3 request)

Upload the raw file directly to the upload_url returned in Step 1. This is a call to the pre-signed S3 URL, not Ads API, so no auth header is needed. A 200 OK response with an empty response body indicates success.

Step 3 — Poll for ingestion status

API call: GET developer/assets/uploads

Poll this endpoint until the file has been ingested and processed. Pass the filename returned in Step 1 as a query parameter as follows: GET /developer/assets/uploads?filename={filename}

Responses:

ResponseMeaning
204Still processing, poll again
200Ingestion complete, proceed to Step 4
🚧

There is no error state. If the file can't be process (for example, due to a format or type mismatch), the endpoint will continue returning a 204 indefinitely. If polling doesn't resolve to a 200 check that the file uploaded in Step 2 matches the asset_type declared in Step 1.

Once you receive a 200 response, inspect the profiles_checked array in the response. The profiles relevant to self-serve ads are:

ProfileApplies to
video:roku:ads:standard:adsmanagerMain video asset
image:roku:ads:action_ad:overlay_1_imageAction ad overlay 1 image
image:roku:ads:action_ad:overlay_2_imageAction ad overlay 2 image

profiles_checked returns every profile that applies to the asset_type. Check the passed field for the profile matching the role you intend to assign the asset to and ignore the rest.

Each profile reports two kinds of result:

FieldMeaning
errorsBlocking. Fix the file and upload again.
advisoriesInformational. The asset still passes and can be used.

Warning regarding profile check failures

Don't proceed to Step 4 until you know the profile checks were successful. You can still proceed to register an asset in step 4 with a failed profile check, but the failure will surface later; creating a blueprint fails if the logo you pass in failed its image profile check. Creating a creative fails if an attached asset failed the profile check for its role.

Step 4 — Register assets

API call: POST /developer/assets

Once ingestion is confirmed in Step 3, register the file as an asset. This gives the file a persistent uid that can be referenced in creatives.

FieldRequiredNotes
account_uidYesMust match the account used in Step 1.
nameYesA human-readable label
asset_typeYesvideo or image
filenameYesLinks the registration to the uploaded file

The response includes:

  • uid - you need to reference this when you create or edit a creative.
  • status - processing | needs_metadata | needs_transcoding | done | error
  • cdn_url - the delivery URL. This might immediately be null but populate after transcoding is complete.

Step 5 — Generate the overlay via blueprint (action ads only)

API call: POST /developer/assets/blueprints

Action ad overlays are generated from message copy and branding. This step applies to action ad creatives. Skip this step for standard video creatives.

If your overlay includes a logo, upload and register that image first (steps 1–4) so you have an asset uid to pass into the blueprint config. The logo has to pass its image profile check in Step 3, or this call fails.

See About blueprints for the full field reference and polling steps.

Step 6 — List assets

API call: GET /developer/assets

Lists registered assets for an account. Use this to retrieve an asset uid if you need it after creation. You need to reference the asset uid of the asset you want use when you make a creative.

Filter to specific assets with uid={asset_uid}, which also accepts a comma-separated list.

Use the expand query parameter to include optional large fields: metadata for file and stream metadata, and asset_blueprints for the blueprint configuration of a generated overlay. See About blueprints for more information.

Step 7 — Create creatives

API call: POST /developer/creatives

Create the creative and use asset uids to assign your assets to it. A 201 response means the creative was created and is in draft status. You can create multiple creatives with one POST call.

Video assets are validated at this step. They must adhere to the creative spec and be compatible with the assigned role. For an action ad overlay, use the blueprint's result_asset_uid the same way as any other asset uid.

FieldRequiredValuesNotes
account_uidYesstringOwning account
nameYesstringDisplay name; no uniqueness enforced
creative_typeYesvideo, action_adImmutable after creation
languageYesISO-639-1Only en supported at this time
ad_unitsNoobjectAssign assets at creation time or update via subsequent PATCH call

If you include an ad unit, it must contain both ad_unit_type and an assets array. There's no way to create an empty ad unit and fill it in later, so omit ad_units entirely if you want to attach assets by PATCH.

If you want to create an action ad you need to confgure both a video ad unit and an action ad unit (if the action ad unit includes ok_to_text, include that metadata in the ok_to_text properties.

Step 8 — Publish creative

API call: POST /developer/creatives/{uid}/publish

Validate and submit the creative for publishing. Use the uid returned in Step 7. Once submitted, the creative enters the publishing state and is reviewed by Roku.

If the creative includes a blueprint-built overlay that's still building, publish returns a 202. Retry once the overlay finishes. If the blueprint failed to build (status: error), publish returns a 422.

If you edit a creative after it’s published, it goes back to draft and needs to be published again.

Step 9 — Check publish status

API call: GET developer/creatives/{uid}

Use the uid returned in Step 7 to check the status of the creative.

StatusMeaning
draftCreative has not been submitted for publishing yet
publishingCreative is submitted and publishing is in progress
in_reviewCreative is under review
approvedCreative is approved and ready to serve
rejectedCreative failed review
errorAn error occurred during publishing. Contact us via Slack.

The cdn_url on the creative points to the served VAST document and is null while the creative is in draft.

Update a creative

API call: PATCH /developer/creative

Use this endpoint to update a creative while it is in draft. Returns 204 No Content on success. You can update multiple creatives with one PATCH call.

Patchable fields:

FieldNotes
nameDisplay name
languageISO-639-1 language code
ad_units.videoUpdates the video ad unit - swap or unassign assets
ad_units.actionUpdate the action overlay - copy, style, asset assignments
trackersAssign or unassign impression tracking URLs

To assign or unassign an asset within an ad unit, pass an action of assign or unassign alongside the asset uid and its role. If you omit action, it defaults to assign.

Trackers:

Creatives support third-party impression tracking URLs, managed via PATCH /developer/creatives. Each tracker goes in the trackers array.

FieldRequiredValuesNotes
urlYesstringUse the full tracking URL with no spaces. URL-encode any dynamic macros.
tracker_typeYesimpressionOnly impression-tracking URLs are supported.
actionNoassign, unassignDefaults to assign.
🚧

Roku only accepts tracking URLs from approved vendors using supported macros. See our help center page for more info.