Do you mean that you like to find out that a Refresh Token is still valid? 
After all, that permission can be withdrawn without your app knowing.

If that's your question, requesting just an Access Token does the trick. 
But the C# client library completely hides this logic, in which case 
calling customers.listAccessibleCustomers() is the best option. Now this 
gives some overhead, but your next question is probably how to find out 
whether your user still has access to the same MCCs as he had last time - 
to find out you need that same method.


On Tuesday, January 3, 2023 at 2:27:53 PM UTC+1 [email protected] wrote:

>   Hi,
>
> I am developing an application using Google Ads API (technology: C#).
> Users (customers) are connecting via "Connect with Google" and giving 
> permission to my application. That's OK.
>
> My question is: is there a way to understand programmatically if a 
> customer is still connected to my app? For example, I'll pass the 
> CustomerId to check if s/he is still enabled my app to manage their Ads 
> account.
>
> Now I can check this by calling ListAccessibleCustomers(). If it throws an 
> exception, I analyze the exception and decide if s/he is still connected to 
> my app.
>
> Is there a more "formal" way to do this?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/c5e65e30-78d4-448a-aacf-1a4783a48977n%40googlegroups.com.
  • Is... Özgür Nevres
    • ... Zweitze
      • ... Özgür Nevres
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to