Create Campaign Recommendations Request

πŸ“˜

URL: POST /api/v2/snapshot/recommendations

Query 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.

For campaigns without a Target ROAS recommendation, this value will be blank.

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" ] }'