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.
| Type | Description |
|---|---|
video | Standard video ad with no interactive element |
action_ad | Video 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 key | Ad unit type | Used in | Description |
|---|---|---|---|
video | standard_video | video, action_ad | Holds the main video asset |
action | ok_to_text | action_ad only | Holds the interactive overlay assets and properties |
action | ok_to_checkout | action_ad only, read-only | Holds commerce flow overlay assets and properties. |
Action properties
On ad_units.action, for action_ad creatives:
| Field | Values | Notes |
|---|---|---|
interaction_type | send_text | commerce_flow | Only the send_text can be configured via Ads API. |
advertiser_name | string | Used 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:
| Field | Notes |
|---|---|
sms | Part of the SMS message sent to the advertiser |
message_link | Link 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_uidproduct_idmessage_linktext_messagevendor_idoverlay_image_1overlay_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.
| Role | Ad unit | Asset type |
|---|---|---|
main | video | video |
overlay_1 | action | image |
overlay_2 | action | image |
Blueprints product the assets for the overlay_1 and overlay_2 roles. See About blueprints for more information.
Create a creative
High level overview
- Request asset upload URL - make a
POSTdeveloper/assets/uploadscall. - Upload the asset file - make a
PUTpre-signed URL. This is a call to the cloud storage from the URL received, not to the Ads API. - Poll for ingestion and validate asset spec compliance - make a
GETdeveloper/assets/uploadscall. - Register the asset - make a
POSTdeveloper/assetscall. - (For action ads) Generate the overlay via blueprints - make a
POST/developer/assets/blueprintscall, then pollGET/developer/assets. - List assets to get asset uid for creative - make a
GET/developer/assetscall. - Create the creative - make a
POSTdeveloper/creativescall. - Publish the creative - make a
POSTdeveloper/creatives/{uid}/publishcall. - Check on published status - make a
GETdeveloper/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.
| Field | Required | Values | Notes |
|---|---|---|---|
account_uid | Yes | string | The account that will own the asset |
name | Yes | string | Display name. No uniqueness enforced |
asset_type | Yes | video, image | Determines how the file is processed |
The response includes:
filename- system-assigned, unique per uploadupload_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:
| Response | Meaning |
|---|---|
| 204 | Still processing, poll again |
| 200 | Ingestion 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_typedeclared 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:
| Profile | Applies to |
|---|---|
video:roku:ads:standard:adsmanager | Main video asset |
image:roku:ads:action_ad:overlay_1_image | Action ad overlay 1 image |
image:roku:ads:action_ad:overlay_2_image | Action 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:
| Field | Meaning |
|---|---|
| errors | Blocking. Fix the file and upload again. |
| advisories | Informational. The asset still passes and can be used. |
Warning regarding profile check failuresDon'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.
| Field | Required | Notes |
|---|---|---|
account_uid | Yes | Must match the account used in Step 1. |
name | Yes | A human-readable label |
asset_type | Yes | video or image |
filename | Yes | Links 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|errorcdn_url- the delivery URL. This might immediately benullbut 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.
| Field | Required | Values | Notes |
|---|---|---|---|
account_uid | Yes | string | Owning account |
name | Yes | string | Display name; no uniqueness enforced |
creative_type | Yes | video, action_ad | Immutable after creation |
language | Yes | ISO-639-1 | Only en supported at this time |
ad_units | No | object | Assign 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.
| Status | Meaning |
|---|---|
| draft | Creative has not been submitted for publishing yet |
| publishing | Creative is submitted and publishing is in progress |
| in_review | Creative is under review |
| approved | Creative is approved and ready to serve |
| rejected | Creative failed review |
| error | An 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:
| Field | Notes |
|---|---|
name | Display name |
language | ISO-639-1 language code |
ad_units.video | Updates the video ad unit - swap or unassign assets |
ad_units.action | Update the action overlay - copy, style, asset assignments |
trackers | Assign 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.
| Field | Required | Values | Notes |
|---|---|---|---|
url | Yes | string | Use the full tracking URL with no spaces. URL-encode any dynamic macros. |
tracker_type | Yes | impression | Only impression-tracking URLs are supported. |
action | No | assign, unassign | Defaults to assign. |
Roku only accepts tracking URLs from approved vendors using supported macros. See our help center page for more info.