Retrieve Campaign Recommendations Snapshot

Note: The format of the report is CSV, and it will be enclosed in “gzip” file format by default.

Definition of Columns in the Campaign Recommendations Report

ColumnDescriptionType
reportDateDate on which the report was generateddate
campaignIdCampaign Id for desired recommendations reportInteger
budgetTypeThe budget type of the campaign for which the report was requestedstring
missedClicksLowerThis field provides cumulative lower range of missed clicks over last 7 days for a campaign which went out of budget (OOB) for T-1 timeinteger
missedClicksUpperThis field provides cumulative upper range of missed clicks over last 7 days for a campaign which went out of budget (OOB) for T-1 timeinteger
missedImpressionsLowerThis field will provide cumulative lower range of missed impressions over last 7 days for a campaign which went out of budget (OOB) for T-1 timeinteger
missedImpressionUpperThis field will provide cumulative upper range of missed impressions over last 7 days for a campaign which went out of budget (OOB) for T-1 timeinteger
suggestedLatestDailyBudgetThis field provides the suggested latest daily budget recommendation to be applied to a campaign so that the campaign does not go out of budget.double
suggestedLatestTotalBudgetThis field provides the suggested latest total budget recommendation to be applied to a campaign so that the campaign does not go out of budget.double
avgCapOutTimeThe average cap out time is the average time for which the campaign went out of budget in the last 7 days. This value is represented in military time e.g. 1000 refers to 10 AM.integer

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
Content-TypeFormat of the message bodyYapplication/json

Query Parameters

ParameterDescriptionTypeRequiredPossible Values
advertiserIdThe ID of the advertiserintegerYUnique numeric identifier
snapshotIdThe ID of the snapshotstringYUnique alpha numeric identifier

Sample Request

curl -X GET\ 'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v2/snapshot?advertiserId=600001&snapshotId=10' \ --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' \ 

Response

ElementDescriptionType
snapshotIdId of the snapshot to be retrieved  string
jobStatusIt is an indicator to confirm status of snapshot generation. The possible values of jobStatus are: pending, processing, done, failed, expiredstring
detailsProvides download URL when jobStatus reaches done statestring
codeThe response code can have following values: success, failurestring

Sample Response

 { "code": "success", "snapshotId": "12", "details": "", "jobStatus": "pending" }

Example of the content of snapshot with id “10”. The file format is “CSV”:

startDateendDatecampaignIdbudgetTypemissedClicksLowermissedClicksUppermissedImpressionsLowermissedImpressionsUppersuggestedLatestDailyBudgetsuggestedLatestTotalBudgetavgCapOutTime
2025-09-122025-09-19600000daily50200100500624.9465789.011000