Closed FelixSche closed 12 months ago
Without the pageToken the request is working just fine. The API also returns a next pageToken. The error only occurs when trying to send the request including the token.
Okay I just found out that pageToken is part of the searchbody and not of the optParameters. My bad. Maybe add this to the docs though. That was rather hard to figure out.
Following the google documentation is a parameter you can send in to get the next page of articles. https://developers.google.com/shopping-content/reference/rest/v2.1/reports/search?apix_params=%7B%22merchantId%22%3A283548%2C%22resource%22%3A%7B%22pageToken%22%3A%22COgH%22%2C%22query%22%3A%22SELECT%20product_view.id%2C%20product_view.title%2C%20product_view.brand%2C%20product_view.price_micros%2C%20product_view.currency_code%2C%20price_competitiveness.country_code%2C%20price_competitiveness.benchmark_price_micros%2C%20%20price_competitiveness.benchmark_price_currency_code%20FROM%20PriceCompetitivenessProductView%22%7D%7D
Environment details
Steps to reproduce
Code example