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) < > [email protected]> 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 = " >> [email protected]" ; >> >> user.OAuthProvider.Config.OAuth2PrnEmail = " >> [email protected]"; >> >> 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 [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 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 > [email protected]. > 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 [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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. 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/f4998214-071e-4e05-9693-a9c3e9e92704%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
