Create Campaign Recommendations Request

Campaign Recommendations endpoint will provide recommendations on eligible campaigns for a particular recommendationType. Currently, we support Target ROAS recommendation type.

📘

URL: POST /api/v2/snapshot/recommendations

Request Parameters

ParameterDescriptionTypeRequiredPossible Values
advertiserIdThe ID of the advertiserintegerYUnique numeric identifier for the advertiser. This is the advertising account id. This parameter can take only one advertiser Id for each snapshot report request.
recommendationTypeThe type of the recommendation requiredstringYValues of recommendation type: targetROAS
formatChoose the format type for your snapshotstringYTypes of formats: gzip. Note: gzip allows decompression while file is being transferred over the network, hence it is a faster and simpler way to download the reports
reportMetricsreportMetricsstringYPlease see below table for possible report metrics

Report Metrics

ElementDescriptionData TypeRequiredPossible Values
reportDateThe snapshot date for the report.dateYThe date should be in “yyyy-MM-dd” format. This parameter can take only one report date for the last 90 days for each snapshot report request.
campaignIdThe Id of the campaignIntegerYUnique ID for the given campaign.
recommendedTargetROASRecommended Target ROAS valuefloatYThe recommendation value can be between 1 and 31.27.
troasRecommendedDailyBudgetThe recommended daily budget to set for the campaign to help maximize sales at the suggested ROAS targetfloatNWe recommend passing this value to obtain target ROAS budget
troasIncrementalSalesLowerThe lower range of the potential incremental sales we predict your campaign can generate if you update your campaigns with our recommendation following the learning phasefloatNWe recommend passing this value
troasIncrementalSalesUpperThe upper range of the potential incremental sales we predict your campaign can generate if you update your campaigns with our recommendation following the learning phasefloatNWe recommend passing this value
troasRecommendationIdRecommendation id for the target ROAS recommendationstringNWe highly recommend passing troasRecommendationId in the report metrics

Sample Request

curl -X POST \ 'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v2/snapshot/recommendations' \ --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": 600001, "recommendationType": "targetROAS", "format": "gzip", "reportMetrics": [ "reportDate", "campaignId", "recommendedTargetROAS" ] }' 

Sample Request 2

curl -X POST \ 'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v2/snapshot/recommendations' \ --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": 600001, "recommendationType": "targetROAS", "format": "gzip", "reportMetrics": [ "reportDate", "campaignId", "recommendedTargetROAS", "troasRecommendationId", "troasRecommendedDailyBudget", "troasIncrementalSalesLower", "troasIncrementalSalesUpper" ] }'

curl -X POST \ 'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v2/snapshot/recommendations' \ --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": 600001, "recommendationType": "targetROAS", "format": "gzip", "reportMetrics": [ "reportDate", "campaignId", "recommendedTargetROAS" ] }'