question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

apache-airflow-providers-google: google-ads-12.0.0

See original GitHub issue

Hey team, I was looking to use the google ads hook but it seems like the google ads package is a bit out of date with the hook only taking “v5”, “v4”, “v3”, “v2” https://developers.google.com/google-ads/api/docs/release-notes and all of those being deprecated. Is there any chance the provider can be upgraded to include this? here is the release note of https://github.com/googleads/google-ads-python/releases/tag/12.0.0 google’s 12.0.0 release which also deprecated v5

Apache Airflow version: 2.0.1

What happened: deprecated API endpoint, need to update google ads to version 12.0.0

What you expected to happen: return query data, instead, I get an error returned from the google ads v5 API:

How to reproduce it: attempt to hit the v5 API endpoint

Anything else we need to know: error is below

Response
-------
Headers: {
  "google.ads.googleads.v5.errors.googleadsfailure-bin": "\nJ\n\u0002\b\u0001\u0012D Version v5 is deprecated. Requests to this version will be blocked.",
  "grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid argument.\u001a\u0001\nCtype.googleapis.com/google.ads.googleads.v5.errors.GoogleAdsFailure\u0012L\nJ\n\u0002\b\u0001\u0012D Version v5 is deprecated. Requests to this version will be blocked.",
  "request-id": "JyFZ9zysaqJbiCr_PX8SLA"
}
Fault: errors {
  error_code {
    request_error: UNKNOWN
  }
  message: " Version v5 is deprecated. Requests to this version will be blocked."
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
irosario1999commented, Jul 20, 2021

for sure!

0reactions
infused-kimcommented, Jul 22, 2021

The PR above makes the hook compatible with newer versions of the google-ads API.

The biggest breaking change in the google-ads API was that instead of returning results as native protocol buffers, it’s now returning the data in a simpler to use proto-plus format.

To ensure backwards compatibility for older operators that use the hook, I made the search() method convert the data back into native protocol buffers. In addition to that I added a search_proto_plus() method that returns the data in the new proto-plus format.

You can get more information about that here: https://developers.google.com/google-ads/api/docs/client-libs/python/library-version-10

Prioritization thoughts

Google completely stopped supporting the v5 API as of today. This means that the integrations of everyone who is using this hook are broken now.

So perhaps it’s worth considering to do an expedited release of the update to the google provider.

Read more comments on GitHub >

github_iconTop Results From Across the Web

apache-airflow-providers-google Documentation
This is a provider package for google provider. All classes for this provider package are in airflow.providers.google python package. Installation¶. You can ...
Read more >
apache-airflow-providers-google uses deprecated ... - GitHub
apache -airflow-providers-google 6.4.0 has the requirement google-ads >=12.0.0,<14.0.1. The latest version of the Google Ads API supported by ...
Read more >
Upgrade to support Google Ads v10 (#22965) - The Mail Archive
This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch main in repository ...
Read more >
Issue installing apache-airflow-backport-providers-google ...
There is no need to install apache-airflow-backport-providers-google in Airflow 2.0+. This package actually backports Airflow 2 operators ...
Read more >
constraints-3.7.txt - GitHub
We also use those constraints after "apache-airflow" is released and the constraints are tagged with ... apache-airflow-providers-google==8.3.0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found