google-ads-api icon indicating copy to clipboard operation
google-ads-api copied to clipboard

Support of multiple API versions

Open evil-shrike opened this issue 1 year ago • 2 comments

Hi. I understand that the library is based on google-ads-node which contains all generated code from protobufs. But in the end the library supports only one API version which can be a blocker if you need to execute queries against different versions. If we look at Python client it simply accepts an argument version on the client creation.

Did you ever consider to support multiple versions at once? At lease last 3. It would be a great addition.

evil-shrike avatar Aug 26 '22 11:08 evil-shrike

Hi @evil-shrike, what is your use case here? Why would you want to execute queries against different versions?

wcoots avatar Sep 16 '22 11:09 wcoots

Hi. We have a tool that executes queries. So queries are external for it. Users gets the tool and execute their queries. Among other it can be an automated execution in Cloud. If the tool is updated, it can contain updated google-ads-api lib with updated API, so then there's a non-zero probability that queries will start failing because of breaking changes. Unfortunately there are always plenty of them. Like renaming enum values, fields, etc. All last major updates (10, 11) contains breaking changes. With Python version we can stick queries to the API version they were written against and they will continue to work. With NodeJS that's not possible. The only way is to support multiple versions of our tool for each API version which VERY cumbersome.

evil-shrike avatar Sep 16 '22 12:09 evil-shrike

Hi @evil-shrike, unfortunately this is not a priority for us. Apologies.

wcoots avatar Dec 09 '22 15:12 wcoots