I can confirm that I have;

   1. gotten a developer token
   2. set up a Google API Console project
   3. created a consent screen
   4. gotten a client ID and a client secret
   5. downloaded the credentials file from the page in step 4

The credentials file contains the following nodes (real values replaced of 
course);

{
"web": {
"client_id":"XXXXXXXXXXXXXXXXXX.apps.googleusercontent.com",
"project_id":"XXXXXXXXXXXXXXX",
"auth_uri":"https://accounts.google.com/o/oauth2/auth";,
"token_uri":"https://oauth2.googleapis.com/token";,
"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs";,
"client_secret":"XXXXXXXXXXXXXXXXXXXXXX"
}
}

On Wednesday, November 29, 2023 at 1:45:32 PM UTC+1 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> By reviewing your query, I understand that you are encountering an issue 
> with the 'oauth2l' tool while trying to generate a refresh token for the 
> Google Ads API. The error "missing 'type' field in credentials" usually 
> indicates that there might be an issue with the structure or content of the 
> credentials JSON file. Could you please confirm whether you have followed 
> all the prerequisites 
> <https://developers.google.com/google-ads/api/docs/get-started/introduction> 
> before 
> executing the command? Ensure that the downloaded credentials JSON file is 
> in the correct format. Kindly check the required fields are present in your 
> credentials JSON file. The error may be triggered if a required field is 
> missing. If the issue persists, try regenerating the credentials JSON file 
> from the Google Cloud Console. Make sure to download the JSON file again 
> and use the new one. Also, you refer to this youtubte video 
> <https://youtube.com/playlist?list=PLKByxjzUC-N-68D8YyEhFcOvBFRcLAmY5> to 
> know more about how authentication and authorization work in the Google Ads 
> API.
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02qVYIl:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b2738497-8ad0-4dbc-ad43-2ad53f27c258n%40googlegroups.com.
  • oa... TM Drift
    • ... Dane christian Neilson
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... TM Drift
        • ... TM Drift
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to