-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoogleAdsToGcsOperator sends default headers which is no longer supported by the API #43486
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
@shervinrad100
https://developers.google.com/google-ads/api/docs/reporting/paging |
In the documents, it seems like they will drop this for earlier versions as well. Never mind about the backward compatibility part. I think they are already deprecating older versions of their API. |
Yes please would love to contribute and this seems like a quick fix anyway. I was thinking of simply removing the default assignment. If you want backward compatibility then I can add the following to the init:
|
This is already done and (just) merged via #43474 |
I think they deprecated this part where we are passing the |
I think we already passed the 12 of August 2024 so I don't think we should support any backward compatibility in this case. This should already deprecated for all the APIs. Maybe we don't even need to pass any |
@bugraoz93 If you assign the issue to me I'd be happy to push a PR today |
Feel free. |
ready for your review ✅ |
Apache Airflow Provider(s)
google
Versions of Apache Airflow Providers
10.21.1
Apache Airflow version
Version 2.0
Operating System
Debian GNU/Linux 12 (bookworm)
Deployment
Docker-Compose
Deployment details
Pretty standard
docker-compose up
. In the docker compose mounted the volumes to the standard directories and set some variables to be loaded into xcoms (eg user, gcs_conn_id). Nothing's customised otherwise.What happened
I wanted to test
GoogleAdsToGcsOperator
and I wrote a GAQL query to hit the customer_client resource and the task failed with the following error:I did not specify any page size (this is initialised here)
This was the task I ran in my DAG:
What you think should happen instead
a file should be created in my GCS bucket with the request response.
How to reproduce
If you run the following task with your connection ID information you would probably get the same error. Do not set the page_size parameter so that the init func passes the default.
Anything else
The entire request response headers are:
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: