is it possible configure if the adwords client to not use SSLContext?

133 views
Skip to first unread message

andryushka x

unread,
Oct 14, 2019, 9:04:19 PM10/14/19
to AdWords API and Google Ads API Forum
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

Google Ads API Forum Advisor Prod

unread,
Oct 14, 2019, 11:48:04 PM10/14/19
to adwor...@googlegroups.com

Hi,

Thank you for posting your concern.

However, it appears that your concern is client library related. With this, I would suggest that you reach out to the owner of the Python client library via this link.

Regards,
Hiroyuki
Google Ads API Team



ref:_00D1U1174p._5001UKNHQ9:ref
Reply all
Reply to author
Forward
0 new messages