I tried this sample

GET /v4/customers/CUSTOMER_ID HTTP/1.1
Host: googleads.googleapis.com
Authorization: Bearer ACCESS_TOKEN     <-- Here I use access token 
generated by gapi.js library sign in.
developer-token: DEVELOPER_TOKEN   

It seems to be working fine. Is this the right way?
I wonder how to do that in google.ads.googleads python library?
On Thursday, July 23, 2020 at 8:04:27 AM UTC+3 Aidis Stukas wrote:

> One more detail i found at 
> https://developers.google.com/identity/protocols/oauth2/web-server
> > After obtaining an access token*, your application can use that token 
> to authorize API requests on behalf of a given user account or service 
> account*. 
>
> Is that true for Google Ads Api too?
> On Thursday, July 23, 2020 at 7:45:42 AM UTC+3 Aidis Stukas wrote:
>
>> 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/6e7b50a6-fda3-4a7d-973b-bf26f610f360n%40googlegroups.com.

Reply via email to