Update State and Bid of Existing Keywords
Description
You can update current state and bid of existing keywords using this method.
URL: PUT/api/v1/keywords
Query Parameters
Parameter | Notes | Type | Required | Possible Values |
---|---|---|---|---|
keywordId | ID of the keyword | integer | Y | Unique numeric identifier |
state | State of the keyword | string | N | State values can be: enabled, paused, archived |
bid | Maximum cost per click for the keyword | double | N | Valid bid value.
Any decimal digit beyond the first 2 digits will be truncated without rounding off. For a keyword bid, maximum bid amount should be less than or equal to $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 '{ "keywordId": 345, "state": "enabled", "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 |
Sample Response
[ { "code": "success", "details": " ", " keywordId": 600003 }
]
Updated about 2 months ago