when i get report follow:
$user = new AdWordsUser();

        $user->GetAuthToken();
        $user->SetClientCustomerId($sCurrentClientID);


        // Log SOAP XML request and response.
        $user->LogDefaults();

        // Load ReportDefinitionService so that the required classes are 
available.
        $user->LoadService('ReportDefinitionService', 'v201506');

        $today = date('Y-m-d', strtotime('monday this week'));
        $pathdir = "path";
        $fileName = "$pathdir/budgetPerformance.$sCurrentClientID.csv";
        
        $reportQuery = "SELECT CampaignName, Amount, TotalCost, 
CampaignStatus
                        FROM CAMPAIGN_PERFORMANCE_REPORT
                        WHERE CampaignStatus = 'ENABLED' AND TotalCost > 0 
DURING LAST_WEEK";


        $options = array('version' => 'v201506');

        echo "downloading...\n";

        // Download report.
        ReportUtils::DownloadReportWithAwql($reportQuery, $fileName, $user, 
'CSVFOREXCEL', $options);

and give exception that: 

Report download failed. Underlying errors are 
Type = 'AuthorizationError.USER_PERMISSION_DENIED', Trigger = '<null>', 
FieldPath = ''.

how to fix them. thank you 
---sorry for my bad english----

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ada78783-8086-4a0c-ac7e-3b0bd239ca30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to