Hello, You could use Parallel report download that allows users to generate reports for all the accounts under an MCC in multiple parallel threads. This report should be run against an AdWords manager account. All you have to do is specify the manager account customer ID as clientCustomer ID in the adsapi_php.ini file. This will retrieve all the accounts that are in the hierarchy and generate the report stats. You could refer to the Parallel report download code sample in PHP here <https://developers.google.com/adwords/api/docs/samples/php/reporting#parallel-report-download> .
Regards, Bharani, AdWords API Team On Friday, December 8, 2017 at 4:47:35 AM UTC-5, vananpp...@gmail.com wrote: > > Hi Team, > I need to get report for multiple client accounts under one manager > account. I dont know how to use this feature. my client id and other > configuration are configured in 'adsapi_php.ini' file. > > $selector = new Selector(); > $FromDate = ($fromdate) ? $fromdate : date('Ymd'); > $ToDate = ($todate) ? $todate : date('Ymd'); > $selector->setDateRange(new DateRange($FromDate, $ToDate)); > $selector->setFields(['CampaignName', 'AdGroupName', 'Criteria', > 'QualityScore', 'Impressions', 'Clicks', 'Ctr', 'AverageCpc', 'Cost', > 'AveragePosition', 'Conversions']); //, 'CostPerConversion', > 'ConversionRate', 'AllConversions', 'ViewThroughConversions' > // $selector->setPredicates([new Predicate('Status', > PredicateOperator::NOT_IN, ['PAUSED'])]); > $reportDefinition = new ReportDefinition(); > $reportDefinition->setSelector($selector); > $reportDefinition->setReportName( > 'Criteria performance report #' . uniqid()); > $reportDefinition->setDateRangeType( > ReportDefinitionDateRangeType::CUSTOM_DATE); > $reportDefinition->setReportType(ReportDefinitionReportType:: > KEYWORDS_PERFORMANCE_REPORT); > // $reportDefinition->setReportType(ReportDefinitionReportType:: > KEYWORDLESS_QUERY_REPORT); > $reportDefinition->setDownloadFormat(DownloadFormat::CSV); > > // Download report. > $reportDownloader = new ReportDownloader($session); > // Optional: If you need to adjust report settings just for this > one > // request, you can create and supply the settings override here. > Otherwise, > // default values from the configuration file (adsapi_php.ini) are > used. > $reportSettingsOverride = (new ReportSettingsBuilder()) > ->includeZeroImpressions(false) > ->build(); > $reportDownloadResult = $reportDownloader->downloadReport( > $reportDefinition, $reportSettingsOverride); > $reportDownloadResult->saveToFile($filePath); > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/5320f29f-a117-4527-a1c2-712c328403ec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.