Add Keywords to Existing Keyword Bidded Campaign

Description

Add more keywords to already existing keyword bidded campaign with help of this method. You can add your own keywords as well.

URL: ​POST/api/v1/keywords

Query Parameters

ParameterNotesTypeRequired Possible Values
campaignIdID of the campaign integerYUnique numeric identifier
adGroupIdID of the ad group that is part of the above campaignintegerYUnique numeric identifier
stateState of the keywordstringYState values can be:enabled, paused, archived
keywordTextText that defines the keywordstringYString value apt to the description of item
matchTypeMatching criteria for the keywords.stringYValues can be: exact, phrase, broad
bidMaximum cost per click for the keyworddoubleYValid bid value.
  • Note: Minimum bid amount is:
    • $0.30 for keyword bidding campaigns
    • $0.20 limit is for Auto bid campaigns
    • $1 for Sponsored Brands campaigns
    • $1.30 for Sponsored Videos campaigns
For a keyword bid, maximum bid amount should not exceed $100.
Bid amount will be restricted to first two decimal places for advertisers.
Any decimal digit beyond the first 2 digits will be truncated without rounding off  

Sample Request

curl -X POST \
'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v1/keywords' \
--header 'Authorization: Bearer <auth_token>' \ --header 'accept: application/json' \
--header 'WM_SEC.AUTH_SIGNATURE: ***********' \
--header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \
--header 'WM_CONSUMER.intimestamp: 1565309779' \
--header 'Content-Type: application/json' \
--data '{ "campaignId": 123456, "adGroupId": 2355, "state": "enabled", "keywordText": "string1", "matchType": "exact", "bid": .70 }'

Response

Element DescriptionType
codeThe response code can have following values: success, failurestring
detailsDetails of the error if value of response code is failurestring
keywordIdID of the keywordinteger
keywordTextText that defines the keywordstring

Sample Response

[ { "code": "success", "details": " ", "keywordId": 600003, "keywordText": "text1" }
]