We installed the library according to this guide
https://github.com/googleads/google-ads-php

and then created a configuration like this
https://developers.google.com/google-ads/api/docs/client-libs/php/configuration

using code from library examples

понедельник, 7 февраля 2022 г. в 16:16:56 UTC+3, Yakov Osipenkov: 

> Hi. We are trying to get Google Ads account statistics by API, we got a 
> basic developer token. When we try to send requests, we get the following 
> error:
>
> PHP Fatal error:  Uncaught GuzzleHttp\Exception\ClientException: Client 
> error: `POST https://oauth2.googleapis.com/token` 
> <https://oauth2.googleapis.com/token> resulted in a `400 Bad Request` 
> response:
> {
>   "error": "invalid_grant",
>   "error_description": "Token has been expired or revoked."
> }
>
> Google technical support, which issued access and wrote to the mail, does 
> not respond with return letters. Thanks!
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/23919a77-fe93-4d7e-87c3-53512b87f0b4n%40googlegroups.com.

Reply via email to