Re: (OAuth) Token has been expired or revoked

2022-03-07 Thread Alex Garcia
For anyone having this problem. You actually need to create NEW OAuth 
credentials, after you have upgraded the OAuth from TESTING to IN 
PRODUCTION.

I did that, and now it works. If you used the old credentials, the Refresh 
Token is going to expire after 7 days.

On Monday, March 7, 2022 at 6:44:12 AM UTC+1 adsapi wrote:

> Hi Alex,
>
> Thank you for reaching out to Google Ads API Forums.
>
> It appears that your concern is related to refresh token expiration. With 
> this, I would recommend posting your concern here 
> , this was also 
> included inside the support link my colleague provided. This is a public 
> forum which is dedicated to Oauth2 and refresh token related questions. I 
> hope this helps.
>
> Let us know if you have any questions.
>
> Regards,
> [image: Google Logo] 
> Carmela 
> Google Ads API Team 
>   
>
>
>
>
>
>
>
>
>  
>
> ref:_00D1U1174p._5004Q2XjtpY: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 
"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/8fb3bd9d-cf88-46e5-a722-e1f8da7b87e0n%40googlegroups.com.


Re: (OAuth) Token has been expired or revoked

2022-03-06 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Alex,

Thank you for reaching out to Google Ads API Forums.

It appears that your concern is related to refresh token expiration. With this, 
I would recommend posting your concern here, this was also included inside the 
support link my colleague provided. This is a public forum which is dedicated 
to Oauth2 and refresh token related questions. I hope this helps.

Let us know if you have any questions.

Regards,

Carmela
Google Ads API Team
ref:_00D1U1174p._5004Q2XjtpY: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 
"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/AWsOb0R8D18E00h5cqIEcWQquv406Mgd-qdQ%40sfdc.net.


Re: (OAuth) Token has been expired or revoked

2022-03-04 Thread Alex Garcia
The link provided requires to pay to get access to support. We are not 
willing to do so, to get help.

On Friday, March 4, 2022 at 3:39:38 AM UTC+1 adsapi wrote:

> Hi Alex,
>
> Thank you for providing more details to your concern.
>
> Based on the provided screenshot, I can see that you have already "*In 
> production*" publishing status so the 7 days expiration seems not 
> applicable on the error that you encountered. But please note that there 
> are different reasons why the refresh token is expiring and you can see it 
> on this document 
> 
> .
>
> However, since the issue is more specific to refresh tokens, then I would 
> suggest reaching out to the more equipped team for this concern via this 
> link 
> 
> .
>
> Regards,
> [image: Google Logo] 
> Ernie John 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2XjtpY: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 
"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/e6bc0619-4883-4ee9-b14e-a5353c38ea39n%40googlegroups.com.


Re: (OAuth) Token has been expired or revoked

2022-03-03 Thread Alex Garcia
In order to get access to Google Ads API Console support team you need to 
pay for a higher tier of support.

Can you please confirm that the Project is indeed, "In production" status? 
With the screenshot provided.

It seems like the verification process got stuck and it's not moving 
forward, but I think the Project is already "In production".

On Thursday, March 3, 2022 at 9:32:04 AM UTC+1 adsapi wrote:

> Hi Alex,
>
> Thank you for your follow up question.
>
> The 7 day expiration should only apply to the (TESTING) refresh token. As 
> for the client_id and client_secret, there should be no need to generate 
> new ones.
>
> Should you have additional questions related to the tokens and the 
> credentials, and factors that may affect expiration, you may reach out 
> instead to the Google API Console support team. I hope this helps.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2XjtpY: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 
"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/027c67c2-4cd5-4faf-bb33-95787d722aean%40googlegroups.com.


Re: (OAuth) Token has been expired or revoked

2022-03-02 Thread Alex Garcia
Can you please confirm the following?

