Retrieve Snapshots

You can retrieve report and entity snapshots by providing snapshot id and advertiser id for an advertiser.

📘

URL: GET/api/v1/snapshot

Note:

  • The output is generated in a gzip file
  • The file type in gzip can be either JSON or CSV based upon the snapshot type requested. You can request the following type of snapshots:
    • Entity Snapshot
    • Report Snapshot
  • Each advertiser has a unique advertiser ID for Onsite & Offsite display
  • To download reports and entity snapshots for Onsite and Offsite display ads separately, the appropriate advertiser ID must be provided in the API call
_

Query Parameters

ParameterParameter DescriptionTypeRequiredPossible Values
advertiserIdID of advertiserintegerYUnique numeric identifier
snapshotIdID of snapshotstringYA valid snapshot ID

Sample Request

curl -X GET\
'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/snapshot?advertiserId=600001&snapshotId=1' \
--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 'accept: application/json' \ 

Response

ElementDescriptionType
codeThe response code can have following values:

  • success
  • failure
string
detailsURL of the snapshot file once jobStatus reaches to state “done”string
snapshotIdID of the snapshot to be retrievedstring
jobStatusIt is an indicator to confirm status of snapshot generation
The possible values of jobStatus are: pending, processing, done, failed, expired
string

📘

Note

  1. TTL (Time to Live) for files generated is one day
  2. For added security, please pass below parameters in https://advertising.walmart.com/display/file/{fileId}call to download the files:
    • advertiserId – As a Query String parameter
    • Authorization – In the Request Header
    • WM_CONSUMER.ID – In the Request Header
    • WM_CONSUMER.intimestamp – In the Request Header
    • WM_SEC.AUTH_SIGNATURE – In the Request Header
    • WM_SEC.KEY_VERSION: – In the Request Header