Update Ad Item
Update an existing ad item in an ad group using PUT operation.
URL: PUT/api/v1/adItems
Request Parameters
Parameter | Notes | Type | Required | Possible Values |
---|---|---|---|---|
campaignId | ID of the campaign where the ad group belongs | integer | Y | Unique numeric identifier |
adGroupId | ID of the ad group that is part of the campaign | integer | Y | Unique numeric identifier |
itemId | ID of the product that is being added to ad group | string | Y | String identifier |
bid | Maximum cost per click for the item in an auto bidding campaign. Note: Bids on keywords in keyword-bid campaign supersede the item bid you set for items in keyword-bid campaign | double | N | Bid values can be:
|
status | Specified status of ad item | string | Y | Status values can be: enabled , disabled , deleted Note: You cannot delete an item from a campaign that has gone live |
Sample Request
curl -X PUT \ 'https://developer.api.stg.walmart.com/api- proxy/service/WPA/Api/v1/api/v1/adItems' \
--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": 600001, "adGroupId": 600003, "itemId": "45673892", "bid": .6, "status": "enabled" }'
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 |
adItemId | ID of the ad item | integer |
Sample Response
[ { "code": "success", "adItemId": "600002", "details": "" }, { "code": "failure", "adItemId": "0", "details": "Bid should be higher than: 5.0" }
Updated about 2 months ago