Add Keywords to Existing Keyword Bidded Campaign
Add more keywords to already existing keyword bidded campaign with help of this method. You can add your own keywords as well.
Request Parameters
| Parameter | Notes | Type | Required | Possible Values |
|---|---|---|---|---|
| campaignId | ID of the campaign | integer | Y | Unique numeric identifier |
| adGroupId | ID of the ad group that is part of the above campaign | integer | Y | Unique numeric identifier |
| state | State of the keyword | string | Y | State values can be:enabled, paused, archived |
| keywordText | Text that defines the keyword | string | Y | String value apt to the description of item |
| matchType | Matching criteria for the keywords. | string | Y | Values can be: exact, phrase, broad |
| bid | Maximum cost per click for the keyword | double | Y | Valid bid value.
For a keyword bid, maximum bid amount should not exceed $100. |
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 | Description | Type |
|---|---|---|
| code | The response code can have following values: success, failure | string |
| details | Details of the error if value of response code is failure | string |
| keywordId | ID of the keyword | integer |
| keywordText | Text that defines the keyword | string |
Sample Response
[ { "code": "success", "details": " ", "keywordId": 600003, "keywordText": "text1" }
]
Updated about 2 months ago
Did this page help you?
