Skip to content

ADC13 - Target keywords on ad groups

Request

Bodyapplication/json
Array [
ad_group_idstringrequired

Ad group id

bid_multipliernumber, (with decimals)

Bid multiplier applied to the keyword, between 0.1 and 10 inclusively.
When omitted, the keyword is targeted with a neutral multiplier of 1.

campaign_idstringrequired

Campaign id

keywordstringrequired

Targeted keyword

keyword_typestring

Determine the type of keyword to add.
Note that NEGATIVE_KEYWORD type requires publisher to have Negative Keywords option enabled.

Enum: "KEYWORD", "NEGATIVE_KEYWORD"

Default:"KEYWORD"
matchstringrequired

Matching mode, EXACT only available

Enum: "EXACT"

]
curl -i -X POST \
  https://retailmedia.mirakl.net/api/v1/sp/keywords/add \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "ad_group_id": "01910831-4991-3581-928b-687525387c67",
      "campaign_id": "019011ef-6888-639f-b569-227f92df2069",
      "keyword": "caps",
      "match": "EXACT"
    }
  ]'

Responses

OK

Bodyapplication/json
failureArray of objects

List of keywords that failed registration

successArray of objects

List of keywords successfully targeted

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