Hi Senthil,

That error means that the prn email you specified does not have access to 
any AdWords accounts. Please try setting the prn email to a user who has 
access to the AdWords account you are trying to access via your API request.

Thanks,
Josh, AdWords API Team

On Monday, August 24, 2015 at 4:33:07 PM UTC-4, Senthil Palaniswami wrote:
>
> thanks Josh. 
>
> When i remove that or change the prn email to my service account email, i 
> get the below errrors. 
>
>
> *An API exception has occurred. See ApiException and InnerException fields 
> for more details.*
> {Google.Api.Ads.AdWords.Lib.AdWordsApiException: An API exception has 
> occurred. See ApiException and InnerException fields for more details. ---> 
> System.Web.Services.Protocols.SoapException: 
> [AuthenticationError.NOT_ADS_USER @ ; trigger:'<null>']
>    at 
> System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
>  
> message, WebResponse response, Stream responseStream, Boolean asyncCall)
>    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String 
> methodName, Object[] parameters)
>    at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String 
> methodName, Object[] parameters)
>    --- End of inner exception stack trace ---
>    at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String 
> methodName, Object[] parameters)
>    at Google.Api.Ads.Common.Lib.AdsSoapClient.Invoke(String methodName, 
> Object[] parameters)
>    at Google.Api.Ads.AdWords.v201506.CampaignService.get(Selector 
> serviceSelector)
>    at VS2010_AdWords.Program.Main(String[] args) 
>
> On Monday, August 24, 2015 at 4:05:19 PM UTC-4, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi Senthil,
>>
>> The prn email in your config cannot be a gmail.com user -- it must be a 
>> user within your Google Apps Domain. The service account flow allows you to 
>> impersonate *any user* within the domain. You won't be able to use that 
>> flow to impersonate a gmail.com user, because if you could, you'd be 
>> able to impersonate any Gmail user.
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Monday, August 24, 2015 at 11:38:19 AM UTC-4, Senthil Palaniswami 
>> wrote:
>>>
>>> Thanks Josh for your reply .
>>>
>>> Yes, I followed all the steps in the below links .. 
>>>
>>>
>>>
>>> On Aug 24, 2015, at 10:55 AM, Josh Radcliff (AdWords API Team) <
>>> adwordsapia...@google.com> wrote:
>>>
>>> Hi Senthil,
>>>
>>> Have you gone through the steps to grant the AdWords scope?
>>>
>>>
>>> https://developers.google.com/adwords/api/docs/guides/service-accounts#impersonation
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Monday, August 24, 2015 at 8:49:40 AM UTC-4, Senthil Palaniswami 
>>> wrote:
>>>>
>>>> Team, 
>>>>
>>>> I am trying to get the Google AdWords Campaign data by C# Console 
>>>> application with the below settings, using the service account method. But 
>>>> i get the error_description" : "Unauthorized client or scope in 
>>>> request." , it doesn't make sense. Because the same is used in Google 
>>>> Analytics Core V3 API, it works fine. Not sure what is going on, could 
>>>> anyone please direct me here. Thanks a bunch .. 
>>>>
>>>>            user.OAuthProvider.Config.OAuth2Mode = 
>>>> OAuth2Flow.SERVICE_ACCOUNT;  
>>>>
>>>>
>>>>             user.OAuthProvider.Config.OAuth2CertificatePath = 
>>>> @"c:\SCXXXXXXXXXX-fa275b332b6c.p12";
>>>>
>>>>             user.OAuthProvider.Config.OAuth2ServiceAccountEmail = "
>>>> 647795xxxxxxxxxxxxxxxxxxxxxxxx...@developer.gserviceaccount.com" ;
>>>>
>>>>             user.OAuthProvider.Config.OAuth2PrnEmail = "
>>>> xxxxxxxx...@gmail.com";
>>>>
>>>>             user.OAuthProvider.Config.OAuth2ClientId = "
>>>> 647797670307-XXXXXXXXadov5.apps.googleusercontent.com";
>>>>
>>>>           user.OAuthProvider.Config.OAuth2Scope = "
>>>> https://www.googleapis.com/auth/adwords";;
>>>>
>>>>             user.OAuthProvider.Config.OAuth2CertificatePassword = 
>>>> "notasecret";
>>>>
>>>>
>>>> thanks
>>>> Senthil
>>>>
>>> -- 
>>> -- 
>>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>>> 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 adwor...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> adwords-api...@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 a topic in the 
>>> Google Groups "AdWords API Forum" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/adwords-api/gx2nFBGrNxM/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> adwords-api...@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/bbf79554-380e-4c2c-b92b-2ff8600588e4%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/adwords-api/bbf79554-380e-4c2c-b92b-2ff8600588e4%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d933f92d-c837-4feb-89ff-424aad0af128%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to