Update Sponsored Brands Profile for Campaign
Update an existing Sponsored Brands profile for campaign.
You can only update the enabled Sponsored Brands profile by using URL v1. Using v2 URL, you can update both existing Sponsored Brands profiles for campaign if it has two profiles (one is enabled, and the other is disabled).
Note: You can update Sponsored Brands profile for a live Sponsored Brands campaign as well.
To update the enabled Sponsored Brands profile in a live campaign, you will have to pause the campaign, update the profile, and submit it for review. To avoid pausing the campaign, we recommend that you create a 2nd profile with the desired changes using v2 URL, submit a review request for its approval, and enable it once it is approved.
v1 URL: PUT/api/v1/sba_profile
Query Parameters
Parameter | Notes | Type | Required | Possible Values |
---|---|---|---|---|
campaignId | The ID of the campaign | integer | Y | A valid campaign ID |
adGroupId | The ID of the ad group | string | Y | A valid ad group ID |
searchAmpName | The name of the Brand. This field is required. | string | Y | Name of the brand that is part of this profile. It should be max. 35 characters all of which are NOT recommended to be special characters |
headlineText | Custom headline text showcasing why customers should buy your products This field is required. | string | Y | Piece of text that explains your brand value within following constraints:
|
clickUrl | The destination URL or landing page URL. It is the website address that a visitor lands on when he/she clicks on the ad. This field is required. | string | Y | Clickable URL must be https://www.walmart.com URL that displays product(s) for the advertised brand. It can be either of:
clickUrl requirements:
|
Sample Request
curl -X PUT \
'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v2/sba_profile' \
--header 'Authorization: Bearer <auth_token>' \
--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' \
--header 'accept: application/json' \
--data '{ "campaignId": 12345, "adGroupId": 54321, "searchAmpName": "Great Value", "headlineText": "This is Great Value", "clickUrl": "https://www.walmart.com" }'
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 |
sbaProfileId | ID of the Sponsored Brands profile | integer |
Sample Response
[ { "code": "success", "details": "", " sbaProfileId ": 50001 }, { "code": "failure", "details": "error message", " sbaProfileId ": 0 }
]
v2 URL: PUT/api/v2/sba_profile
Note:
- None of the profiles can be updated if a campaign review is pending or in-progress
- An approved profile will be switched to pending review when it is updated
Query Parameters
Parameter | Notes | Type | Required | Possible Values |
---|---|---|---|---|
campaignId | The ID of the campaign | integer | Y | A valid campaign ID |
adGroupId | The ID of the ad group | string | Y | A valid ad group ID |
searchAmpName | The name of the Brand. This field is required. | string | Y | Name of the brand that is part of this profile. It should be max. 35 characters all of which are NOT recommended to be special characters |
headlineText | Custom headline text showcasing why customers should buy your products This field is required. | string | Y | Piece of text that explains your brand value within following constraints:
|
clickUrl | The destination URL or landing page URL. It is the website address that a visitor lands on when he/she clicks on the ad. This field is required. | string | Y | Clickable URL must be https://www.walmart.com URL that displays product(s) for the advertised brand. It can be either of:
clickUrl requirements:
|
sbaProfileId | ID of the Sponsored Brands profile | integer | Y | A valid Sponsored Brands profile ID. |
status | Indicator of the enabled state of Sponsored Brands profile | string | N | enabled , disabled |
Sample Request
curl -X PUT \
'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v2/sba_profile' \
--header 'Authorization: Bearer <auth_token>' \
--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' \
--header 'accept: application/json' \
--data '{ "campaignId": 12345, "adGroupId": 54321, "searchAmpName": "Great Value", "headlineText": "This is Great Value", "clickUrl": "https://www.walmart.com", "sbaProfileId": 600001, "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 |
sbaProfileId | ID of the Sponsored Brands profile | integer |
Sample Response
[ { "code": "success", "details": "", "sbaProfileId": 600001 }, { "code": "failure", "details": "error message", "sbaProfileId": 0 }
]
Updated about 2 months ago