The saved query is not compatible with API version

463 views
Skip to first unread message

prasad vaidya

unread,
Apr 20, 2022, 4:25:20 PM4/20/22
to Google Ad Manager API Forum
Hello everyone, 

I am to new to GAM and am trying to explore API connection to download the data. 
  1. I followed the following link (https://developers.google.com/ad-manager/api/reporting) and first created a test report in the GAM UI and got the query id from the report as they explain in the documentation.
  2. Than I ran the following code (https://github.com/googleads/googleads-python-lib/blob/master/examples/ad_manager/v202202/report_service/run_saved_query.py) as recommended in the documentation to get the report.
However, when I run this query, I get the error “The query specified is not compatible with the API version.” 

It’s a very basic test report. It is just pulling following information: Ad unit, Date, Devices, Ad unit ID and Total impressions for previous 7 days as a test report. So not sure why I am getting the API compatibility error. 

Also any if you can share any good tutorial links for a newbie it would be really helpful. 

Can I please get some help, 

Thanks,
Prasad Vaidya

Ad Manager API Forum Advisor

unread,
Apr 21, 2022, 12:51:12 AM4/21/22
to pv11...@gmail.com, google-doubleclick...@googlegroups.com

Hi Prasad,

 

Thanks for contacting the Ad Manager API support team, this is Yasmin.

 

Please be informed that certain reporting features aren't available in the API, as stated in the FAQs section of our Reporting guide. This includes columns, dimension attributes, dimensions, and date range types. To explain further, it appears that the date range type you had used in the UI is not supported in the API. For incompatible date range types, you can save the report with a supported type to make it retrievable, then alter the ReportQuery to meet your desired fixed date range. You may check out this link for the date range types which are supported in the Ad Manager API for your reference.

 

Best regards,

 

Google Logo
Yasmin Gabrielle
Ad Manager API Team
 


ref:_00D1U1174p._5004Q2a5GbS:ref

prasad vaidya

unread,
Apr 25, 2022, 4:58:48 PM4/25/22
to Google Ad Manager API Forum
Thank you Yasmine for the response. However, my response is empty. So I cant even extract the query to alter it. 

Thanks,
Prasad

Ad Manager API Forum Advisor

unread,
Apr 27, 2022, 1:53:27 AM4/27/22
to pv11...@gmail.com, google-doubleclick...@googlegroups.com

Hi Prasad,

 

Thanks for getting back to us and for your response.

 

You can modify your query at the time of your request, not in the response, as can be seen here you're supposed to pass this before and not after the request. Please try to modify the date from your saved report in the UI to one of the supported date range types in the Ad Manager API.

 

If an issue still persists, kindly provide the complete SOAP request and response logs with SOAP logging enabled via Reply privately to author option as well as the complete screenshots of the report from the UI which you're trying to retrieve.

 

Regards,

Reply all
Reply to author
Forward
0 new messages