ADGROUP_PERFORMANCE_REPORT: no data returned in AdWords API

75 views
Skip to first unread message

wenbin hua

unread,
Dec 4, 2019, 5:56:02 AM12/4/19
to AdWords API and Google Ads API Forum

$selector = new Selector();
$selector->setFields(
[
"AdGroupId", "AdGroupName", "Cost"
]
);
// Create report definition.
$reportDefinition = new ReportDefinition();
$reportDefinition->setSelector($selector);
$reportDefinition->setReportName(
'ADGROUP performance report '
);
$reportDefinition->setDateRangeType(
ReportDefinitionDateRangeType::LAST_7_DAYS
);
$reportDefinition->setReportType(
ReportDefinitionReportType::ADGROUP_PERFORMANCE_REPORT
);
$reportDefinition->setDownloadFormat(DownloadFormat::CSV);
// Download report.
$reportDownloader = new ReportDownloader($session);


$reportSettingsOverride = (new ReportSettingsBuilder())->includeZeroImpressions(true)->build();
$reportDownloadResult = $reportDownloader->downloadReport(
$reportDefinition,
$reportSettingsOverride
);
$reportDownloadResult->saveToFile($filePath);

no data returned

Google Ads API Forum Advisor Prod

unread,
Dec 4, 2019, 12:16:17 PM12/4/19
to wen...@89trillion.com, adwor...@googlegroups.com

Hi Wenbin,

Thank you for reaching out. Can you also please share your client customer ID via reply privately to author so that I can further investigate the issue?

Regards,
Mitchell
Google Ads API Team



ref:_00D1U1174p._5001UODniC:ref

wenbin hua

unread,
Dec 4, 2019, 10:40:54 PM12/4/19
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Hi
customer ID:748-343-2707

Google Ads API Forum Advisor Prod

unread,
Dec 5, 2019, 2:23:26 PM12/5/19
to wen...@89trillion.com, adwor...@googlegroups.com
Hi Wenbin,

Thank you for providing that information. I see that all of your campaigns are App Campaigns. Unfortunately, the AdGroup Performance Report does not support App Campaigns. See here for the list of supported reports.
Reply all
Reply to author
Forward
0 new messages