Hi,

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') . 
'/extras/adsapi_php.ini')
            ->build();

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

I got: "Cannot access private property 
Google\AdsApi\AdWords\Reporting\v201605\ReportDefinition::$selector"

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 
escribió:
>
> 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+:
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 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
--- 
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 
https://groups.google.com/d/msgid/adwords-api/aabdcba5-bbe2-4424-a846-b2bc6b38dae4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to