Update Brand Asset

📘

URL: PUT /api/v1/brand_assets

Notes:

  • Updates to headlineText, clickURL, or brands will change reviewStatus to pending
  • You can't update a brand asset in the following scenarios:
    • When a review is pending for the given brand asset
    • When the brand asset is associated with a campaign
    • When the brand asset is rejected

Query Parameters

ParameterDescriptionTypeRequiredPossible Values
advertiserIdThe ID of the advertiserintegerYUnique advertiser ID

Request Parameters

ParameterNotesTypeRequiredPossible Values
brandAssetIDID of the brand assetintegerYA valid brand asset ID
promotedBrandBrand that will be shown in the ad as “Sponsored by brand”stringYValid brand name
Note: The character limit is 35 characters
associatedBrandsAll brands to feature in your Sponsored Brands adstringYValid brand name
Note: The character limit is 255 characters
brandAssetNameName of the brand assetstringNThe selected image must meet the following requirements:
  • File format: JPG or PNG
  • Maximum file size: 1MB
  • Aspect ratio: 16:9
  • Dimensions: Minimum of 1200x628px or larger
headlineTextCustom headline text showcasing why customers should buy your productsstringNPiece of text that explains your brand value within following constraints:
  • It should be max. 45 characters
  • It is recommended to NOT use all special characters in this field
clickUrlThe website address that a visitor lands on when he/she clicks on the ad. stringNClickable URL must be a https://www.walmart.com URL that displays product(s) for the advertised brand.

It can be either of the following:
  1. Search Page
  2. Browse Page
  3. Brand Shop
  4. Brand Shelf

Headers

Header NameDescriptionRequiredValues
AuthorizationThe token will provide you the access to the API. It is same for all advertisers you access through the API.YPlease utilize the generated auth_token shared with you at the time of partner onboarding from the Getting Started Guide
WM_CONSUMER.IDWe will provide you the consumer ID to access the API. It is same for all advertisers you access through the API.   YPlease use the generated ConsumerId shared with you at the time of partner onboarding. Refer to the Getting Started Guide for more information
WM_SEC.AUTH_SIGNATUREAuth signature as an API key.YUse the signature generator code from Getting Started Guide to generate this value
WM_SEC.KEY_VERSIONWe will provide you with the KEY VERSION to access the API. It is same for all advertisers you access through the API.Y1
WM_CONSUMER.intimestampTimestamp for which the auth signature is generated. Use Unix epoch format for the timestamp.YUse the signature generator code from Getting Started Guide to generate this value

Sample Request

curl -X PUT \ 'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v1/brand_assets?advertiserId=400000' \ --header 'accept: application/json' \ --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' \ --data '[ { "brandAssetId": 12345, "brandAssetName": "Brand Name to be updated", "promotedBrand": "main brand", "associatedBrands": ["brand1", "brand2"], "headlineText":"Example Headline Text", "clickUrl":"https://www.walmart.com/2" }, { "brandAssetId": 23456, "brandAssetName": "Brand Name to be updated23", "promotedBrand": "main brand", "associatedBrands": ["brand1", "brand3"], "headlineText":"Example Headline Text2", "clickUrl":"https://www.walmart.com/3" } ]'

Response

ParameterDescriptionType
brandAssetIdThe ID of the brand asset to be updatedinteger
codeThe response code can have following values:  success, failure

Click here for more information on API Status Codes and Errors
string
detailsDetails of the error if value of response code is failure.string

Sample Response

[ { "brandAssetId": 10101, "code": "success", "details": "" }
]