def GetProxyConfig(http_host=None, http_port=None, https_host=None, https_port=None, cafile=None, disable_certificate_validation=None):
 http_proxy = None
 https_proxy = None
 if http_host:
  http_proxy = googleads.common.ProxyConfig.Proxy(http_host, http_port)
 if https_host:
  https_proxy = googleads.common.ProxyConfig.Proxy(https_host, https_port)
 return googleads.common.ProxyConfig(http_proxy, https_proxy, cafile=cafile, disable_certificate_validation=disable_certificate_validation)

def GetProxyConfig ( http_host = None , http_port = None , https_host = None , https_port = None , cafile = None , disable_certificate_validation = None ) : http_proxy = None https_proxy = None if http_host : http_proxy = googleads . common . ProxyConfig . Proxy ( http_host , http_port ) if https_host : https_proxy = googleads . common . ProxyConfig . Proxy ( https_host , https_port ) return googleads . common . ProxyConfig ( http_proxy , https_proxy , cafile = cafile , disable_certificate_validation = disable_certificate_validation )
returns an initialized proxyconfig for use in testing .