Hi:
  so if want to use google ads api, we must require our customers to  login 
in google, to generate the authorization code or tokens with using OAuth is 
the only way ? we can't get  *authorization code for tokens *through google 
ads api directly,?
    Thanks!

On Friday, September 24, 2021 at 11:51:27 AM UTC+8 adsapi wrote:

> Hi,
>
> Thank you for the additional details. I work with Yasar and allow me to 
> assist you as well.
>
> Whether you will be using the desktop or the web app flow 
> <https://developers.google.com/google-ads/api/docs/oauth/client-library?hl=en#configure_client_library_with_oauth2_credentials>,
>  
> you will still be required to perform steps via the browser for completing 
> the process of generating your refresh token.
>
> This should generally be a one time or rare process to perform. You can 
> also check out this guide 
> <https://developers.google.com/identity/protocols/oauth2#expiration> for 
> causes on why your refresh token may become invalid, and therefore require 
> you to generate them once more.
>
> There is also the option of using a service account 
> <https://developers.google.com/google-ads/api/docs/oauth/service-accounts?hl=en>
>  for 
> authentication. However, as per the guide as well it states that :
>
> *We strongly recommend using OAuth2 desktop app or web app flow 
> <https://developers.google.com/google-ads/api/docs/oauth/cloud-project#choose_an_application_type>
>  instead 
> of service accounts unless you need a domain-specific feature (for example, 
> impersonation). OAuth2 desktop app and web app flows do require an initial 
> user interaction for granting access to the account, but are much simpler 
> to set up.*
>
> I hope this helps.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2OSzV3: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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e9a31f77-eaf7-460d-b144-4a92d52f4d02n%40googlegroups.com.

Reply via email to