Infomaniak Vod icon

Infomaniak Vod

Interact with Infomaniak Vod API

Actions349

V3 > Ad → Create An Advertisement.

AI-generated

Summary

Create a new advertisement for a specified Player in the Infomaniak VOD system by providing required details such as Player ID, advertisement category, type, and URL, along with optional ad-specific parameters.

Inputs

  • authentication — Select authentication method to use: OAuth2 (default) or API Key.
  • path_player (required) — The unique identifier of the Player for which the advertisement is created.
  • body_category (required) — The category of the advertisement; must be one of 'vast' (advertisement from a VAST), 'video' (advertisement from a video), or 'none' (no advertisement).
  • body_type (required) — The type of advertisement; must be one of 'pre_roll' (before main content), 'mid_roll' (during main content), or 'pst_roll' (after main content).
  • body_url (required) — A public resolvable URL that points to the advertisement content.
  • bodyParameters — Optional additional fields for the advertisement including 'Href' (a public URL), 'Offset' (time offset when the ad loads), 'Skip After' (seconds until ad can be skipped), and 'Tracking Url' (URL string for ad tracking).
  • returnFullResponse — Boolean flag to return the full API response instead of just the created ad data.

Output shape

a single JSON object representing the created advertisement or the full API response

By default, returns the main created advertisement data extracted from the response; if 'Return Full Response' is enabled, returns the full raw API response. The output includes fields reflecting the provided inputs and additional metadata returned from the API. Errors during creation will interrupt execution.

Links

Discussion