Skip to content

ADC05 - Update sponsored product campaigns

Request

Bodyapplication/json
Array [
budgetnumber, (with decimals)

Maximum amount the campaign is allowed to spend according to the selected budget type

Example:100
budget_typestring

Campaign budget type

Enum: "DAILY", "LIFETIME"

Example:"DAILY"
endstring, (date-time)

Beginning of the day (midnight) when the campaign ends

Example:"2024-01-31T23:00:00Z"
end_datestring, (date)

When the campaign ends (deprecated)

Example:"2024-01-31"
idstringrequired

Campaign id

insertion_orderstring

Insertion order of the campaign

namestring

Campaign name

opt_out_enabledboolean

Enable or disable opt-out for this campaign. Omit to keep current value.

Example:true
startstring, (date-time)

Beginning of the day (midnight) when the campaign starts

Example:"2024-01-30T23:00:00Z"
start_datestring, (date)

When the campaign starts (deprecated)

Example:"2024-01-31"
statusstring

Campaign status

Enum: "ACTIVE", "INACTIVE"

Example:"ACTIVE"
]
curl -i -X PUT \
  https://retailmedia.mirakl.net/api/v1/sp/campaigns \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "budget": 100,
      "budget_type": "DAILY",
      "end": "2024-01-31T23:00:00Z",
      "end_date": "2024-01-31",
      "id": "430cc6ab-e5d1-4b2f-890a-de7eb609e917",
      "insertion_order": "S123",
      "name": "My campaign",
      "start": "2024-01-30T23:00:00Z",
      "start_date": "2024-01-31",
      "status": "ACTIVE"
    }
  ]'

Responses

OK

Bodyapplication/json
failureArray of objects

List of campaigns that failed registration

successArray of objects

List of campaigns successfully registered

Response
{ "failure": [ { … } ], "success": [ { … } ] }