Create Audit Snapshot
You can create audit snapshots for selected entities for an advertiser using this method. You can retrieve audit snapshots for a window of last thirty days.
Query Parameters
| Parameter | Description | Type | Required | Possible Values |
|---|---|---|---|---|
| advertiserId | The ID of the advertiser | integer | Y | A valid advertiser ID |
| auditRequests | Request for audit information. Only one audit request is allowed per entity type per audit snapshot. This is an array holding following elements: entityType: Type of the entity for which you want to generate audit snapshot. entityIds: list of Ids of the entity type for which you want to generate audit snapshot. Note: 1) Max size of entityId list is 10. 2) Entity Ids should not be duplicate. 3) This field is required and must not be left empty fromDate: The starting date of the time frame for which you want snapshot of selected entities. toDate: The end date of the time frame for which you want snapshot of selected entities | auditRequests:string entityType: string entityIds: numeric fromDate: date toDate: date | Y |
|
| format | Choose the format type for your snapshot | string | N | Types of Format: gzip, zip Note: gzip allows decompression while file is being transferred over the network, hence it is a faster and simpler way to download the reports. You will receive snapshot in zip format if no specific format is selected. |
Sample Request 2
https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v1/snapshot/audit" \
--header "Authorization: Bearer <auth_token> \ --header "accept: application/json” \
--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"\
--data '{ "advertiserId": "600000", "auditRequests": [ { "entityType": "keyword", "entityIds": [600001, 600003], "fromDate": "2020-07-03", "toDate": "2020-07-04" } ], "format": "gzip" }'
Sample Request 3
https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v1/snapshot/audit" \
--header "Authorization: Bearer <auth_token> \ --header "accept: application/json” \
--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"\
--data '{ "advertiserId": "600000", "auditRequests": [ { "entityType": "keyword", "entityIds": [600005, 600006], "fromDate": "2020-07-03", "toDate": "2020-07-04" } ], "format": "gzip" }'
Updated 16 days ago
Did this page help you?