When we change the status of the Project OAuth from TESTING to IN 
PRODUCTION, should we generate a NEW Google Client ID and Google Client 
Secret?

We did the test with the OLD Google Client ID and Google Client Secret 
(after changing from TESTING to IN PRODUCTION), and that might be the cause 
for it to doesn't work as expected (expired after 7 days).

On Tuesday, March 1, 2022 at 4:32:16 AM UTC+1 adsapi wrote:

> Hello Alex,
>
> Thank you for reaching out to us.
>
> Please note that this forum channel can only provide assistance to 
> issues/concerns related to the AdWords API 
>  / Google 
> Ads API .
>
> I'm afraid that concerns related to refresh token expiration is already 
> outside of our team's expertise. We recommend that you reach out to the 
> Console Team via this link 
> 
>  instead.
>
> As an aside, for the OAuth2 desktop app flow 
> ,
>  
> you can persist a refresh token (see also factors 
>  
> that 
> may affect refresh token expiration) to obtain a new access token whenever 
> necessary. When using one of our client libraries 
> , 
> you can authorize your app by filling out a configuration file.
>
> Regards,
> [image: Google Logo] 
> Mark Kevin 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2XjtpY: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 
"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/f14b3a7b-0e20-4f0c-a7a0-921ede05cbabn%40googlegroups.com.


Re: (OAuth) Token has been expired or revoked

2022-02-28 Thread Alex Garcia
By the way, the change from Testing to In Production, we did it 7 days ago, 
and we checked to day, for the refresh token expiration.

So even with the "In production" status, we are still getting our refresh 
token disabled after 7 days, which makes no sense.

On Monday, February 28, 2022 at 1:46:30 PM UTC+1 Alex Garcia wrote:

> We are having problems with the refresh token.
>
> Based on this info: 
> https://developers.google.com/identity/protocols/oauth2#expiration
>
> *A Google Cloud Platform project with an OAuth consent screen configured 
> for an external user type and a publishing status of "Testing" is issued a 
> refresh token expiring in 7 days.*
>
> We have changed the status from Testing to In Production:
>
> [image: check.jpg]
>
> But still getting the refresh token expired after 7 days. This is the 
> error message we get when trying to authenticate:
>
> ERROR: 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."
> }
>
> How can we solve this issue?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/aef049bb-ca7b-4a46-b103-3f6204945f8bn%40googlegroups.com.


Re: Token has been expired or revoked

2022-02-07 Thread Yakov Osipenkov
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.


Token has been expired or revoked

2022-02-07 Thread Яков Осипенков
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` 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/8aa33508-edd1-4364-969a-a800a4d33099n%40googlegroups.com.


RE: Google Ads API says “Token has been expired or revoked” despite using a refresh token For Desktop Application

2021-07-25 Thread Google Ads API Forum Advisor
Hi Karthik,

Thanks for reaching out to us. Kindly note that the invalid_grant usually 
indicates an issue with the refresh token. That said, you’ll need to regenerate 
credentials and refresh tokens. You may refer here to this guide for the steps 
on how you can regenerate credentials and refresh tokens.

Should you continue to encounter issues 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.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2JD6Ro: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/bQE2j0QWU6ST00Cn-N2F5iTWeMeBNt0Gw0cw%40sfdc.net.


Google Ads API says “Token has been expired or revoked” despite using a refresh token For Desktop Application

2021-07-23 Thread DHARAVATH KARTHIK
Hi all,



I've set up the whole Google Ads API according to this manual here: 
https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-desktop?hl=en

I got my refresh token and put it in my google-ads.yaml file which looks 
exactly like this: 
https://github.com/googleads/google-ads-python/blob/master/google-ads.yaml. 
I also put my client_id, developer_token and client_secret at the 
corresponding spots in the file.

Everything worked out and I tried an example to  get forecast metrics of 
few keywords campaigns: 
https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics
 
.
 
Also I could use other services of the API.

Each time I use the API I access it via the client using the following code:
from google.ads.google_ads.client import GoogleAdsClient 
client = GoogleAdsClient.load_from_storage(path_to_google_ads_yaml_file)

As I already said it worked.

A few days later I tried to connect again and I got the following error:

google.auth.exceptions.RefreshError: ('invalid_grant: Bad Request', 
{'error': 'invalid_grant', 'error_description': 'Bad Request'})

So I did the process of getting a new refresh token again (
https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-desktop?hl=en)
 
such that everything worked out again.

One day later I got the same error again.  Please someone suggest me the 
reason for this error.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ff5a43d0-71d5-4231-a8e9-5636333bf70bn%40googlegroups.com.


Re: Token has been expired or revoked

2021-04-19 Thread Google Ads API Forum Advisor Prod
Hello,

As I understand, you are using this PHP sample to obtain the refresh token, and 
this is working fine except for the expiration issue, and the apparent 
self-removal of the app from your Google Account. You can find a list of common 
reasons for refresh token expiration here.

You can find API Console support by navigating to the main Console page and 
then clicking the question mark icon across the top blue banner. They will 
likely be able to better support you in your second question, "2) Why app was 
self removed from https://myaccount.google.com/u/1/permissions?; as it relates 
to the email/account used to create the OAuth credentials, which in turn, are 
used to create the refresh token.

Regards,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2FYAcl: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/6cSh80QRTJ1400DKeEVKNIQfmG5Td5hqhfPQ%40sfdc.net.


Re: Token has been expired or revoked

2021-04-19 Thread Every Straus

"Page doesn't work 
https://developers.google.com/google-ads/api/docs/first-call/oauth-cloud-project?hl=en
"
I figured out, this is because I have adblock extension, sorry.
понедельник, 19 апреля 2021 г. в 10:36:25 UTC+3, Every Straus: 

>
> "So our team can better assist you on your current setup, could you share 
> how the accounts you are accessing are currently structured?"
> We make app that can connect to different accounts, *not just **accounts 
> in** our MCC hierarchy, any google users adwords accounts, if user allow 
> access.*
> We get AuthorizationUri to connect google user with this code, with our 
> credentials
> $oauth2 = new OAuth2(
> [
> 'authorizationUri' => self::AUTHORIZATION_URI,
> 'redirectUri' => self::REDIRECT_URI,
> 'tokenCredentialUri' => CredentialsLoader::TOKEN_CREDENTIAL_URI,
> 'clientId' => $clientId,
> 'clientSecret' => $clientSecret,
> 'scope' => $scopes,
> 'state'=> $state,
> 'access_type' => 'offline',
> ]
> );
>
> $url = $oauth2->buildFullAuthorizationUri();
>
> return $url;
>
> Then we get refresh token, then user enter client_customer_id, and we get 
> account data from google adwords api and *this is work fine, 
> except refresh token expired or revoked and app was self removed.*
>
> Structure of accounts is 
> Manager account -> accounts or just account.
>
> We get data from different accounts, not just from our accounts in MCC, 
> and it's work now, questions is 
> 1) Why is refresh token expired or revoked?
> 2) Why app was self removed from 
> https://myaccount.google.com/u/1/permissions?
>
> "I would recommend that you reach out to the Google API Console support 
> team instead via this link 
> , for further 
> insight."
> How can I reach out to the Google API Console support team?
> Can you be more specific? 
>
> Lastly, yes, page doesn't work 
> https://developers.google.com/google-ads/api/docs/first-call/oauth-cloud-project?hl=en,
>  
> screenshot attached.
>
> понедельник, 19 апреля 2021 г. в 09:25:28 UTC+3, adsapiforumadvisor: 
>
>> Hi,
>>
>> Thank you for your follow up.
>>
>> If all your accounts are under or linked to a specific MCC hierarchy, you 
>> can generate the OAuth2 credentials using the user/email address that has 
>> access to the top most level MCC. This way, the OAuth2 credentials 
>> including the refresh token can be used across all accounts under the said 
>> MCC. There should be no need to generate OAuth2 credentials per user of 
>> your account(s).
>>
>> So our team can better assist you on your current setup, could you share 
>> how the accounts you are accessing are currently structured?
>>
>> In addition, regarding your question "*Maybe we need to request next 
>> level for developer token access, or something else?*", you may note 
>> that developer token access level is not required in the process of 
>> generating your OAuth2 credentials.
>>
>> Moving forward to your concern regarding your refresh tokens expiring, I 
>> would recommend that you reach out to the Google API Console support team 
>> instead via this link 
>> , for further 
>> insight.
>>
>> Lastly, could you confirm if my understanding is correct that you are 
>> unable to access this documentation 
>> ?
>>  
>> If yes, could you share the screenshot?
>>
>>
>> Best regards,
>>
>> [image: Google Logo] 
>> Peter Laurence Napa Oliquino 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2FYAcl: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/787deee7-8ae7-4272-b41e-06aa86292252n%40googlegroups.com.


Re: Token has been expired or revoked

2021-04-19 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for your follow up.

If all your accounts are under or linked to a specific MCC hierarchy, you can 
generate the OAuth2 credentials using the user/email address that has access to 
the top most level MCC. This way, the OAuth2 credentials including the refresh 
token can be used across all accounts under the said MCC. There should be no 
need to generate OAuth2 credentials per user of your account(s).

So our team can better assist you on your current setup, could you share how 
the accounts you are accessing are currently structured?

In addition, regarding your question "Maybe we need to request next level for 
developer token access, or something else?", you may note that developer token 
access level is not required in the process of generating your OAuth2 
credentials.

Moving forward to your concern regarding your refresh tokens expiring, I would 
recommend that you reach out to the Google API Console support team instead via 
this link, for further insight.

Lastly, could you confirm if my understanding is correct that you are unable to 
access this documentation? If yes, could you share the screenshot?

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2FYAcl: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/0iqzZ0QRSSI400b1Rg3831R7GRceCalm7YMQ%40sfdc.net.


Re: Token has been expired or revoked

2021-04-16 Thread Every Straus
Hi,
Excuse me, but now I have more questions.

`In order to access (retrieve data, create, modify, delete) the said Google 
Ads accounts, users will need the appropriate OAuth2 credentials to 
authenticate those requests and perform specific actions. To achieve this, 
a user/email address will need first to have access to the Google Ads 
account which they will be managing.`

This is means, that we can't make refresh token, generating 
AuthorizationUri with our credentials, like that:

$oauth2 = new OAuth2(
[
'authorizationUri' => self::AUTHORIZATION_URI,
'redirectUri' => self::REDIRECT_URI,
'tokenCredentialUri' => CredentialsLoader::TOKEN_CREDENTIAL_URI,
'clientId' => $clientId,
'clientSecret' => $clientSecret,
'scope' => $scopes,
'state'=> $state,
'access_type' => 'offline',
]
);

$url = $oauth2->buildFullAuthorizationUri();

return $url;

Then user go to url, allow access and we get refresh token, and that 
solution work fine, except self removing app from 
https://myaccount.google.com/u/1/permissions.

If I understand right,
what you said, means, that we need to access, from our clients to every 
user google account and make for every account unique credentials.(Client 
ID,Client secret)

If so, how we can generate right refresh token with ours credentials?
Maybe we need to request next level for developer token access, or 
something else?

`As for the expiring (refresh) token issue, this guide that you mentioned 
initially provides the reasons that may cause the said token to expire. If 
your Everystraus user was removed then it is possible that someone that has 
access to your accounts removed or revoked your access.`

Ours employes not remove app from 
https://myaccount.google.com/u/1/permissions
Maybe, you can check that or way its happend? 
Because, if app self removing from 
https://myaccount.google.com/u/1/permissions and this will be happening 
often, it's not good.

This page doesn't work 
https://developers.google.com/google-ads/api/docs/first-call/oauth-cloud-project(Service
 
Unavailable)
пятница, 16 апреля 2021 г. в 06:04:14 UTC+3, adsapiforumadvisor: 

> Hi,
>
> Thank you for your follow up. I work with Matt and allow me to assist you.
>
> A basic access level developer token only allows users to use the API to 
> make requests to Production Google Ads accounts.
>
> In order to access (retrieve data, create, modify, delete) the said Google 
> Ads accounts, users will need the appropriate OAuth2 credentials to 
> authenticate those requests and perform specific actions. To achieve this, 
> a user/email address will need first to have access 
> 
>  
> to the Google Ads account which they will be managing.
>
> Once the user/email address has the required access, they can then generate 
> the OAuth2 credentials 
> 
>  
> (https://console.cloud.google.com/apis/credentials) while logged in to 
> that user/email address that has access to the Google Ads account.
>
> As for the expiring (refresh) token issue, this guide 
>  that 
> you mentioned initially provides the reasons that may cause the said token 
> to expire. If your Everystraus user was removed then it is possible that 
> someone that has access to your accounts removed or revoked your access.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2FYAcl: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/43dcc2ec-795e-4a4b-8003-a29739ae9f6en%40googlegroups.com.


Re: Token has been expired or revoked

2021-04-15 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for your follow up. I work with Matt and allow me to assist you.

A basic access level developer token only allows users to use the API to make 
requests to Production Google Ads accounts.

In order to access (retrieve data, create, modify, delete) the said Google Ads 
accounts, users will need the appropriate OAuth2 credentials to authenticate 
those requests and perform specific actions. To achieve this, a user/email 
address will need first to have access to the Google Ads account which they 
will be managing.

Once the user/email address has the required access, they can then generate the 
OAuth2 credentials (https://console.cloud.google.com/apis/credentials) while 
logged in to that user/email address that has access to the Google Ads account.

As for the expiring (refresh) token issue, this guide that you mentioned 
initially provides the reasons that may cause the said token to expire. If your 
Everystraus user was removed then it is possible that someone that has access 
to your accounts removed or revoked your access.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2FYAcl: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/B6GxJ0QRMZ6P00alD-MqRQSc-Y8CnKXM_QdQ%40sfdc.net.


Re: Token has been expired or revoked

2021-04-15 Thread Every Straus

Thank you for reply.

`Can you please try regenerating your OAuth2 credentials and refresh token`

For be more specific.

We need to create new credentials here 
https://console.cloud.google.com/apis/credentials ?

We make service, that can connect to different accounts, we already have 
basic access in Google Adwords Api.
So what this is mean (ensuring that the email being used to create the 
credentials has the proper access level in your Ads MCC)?
If different client give access to our app then error will be happen again 
'Token has been expired or revoked' ?

Maybe we need to fill out the form differently, or some thing else.
среда, 14 апреля 2021 г. в 17:01:27 UTC+3, adsapiforumadvisor: 

> Hello,
>
> Thanks for reaching out. Can you please try regenerating your OAuth2 
> credentials and refresh token, and ensuring that the email being used to 
> create the credentials has the proper access level in your Ads MCC?
>
> Thanks,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2FYAcl: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/086ca4b8-72f5-4c9c-a3e6-e7cff5b22ae0n%40googlegroups.com.


RE: Token has been expired or revoked

2021-04-14 Thread Google Ads API Forum Advisor Prod
Hello,

Thanks for reaching out. Can you please try regenerating your OAuth2 
credentials and refresh token, and ensuring that the email being used to create 
the credentials has the proper access level in your Ads MCC?

Thanks,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2FYAcl: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/lY31i0QRK49P0056fiqm1VTImjz9HTtIG62w%40sfdc.net.


Token has been expired or revoked

2021-04-13 Thread Every Straus
Hello.

We have error "Token has been expired or revoked"

We don`t make any changes.

