# Mirakl Ads APIs

{% partial file="/partial-content/product/ads/rest/publisher/openapi-description.md" /%}


## Servers

The URL of your server
```
https://your-service.mirakl.net
```

## Security

### bearerAuth

[object Object]

Type: http
Scheme: bearer
Bearer Format: JWT

## Download OpenAPI description

 - [Mirakl Ads APIs](https://developer.mirakl.com/_bundle/content/product/ads/rest/publisher/openapi3.yaml)

## Segment

 - [POST /api/v1/audiences/segments](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/segment/adas01.md)
 - [GET /api/v1/audiences/segments](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/segment/adas02.md): PaginationThis resource supports seek pagination (see documentation)
 - [DELETE /api/v1/audiences/segments](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/segment/adas04.md): DescriptionDeletes one or more publisher segments based on the provided segment IDs. This operation removes the segments and their associated populations.
 - [GET /api/v1/audiences/segments/{segmentId}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/segment/adas03.md)
 - [POST /api/v1/audiences/segments/population/files](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/segment/adas05.md): DescriptionUpload a CSV or GZIP file containing the segment population data. The maximum file size is 1GB. Use multipart/form-data with name file.Csv format: "user-key"
 - [POST /api/v1/audiences/segments/population](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/segment/adas06.md): DescriptionThis is a full replace import: the segment will contain only the members from the uploaded file. If the resulting deletions (existing members missing from the upload) exceed the configured
 - [GET /api/v1/audiences/segments/population/status/{trackingId}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/segment/adas07.md)
## Billing

 - [GET /api/v1/billing-report](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/billing/adb01.md): PaginationThis resource supports seek pagination (see documentation)Sort fieldssort field can have the following values:createdAt (Default) - Billing report creation date (asc by default)
 - [GET /api/v1/billing-report/{billingReportId}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/billing/adb02.md): DescriptionWhen the Leftover Offsite Google Shopping feature is active, Mirakl Ads generates a dedicated monthly billing report for offsite campaigns (buying_type: LEFTOVER_OFFSITE). This report follo
## Account

 - [GET /api/accounts](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/account/adc01.md): PaginationThis resource supports seek pagination (see documentation)Sort fieldssort field can have the following values:name (Default) - Account name (asc by default)type - Account type (asc by defaul
 - [GET /api/accounts/{accountId}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/account/adc02.md)
 - [GET /api/accounts/{accountId}/stores](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/account/adc03.md): PaginationThis resource supports seek pagination (see documentation)Sort fieldssort field can have the following values:name (Default) - Store name (asc by default)
 - [GET /api/accounts/{accountId}/terms-and-conditions/download](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/account/adc16.md)
## Campaign

 - [POST /api/v1/sp/campaigns](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/campaign/adc04.md)
 - [PUT /api/v1/sp/campaigns](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/campaign/adc05.md)
 - [GET /api/v1/sp/campaigns](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/campaign/adc06.md): PaginationThis resource supports seek pagination (see documentation)Sort fieldssort field can have the following values:createdAt (Default) - Campaign creation date (desc by default)startDate - Campai
 - [PATCH /api/v1/campaign-publisher-stores](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/campaign/adc17.md): DescriptionUpdates campaign rights for publisher-store pairs. Omitted or null rights, channels and permissions remain unchanged. Revoking self_service (true to false) schedules asynchronous deactivati
## Ad group

 - [POST /api/v1/sp/adgroups](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-group/adc07.md): Read MoreMore context
 - [PUT /api/v1/sp/adgroups](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-group/adc08.md): Read MoreMore context
 - [GET /api/v1/sp/adgroups](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-group/adc09.md): Read MoreMore contextPaginationThis resource supports seek pagination (see documentation)Sort fieldssort field can have the following values:createdAt (Default) - Ad group creation date (desc by defau
## Ad group products

 - [POST /api/v1/sp/products/add](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-group-products/adc10.md)
 - [POST /api/v1/sp/products/remove](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-group-products/adc11.md)
 - [GET /api/v1/sp/products](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-group-products/adc12.md)
## Ad group keywords

 - [POST /api/v1/sp/keywords/add](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-group-keywords/adc13.md)
 - [POST /api/v1/sp/keywords/remove](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-group-keywords/adc14.md)
 - [GET /api/v1/sp/keywords](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-group-keywords/adc15.md)
## Offer

 - [POST /api/v1/offers/files](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/offer/ado01.md): DescriptionOne API call per file to process. Multiple calls possible.Maximum file size: 1GB.Read MoreMore context
 - [POST /api/v1/offers](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/offer/ado02.md)
 - [GET /api/v1/offers/status/{trackingId}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/offer/ado03.md)
 - [GET /api/v1/offers/error-files/{trackingId}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/offer/ado04.md)
## Reporting

 - [POST /api/reports](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/reporting/adr01.md): DescriptionCreate a report request to generate a report. Supports multiple report types such as PRODUCT, KEYWORD, INVENTORY, DISPLAY, LEFTOVER_OFFSITE_GOOGLE_SHOPPING. Read MoreMore contextProduct rep
 - [GET /api/reports/status/{report_id}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/reporting/adr02.md): DescriptionGet the status of a specific report based on the report_id field in ADR01 response Read MoreMore context
 - [GET /api/reports/file/{report_id}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/reporting/adr03.md): DescriptionDownload the output of a specific report based on the urls field in ADR02 response Read MoreMore context
## Ad server

 - [POST /ads/v1](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/ad-server/ads01.md)
## Store

 - [POST /api/v1/stores/files](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/store/adst01.md): DescriptionOne API call per file to process. Multiple calls possible.Maximum file size: 1GB.
 - [POST /api/v1/stores](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/store/adst02.md)
 - [GET /api/v1/stores/status/{trackingId}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/store/adst03.md)
 - [GET /api/v1/stores/error-files/{trackingId}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/store/adst04.md)
## User

 - [POST /api/v1/users](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/user/adu01.md): DescriptionA maximum of 1000 users can be sent at once.
## Catalog

 - [POST /catalog/import](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/catalog/cat01.md): DescriptionCreates an asynchronous import task and returns its tracking ID for status an report queries.Regarding the input body, ignore the requirement level and refer to the user documentation here
 - [GET /catalog/import/status/{tracking_id}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/catalog/cat02.md): DescriptionReturns current status for the queried import task
 - [GET /catalog/import/report/{tracking_id}](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/catalog/cat03.md): DescriptionReturns a JSON array of errors/warnings if any, on a completed import task.
 - [GET /catalog/import/list](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/catalog/cat04.md): DescriptionReturns a list of all import tasks for the authenticated customer
## Offsite

 - [PATCH /api/v1/offsite-publisher-stores](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/offsite/ofs01.md): DescriptionRequires a publisher-group or supervisor token with SHOP scope. Supply publisher UUIDs and store public IDs. A maximum of 1000 items is accepted by default; multiple publishers may be inclu
## Tracking

 - [POST /1.1/json/T/t](https://developer.mirakl.com/content/product/ads/rest/publisher/openapi3/tracking/tr01.md): DescriptionThis endpoint is used for tracking displayed pages and clicks.
