Update Existing Ad Group
Make changes in an existing ad group.
URL: PUT/api/v1/adGroups
Query Parameters
Parameter | Description | Type | Required | Possible Values |
---|---|---|---|---|
adGroupId | The ID of the ad group. Required only if updating existing ad group | integer | Y | Unique numeric identifier |
name | The name of the ad group | string | N | Relevant string value representing the ad group |
status | Specified status of ad group | string | N | Status values can be:
|
Sample Request
curl -X PUT \
'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v1/adGroups' \
--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 ' { "adGroupId": 500044, "name": "AdGroup 5", "status": "enabled” }'
Response
Element | Description | Type |
---|---|---|
code | Shows status of the ad group update operation Values: success, failure | string |
details | Details of the update | string |
adGroupId | Id of the ad group being updated | integer |
Sample Response
[ { "code": "success", "details": "", "adGroupId": 500003 } { "code": "failure", "details": " Ad Group Id validation failed", "adGroupId": 0 }
]
Updated about 2 months ago