Hello Senthil,

This is a year old non-related thread. Please start a new one instead of 
resurrecting this old one.


-Danial, AdWords API Team.


On Thursday, August 20, 2015 at 10:10:51 PM UTC+2, Senthil Palaniswami 
wrote:
>
> David, 
>
> I am using the V201506 API in C# .Net Application by Service Account. I 
> use Service Account Email & .P12 Key file to access this, but i get the 
> below error. Could you please assist ? Thanks 
>
> *Failed to get access token for service account.*
>
> *{*
>
> *  "error" : "unauthorized_client",*
>
> *  "error_description" : "Unauthorized client or scope in request."*
>
> *}*
>
>
> Thanks
> Senthil
>
> On Monday, April 14, 2014 at 7:17:23 AM UTC-4, Danial Klimkin wrote:
>>
>> Hello David,
>>
>>
>> There is definitely a limit on how often you can request a new refresh / 
>> access tokens. It's recommended to re-share them between threads / services.
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Friday, April 11, 2014 5:57:36 PM UTC+4, DavM wrote:
>>>
>>> Hi Danial
>>>
>>> I've managed to eradicate 'Failed to get access token for service 
>>> account.{  "error" : "invalid_request"}"}' for now by sharing the 
>>> "AdWordsUser" object between all threads in my application.
>>>
>>> Does that mean the error can relate to throttling?
>>>
>>> Cheers
>>>
>>> David
>>>
>>> On Thursday, 10 April 2014 14:12:42 UTC+1, Danial Klimkin wrote:
>>>>
>>>> Hello,
>>>>
>>>>
>>>> As mentioned above, user interaction is required only once, user needs 
>>>> to indicate he / she agrees the account will be managed by your 
>>>> application.
>>>>
>>>> When this is done you receive a refresh token which can be used in your 
>>>> scheduled tasks with no additional user interaction required. Please see:
>>>>
>>>>   
>>>> https://developers.google.com/adwords/api/docs/guides/clientlogin-to-oauth2-migration-guide
>>>>
>>>>
>>>> -Danial, AdWords API Team.
>>>>
>>>> On Thursday, April 10, 2014 4:47:20 PM UTC+4, otser...@allthingsweb.gr 
>>>> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> My problem is that i use the adwords api on various scheduled tasks 
>>>>> that user interaction is not possible.
>>>>> Can you describe me or redirect me to a link that shows clearly how to 
>>>>> use adwords api with no user interaction? Is this even possible?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Τη Πέμπτη, 10 Απριλίου 2014 2:54:56 μ.μ. UTC+3, ο χρήστης Danial 
>>>>> Klimkin έγραψε:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>>
>>>>>> We recommend to either use "Installed application" or "Web 
>>>>>> application" flows. The former one for the cases when you manage only 
>>>>>> your 
>>>>>> accounts (all accounts are linked to a single MCC) and the latter when 
>>>>>> you 
>>>>>> manage unlinked 3rd party accounts.
>>>>>>
>>>>>> In both cases, user interaction is only required once (per user), to 
>>>>>> grant the access. Once access is granted you receive a refresh token you 
>>>>>> can use indefinitely with no further user input required.
>>>>>>
>>>>>>
>>>>>> -Danial, AdWords API Team.
>>>>>>
>>>>>>
>>>>>> On Wednesday, April 9, 2014 5:12:06 PM UTC+4, 
>>>>>> otser...@allthingsweb.gr wrote:
>>>>>>>
>>>>>>> Thanks for the reply.
>>>>>>>
>>>>>>> Yes i am running a Google Apps domain. I implemented each step of 
>>>>>>> the procedure correctly i guess as i get some results back. But 
>>>>>>> sometimes i 
>>>>>>> get  *Failed to get access token for service account.\n{\n 
>>>>>>>  \"error\" : \"invalid_request\"\n}"}*
>>>>>>>
>>>>>>> Do i miss something?
>>>>>>>
>>>>>>> Otherwise is there a way to use the api with <add key="OAuth2Mode" 
>>>>>>> value="APPLICATION" /> without user interaction?
>>>>>>>
>>>>>>>
>>>>>>> Τη Τετάρτη, 9 Απριλίου 2014 3:43:10 μ.μ. UTC+3, ο χρήστης Danial 
>>>>>>> Klimkin έγραψε:
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>>
>>>>>>>> Are you running a Google Apps domain? In most cases, you should not 
>>>>>>>> be using Service Accounts unless you need very specific features like 
>>>>>>>> impersonation.
>>>>>>>>
>>>>>>>> Please see this guide for more details:
>>>>>>>>
>>>>>>>>   
>>>>>>>> https://developers.google.com/adwords/api/docs/guides/service-accounts
>>>>>>>>
>>>>>>>>
>>>>>>>> -Danial, AdWords API Team.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tuesday, April 8, 2014 7:22:56 PM UTC+4, 
>>>>>>>> otser...@allthingsweb.gr wrote:
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> i use the new adwords api (v201402) and i have trouble downloading 
>>>>>>>>> reports via api.
>>>>>>>>> I have successfully completed the entire procedure of service 
>>>>>>>>> account (
>>>>>>>>> https://developers.google.com/adwords/api/docs/guides/service-accounts
>>>>>>>>> ).
>>>>>>>>> I use this configuration:
>>>>>>>>>
>>>>>>>>>     <add key="OAuth2Mode" value="SERVICE_ACCOUNT" />
>>>>>>>>>     <add key="OAuth2ServiceAccountEmail" value="
>>>>>>>>> x...@developer.gserviceaccount.com" />
>>>>>>>>>     <add key="OAuth2PrnEmail" value="xxx" />
>>>>>>>>>     <add key="OAuth2JwtCertificatePath" 
>>>>>>>>> value="path-privatekey.p12" />
>>>>>>>>>     <add key="OAuth2JwtCertificatePassword" value="xxx" />
>>>>>>>>>
>>>>>>>>> and i have registered the scope successfully
>>>>>>>>>
>>>>>>>>> But sometimes (not always) i get this message : *"Failed to get 
>>>>>>>>> access token for service account" *
>>>>>>>>>
>>>>>>>>> Can you help me please?
>>>>>>>>>
>>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/caa8f06c-fb4e-45cf-af36-3afb572f11e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to