Skip to content

ADC07 - Create Sponsored Product ad groups

Request

Read More
Bodyapplication/json
Array [
bidnumber, (with decimals), [ 0 .. 10000000000000000000 ]

Used when bid_mode = MANUAL. Amount of the bid

bid_modestringrequired

If AUTO, Ads will decide which bid to apply, else if MANUAL you have to define the amount in "bid" attribute, else if MANUAL_BY_PRODUCT you have to define the amount in ./products/add

Enum: "AUTO", "MANUAL", "MANUAL_BY_PRODUCT"

budgetnumber, (with decimals), [ 0 .. 10000000000000000000 ]required

Maximum amount the ad group is allowed to spend according to the selected budget type

budget_typestringrequired

Ad group budget type, DAILY or LIFETIME

Enum: "DAILY", "LIFETIME"

campaign_idstringrequired

Campaign Id

daypartingobject

Dayparting schedule. When null, the ad group delivers all the time.

end_datestring, (date)

When the ad group ends

keyword_targetingstringrequired

If AUTO, Ads will decide which keywords to target, else if MANUAL you have to add keywords with ../keywords/add

Enum: "AUTO", "MANUAL"

namestringrequired

Ad group name

product_selection_modestring

Used when product_targeting = MANUAL. If PRODUCT_SKU you have to add product SKUs with ../products/add, else IF OFFER_SKU you have to add offer SKUs

Enum: "PRODUCT_SKU", "OFFER_SKU"

product_targetingstringrequired

If AUTO, Ads will decide which products to sponsor, else if MANUAL you have to add products with ../products/add

Enum: "AUTO", "MANUAL"

start_datestring, (date)required

When the ad group starts

]
curl -i -X POST \
  https://retailmedia.mirakl.net/api/v1/sp/adgroups \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "bid": 1,
      "bid_mode": "MANUAL",
      "budget": 100,
      "budget_type": "DAILY",
      "campaign_id": "019011ef-6888-639f-b569-227f92df2069",
      "end_date": null,
      "keyword_targeting": "AUTO",
      "name": "Adgroup 2",
      "product_selection_mode": "PRODUCT_SKU",
      "product_targeting": "MANUAL",
      "start_date": "2024-07-29"
    }
  ]'

Responses

OK

Bodyapplication/json
failureArray of objects

List of ad groups that failed registration

successArray of objects

List of ad groups successfully registered

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