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
 | Parameter | Parameter Description | Type | Required | Possible Values | 
|---|---|---|---|---|
| advertiserId | ID of advertiser | integer | Y | Unique numeric identifier | 
| snapshotId | ID of snapshot | string | Y | A 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
 | Element | Description | Type | 
|---|---|---|
| code | The response code can have following values: 
 Click here for more information about Status Codes and Errors | string | 
| details | URL of the snapshot file once jobStatus reaches to state “done” | string | 
| snapshotId | ID of the snapshot to be retrieved | string | 
| jobStatus | It is an indicator to confirm status of snapshot generation The possible values of jobStatus are: pending,processing,done,failed,expired | string | 
Note
- TTL (Time to Live) for files generated is one day
- 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
 
Updated 8 months ago
