Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Players > Ads → Copy An Ads

AI-generated

Summary

Copy An Ads operation creates a duplicate of a specified advertisement within a channel.

Inputs

  • authentication — Authentication method; either OAuth2 or API Key.
  • path_channel (required) — The ID of the channel containing the ad to copy.
  • path_player (required) — The ID of the player associated with the ad.
  • query_account_id (required) — The account identifier for the request.
  • queryParameters — Additional query parameters; optionally includes a 'with' parameter to load related resources.
  • body_id (required) — The ID of the ad to copy.
  • returnFullResponse — If true, the full API response is returned; otherwise only a summary is returned.

Output shape

a single ad object representing the copied advertisement

When returnFullResponse is false, only a summary is returned; when true, the complete API response is provided, which may include additional metadata and nested fields.

Examples

Example 1: Copy an ad in a given channel using the API Key authentication

authentication=apiKey; path_channel=123; path_player=456; query_account_id=789; body_id=101; queryParameters={}; returnFullResponse=false

Example 2: Copy an ad with full response details using OAuth2

authentication=oauth2; path_channel=123; path_player=456; query_account_id=789; body_id=101; queryParameters={}; returnFullResponse=true

Example 3: Copy an ad and include additional related resource data

authentication=oauth2; path_channel=123; path_player=456; query_account_id=789; body_id=101; queryParameters={with=related}; returnFullResponse=true

Links

Discussion