Hi Mitchell,

Thanks for confirming that its a two step process: I have to use my 
credentials to send link request and user credentials have to be used to 
accept the request.

Thanks for the links, I have visited them previously, but one part is still 
not clear to me.

As for user, I was only able to get access_token and id_token. Are these 
sufficient? 
>From the flow that you mentioned it sounds like that I should have users 
developer_token, client_id and client_secret. Just to clarify, its a user 
account that I do not control. I think that the user should not be sending 
these to me.


Some brainstorming thoughts:

   - I stumbled upon some mentions settings Bearer Authentication header to 
   access token value. Maybe this is something what I should look at. (There 
   is no mention of it in google-ads-python library)
   - Maybe I should to steps before linking account? For example, I should 
   be able to somehow list customer id that can be managed by the user @ 
   mail.com who authorized me to manage his Ads accounts.


Thanks again and
let me know if I can provide any info to make this easier.


On Wednesday, July 22, 2020 at 10:15:01 PM UTC+3 adsapiforumadvisor wrote:

> Hi Aidis,
>
> Thank you for reaching out. Once you have credentials generated for the 
> user, they can be filled in as explained here 
> <https://developers.google.com/google-ads/api/docs/first-call/refresh-token#python>
>  
> to make calls for that user using the client library. So at first, you 
> should use your credentials to send the link request then you can use the 
> user's credentials to accept the request. In order to make calls for a 
> user, you need all of their credentials if you are using the installed 
> app flow 
> <https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-installed>.
>  
> Depending on how your application is structured, you might want to look 
> into using a service account flow 
> <https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-service>
>  
> which will allow you to impersonate users in your domain.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5004Q22YCDM: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/44fd098e-5b3c-4ef0-8f97-6336a40783edn%40googlegroups.com.

Reply via email to