Re: How to use proxy in google-ads-php and nginx grpc?

2020-12-07 Thread bingcool huang

Hi,
I  confirm google_ads_php.ini had been setted,as example:

[CONNECTION]
; Optional proxy settings to be used by requests.
; If you don't have username and password, just specify host and port.
proxy = "http://47.52.203.169:9703";


but when I test, throw error message as example:

[2020-12-08T10:36:13.749750+08:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v5.services.KeywordPlanIdeaService/GenerateKeywordIdeas",
 
CustomerId: 6059927370, RequestId: "", IsFault: 1, FaultMessage: "None"
[2020-12-08T10:36:13.750358+08:00] google-ads.NOTICE: Request
---
Method Name: 
/google.ads.googleads.v5.services.KeywordPlanIdeaService/GenerateKeywordIdeas
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.3.6 gapic\/ gax\/1.6.0 grpc\/1.33.1",
"x-goog-request-params": "customer_id=6059927370",
"developer-token": "REDACTED",
"login-customer-id": "1904659319"
}
Request: 
{"customerId":"6059927370","language":"languageConstants/1000","keywordPlanNetwork":"GOOGLE_SEARCH_AND_PARTNERS","keywordSeed":{"keywords":["crm1"]}}

Response
---
Headers: []

Fault
---
Status code: 14
Details: failed to connect to all addresses
Failure: {}

How can I do It?   think you very much!
在2020年12月8日星期二 UTC+8 上午3:08:20 写道:

> Hello,
>
> Thank you for reaching out. Can you please confirm if you have set the 
> google_ads_php.ini file as specified in this PHP client library guide 
> ?
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q28nnB2:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4586e3a1-f9ea-460a-b0a1-3d43d3478a59n%40googlegroups.com.


How to use proxy in google-ads-php and nginx grpc?

2020-12-07 Thread bingcool huang
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f084acba-cf3f-4336-b25f-691b1036f5c8n%40googlegroups.com.


Re: Search Console APIs sitemaps function get() always return indexed=0, but the google Search Console Web Ui isn't show 0

2020-11-03 Thread bingcool huang
Ok. Thinks!

在2020年11月4日星期三 UTC+8 上午1:22:29 写道:

> Hi Bingcool,
>
> Thank you for reaching out. Our team is only focused on the AdWords/Google 
> Ads API related issues. As your issue is related to the Google Search 
> Console API, please post your question in the Google Search Console API Help 
> Community  to get 
> further assistance.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q276fqO:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/847ab12e-ca8d-49a0-b734-7f214cf34c54n%40googlegroups.com.