Danial, I have checked and login credential are I am using are correct. I am able to login through UI using UserAgent email and password.but UserAgent Email and ClientEmail are two different email address.
Thanks, Snehal On Monday, 24 September 2012 14:26:10 UTC+5:30, Danial Klimkin wrote: > > Hello Snehal, > > > It looks like the login credentials you are using are not valid for the > account you are trying to access. Please check the clientCustomerId is > correct and if you can access this account via the UI with the same login. > > > -Danial, AdWords API Team. > > > On Friday, September 21, 2012 2:39:26 PM UTC+4, Snehal Patel wrote: >> >> Hi, >> >> I am getting following error while downloading Keyword Performance report. >> >> {"Report contents are invalid. - !!!2|||-1|||<eye3-stackless >> title='AuthServer User Error USER_PERMISSION_DENIED'/> >> AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>'; >> errorDetails:message=authenticated external userId=82151493 from >> customerId=80562453 accessing customerId=21905347 discarded paths: >> [{[21905347] ( Inactive:6)}]???"} >> >> Also Following is the code sample I am using: >> >> >> ---------------------------------------------------------------------------------------------------------------------------------------------- >> >> Dim user As New AdWordsUser() >> >> Dim fileName As String = "AdGroup" >> >> Dim definition As New ReportDefinition >> >> definition.reportName = "Keywords performance report #" >> definition.reportType = >> ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT >> definition.downloadFormat = XML >> definition.dateRangeType = >> ReportDefinitionDateRangeType.LAST_7_DAYS >> >> >> Dim selector As New Selector >> selector.fields = New String() {"AdGroupName", "CampaignName", >> "KeywordText", "Cost", "Clicks"} >> >> Dim predicate As New Predicate >> predicate.field = "Status" >> predicate.operator = PredicateOperator.IN >> predicate.values = New String() {"ENABLED", "PAUSED"} >> selector.predicates = New Predicate() {predicate} >> >> definition.includeZeroImpressions = True >> definition.selector = selector >> >> Dim filePath As String = "d:\test\" & fileName >> >> Try >> Dim utilities As New ReportUtilities(user) >> ' ' If you know that your report is small enough to fit in >> memory, then >> ' ' you can instead use >> Dim report As ClientReport = >> utilities.GetClientReport(definition) >> >> ' ' Get the text report directly if you requested a text >> format >> ' ' (e.g. xml) >> Dim reportText As String = report.Text >> >> ' ' Get the binary report if you requested a binary format >> ' ' (e.g. gzip) >> Dim reportBytes As Byte() = report.Contents >> >> ' ' Deflate a zipped binary report for further processing. >> Dim deflatedReportText As String = >> System.Text.Encoding.UTF8.GetString(MediaUtilities.DeflateGZipData(report.Contents)) >> utilities.DownloadClientReport(Of >> ReportDefinition)(definition, filePath) >> >> Catch ex As Exception >> >> End Try >> >> >> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- >> >> Please suggest any solutions. >> >> >> Thanks in Advance >> Snehal >> >> -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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