I use PHP version sdk has meet this problem too
It's because a PHP system function ini_restore() has been disable
Hope can help you

在 2017年12月29日星期五 UTC+8上午1:40:56,[email protected]写道:
>
> WARNING:googleads.common:Your default encoding, cp1252, is not UTF-8. 
> Please run
>  this script with UTF-8 encoding to avoid errors.
> DEBUG:suds.transport.http:opening (
> https://adwords.google.com/api/adwords/cm/v20
> 1710/CampaignService?wsdl)
> INFO:oauth2client.client:Refreshing access_token
> INFO:oauth2client.client:Failed to retrieve access token: {
>   "error" : "invalid_client",
>   "error_description" : "The OAuth client was not found."
> }
> Traceback (most recent call last):
>   File "get_campaigns.py", line 74, in <module>
>     main(adwords_client)
>   File "get_campaigns.py", line 56, in main
>     page = campaign_service.get(selector)
>   File 
> "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\
> googleads\common.py", line 762, in MakeSoapRequest
>     self._header_handler.SetHeaders(self.suds_client)
>   File 
> "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\
> googleads\adwords.py", line 561, in SetHeaders
>     http_headers = self._adwords_client.oauth2_client.CreateHttpHeader()
>   File 
> "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\
> googleads\oauth2.py", line 211, in CreateHttpHeader
>     self.Refresh()
>   File 
> "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\
> googleads\oauth2.py", line 226, in Refresh
>     self.proxy_config.disable_certificate_validation)))
>   File 
> "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\
> oauth2client\client.py", line 545, in refresh
>     self._refresh(http)
>   File 
> "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\
> oauth2client\client.py", line 749, in _refresh
>     self._do_refresh_request(http)
>   File 
> "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\
> oauth2client\client.py", line 819, in _do_refresh_request
>     raise HttpAccessTokenRefreshError(error_msg, status=resp.status)
> oauth2client.client.HttpAccessTokenRefreshError: invalid_client: The OAuth 
> clien
> t was not found.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/d5a0a5bc-c085-4468-a087-8eed53711f6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to