Retrieve campaign file URL
This endpoint retrieves the URL for uploaded campaign assets for banners, banner X, and brand page campaigns. The URL is generated based on the specified file ID and file type.
description: "This endpoint retrieves the URL for uploaded campaign assets for banners, banner X, and brand page campaigns. The URL is generated based on the specified file ID and file type."
Retrieve campaign file URL
This endpoint retrieves the URL for uploaded campaign assets for banners, banner X, and brand page campaigns. The URL is generated based on the specified file ID and file type.
For accessing the API a valid JWT jwt must be passed in all queries in the 'Authorization' header. The following syntax must be used in the 'Authorization' header. (Bearer xxx.yyy.zzz)
The details of the retrieved file.
The number of seconds until the public URL link expires. The default expiration time is 3600 seconds.
3600The unique ID of the file for which the URL is retrieved.
1ceee624-7c87-4e98-9995-042da2a32525The public URL of the file corresponding to the given file ID.
https://storage.googleapis.com/banner-images-pending/.../path-to-public-imageThere was a problem with input.
Login failed or token not valid.
Access denied due to insufficient permissions.
An unexpected error response.
POST /v3/campaign-file-url HTTP/1.1
Host: campaign.<env>.citrusad.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 236
{
"fileUrl": {
"campaignFileType": "CAMPAIGN_FILE_TYPE_BANNER_X_IMAGE",
"contentStandardId": "content_standard_001",
"fileId": "1ceee624-7c87-4e98-9995-042da2a32525",
"managerTeamId": "manager_team_67890",
"slotId": "slot_001",
"teamId": "Team-101"
}
}{
"expiry": 3600,
"fileId": "1ceee624-7c87-4e98-9995-042da2a32525",
"publicUrl": "https://storage.googleapis.com/banner-images-pending/.../path-to-public-image"
}
