i have given the attribute FinalUrls from CRITERIA_PERFORMANCE_REPORT  from 
but i am getting only empty values.

this is my code.

        $selector         = new Selector();
        $FromDate = ($fromdate) ? $fromdate : date('Ymd');
        $ToDate   = ($todate) ? $todate : date('Ymd');
        $selector->setDateRange(new DateRange($FromDate, $ToDate));
        $selector->setFields(['FinalUrls','CampaignName', 'AdGroupName', 
'Criteria', 'QualityScore', 'IsNegative', 'Impressions', 'Clicks', 'Ctr', 
'AverageCpc', 'Cost', 'AveragePosition', 'Conversions', 
'CostPerConversion', 'ConversionRate', 'AllConversions', 
'ViewThroughConversions']);
        $reportDefinition = new ReportDefinition();
        $reportDefinition->setSelector($selector);
        $reportDefinition->setReportName('Criteria performance report #' . 
uniqid());
        $reportDefinition->setDateRangeType(
ReportDefinitionDateRangeType::CUSTOM_DATE);
        $reportDefinition->setReportType(ReportDefinitionReportType:: 
CRITERIA_PERFORMANCE_REPORT);
        $reportDefinition->setDownloadFormat(DownloadFormat::CSV);

        // Download report.
        $reportDownloader       = new ReportDownloader($session);
        $reportSettingsOverride = (new ReportSettingsBuilder())
                ->includeZeroImpressions(false)
                ->build();
        $reportDownloadResult   = $reportDownloader->downloadReport(
                $reportDefinition, $reportSettingsOverride);
        $reportDownloadResult->saveToFile($filePath);

On Friday, 24 November 2017 06:14:10 UTC-5, Vincent Racaza (AdWords API 
Team) wrote:
>
> Hi,
>
> Thanks for providing these details.
>
> The landing page is equivalent to the FinalUrls 
> <https://developers.google.com/adwords/api/docs/appendix/reports/all-reports#finalurls>
>  attribute. 
> You can see on the link for the supported report types for this attribute. 
> If you want the FinalUrls in the keyword level, then use the Keywords 
> Performance Report 
> <https://developers.google.com/adwords/api/docs/appendix/reports/keywords-performance-report#finalurls>.
>  
> You can also use the Criteria Performance Report 
> <https://developers.google.com/adwords/api/docs/appendix/reports/criteria-performance-report>
>  if 
> you want to retrieve it on the criteria level.
>
> Also, kindly refer to my previous reply on how to generate reports in the 
> AdWords API.
>
> Thanks,
> Vincent
> 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 [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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b0eb90c4-1d0d-4d76-a212-175733c11f41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to get Landi... vananppcmanager
    • Re: How to ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
      • Re: How... vananppcmanager
        • Re:... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
          • ... vananppcmanager
            • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to