Hello, Google Ads Groups

Because Online server can not connect google ,so we need to make a proxy in 
google-ads-php with nginx grpc module,  this is my nginx config:
server {
listen 9703 http2; #监听端口
   location / {
         grpc_pass grpcs://googleads.googleapis.com:443;
          grpc_connect_timeout 300;
          grpc_read_timeout 300;
         grpc_send_timeout 300;
    }
}

then this is php setting:
$googleAdsClient = (new GoogleAdsClientBuilder())
->from($configuration)
->withOAuth2Credential($oAuth2Credential)
->withProxy('http://47.52.203.169:9703')
->build();

nginx access_log show:

61.141.64.196 - - [07/Dec/2020:17:11:17 +0800] "CONNECT 
googleads.googleapis.com:443 HTTP/1.0" 400 163 "-" "-"

but I can not test successful,   So how can I do it, think you very much!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f084acba-cf3f-4336-b25f-691b1036f5c8n%40googlegroups.com.

Reply via email to