Getting "The error code is not in this version." Error on trying to get campaigns using api

54 views
Skip to first unread message

Arjun S Panicker

unread,
Nov 6, 2022, 1:21:55 PM11/6/22
to Google Ads API and AdWords API Forum
Facing The error code is not in this version error on trying to get campaign details using v12 googleAds:search rest api 
query used is ​​
​SELECT campaign.name FROM campaign PARAMETERS include_drafts=true

if include_draft is removed the api works 
so how can i get draft campaigns result also is api

Google Ads API Forum Advisor

unread,
Nov 6, 2022, 11:33:02 PM11/6/22
to suresh...@gmail.com, adwor...@googlegroups.com
Hi Arjun,

Thank you for reaching out to us. I am Carmela from the Google Ads API team.

With regard to your concern, you mentioned that you are getting the "The error code is not in this version error" error message. Having said that, could you first provide the complete request and response logs with request ID and request header generated on your end so our team can provide guidance accordingly? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.

In addition, you may use this campaign_query_builder that will help you build and validate your query.

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2g0n6z:ref

Google Ads API Forum Advisor

unread,
Nov 6, 2022, 11:34:38 PM11/6/22
to adwor...@googlegroups.com, suresh...@gmail.com
Hi Arjun,

In addition to my last email, you may then send the requested logs via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.
Reply all
Reply to author
Forward
0 new messages