Hello all,

*Solution Tried: *
I could not implement the mentioned command in Windows because if I have 
installed the oauth2l using pip, then it does not recognize the provided 
flags. Additionally, the documentation for this package isn't very clear. I 
tried the same command (mentioned below) in Ubuntu, and it successfully 
opens the consent screen.

*oauth2l fetch --credentials credentials.json --scope adwords \ 
--output_format refresh_token*
*Blocker:*
However, I am again facing an issue. The consent screen URL contains the 
callback URL. I have created a dummy server with the same endpoint as 
mentioned in the URL. However, when the login is successful, it just makes 
a GET API request to the server with an empty body. 
How am I supposed to get the refresh token?
On Friday, September 15, 2023 at 5:17:06 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> After reviewing your concern, I understand that you are trying to make a 
> call to Google Ads API to generate the refresh token but getting an error 
> "unrecognized arguments" while adding the scope flag.
>
> I would recommend you to check this guide 
> <https://developers.google.com/google-ads/api/docs/get-started/make-first-call#fetch_a_refresh_token>
>  to 
> make sure that you have followed all the steps to fetch a refresh token. 
>
> All Google Ads API calls must be authorized through OAuth2. OAuth2 enables 
> your Google Ads API client app to access a user's Google Ads account 
> without having to handle or store the user's login info. To know more about 
> the steps that must be completed to authorize requests to the Google Ads 
> API, I would suggest you refer to this guide 
> <https://developers.google.com/google-ads/api/docs/oauth/overview#:~:text=The%20following%20steps%20must%20be%20completed%20to%20authorize%20requests%20to%20the%20Google%20Ads%20API.>
> .
>
> If the issue still persists, please provide us with the complete API logs (
> request 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  
> and response 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  
> with request-id 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  
> and request header 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
>  
> generated at your end so that we can better assist you.
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides Java 
> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>
> , .Net 
> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
> , PHP 
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
> , Python 
> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>
> , Ruby 
> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging>
>  or Perl 
> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> 
> to 
> enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>
>
>   
> This message is in relation to case "ref:_00D1U1174p._5004Q2olRy2: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/5a9c1dec-59c7-406f-98fb-35a3a29e259bn%40googlegroups.com.

Reply via email to