Skip to content

ADC08 - Update 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_modestring

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 ]

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

budget_typestring

Ad group budget type, DAILY or LIFETIME

Enum: "DAILY", "LIFETIME"

campaign_idstringrequired

Campaign Id

daypartingobject

Dayparting schedule. Omit to keep the current value, send null to clear.

end_datestring, (date)

When the ad group ends

idstringrequired

Ad group Id

keyword_targetingstring

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

Enum: "AUTO", "MANUAL"

namestring

Ad group name

product_targetingstring

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)

When the ad group starts

statusstring

Ad group status. ACTIVE, INACTIVE or DRAFT

Enum: "DRAFT", "INACTIVE", "ACTIVE"

]
curl -i -X PUT \
  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": "{{campaign_id}}",
      "end_date": null,
      "id": "{{adgroup_id}}",
      "keyword_targeting": "AUTO",
      "name": "Adgroup 1",
      "product_targeting": "AUTO",
      "start_date": "{{$isoTimestamp}}",
      "status": "ACTIVE"
    }
  ]'

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": [ { … } ] }