Proxy settings for .net core

13 views
Skip to first unread message

Snorre Garmann

unread,
Sep 10, 2020, 2:36:57 AM9/10/20
to AdWords API and Google Ads API Forum
Hi

I'm trying to port my Google Ads client to .net core and I'm having proxy settings issues. The Proxy property on AdWordsUser seems to be ignored. I've also tried to set WebRequest.DefaultWebProxy without any success. I guess this has to do with the wcf implementation in .net core, but does anyone have a workaround for this?

Regards


Annotation 2020-09-10 083612.png

Snorre Garmann

unread,
Sep 10, 2020, 3:08:03 AM9/10/20
to AdWords API and Google Ads API Forum
I figured out that if I set Environment Variable https_proxy, it was read correctly. 

Environment.SetEnvironmentVariable("https_proxy", _proxyAddress.AbsoluteUri);

If you have better solutions please feel free to comment.

Snorre
Reply all
Reply to author
Forward
0 new messages