Hi -- we have an airflow DAG and a task within that DAG uses googleads 
python library. It seems like this library uses SSLContext (
https://github.com/googleads/googleads-python-lib/blob/f070075a081cf2b32fd3d3b1b34b3e3770858c52/googleads/common.py#L440
)

This task needs to be pickled (serialized) and unfortunately SSLContext 
can't be pickled, specifically I am seeing TypeError: can't pickle 
SSLContext objects error.

we are creating the client like this:

        oauth2_client = oauth2.GoogleRefreshTokenClient(
            client_id=client_id,
            client_secret=client_secret,
            refresh_token=refresh_token,
        )

        self.client = adwords.AdWordsClient(
            developer_token=developer_token,
            oauth2_client=oauth2_client,
            user_agent="adwords_client_hook",
            client_customer_id=client_customer_id,
        )

Is there someway to construct the client or something so that there are no 
SSLContext objects? Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/521261ec-e48a-4bd6-ac5f-734889d893ac%40googlegroups.com.

Reply via email to