Search Coupon
Retrieving Coupons for a Specific Advertiser
Coupons created through Criteo’s API will be returned for the designated advertiser ID. Only coupons created through API and Commerce Growth are returned. The API will return an array of the IDs, name, description (if specified) ad set ID, landing page URL, format, start date and end date (if specified) for the specified advertiser ID. Please note that the advertiser ID is required in the request URL. The offset and limit are optionals.offset0 based index of the first coupon to return in the response. The default is 0.
limitThe number of coupons to be returned. The default is 50. Response example:
JSON
Retrieving a Specific Coupon
Coupon created through Criteo’s API will be returned for the designated coupon ID. The API will return an array of the ID, type and coupon specific attributes for the specified coupon ID. Please note that the advertiser ID and coupon ID are required in the request URL. Response example:JSON
Get the list of Coupons supported sizes
Supported sized for the coupons will be returned for the designated ad set ID. The API will return an array of the supported sizes by format (LogoZone and FullFrame) for the specified adset ID. Please note that the advertiser ID and adset ID are required in the request URL.
Response example:
JSON
Creating A New Coupon
A new coupon can be created for a specific advertiser by making aPOST call to the coupons’ endpoint.The request body should specify the name, ad set ID, description (optional) and the coupon attributes.
Coupon Attributes
landingPageUrl Web redirection of the landing page url.
startDateThe date when the Coupon will be launched.
endDateThe date when the coupon will stop being displayed. If the end date is not specified (i.e. null), the coupon will always be displayed.
formatFormat of the coupon. Can be
FullFrame or LogoZone.
imagesList of slides images.
showEveryShow the coupon every N seconds. Can be between 1 and 10.
showDurationShow coupon for a duration of N seconds. Can be between 1 and 5.
rotationsNumberNumber of rotations for the coupons. The number can be between 1 and 10. Request example:
JSON
JSON
Updating a Coupon
The coupon start date and end date can be updated by making a PUT request to the coupons’ endpoint with a specific coupon ID and advertiser ID in the URL path. Request example:JSON
Deleting a coupon
A coupon can be deleted by specifying the coupon ID and advertiser ID in the URL path of aDELETE call to the coupons’ endpoint.
The API will return an array with the coupon ID that was deleted.
Preview a coupon
Coupon can be previewed for the designated coupon ID The API will return an array of the coupon HTML preview for the specified coupon ID. Please note that the advertiser ID and coupon ID are required in the request URL. Response example:JSON
Validation Errors
user-request-forbidden-advertiser The user doesn’t have the permission to access the specified advertiser.
user-request-forbidden-creativeThe user doesn’t have the permission to access the specified creative.
user-request-forbidden-adThe user doesn’t have the permission to access the specified ad.
invalid-action-with-managed-creativeThe action cannot be performed on a managed service creative.
invalid-action-with-managed-adThe action cannot be performed on a managed service ad.
invalid-creative-action-with-status The action cannot be performed due to the status of the creative.
invalid-imageOne of the images provided is invalid. Please check the image requirements here
invalid-redirection-url-imageThe redirection URL specified doesn’t match the advertiser domain.
invalid-html-tagOne of the HTML tags is not supported. Please check the list of supported ad servers here
invalid-creative-requestInvalid request on the Creative endpoint.
invalid-ad-requestInvalid request on the Ad endpoint.