If your project is in "Testing" because you haven't verified it, the 
refresh token expires after a week of its making.
What helped me(using the PHP client library, was to literally just re-make 
a refresh token the same you made your first one.
For the PHP library in particular, the file you're looking for is: 
GenerateUserCredentials.php and it's in the path: 
"root_folder/examples/Authentication".
Hope this helps
On Monday, June 19, 2023 at 12:10:12 PM UTC+3 Emanuele Lucchese wrote:

> We have the same problem. 
>
> I using the php library client. 
>
> Il giorno domenica 18 giugno 2023 alle 12:40:08 UTC+2 Giosuè Anastasi ha 
> scritto:
>
>> I'm trying to follow this video 
>> https://www.youtube.com/watch?v=M5DxbxEwV9s&list=PLKByxjzUC-N_DIBLsb-h_XaaqmYD1vnQM&t=175s
>> to try the ruby code example.
>> I have this account manager 584-026-8307 with developer key and a I 
>> create a test account as asked in the video that is this one 139-901-9468
>>  
>>
>> jops@uno:~/Projects/google-ads-test$ 
>> ./google-ads-doctor/oauthdoctor/bin/linux/amd64/oauthdoctor -verbose 
>> -language ruby -oauthtype installed_app -configpath ./google_ads_config.rb 
>> 2023/06/18 12:37:16 Client library language: ruby
>> 2023/06/18 12:37:16 Google Ads API client library config file: 
>> google_ads_config.rb
>> 2023/06/18 12:37:16 Config keys and values:
>> 2023/06/18 12:37:16 ClientID = ******************* (hidden)
>> 2023/06/18 12:37:16 ClientSecret = ******************* (hidden)
>> 2023/06/18 12:37:16 DevToken = ******************* (hidden)
>> 2023/06/18 12:37:16 RefreshToken = <empty>
>> 2023/06/18 12:37:16 LoginCustomerID = <empty>
>> 2023/06/18 12:37:16 PrivateKeyPath = <empty>
>> 2023/06/18 12:37:16 DelegatedAccount = <empty>
>> 2023/06/18 12:37:16 Config file validation failed: RefreshToken is empty.
>>
>> 2023/06/18 12:37:16 Please enter a Google Ads account ID:
>> 1399019468
>> 2023/06/18 12:37:22 Making a HTTP Request to Google Ads API:
>> GET /v8/customers/1399019468 HTTP/1.1
>> Host: googleads.googleapis.com
>> User-Agent: google-ads-doctor/source
>> Developer-Token: REDACTED
>> Accept-Encoding: gzip
>>
>>
>> 2023/06/18 12:37:22 Get "
>> https://googleads.googleapis.com/v8/customers/1399019468": oauth2: token 
>> expired and refresh token is not set
>> 2023/06/18 12:37:22 ERROR: Your refresh token may be invalid.
>> 2023/06/18 12:37:22 Attempting to regenerate refresh token...
>> 2023/06/18 12:37:22 Visit the URL for the auth dialog:
>>
>> https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=4822924754-16i8msmqanls8t85ic1020pn3mdvi9dr.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords&state=state
>> 2023/06/18 12:37:22 Copy the code here to continue:
>> Enter Code >> *here i enter the code*
>> 2023/06/18 12:38:44 Making a HTTP Request to Google Ads API:
>> GET /v8/customers/1399019468 HTTP/1.1
>> Host: googleads.googleapis.com
>> User-Agent: google-ads-doctor/source
>> Developer-Token: REDACTED
>> Accept-Encoding: gzip
>>
>>
>> 2023/06/18 12:38:44 A HTTP Status (404 Not Found) is returned while 
>> calling https://googleads.googleapis.com/v8/customers/1399019468
>>
>> *2023/06/18 12:38:44 ERROR: OAuth test failed.*
>>
>>
>> I don't understand what I have done wrong. Someone can help me?
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c95b91a6-0866-45cf-9d5b-1347cb286f29n%40googlegroups.com.

Reply via email to