Media Channels

The various methods for Media Channels are listed below:

  1. Get all media channels by account (template campaign)
  2. Create media channels
  3. Update media channel
  4. Get all media channels (by org)
  5. Get media channel configuration (by org)
  6. Delete media channel

Get all media channels by account (template campaign)

Returns all media channels associated with a specific template campaign under an account. The account must belong to a Retailer Org. Supports pagination via ParamInfo.

Path Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the account (must belong to a Retailer Org).
templateCampaignIdxintegerMandatorypathIndex of the template campaign.

Query Parameters

NameData TypeRequirementParameter TypeDescription
offsetintegerOptionalqueryPagination offset (e.g. 0).
limitintegerOptionalqueryNumber of items per page (e.g. 25).

Sample Response

Returns a paginated JSON object with a mediaChannels array. The pagination fields (count, next, previous) are controlled by ParamInfo (default: offset=0, limit=25).

FieldData TypeDescription
mediaChannelsarrayList of media channel objects
mediaChannels[].idxintegerUnique index of the media channel
mediaChannels[].namestringName of the media channel
mediaChannels[].adServerIdstringID of the associated ad server
mediaChannels[].adServerNamestring/nullName of the associated ad server
mediaChannels[].statusenum (string)Status of the media channel. Values: Enabled, Disabled, Deleted
mediaChannels[].typestringType of the media channel (from MediaChannelType).
mediaChannels[].logoUrlstring/nullURL of the media channel logo
mediaChannels[].activationConfigurationobjectActivation settings for the media channel.
mediaChannels[].activationConfiguration.tagGenerationbooleanWhether tag generation is enabled
mediaChannels[].activationConfiguration.creativeGenerationbooleanWhether creative generation is enabled.
mediaChannels[].additionalConfigurationstring/nullAdditional configuration (JSON string or null).
mediaChannels[].isUtilizedboolean/nullWhether the media channel is currently in use.
countintegerTotal number of matching media channels.
nextstring/nullURL for the next page of results.
previousstring/nullURL for the previous page of results.

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Create media channels

Creates a new media channel for a retailer org. Requires MediaChannel_All permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
orgIdstringMandatorypathID of the retailer org.

Parameters

FieldData TypeRequirementDescription
namestringMandatoryDisplay name of the media channel.
adServerIdstringMandatoryID of the ad server associated with this channel.
typeenum (string)MandatoryChannel type. Values: On-site, Off-site, Social, In-store/DOOH, Hybrid.
activationConfigurationobjectMandatoryControls how the channel is activated
activationConfiguration.tagGenerationbooleanMandatoryWhether tag generation is enabled for this channel.
activationConfiguration.creativeGenerationbooleanMandatoryWhether creative generation is enabled for this channel.
additionalConfigurationobjectOptionalArbitrary JSON object for channel-specific additional settings (e.g. DSP configuration).

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

JSON
Copy

Update media channel

Updates an existing media channel for a retailer org. Requires MediaChannel_All permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
orgIdstringMandatorypathID of the retailer org
mediaChannelIdxintegerMandatorypathIndex of the media channel to update

Parameters

FieldData TypeRequirementDescription
statusstringOptionalNew status for the channel (e.g. Active, Inactive)
activationConfigurationobjectOptionalUpdated activation configuration
activationConfiguration.tagGenerationbooleanOptionalWhether tag generation is enabled
activationConfiguration.creativeGenerationbooleanOptionalWhether creative generation is enabled
additionalConfigurationobjectOptionalUpdated arbitrary JSON object for channel-specific settings

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

JSON
Copy

Get all media channels (by org)

Returns a paginated list of all media channels for a retailer org. Requires MediaChannel_All permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
orgIdstringMandatorypathID of the retailer org.

Query Parameters

NameData TypeRequirementDefaultDescription
offsetintegerOptional0Number of records to skip.
limitintegerOptional25Maximum number of records to return.

Sample Response

Returns a paginated MediaChannelListResponse object.

FieldData TypeDescription
mediaChannelsarrayList of media channel objects
mediaChannels[].idxintegerInternal index of the media channel.
mediaChannels[].namestringDisplay name of the media channel.
mediaChannels[].adServerIdstringID of the associated ad server
mediaChannels[].adServerNamestring/nullDisplay name of the associated ad server.
mediaChannels[].statusstringCurrent status of the channel.
mediaChannels[].typestringChannel type value (e.g. On-site, Off-site, Social, In-store/DOOH, Hybrid).
mediaChannels[].logoUrlstring/nullURL of the channel logo.
mediaChannels[].additionalConfigurationstring/nullJSON string of additional configuration for the channel.

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Get media channel configuration (by org)

Returns the stored configuration details for a specific media channel. Requires MediaChannel_All permission..

Path Parameters

NameData TypeRequirementParameter TypeDescription
orgIdstringMandatorypathID of the retailer org.
mediaChannelIdxintegerMandatorypathIndex of the media channel.

Sample Response

FieldData TypeDescription
mediaChannelInfoobjectParsed JSON object containing the full media channel configuration details

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Delete media channel

Deletes a media channel from a retailer org. Requires MediaChannel_All permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
orgIdstringMandatorypathID of the retailer org.
mediaChannelIdxintegerMandatorypathIndex of the media channel to delete

Sample Request

HTTP
Copy

Sample Response

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard