Skip to content

ADC10 - Target products on ad groups

Request

Bodyapplication/json
Array [
ad_group_idstringrequired

Ad group id

campaign_idstringrequired

Campaign id used to make sure you're targeting the right ad group

idstringrequired

Offer of product SKU

id_typestringrequired

If OFFER_SKU, you have to mention offer ids (skus), else product ids (skus) if PRODUCT_SKU

product_bidnumber, (with decimals)

Amount of the individual product bid. Used when bid_mode = MANUAL_BY_PRODUCT

]
curl -i -X POST \
  https://retailmedia.mirakl.net/api/v1/sp/products/add \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "ad_group_id": "{{adgroup_id}}",
      "campaign_id": "{{campaign_id}}",
      "id": "1002",
      "id_type": "OFFER_SKU",
      "product_bid": 1.2
    }
  ]'

Responses

OK

Bodyapplication/json
failureArray of objects

List of products that failed registration

successArray of objects

List of products successfully targeted

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