I really appreciate your quick reply.
I defined refresh token on adsapi_php.ini. 
Do I need to do define the access token, too? 
If yes, How can do that, and Where do I need to define that access token?

https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/Optimization/EstimateKeywordTraffic.php
I am trying to use this script.

Best Regards
Thank you.

On Tuesday, 27 July 2021 at 11:17:06 UTC+9 adsapi wrote:

> Hi Andrei,
>
> Thanks for reaching out to us.
>
> The *OAUTH_TOKEN_INVALID* 
> <https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#oauth_token_invalid>
>  error 
> indicates that the access token you used with the HTTP header is incorrect 
> or expired. That said, you’ll need to regenerate credentials and refresh 
> tokens. You may refer here to this *guide* 
> <https://developers.google.com/google-ads/api/docs/oauth/client-library> for 
> the steps on how you can regenerate credentials and refresh tokens.
>
> If the error persists with the said token, even after following the steps 
> from the above guide, I would recommend that you reach out instead to the 
> Google API Console Support team via this *link* 
> <https://support.google.com/googleapi/answer/7014572?hl=en>.
>
> In addition, you may also double check if you still have access to the 
> project where you’re generating the OAuth credentials in the developer 
> console. It could be one of the reasons that you get the token invalid 
> errors. 
>
> Regards,
> [image: Google Logo] 
> Yasar Ramjan Makandar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2JDhN8: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/c313345b-99d7-457b-9149-531eaa31bd16n%40googlegroups.com.

Reply via email to