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 which Target ROAS recommendation existsInteger
recommendedTargetROASRecommended Target ROAS valuefloat
troasRecommendedDailyBudgetThe recommended daily budget to set for the campaign to help maximize sales at the suggested ROAS target. This field will only be populated if available.float
troasIncrementalSalesLowerThe upper range of the potential incremental sales we predict your campaign can generate if you updated your campaigns with our recommendation following the learning phasefloat
troasIncrementalSalesUpperThe upper range of incremental sales that you can obtain if you update your campaigns with our recommendationsfloat
troasRecommendationIdRecommendation ID for the target ROAS recommendationstring

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": "10", "details": "", "jobStatus": "pending" }

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

reportDatecampaignIdrecommendedTargetROAS
2024-06-126000011.34
2024-06-126000022.48
2024-06-126000031.92

Sample Response 2

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

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

reportDatecampaignIdrecommendedTargetROAStroasRecommendedDailyBudgettroasRecommendationIdtroasIncrementalSalesLowertroasIncrementalSalesUpper
2025-04-156000075.0600.011BF20FA-247D-46DA-A32A-51D082F3B3341000.02000.0