Infomaniak Vod icon

Infomaniak Vod

Interact with Infomaniak Vod API

Actions349

V3 > Ad → Update Advertisement.

AI-generated

Summary

Update an existing advertisement by specifying its unique identifier along with mandatory fields like category, type, and URL, and optionally including additional fields such as href, offset, skip after, and tracking URL.

Inputs

  • authentication — Select the authentication method: OAuth2 (default) or API Key.
  • path_ad (required) — The unique identifier of the advertisement to update.
  • body_category (required) — The category of the advertisement. Valid values are 'vast' (from a VAST), 'video' (from a video), or 'none' (no advertisement).
  • body_type (required) — The type of advertisement placement: 'pre_roll' (before content), 'mid_roll' (during content), or 'pst_roll' (after content).
  • body_url (required) — A publicly resolvable URL associated with the advertisement.
  • bodyParameters — Optional additional fields including 'Href' (a public URL), 'Offset' (time offset for ad load), 'Skip After' (seconds after which the ad can be skipped), and 'Tracking Url' (a tracking string).
  • returnFullResponse — Boolean flag to return the full API response instead of just the updated advertisement data.

Output shape

a JSON object representing the updated advertisement, or the full API response if requested

The operation returns the updated advertisement details as JSON. Setting 'Return Full Response' to true returns the complete API response. Errors or validation issues will be returned according to the API's standard error handling.

Examples

Example 1: Updating an advertisement's type and URL to adjust when it is displayed and its reference URL.

Provide the Ad ID in 'path_ad', select the new category and type under 'body_category' and 'body_type', set the new URL in 'body_url', optionally set additional fields, and execute the operation to update the advertisement.

Links

Discussion