Wednesday, 30 March 2016

AdWords Python API: Passing Proxy Username and Password

Hi there,

I'm running into a bit of an issue as I'm behind a corp firewall which requires traffic to go through a proxy and also needs authentication.

I'm just loading a credentials file using the method
AdWordsClient.LoadFromStorage("/path/to/myfile")
which will throw the following error:

HTTPError: (407, 'Proxy Authentication Required')

I believe the client will call the OAuth library and try and refresh the necessary tokens., but looking at the following code shows that proxy_user and proxy_pass are never sent to httplib2.ProxyInfo


Specifically this line of code: https://github.com/googleads/googleads-python-lib/blob/69369aedffae9be1a3059b62acd7900ddb43df1e/googleads/common.py#L118

I was thinking of opening an issue but figure I should ask as maybe I'm missing something in terms of a work around.

Thanks in advance
F D.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords 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+unsubscribe@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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/40e5493d-0589-462a-aa32-4d058541a53c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment