Re: AdWords Python API: Passing Proxy Username and Password

2016-03-31 Thread 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
Greetings!

At this point, I think you'll have to work directly with our Python client 
library owner to get this figured out, since this forum is meant for 
specifically API issues. The best way to do that is to file an issue under 
the Ads API Python GitHub issue tracker 
. He's really 
great at working one on one with people to get client library nuances 
figured out.

Thanks,
Nadine, AdWords API Team

On Thursday, March 31, 2016 at 10:53:07 AM UTC-4, F D wrote:
>
> Thanks for the response
> I did try doing that. I have something like this in my googleads.yaml:
>
> # Proxy configurations (optional)
> proxy_info:
>   host: username:passw...@myproxy.com
>   port: 1234
>
> Throws an error in httplib2:  
>
> httplib2.ServerNotFoundError: Unable to find the server at accounts.google
> .com
>
> I believe httplib2 has specific settings for the proxy username and 
> password which never get set in line 118 in the above link.
>
> Any idea on when the fix might be introduced?
>
>
> Thanks again!
>
> On Thursday, March 31, 2016 at 9:58:20 AM UTC-4, Yin Niu wrote:
>>
>> Hello, 
>>
>> The python library owner is currently working on an enhancement for proxy 
>> support that should fix this problem. For now, one hack might be to include 
>> the username and password in the host argument alone with the url/ip. It's 
>> not intended to be used that way as it was originally designed, though. 
>>
>> Thanks,
>> Yin, AdWords API Team. 
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/123bbf16-8b77-45b1-ae31-db04647e5966%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWords Python API: Passing Proxy Username and Password

2016-03-31 Thread F D
Thanks for the response
I did try doing that. I have something like this in my googleads.yaml:

# Proxy configurations (optional)
proxy_info:
  host: username:passw...@myproxy.com
  port: 1234

Throws an error in httplib2:  

httplib2.ServerNotFoundError: Unable to find the server at accounts.google.
com

I believe httplib2 has specific settings for the proxy username and 
password which never get set in line 118 in the above link.

Any idea on when the fix might be introduced?


Thanks again!

On Thursday, March 31, 2016 at 9:58:20 AM UTC-4, Yin Niu wrote:
>
> Hello, 
>
> The python library owner is currently working on an enhancement for proxy 
> support that should fix this problem. For now, one hack might be to include 
> the username and password in the host argument alone with the url/ip. It's 
> not intended to be used that way as it was originally designed, though. 
>
> Thanks,
> Yin, AdWords API Team. 
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/cb2a3e4d-4b84-4645-b556-ebad4b2d3cc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWords Python API: Passing Proxy Username and Password

2016-03-31 Thread 'Yin Niu' via AdWords API Forum
Hello, 

The python library owner is currently working on an enhancement for proxy 
support that should fix this problem. For now, one hack might be to include 
the username and password in the host argument alone with the url/ip. It's 
not intended to be used that way as it was originally designed, though. 

Thanks,
Yin, AdWords API Team. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/5ea9664b-531f-4462-a978-068154cc0b15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdWords Python API: Passing Proxy Username and Password

2016-03-31 Thread F D
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+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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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.