i'm trying to get success with downloading a report but im confused on the 
documents because im using namespaced dev experimental branch of api.
My code is the following:

$oAuth2Credential = (new OAuth2TokenBuilder())
            ->fromFile(drupal_get_path('module', 'rcv_api') . 

        $session = (new AdWordsSessionBuilder())
            ->fromFile(drupal_get_path('module', 'rcv_api') . 
        // Create selector.
        $selector = new Selector();
        $selector->setOrdering(array(new OrderBy('AdGroupName', 
        //Create Report Defnition
        $reportDefinition = new ReportDefinition();
        $reportDefinition->selector = $selector;
        $reportDefinition->reportName = 'Video performance report #' . 
        $reportDefinition->dateRangeType = 'LAST_7_DAYS';
        $reportDefinition->reportType = 'VIDEO_PERFORMANCE_REPORT';
        $reportDefinition->downloadFormat = 'CSV';
        $reportDownloader = new ReportDownloader();
        $reportDownloader->session = $session;
        $report = $reportDownloader->downloadReport($reportDefinition, 

I got: "Cannot access private property 

I'm sure i'm not doing the thing right. Can you help me? Thank you,

El lunes, 19 de septiembre de 2016, 11:16:22 (UTC+2), Peter Oliquino 
> Hi,
> I could see based on your screenshot that your campaigns are video 
> campaigns. Unfortunately, video campaigns are currently not supported in 
> the services of the AdWords API. Video campaigns information however, can 
> be viewed via the AdWords UI and the reports in the AdWords API 
> <https://developers.google.com/adwords/api/docs/guides/campaigns-overview#differences_from_the_adwords_ui>.
> In your case, you may use the Campaign Performance Report 
> <https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report>
>  and 
> filter using the AdvertisingChannelType 
> <https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#advertisingchanneltype>
>  field. 
> I hope this helps.
> Best regards,
> Peter
> AdWords API Team

Also find us on our blog and Google+:

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
For more options, visit this group at
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to