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 [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

Reply via email to