Bulk request bids from bidRecommendations advertising API


#1

Hi,

I am trying to pass in a list of keyword IDs, to get suggested bids, but keep getting 422:

https://advertising-api.amazon.com/v2/keywords/bidRecommendations:

{“code”:“422”,“details”:“The server understood your request but was unable to process one or more parameters.”,“requestId”:“2M7VB255GWDSBF8HGK0Y”}

My call:

{:method=>:post, :url=>“https://advertising-api.amazon.com/v2/keywords/bidRecommendations”, :payload=>"[1,2]", :headers=>{“Authorization”=>“Bearer XXX”, “Content-Type”=>“application/json”, “Amazon-Advertising-API-Scope”=>“XXX”, “Amazon-Advertising-API-ClientId”=>“XXX”}}

I also tried using the payload:

:payload=>"{“adGroupId”:111,“keywords”:{“keyword”:“XXX”,“matchType”:“exact”}}"

I have the same response.

anyhelp will be great.