googleads / googleads-python-lib

The Python client library for Google's Ads APIs
Apache License 2.0
683 stars 975 forks source link

The query specified is not compatible with the API version #499

Closed peterlu2000 closed 2 years ago

peterlu2000 commented 2 years ago

I kept getting "The query specified is not compatible with the API version" error from the sample python code

https://admanager.google.com/21842759191#reports/report/detail/report_id=12847176345 Network Code = 21842759191 Saved Query ID = 12847176345

Editor section has the Service IAM account populated.

It is a brand new report. I am using latest Python 3 and google ads api v202202

I am using the example same code from here (replaced with SAVED_QUERY_ID = '12847176345'): https://github.com/googleads/googleads-python-lib/blob/master/examples/ad_manager/v202202/report_service/run_saved_query.py

Similar issue from the PHP library https://github.com/googleads/googleads-php-lib/issues/450

My report set up is quite simple, no idea why it is not supported by API.

peterlu2000 commented 2 years ago

Change datetime to Fixed date range solved the problem.