Create Sponsored Brands Profile for Campaign

Note: The v1 endpoint is no longer supported and is now deprecated. Please use v2 for all usage.

Using v2 URL, you can create dual Sponsored Brands profiles for a campaign.

📘

v2 URL: ​POST /api/v2/sba_profile

  • First profile created will be enabled by default
  • Second profile created will be disabled by default
  • Any new profile will be created as “pending review” by default
  • Only enabled profile will serve on a live campaign
  • Only two profiles can be created at max per ad group
  • If you create two profiles for an ad group then:
    • Only 1 profile can be enabled at a time
    • To disable an “enabled” profile, you need to enable the “disabled” profile

Query Parameters

ParameterNotesTypeRequiredPossible Values
campaignId  The ID of the campaignintegerYA valid campaign ID
adGroupIdThe ID of the ad groupintegerYA valid ad group ID
searchAmpNameThe name of the Brand. This field should not be left empty.stringYName 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
headlineTextCustom headline text showcasing why customers should buy your products. This field is required.stringYPiece 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 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.stringY

Clickable URL must be https://www.walmart.com URL that displays product(s) for the advertised brand. It can be either of:

  1. Search Page
  2. Browse Page
  3. Brand Shop
  4. Brand Shelf

clickUrl requirements:

  1. Any “:” in the URL should be replaced with “%3A”
  2. Any “+” in the URL should be replaced with “%20″
  3. Any “||” in the URL should be replaced with “%7C%7C”
  4. URL query string should not contain “typeahead=” parameter
  5. For 3P sellers, add hidden_facet=retailer_id%3A<seller_id>to the end of clickURL

Note: If requirements not met, the request will fail with encode issue.

Sample Request 1

curl -X POST \
'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

ElementDescriptionType
codeThe response code can have following values: success, failurestring
detailsDetails of the error if value of response code is failurestring
sbaProfileIdID of the Sponsored Brands profileinteger

Sample Response

[ { "code": "success", "details": "", " sbaProfileId ": 600001 }, { "code": "failure", "details": "error message", " sbaProfileId ": 0 }
]