Hello,

You can read more about how to set up service accounts for AdWords 
specifically at our service accounts guide 
<https://developers.google.com/adwords/api/docs/guides/service-accounts>. 
However, if you already have it up and running using the installed 
application flow, I suggest leaving it as is.

Regards,
Mike, AdWords API Team

On Friday, March 13, 2015 at 2:31:41 AM UTC-4, Андрей Козлов wrote:
>
> Thx, it finally works. But i'm kinda confused, what's wrong with my 
> service account approach?. I mean, i have done all steps described in 
> service account oauth2 guide, and it didn't work for some reason.
>
> четверг, 12 марта 2015 г., 21:52:20 UTC+3 пользователь Michael Cloonan 
> (AdWords API Team) написал:
>>
>> Hello,
>>
>> There is generally no reason to use a service account for the AdWords 
>> API. Please try setting up the installed application OAuth 2.0 flow by 
>> following the instructions on our AdWords-specific O:Auth guide 
>> <https://developers.google.com/adwords/api/docs/guides/authentication>.
>>
>> Regards,
>> Mike, AdWords API Team
>>
>> On Thursday, March 12, 2015 at 11:57:05 AM UTC-4, Андрей Козлов wrote:
>>>
>>> Hello,
>>>
>>> I'm using AdWords .net api library vid service account and when i'm 
>>> trying to call some method i got this error:
>>>
>>> {"Failed to get access token for service account.\n{\n  \"error\" : 
>>> \"access_denied\",\n  \"error_description\" : \"Requested client not 
>>> authorized.\"\n}"}
>>>
>>>
>>> My App.Config looks like this:
>>>
>>> <add key="DeveloperToken" value="~token"/>
>>> <add key="OAuth2Mode" value="SERVICE_ACCOUNT" />
>>>     <add key="OAuth2ServiceAccountEmail"
>>>         value="emailfromdevelopercons...@developer.gserviceaccount.com" 
>>> />
>>>     <add key="OAuth2PrnEmail" value="mymmc...@mydomain.net" />
>>>     <add key="OAuth2JwtCertificatePath"
>>>         value="pathToCert" />
>>>     <add key="OAuth2JwtCertificatePassword"
>>>         value="notasecret" />
>>> <add key="ClientCustomerId" value="111-111-1111"/>
>>>
>>> I also correlated my clientId with adWords scope, accroding to this 
>>> guide 
>>> https://developers.google.com/drive/web/delegation#delegate_domain-wide_authority_to_your_service_account
>>> . 
>>>
>>> But it doesn't work. What could i do wrong?
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c2245adb-7bf8-4b3c-9b9f-fdaf97ca5737%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to