Campaign Consolidated Recommendations
Warning
Sponsored Product v3 is not available for Sandbox endpoint
Vendor docs |
https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod |
Specification |
https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json |
Note
This API is version 3.0
Note
This API is not clear which marketplaces are supported
{
"code":400,
"responseHeaders":null,
"responseBody":null,
"message":"Marketplace is not supported"
}
- class ad_api.api.sp.CampaignsRecommendations(account: str = 'default', marketplace: Marketplaces = Marketplaces.EU, credentials: Dict[str, str] | None = None, proxies: Dict[str, str] | None = None, verify: bool = True, timeout: int | None = None, debug: bool = False, access_token: str | None = None, verify_additional_credentials: bool = True)
Endpoints available
Method
Endpoint
Description
GET
/sp/campaign/recommendations
Gets the top consolidated recommendations.
- list_campaigns_recommendations(**kwargs) ApiResponse
Gets the top consolidated recommendations across bid, budget, targeting for SP campaigns given an advertiser profile id. The recommendations are refreshed everyday.
- Param:
- query nextToken (string). Optional. Token to retrieve subsequent page of results.query maxResults (string). Optional. Limits the number of items to return in the response.
- Returns:
ApiResponse
- fetch_campaigns_recommendations(**kwargs) ApiResponse
Gets the top consolidated recommendations for the campaigns named in the body, one recommendation type per campaign. Refreshed every day.
The GET on the same path takes no body and returns every recommendation the account has; this POST narrows it to the campaigns and types asked for. It uses its own content type, v2, where the GET uses v1.
- Request Body [Required]
- campaigns (array): 1 to 10 campaigns.campaignId (string): [required] The campaign identifier.recommendationType (string): [required] one ofBIDDING_STRATEGY, BUDGET_STRATEGY, KEYWORD, KEYWORD_GROUP,PLACEMENT_BIDDING, SHOPPER_COHORT.maxResults (integer): 1 to 5. Defaults to 1.nextToken (string): Token for the next page.
- Returns:
ApiResponse