Put in one tag
For the developers who work on your apps or your stitcher. Our tag goes where your ad tag is today.
The tag
https://ads.cuefill.com/v1/vast?z=your-zone&cid={video_id}&bundle={app_bundle}&app={app_name}&plat={platform}&cb={random_number}z is your zone. You get two for each platform: one for testing and one for real ads.
The values in braces are yours to fill on every request. The console's Tags page writes the tag for your platform and has the notes for it.
The tag answers with a VAST wrapper that points at your own ad tag, or with the ad itself when our servers ask for it. Each ad is counted against the video it ran in.
Parameters
| Parameter | What it is | When to send it |
|---|---|---|
cid | The video's ID, the same one as in your video list. | Every request |
bundle | The app's ID from its store page. | Every request |
app | The app's name. | Every request |
plat | The platform, such as roku, firetv, ios, android or web. | Every request |
cb | A new random whole number for each request. | Every request |
ip, ua | The viewer's IP address and user agent. | Only when a server makes the request for the viewer |
ct | The video's title. | When you have it |
dur | The ad break's length in seconds. | When you know it |
ads | The most ads the break takes, from 1 to 6. Leave it out for one ad. | When a break holds several ads |
ifa | The device's advertising ID. | When the viewer allows it |
us_privacy, gpp, gpp_sid | The viewer's privacy strings. | When you have them |
gdpr, gdpr_consent | The GDPR flag and consent string. | For viewers in Europe and the UK |
coppa | 1 for a video made for children. | For those videos |
genre, rating | The video's genre, such as News, and its age rating, such as TV-PG. | When you have them. Buyers may pay more. |
series, season, episode | The show's name, and the season and episode number. | For episodes of a show |
live | 1 for a live stream, 0 for a recorded video. | When you know it |
cues | Mid-roll times in seconds from the start of the video, comma separated, such as 300,900. | VMAP tag only |
len | The video's length in seconds. Cue points at or past it are left out. | VMAP tag only, when you know it |
URL-encode every value. If a value arrives as an unfilled placeholder, such as {video_id} or [CONTENTID], we treat it as not sent. Every privacy signal you send reaches your ad tag. With coppa=1 we drop the advertising ID before the request goes on.
Who makes the request
If the app's player or its ad SDK calls the tag, leave ip and ua out.
If a server-side stitcher calls the tag, it has to tell us who the viewer is. Send ip and ua, or the headers X-Device-IP and X-Device-User-Agent.
The stitcher, or the player behind it, also has to fire the tracking URLs in our answer. We count from those.
On-demand video
Your player can ask for all of a video's ad breaks at once. Use /v1/vmap in place of /v1/vast and add cues and len.
The answer is a VMAP playlist with a pre-roll, a mid-roll at each cue point and a post-roll.
What the tag answers
| Answer | What it means |
|---|---|
| 200 and a VAST 4 wrapper | What you get when your player calls your own ad tag. It has one VASTAdTagURI that points at that tag. It also has our Impression, start, quartile, complete and Error URLs. |
| 200 and a VAST with ads | What you get when our servers ask for the ads. It can hold several ads when you send ads. Your house promos can be among them. Each ad has our tracking URLs. |
| 200 and a VAST with only an Error URL | Our servers asked and nobody had an ad. No house promo fit the break either. |
| 200 and an empty VAST | The zone is switched off or the request came from a robot. |
| 404 and an empty VAST | We don't know that zone. Check z. |
| 405 | The request was not a GET. |
Our wrapper adds one hop. If your player limits how many wrappers it follows, raise that limit by one.
Test first, then one platform
- Put one platform's test tag into a development build.
- Play a video through an ad break. A test ad should play.
- Open Reports at console.cuefill.com and pick the test zone. The ad request and the ad shown appear against the video's ID, usually within a minute.
- Check that ID against your video list. A video that isn't in the list is still counted. It shows as "No creator in the list".
- Repeat for each platform.
- Switch one platform to its live tag and leave it for a day. Compare Ads shown with your own numbers for that platform.
- Switch the others.
Reports count by UTC day. Console sign-in is a link sent by email.
app-ads.txt
Buyers skip ads sold through an account your app-ads.txt file doesn't list. Each exchange gives you its own line for the file. We check the file once a day.
When it doesn't work
| What you see | Likely cause |
|---|---|
| No ad plays and the tag answers 404 | The zone ID in z is wrong. |
| Ad requests go up and Ads shown stays at 0 | Look at No ad returned. If it is 0 as well, the player isn't firing the tracking URLs in our wrapper. If it goes up, your ad tag had no ad for those requests. |
| Rows under "No video ID" | cid arrived empty, or still as a placeholder. |
| A video shows "No creator in the list" | It isn't in your video list. Send us a new list. |
Questions: support@cuefill.com
See what your breaks could earn
Send us your channel or app. We'll show you what we could fill.
We use these details only to reply to you. Privacy policy