Upload a campaign file
Use this endpoint to upload different types of campaign files. You can upload images for banners and banner X in jpeg, jpg, png, gif, PDF, or SVG formats. You may also upload content standard PDF files and content standard display logos. Ensure that logo files are in jpeg, jpg, or png format. New version available: Upload a campaign file - v4 is now available with enhanced features.
Use this endpoint to upload different types of campaign files. You can upload images for banners and banner X in jpeg, jpg, png, gif, PDF, or SVG formats. You may also upload content standard PDF files and content standard display logos. Ensure that logo files are in jpeg, jpg, or png format.
The unique identifier for the content standard, used to validate the image based on its metadata.
Specifies the unique slot within the content standard where the image will be placed. It ensures the image adheres to predefined slot requirements and validations. Examples include left_ribbon, top_banner, or side_panel.
The unique identifier of the campaign's team.
The unique identifier for a retailer-managed campaign's team. As a retailer, you can upload campaign file for the supplier team by specifying the managerTeamId. Ensure that API requests are authenticated with the retailer's bearer token
Specifies the type of image slot, which determines the role and placement of the image within the campaign.
Specifies the campaign file type: Supported types include: -
- CAMPAIGN_FILE_TYPE_BANNER_IMAGE: Image for your banner campaign. -
- CAMPAIGN_FILE_TYPE_BANNER_X_IMAGE: Image for your banner X campaign. -
- CAMPAIGN_FILE_TYPE_BANNER_X_CONTENT_STANDARD_DISPLAY_LOGO: Display logo for your banner X content standard file.
- CAMPAIGN_FILE_TYPE_BANNER_CONTENT_STANDARD_DISPLAY_LOGO: Display logo for your banner content standard file. -
- CAMPAIGN_FILE_TYPE_BANNER_X_CONTENT_STANDARD_PDF: Content standard PDF for your banner X campaign.
- CAMPAIGN_FILE_TYPE_BANNER_CONTENT_STANDARD_PDF: Content standard PDF for your banner campaign.
The campaign file to upload, which can include an image, content standard display logo, or content standard PDF for banners and banner X.
- Supported image formats are jpeg, jpg, png, gif, PDF, and SVG.
- Display logos must be in jpeg, jpg, or png format.
File uploaded successfully
The unique identifier of the uploaded file.
1ceee624-7c87-4e98-9995-042da2a32525The URL to access the file uploaded.
https://storage.googleapis.com/banner-images-pending/.../path-to-imageThere was a problem with input.
Invalid token error.
Invalid token error.
An unexpected error response.
POST /v3/campaign-file-upload?teamId=text&campaignFileType=CAMPAIGN_FILE_TYPE_BANNER_IMAGE HTTP/1.1
Host: campaign.citrusad.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17
{
"file": "binary"
}{
"fileId": "1ceee624-7c87-4e98-9995-042da2a32525",
"fileUrl": "https://storage.googleapis.com/banner-images-pending/.../path-to-image"
}
