Export - Tag Generation

Export APIs are available once a retail campaign has been successfully activated (status: ACTIVE).

The various methods for Tag generation are listed below:

  1. Export assets (retail campaign)
  2. Get export asset status (retail campaign)
  3. Download tags (retail campaign)
  4. Activate Campaign
  5. Get Trackers Type

Export assets (retail campaign)

Triggers an asynchronous export of generated creative assets for a retail campaign. Requires Campaigns_Create permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the account.
retailCampaignIdxintegerMandatorypathIndex of the retail campaign.

Sample Request

HTTP
Copy

Parameters

FieldData TypeRequirementDescription
assetExportTypeenum (string)MandatoryFormat of the exported assets. Values: png, jpg, gif, tiff, mp4.
resolutionenum (string)MandatoryExport resolution multiplier. Values: 1 (1×), 2 (2×). Note: 2× is only supported for png, jpg, gif.

Request Body

JSON
Copy

Response

Returns a MediaPlanV2 JSON object serialized via the explicit mediaPlanV2Format writer.

FieldData TypeDescription
queueIdstring/nullQueue ID of the export job (if queued asynchronously), otherwise null.
statusenum (string)Current export status. Values: INITIATED, PROCESSING, FAILED, COMPLETED, NOT_INITIATED_,_ FAILED TO_INITIATE.
messagestringHuman-readable status message.

Get export asset status (retail campaign)

Returns the current export status for one or more resolution/format combinations for a retail campaign. Requires Campaigns_Create permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the account.
retailCampaignIdxintegerMandatorypathIndex of the retail campaign.

Query Parameters

NameData TypeRequirementParameter TypeDescription
isPreviewExportbooleanOptionalfalseWhether to fetch status for preview exports instead of production exports
assetExportTypeenum (string)Optional--Filter by export format: png, jpg, gif, tiff, mp4
resolutionenum (string)Optional--Filter by resolution: 1 (1×), 2 (2×)

Sample Request

HTTP
Copy

Response

Returns a list of RetailExportMultiResolutionResponse objects, one per export format found.

FieldData TypeDescription
[].assetExportTypestringThe export format (e.g. png)
[].resolutionsResponsearrayList of per-resolution export status entries.
[].resolutionsResponse[].statusenum (string)Export status. Values: INITIATED, PROCESSING, FAILED, COMPLETED, FAILED_TO_INITIATE, ARCHIVED, AVAILABLE, NOT_INITIATED.
[].resolutionsResponse[].urlstringDownload URL for the exported ZIP (populated when status is COMPLETED or AVAILABLE)
[].resolutionsResponse[].resolutionintegerResolution multiplier (1 or 2)
[].resolutionsResponse[].statusMessagestringHuman-readable status message

Request Body

JSON
Copy

Download tags (retail campaign)

Downloads the ad tags for all ad units in a retail campaign as a CSV file. The file is named {campaignName}_tags.csv. Requires MediaPlan_Tags_Download permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the account.
retailCampaignIdxintegerMandatorypathIndex of the retail campaign.

Sample Request

HTTP
Copy

Response

Returns a CSV file download with the Content-Disposition header set to attachment; filename={campaignName}_tags.csv and content type application/x-download.

The CSV contains the ad tags for all ad units in the retail campaign.

Activate Campaign

This will activate the campaign for tag generation.

Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the advertiser account created on the platform.
retailCampaignIdxstringMandatorypathID of the retail campaigns.

Sample Request

HTTP
Copy

The Parameter:

accountId - is the Current account Id

retailCampaignIdx- is the Retail Campaign id

The trackerType array will be empty, if MOAT is not selected for that campaign.

Request Body

JSON
Copy

Sample Response

JSON
Copy

Get Trackers Type

This will get the tracker type associated with the retail media campaign.

Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the advertiser account created on the platform.
retailCampaignIdxstringMandatorypathID of the retail campaigns.

Sample Request

HTTP
Copy

The Parameter:

accountId - is the Current account Id

retailCampaignIdx- is the Retail Campaign id

The Get Tracker API will return all the trackers present and the trackers selected for this campaign.

Sample Response

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