> ## Documentation Index
> Fetch the complete documentation index at: https://docs.interactivelayers.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Advertising providers

> Connect Google Ad Manager, iADServer or SpringServe and use the delivery contract each supports.

Settings has the tabs **General**, **Adservers**, **Delivery**, **AdRouter**, **ILPlayer** and **API keys**, plus **FAST** (only when the project has live channels) and **Batch processing** (where available). With **Server-side insertion**, the server-insertion tab appears instead (**MediaTailor**, **Your inserter** or **Google DAI**, after who inserts): **General** · **Adservers** · **Delivery** · **MediaTailor** · **API keys**. Which tabs appear, and what each offers, follows the player chosen in **General**. **Settings → Adservers** is one list with each ad server's connected accounts; **Connect** or **Manage** opens that ad server in the same list. SpringServe shows **Coming soon** unless an account is already connected. In **Settings → Delivery → Who places each ad**, **Before the video** and **At the breaks** set which ad server is asked at each moment and in which order. AdRouter is turned on and off in **Settings → AdRouter**. Use the project API key on your backend. OAuth credentials and SpringServe credentials are stored server-side.

| Provider | Account and inventory | Delivery |
| - | - | - |
| Google Ad Manager (`gam`) | OAuth and network, with an ad unit and optional line item links. | `client_vast` for compatible VOD players. A separate GAM DAI workflow supports FAST cut previews. |
| iADServer (`iadserver`) | OAuth selects an iADServer project. The profile uses an ad unit. Manage lines and creatives in the iADServer portal. | `client_vast` and provider-managed tags with supported inventory. |
| SpringServe (`springserve`) | Read-only API user and account ID. The profile maps campaign IDs to SpringServe campaigns and demand tags. | `ssai_signals` for an airing's breaks. |

List accounts with `GET /v1/ad-providers/connections` and profiles with `GET /v1/ad-providers/profiles`. Select an explicit destination with `provider`, `connection_id` and `ad_profile_id`. Profile, snapshot and sync endpoints take `?connection_id=…`. `gam_profile_id` remains an alias for the default GAM connection. An incompatible combination returns 422. [Routing](https://docs.interactivelayers.com/adrouter.md)

## How the order works

**Before the video** (pre-roll) and **At the breaks** (mid-roll) each have an ordered list of up to 3 steps. A step is a connected Google Ad Manager or iADServer account plus a kind:

* **Contextual**: the ad server is asked only if one of its linked campaigns matches the scene. If none matches, IL asks nothing and goes to the next step.
* **Common**: the ad server is always asked, without looking at the scene.

The first step reads **First** and each following one **If none**. The next step runs when the scene does not match a contextual step, or when the ad server that was asked returns no ad. IL decides the first case. The second is done by ILPlayer, by the IL SDK or by your backend through the [per-break API](https://docs.interactivelayers.com/vod-operations.md#walk-the-ad-server-steps-of-a-break).

* Before the video, steps are common only: at second 0 there is no scene to compare campaigns with.
* An empty list means no ad at that moment. A project that never saved lists keeps working as before.
* A common step right after a contextual step of the same ad-server profile is not a second request when the contextual one was asked: that request already competes with the lines without context targeting.
* Each time you save, the first mid-roll step (or, without one, the first pre-roll step) becomes the project's default ad server, which FAST, Console tests and AdRouter use.
* While AdRouter is on, the lists do not apply and there is no ad plan: Delivery shows a notice instead of the order rows. The saved order comes back when you turn AdRouter off.
* An iADServer step asked directly by the player (ILPlayer or the IL SDK) needs an **iADServer video tag** chosen in the step, and the video must be linked in the iADServer portal. Otherwise that step returns nothing and the next one runs. Through the IL API neither is needed.
* The player waits up to 5 seconds per attempt and about 8 seconds in total with the content held. After that the video continues.

## Set up Delivery with help

See how the seven ad formats look on screen and follow the example that matches your player, video stream and ad server. [Open the visual guide in Academy](https://knowledgehub.interactivelayers.com/academy/rol/integraciones/overlays)

**Settings → General** shows **Your integration**, the **Next step**, **What you can show** and what is missing. **Set up with help** asks five questions:

1. **What content do you want to monetize?** (on demand, live/FAST or both)
2. **Where does it play?** (web, LG webOS, Android, Android TV, Fire TV, iPhone and iPad, Apple TV, Samsung, Roku)
3. **What do you want to show?** (video ads, Super, L, Overlay 300×250, product with Buy in the scene, Buy during a break)
4. **What can you change in your player?**
5. **How do you insert ads today?**

With the answers, IL recommends ILPlayer, your player with the IL SDK, your app with the IL API, your player with an IL VAST URL, or your player unchanged with server-side insertion, and says what you gain and lose with another option. Each format you asked for shows one status:

| Status | Meaning |
| - | - |
| **Available** | Works today. |
| **Missing in IL** | Possible, but IL has not finished it yet. |
| **Not compatible** | A limit of the platform or of what you can change. The screen says why. |
| **Not verified** | It could not be confirmed to work: the wizard could not read something it depends on, such as AdRouter (reload before saving), or it is built and was not tested on the real service. Each row says which. |

Nothing is saved until **Save this setup**, and the screen first lists what will change. Only the way the player connects, your players and the insertion are saved. Campaigns, tags, ad servers and formats in Delivery are not touched. The project stores one integration: if each platform needs a different one, you choose which to save. **Choose the integration manually** keeps the controls described below.

What the statuses say today:

* **Available:** the banner designed in iADServer, the product with **Buy** and **Buy during a break** in ILPlayer and in web players with the IL SDK, with Google IMA in the browser.
* **Native apps:** **Available** with each platform's IL SDK, which loads its plan with the identifier registered in General, and next to the per-break API: breaks, Super, L, the product and **Buy** during a break; the Overlay 300×250 on Android phones and tablets, iPhone, iPad and Samsung. The screen adds a per-platform warning with what was tested.
* **Missing in IL:** native SDKs over a video with server-inserted ads and automatic end-to-end ad delivery from this wizard to live and FAST channels. Google DAI requests for scheduled breaks can be previewed. With MediaTailor and the web SDK, the product with **Buy** in the scene is available; **Buy** during an inserted ad is **Not compatible**. [Live signals and scheduled FAST](https://docs.interactivelayers.com/realtime.md)
* **Another inserter (VMAP URL):** **Available** for video ads, tested with a real AWS MediaTailor using a fixed copy of the VMAP.
* **Google DAI:** **Not verified**. IL publishes the feed from Google's documentation, but no real Ad Manager network has imported it, and Google gets the context of the whole video, not each break's.
* **Not compatible:** the Overlay on Roku, Apple TV (tvOS) and Android TV, where Google does not offer or allow its ad tool. On Fire TV this is inferred, not confirmed on a device, and the screen says so.
* **ILPlayer with ads:** you can try the ads in the ILPlayer preview, but the embed code is not generated yet for a project that can serve ads. See [ILPlayer](https://docs.interactivelayers.com/il-player.md#preview-and-configure-the-player).
* With AdRouter on there is no ad plan, so the wizard does not offer ILPlayer, the SDK or server-side insertion for saving. A VAST URL needs AdRouter on with a published policy, or the contextual VAST URL enabled for the project.

## Choose how your player connects

Under **Choose the integration manually**, **Settings → General** asks **How does your player connect?**. The choice decides which tabs appear and what each offers:

| Player | What it does with the order | Tabs it uses |
| - | - | - |
| **ILPlayer** | Walks the steps in the viewer's browser. | Delivery, ILPlayer |
| **My own player** | The players where you integrate the IL SDK; General asks which ones. The web players (Shaka, Video.js, HTML5) and apps with the IL SDK (Media3, AVPlayer, Roku, Samsung Tizen) walk the steps; each native app registers its identifier in General. | Delivery |
| **Apps and TV** | Your backend asks IL at each break through the IL API and calls `/next` when an ad server returns no ad. | Delivery, AdRouter |
| **Player with a VAST URL** | The player makes one request per break. Use an AdRouter tag with a published policy, or a contextual Google Ad Manager URL if the project has that option and AdRouter is off. | AdRouter or Delivery, depending on the URL |
| **Server-side insertion** | Choose **My AWS MediaTailor** to use your own AWS setup. You can choose **MediaTailor operated by IL** manually when IL has enabled the service for your account. It also offers **Another inserter (VMAP URL)** and **Google DAI** ([Server-side insertion](https://docs.interactivelayers.com/server-side-insertion.md)). With MediaTailor, IL marks the breaks in your HLS and MediaTailor asks one ad server for all of them, so there is no second step. [Server-side insertion](https://docs.interactivelayers.com/server-side-insertion.md) | Delivery, MediaTailor |

General, Adservers and API keys are always shown. A tab the player does not use stays visible while something in it is active. Below **What you can show**, **What is left** lists that player's steps with their real status and a link to the tab where each one is done. The other tabs offer only what that player shows; anything saved that it does not use is named in one line and kept. **Settings → Delivery** starts with **Your player: … · Change**. The choice is saved as `player` (`ilplayer`, `sdk`, `api`, `url` or `signal`) in the Console's Delivery policy; it is not part of `GET /v1/vod/delivery-policy`. A project stores one integration. With MediaTailor, the server inserts video breaks. If your project offers scene graphics, select the compatible web players that include the IL SDK and supply the ad plan and content clock. The SDK then draws Super, L and 300×250 during the program and hides them during stitched ads.

### Which ads a viewer can get

**Settings → General** shows this table, **Which ads a viewer can get, depending on how the player connects**, under the chosen way's question. The selected way's column is highlighted; with **My own player** and players chosen, that column shows the result for those players.

| | ILPlayer | My own player | Apps and TV | Player with a VAST URL | Server-side insertion |
| - | - | - | - | - | - |
| Pre-roll | Yes | Yes | Yes | Yes, through the configured URL | Yes |
| Mid-roll | Yes | Yes | Yes | Yes, through the configured URL | Yes |
| Super | Yes | Yes | Yes | No | With the web SDK and content clock |
| L | Yes | Yes | Yes | No | With the web SDK and content clock |
| Overlay 300×250 | Yes | Depends on the player | Depends on the player | No | With the web SDK and content clock |
| Product with a Buy button in the scene | Yes | Yes | Yes | No | No |
| Buy button in the breaks | Yes | Yes | Depends on the player | No | No |

* Apps and TV: Buy during a break appears when the break's ad server is iADServer with a tag and your server creates the playback with "graphics": true.
* Overlay 300×250: Google has no display tool on Roku, Apple TV, Android TV or Fire TV (Fire TV by inference).

**Player with a VAST URL** gets the video ad from the selected URL. ILPlayer and web players with the IL SDK show **Buy** during a video ad linked to a product in iADServer. With the IL API, an app with the IL SDK shows it under the conditions in the note ([Graphics and Buy next to your app's breaks](https://docs.interactivelayers.com/vod-operations.md#app-break-graphics)).

### Which players: My own player

With **My own player**, General asks **Which one or ones?**: Shaka Player, Media3 / ExoPlayer, AVPlayer, Roku SceneGraph, Samsung Tizen AVPlay, Video.js and HTML5 video. You can choose several, and at least one to save. Delivery offers a setting only if **every** chosen player supports it; when one does not, the row names it in one line (for example, Roku SceneGraph does not show the L). Anything saved that is no longer offered is kept.

Next to each chosen native player, General shows a field for the app's identifier: **Package name of the Android app**, **Bundle ID of the Apple app**, **Roku channel ID** (the published channel's number, or `dev` for a channel installed in developer mode) or **Samsung application ID**. **Register** and **Remove** apply at once, like a verified domain, up to 20 apps per project. "IL only gives the ad plan to the apps you register, the way it only gives it to pages on your verified domains. The identifier is a label the app sends, not a secret." **What is left** adds **Register the app's identifier** for each native player without one. Delivery adds, when it applies, "Overlay 300×250 with Media3: only on phones and tablets, not on Android TV or Fire TV." and "Overlay 300×250 with AVPlayer: only on iPhone and iPad, not on Apple TV."

General groups the players by whether they show Delivery's breaks and formats. With each platform's SDK, every player in the list is in **Show the breaks and the scene formats (Super, L, Overlay)**. Before you save, a line under them says what Delivery will offer for the selection, for example «Delivery will offer: Pre-roll, Mid-roll, Super, L and Overlay 300×250.», followed by anything the selection takes away.

| Player | Pre-roll | Mid-roll | Super | L | Overlay 300×250 | Product with a Buy button | Ad plan | Note |
| - | - | - | - | - | - | - | - | - |
| Shaka Player (web) | yes | yes | yes | yes | yes | yes | yes | Tested with simulation |
| Media3 / ExoPlayer (Android, Android TV, Fire TV) | yes | yes | yes | yes | yes | yes | yes | Tested on Android 15 (phone) and Android TV 14 emulators with simulated ads, not on a device; Fire TV untested. Overlay only on phones and tablets |
| AVPlayer (iOS, tvOS) | yes | yes | yes | yes | yes | yes | yes | Tested on Mac Catalyst and on iPhone and Apple TV simulators with simulated ads, not on a device. Overlay only on iPhone and iPad |
| Roku SceneGraph | yes | yes | yes | yes | no | yes | yes | Tested only in a BrightScript interpreter with stand-ins, never on a Roku; publishing the channel requires Roku's ADS 1.1 review |
| Samsung Tizen AVPlay | yes | yes | yes | yes | yes | yes | yes | Tested only in Node with stand-ins for AVPlay, never on a TV; the Overlay uses the web path and was not tested on a TV |
| Video.js (web, LG webOS) | yes | yes | yes | yes | yes | yes | yes | Tested with simulation |
| HTML5 video (web, TV) | yes | yes | yes | yes | yes | yes | yes | Tested with simulation |

Native apps read the plan with the identifier registered in General ([Native apps](https://docs.interactivelayers.com/player-sdk.md#native-app-ads)). No native SDK draws over a video with server-inserted ads. **Product with a Buy button** reaches the web players for on-demand video, with the banner designed in iADServer when the campaign has one. "Tested with simulation" means a test DOM, platform API doubles or an interpreter, not the platform itself.

For ads during a scene, **Product with a Buy button** uses one **iADServer tag during a scene**: iADServer does not distinguish the Super from the L. The Super, L and Overlay of the IL SDK ads module stay Google Ad Manager only.

## The AdRouter tab

**Turn AdRouter on** and **Turn AdRouter off** in **Settings → AdRouter** are the only switch. **How it picks the ad server** offers **Always the same one**, **One and, if it has no ad, another** (only with **Apps and TV**, because the app asks again in the same break), **Split between several** and **The one that pays most**. Below come **Content exceptions**, **Try it**, the publish bar, **Connect your player** after publishing, and **Advanced**. [AdRouter](https://docs.interactivelayers.com/adrouter.md)

## GAM and iADServer VAST

Use a VAST-capable profile in the VOD playback flow. If the cut is eligible, pass the returned `ad_tag_url` to the ad integration. Review the provider's ad response and playback events to confirm delivery. In a separate FAST configuration, `POST /v1/vod/airings/{airing_id}/delivery/preview` generates a GAM DAI request for review and returns `delivery_status=not_sent`. A connector run by the publisher or its provider submits the request. GAM DAI selects and inserts ads into the test stream. [FAST integration](https://docs.interactivelayers.com/realtime.md) [VOD playback](https://docs.interactivelayers.com/vod-operations.md)

## SpringServe signals for SSAI

Save the account through Settings. To configure it through the backend, `POST /v1/ad-providers/springserve/connection` accepts `email`, `password` and `account_id`. Use `?create=true` to add a distinct connection. Set the profile with `PUT /v1/ad-providers/springserve/profiles/{profile_id}` and add `links` carrying `campaign_id`, `springserve_campaign_id` and `demand_tag_ids`.

Around each planned break, sync with `POST /v1/ad-providers/springserve/profiles/{profile_id}/sync`. Confirm `status=complete` and a recent `checked_at`. Prepare a signal with `POST /v1/vod/airings/{airing_id}/signals` using actual playout values. Sync once per break or schedule.

```json theme={null}
{
  "break_id": "break-01",
  "content_offset_seconds": 1200,
  "break_start_at": "2026-12-01T20:20:00Z",
  "break_duration_seconds": 120
}
```

Look up `GET /v1/vod/signals/{signal_id}` immediately before use. A signal can expire or become invalid and return no candidates. Its freshness is limited by the break end and the snapshot's 60-second window. Reuse a break ID only with identical data. For a correction create a new break ID. The response reports `integration_status=ottera_validation_pending`. Confirm the transport, timing and actual insertion with your SSAI provider. An absent or invalid signal leaves the usual ad schedule in place.

For a scheduled FAST channel, the Academy case diagrams show OTTera inserting ads, SpringServe returning VAST, and InteractiveLayers preparing the contextual signal. The handoff into OTTera requires agreement and validation with the provider. The example shows how the `automovilismo` topic would map to the custom `il_topic` key on the supply tag alongside `content_id` and `pod_max_dur`. [A FAST channel with OTTera and SpringServe](https://knowledgehub.interactivelayers.com/academy/rol/integraciones/canal-fast-ottera-springserve)

## Contextual briefs in native GAM fields (pilot)

An administrator must install the fields and explicitly enable pilot lines. GAM stores the brief and InteractiveLayers interprets it with AI. Installing network definitions does not enable every campaign. The Academy exercise uses draft QA lines without creatives or commercial traffic.

Under **Delivery → Orders → Settings**, fill in the **Interactive Layers** fields: Marca (brand), Categoría de empresa (business category), Esencia (brand essence), Valores (values), Tono de marca (voice), No asociar marca (exclusions), and Ejemplos de marca (examples). Each text accepts up to 255 characters. **Pedido de perfil** optionally copies another order of the same brand, advertiser and network, preserving its exclusions. Business category does not dictate the content categories.

Example: **Sendero**; essence **Durable bottles for everyday trips**; values **Practicality, reuse and approachability**; exclusions **Accidents and rescues**. On the line, set **Producto y objetivo** to “Reusable bottle; accompany preparations for a walk.” Add desired contexts, campaign exclusions and examples/corrections as needed.

1. Save **Solicitud de propuesta = 1**. A higher number requests another AI interpretation and consumes authorized processing. Editing other fields does not regenerate; **0** stops.
2. Refresh the line and read **Notes**: interpretation, named IAB categories, alternatives, requirements, preferences and exclusions. You need not know IAB codes beforehand. Notes belongs to the integration in this mode; existing human notes prevent writeback.
3. To correct, update **Ejemplos y correcciones** and request the next number. To accept, copy **P-…** into **Aprobar versión**.
4. Under **Custom targeting**, add `ilayers = <line ID>` and `ilayers_profile = <value shown in Notes>`, with **AND in every alternative**. The integration verifies both without changing budgets, flight dates or commercial targeting.
5. Review sampled video timestamps and reasons. These use stored evidence and do not prove impressions. If evidence is missing, open the already analyzed video in IL and use **Detect ad contexts**. This includes the brief from the selected GAM profile even when it is not the default, including draft lines. Review the estimated cost before starting: it covers timeline windows and up to one additional actual scene end per window. Ad evaluation reuses those results. Saving a brief or playing the video does not start this analysis; a new proposal with different criteria needs another explicit analysis request.

Editing the order profile invalidates its lines’ approvals. A copy from another order keeps its captured profile until a new proposal is requested. Manual topic/IAB fields narrow the proposal; affinity never overrides an exclusion.

Synchronization targets 60 seconds; authorization expires at most 120 seconds after the last verified read. New plans use `version: 2`, `native_gam.contract: "native-gam-plan-v1"` and `expires_at`; older clients reject them. The compatible web consumer removes ads and pending requests on expiry or leaving the moment, then emits `plan_expired`; the host must fetch a new plan. The IL SDKs for Android, Apple, Roku and Samsung Tizen accept this contract and, when they request the plan from IL, renew it before it expires; the web SDK accepts it too, and on a page it renews the plan only with `keepPlanRenewed`. A custom integration that reads the plan must honor `expires_at` and renew it the same way. For urgent changes, pause the line in GAM.

ILPlayer 0.8.0 renews that plan through `ads.planUrl`, a signed same-origin URL bound to the viewing session. It preserves playback, the shopping session and per-video limits, and omits cuts already passed. Without a current plan, content continues without those ads. Custom integrations must reuse the same SDK session when renewing.

### Install the pilot once per network

An administrator runs these commands from the InteractiveLayers backend, with access to the project database and its GAM OAuth connection with write permission. Replace the project, network, connection, profile and line identifiers. The first command previews missing definitions; the second installs them and enables only the specified line.

```sh theme={null}
python -m scripts.gam_native_setup \
  --project PROJECT --network NETWORK --connection CONNECTION --profile PROFILE

python -m scripts.gam_native_setup \
  --project PROJECT --network NETWORK --connection CONNECTION --profile PROFILE \
  --apply --line-id LINE_ID --consumer native-gam-plan-v1
```

Verify the 14 definitions under **Admin → Global settings → Custom fields**: eight Order fields and six Line item fields. Solicitud de propuesta is Number; the others are Text, all with Editable access. Installation checks compatibility and capacity and preserves existing fields. Before enabling the line, verify that its web consumer implements `native-gam-plan-v1`. If you use a hosted account and do not administer the backend, ask its administrator to activate the pilot; then manage the entire brief in GAM.

### Fifteen-second overlays on a Te Informás VOD

In the Telefe pilot, configure each campaign’s context in the native fields of its GAM House line item. The InteractiveLayers operator connects the VOD, its audiovisual batch and the test lines to a dedicated display unit. Once you approve a version in GAM and save both exact targeting criteria, the pilot automatically evaluates that brief against the asset’s scenes. Editing an input invalidates the previous version. Increase **Solicitud de propuesta**, approve the new code and update **ilayers\_profile** on the line item to evaluate the new version.

The plan contains windows with audio and visual evidence, verified editorial suitability and enough time for the overlay. Original ad breaks, identified in-program advertising and uncertain windows are excluded. When playback enters an eligible window, the player requests the unit through Google Publisher Tag with the current line and profile IDs. Google selects the creative. Playback continues on an empty response. An ad remains visible for 15 seconds of playback. The player leaves two minutes between ads and fifteen minutes between appearances of the same brand.

Attach two HTML creatives for the brand to the same line item, sized **728 × 90** and **320 × 50**. When a campaign qualifies for a scene, the InteractiveLayers server generates a line of copy from the brief, the transcript and verified evidence for that interval. The demo uses a review step before publication. The approved text is stored for the scene and profile version and reused on subsequent plays.

The player passes an opportunity reference in `il_copy` to GAM alongside the eligible line items and profiles. The winning GAM template uses that reference and its own line item ID to retrieve the text from InteractiveLayers and display it alongside the logo and campaign photograph. Each brand has a layout for each size. The 15 seconds start when the player confirms the Google creative and the template has loaded the images and fitted the approved text into the available space. GAM aggregates statistics for that creative size across the different messages it displays.

Turquoise marks on the seek bar identify windows with eligible contextual campaigns. In the scene index, **Todas las campañas** keeps the usual GAM selection. For a presentation, select a brand and open one of its scenes. Shared links preserve the brand and video time (for example, `?t=2643.173&campana=ypf`). The player requests the selected brand’s approved line only when the analysis qualifies that scene. GAM decides whether to fill the request.

With a campaign selected, each scene you open from a card, the menu or a turquoise mark plays from the start of its window. You can show consecutive scenes for the same brand. The status below the video indicates when the ad is on screen or when GAM returns an empty response. Continuous playback retains the player’s frequency limits.

Each moment links to the brand’s order in GAM, the creatives available for each size, and the line item’s delivery statistics. If several campaigns qualify, choose the brand you want to inspect. GAM shows impressions, clicks, and CTR for each creative across that line item. Access requires permission to view the demo’s GAM network.

The Te Informás walkthrough includes a screenshot and a delivery receipt for each line item. YPF qualifies in the DeLorean story because the car is the focus. PedidosYa qualifies in MasterChef when the judges discuss the dish. [Open the ten-campaign walkthrough](https://demo.teinformas.com/telefe/racing-flamengo/evidencia/recorrido.html)

To verify a delivery, select a scene from the index and play it. Correlate the approved contextual signal and version with the GPT request. Check the line item and creative IDs in `slotRenderEnded`, visibility in `impressionViewable` and the video clock when the creative appears and disappears. This demo exposes the events in `window.telefeAdProof`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.