Skip to main content

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. offset 0 based index of the first coupon to return in the response. The default is 0. limit The number of coupons to be returned. The default is 50.  

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.

Get the list of Coupons supported sizes

Supported sized for the coupons will be returned for the designated adset 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.

Creating A New Coupon

A new coupon can be created for a specific advertiser by making a POST call to the coupons endpoint. The request body should specify the name, adset id, description (optional) and the coupon attributes. Coupon Attributes   landingPageUrl Web redirection of the landing page url. startDate The date when the Coupon will be launched. endDate The date when the coupon will stop being displayed. If the end date is not specified (i.e. null), the coupon will always be displayed. format Format of the coupon. Can be FullFrame or LogoZone. images List of slides images. showEvery Show the coupon every N seconds. Can be between 1 and 10. showDuration Show coupon for a duration of N seconds. Can be between 1 and 5. rotationsNumber Number of rotations fo the coupons. Can be between 1 to 10.
The API will return an array of the the name, adset id, description (optional) and the coupon attributes of the new coupon. Please note that the advertiser ID is required in the request URL.
   

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.
   

Deleting a coupon

A coupon can be deleted by specifying the coupon id and advertiser Id in the URL path of a DELETE 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.

Validation Errors

user-request-forbidden-advertiser
The user doesn’t have the permission to access the specified advertiser.
  user-request-forbidden-creative
The user doesn’t have the permission to access the specified creative.
  user-request-forbidden-ad
The user doesn’t have the permission to access the specified ad.
  invalid-action-with-managed-creative
The action cannot be performed on a managed service creative.
  invalid-action-with-managed-ad
The 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-image
One of the images provided is invalid. Please check the image requirements here
    invalid-redirection-url-image
The redirection URL specified doesn’t match the advertiser domain.
  invalid-html-tag
One of the HTML tags is not supported. Please check the list of supported ad servers here
    invalid-creative-request
Invalid request on the Creative endpoint.
  invalid-ad-request
Invalid request on the Ad endpoint.