And in page https://myaccount.google.com/u/1/permissions our app 
Everystraus was self removed.

We don`t did that.

I read 
https://groups.google.com/u/1/g/adwords-api/c/PWuTWEBR98Q/m/FoDufLdgAwAJ
https://groups.google.com/u/1/g/adwords-api/c/O4ie7zrzh_I/m/iIYaXUTDAQAJ
https://developers.google.com/identity/protocols/oauth2#expiration

And this was not helpful.

Please help.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a03a6238-8a20-4703-a839-9ef8970d3b00n%40googlegroups.com.
[2021-04-13 16:11:22] local.INFO: array (
  'command' => 'GoogleGetKeywordsStatistics {user_id} {google_acc_id} 
{client_customer_id} {startDate} {endDate}',
  'user_id' => '1',
  'google_acc_id' => '12',
  'client_customer_id' => '522-368-2215',
)  
[2021-04-13 16:11:22] local.INFO: GuzzleHttp\Exception\ClientException: Client 
error: `POST https://oauth2.googleapis.com/token` resulted in a `400 Bad 
Request` response:
{
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}
 in 
/var/www/everystraus.su/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 /var/www/everystraus.su/vendor/guzzlehttp/guzzle/src/Middleware.php(69): 
GuzzleHttp\Exception\RequestException::create()
#1 /var/www/everystraus.su/vendor/guzzlehttp/promises/src/Promise.php(204): 
GuzzleHttp\Middleware::GuzzleHttp\{closure}()
#2 /var/www/everystraus.su/vendor/guzzlehttp/promises/src/Promise.php(153): 
GuzzleHttp\Promise\Promise::callHandler()
#3 /var/www/everystraus.su/vendor/guzzlehttp/promises/src/TaskQueue.php(48): 
GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 /var/www/everystraus.su/vendor/guzzlehttp/promises/src/Promise.php(248): 
GuzzleHttp\Promise\TaskQueue->run()
#5 /var/www/everystraus.su/vendor/guzzlehttp/promises/src/Promise.php(224): 
GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 /var/www/everystraus.su/vendor/guzzlehttp/promises/src/Promise.php(269): 
GuzzleHttp\Promise\Promise->waitIfPending()
#7 /var/www/everystraus.su/vendor/guzzlehttp/promises/src/Promise.php(226): 
GuzzleHttp\Promise\Promise->invokeWaitList()
#8 /var/www/everystraus.su/vendor/guzzlehttp/promises/src/Promise.php(62): 
GuzzleHttp\Promise\Promise->waitIfPending()
#9 /var/www/everystraus.su/vendor/guzzlehttp/guzzle/src/Client.php(123): 
GuzzleHttp\Promise\Promise->wait()
#10 
/var/www/everystraus.su/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsGuzzleProxyHttpHandler.php(63):
 GuzzleHttp\Client->send()
#11 /var/www/everystraus.su/vendor/google/auth/src/OAuth2.php(526): 
Google\AdsApi\Common\AdsGuzzleProxyHttpHandler->__invoke()
#12 
/var/www/everystraus.su/vendor/google/auth/src/Credentials/UserRefreshCredentials.php(110):
 Google\Auth\OAuth2->fetchAuthToken()
#13 
/var/www/everystraus.su/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/OAuth2TokenRefresher.php(66):
 Google\Auth\Credentials\UserRefreshCredentials->fetchAuthToken()
#14 
/var/www/everystraus.su/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201809/RequestOptionsFactory.php(86):
 Google\AdsApi\Common\Util\OAuth2TokenRefresher->getOrFetchAccessToken()
#15 
/var/www/everystraus.su/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201809/RequestOptionsFactory.php(186):
 Google\AdsApi\AdWords\Reporting\v201809\RequestOptionsFactory->createHeaders()
#16 
/var/www/everystraus.su/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201809/ReportDownloader.php(156):
 
Google\AdsApi\AdWords\Reporting\v201809\RequestOptionsFactory->createRequestOptionsWithAwqlQuery()
#17 
/var/www/everystraus.su/app/Console/Commands/Google/Statistics/GoogleGetKeywordsStatistics.php(103):
 
Google\AdsApi\AdWords\Reporting\v201809\ReportDownloader->downloadReportWithAwql()
#18 
/var/www/everystraus.su/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36):
 App\Console\Commands\Google\Statistics\GoogleGetKeywordsStatistics->handle()

Re: Token has been expired or revoked

2021-02-18 Thread fatima Ajij
Thank you for your response.

On Wed, Feb 17, 2021 at 4:56 PM Google Ads API Forum Advisor Prod <
adsapiforumadvi...@gmail.com> wrote:

> Hi Fatima,
>
> Thank you for reaching out. Here
>  are
> some common causes for the refresh token expiration. One of them is “A
> Google Cloud Platform project with an OAuth consent screen configured for
> an external user type and a publishing status of "Testing" is issued a
> refresh token expiring in 7 days.” You could change the publishing status
> to production to avoid this issue.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
> [image: Google Logo]
> Xiaoming
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2CRt64: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/CAHB2DwT_6i-q-hQFbgxhDF5fqen8OYpEFjWPfqwFr7kzWJhVTA%40mail.gmail.com.


RE: Token has been expired or revoked

2021-02-17 Thread Google Ads API Forum Advisor Prod
Hi Fatima,

Thank you for reaching out. Here are some common causes for the refresh token 
expiration. One of them is “A Google Cloud Platform project with an OAuth 
consent screen configured for an external user type and a publishing status of 
"Testing" is issued a refresh token expiring in 7 days.” You could change the 
publishing status to production to avoid this issue.

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2CRt64: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/hd8K50QOON2000X-4PUa5yTVC23Yh9ysmeVQ%40sfdc.net.


Re: Token has been expired or revoked

2021-02-17 Thread fatima Ajij

I believe the validity of refresh token is life long then why it is 
happening?
On Wednesday, February 17, 2021 at 10:16:59 AM UTC fatima Ajij wrote:

> Hi I have been using rest methods to integrate Google Ads API in C#. 
> Everything seemed to be working fine but all off sudden I started getting 
> 400 response with the error message.
>
> {
> "error": "invalid_grant",
> "error_description": "Token has been expired or revoked."
> }
>
> As mentioned above that I am not using client library but instead using 
> restsharp and testing all my end points in postman also.
> I am using test account at the moment and suddenly it is failing.
>
> Any reason why it is happening? My refresh token is also valid as I have 
> been using this for one week. I have also not reached to the limit of 
> refresh token as I have only generated refresh token 3 to 4 times when I 
> was trying to set up the accounts.
>
> Regards,
> Fatima
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fb1b9ab5-17ee-41a1-a84f-8252675e2cd4n%40googlegroups.com.


Token has been expired or revoked

2021-02-17 Thread fatima Ajij
Hi I have been using rest methods to integrate Google Ads API in C#. 
Everything seemed to be working fine but all off sudden I started getting 
400 response with the error message.

{
"error": "invalid_grant",
"error_description": "Token has been expired or revoked."
}

As mentioned above that I am not using client library but instead using 
restsharp and testing all my end points in postman also.
I am using test account at the moment and suddenly it is failing.

Any reason why it is happening? My refresh token is also valid as I have 
been using this for one week. I have also not reached to the limit of 
refresh token as I have only generated refresh token 3 to 4 times when I 
was trying to set up the accounts.

Regards,
Fatima

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c36ba24f-12f4-4e54-88f3-6c418d198bdbn%40googlegroups.com.