Спасибо, вроде получилось. среда, 25 марта 2015 г., 18:33:13 UTC+2 пользователь Josh Radcliff (AdWords API Team) написал: > > Hi, > > I see from your code that you are running a CRITERIA_PERFORMANCE_REPORT. > If you want details at the Campaign level, please use the > CAMPAIGN_PERFORMANCE_REPORT > <https://developers.google.com/adwords/api/docs/appendix/reports#campaign> > instead. > > Thanks, > Josh, AdWords API Team > > On Wednesday, March 25, 2015 at 12:13:53 PM UTC-4, Сергей Бакстон wrote: >> >> >> $user->LoadService('ReportDefinitionService', ADWORDS_VERSION); >> >> >> $selector = new Selector(); >> $selector->fields = array('CampaignId', 'AdGroupId', 'Id', 'Criteria', >> 'CriteriaType', 'Impressions', 'Clicks', 'Cost'); >> >> $selector->predicates[] = new Predicate('Status', 'IN', array('ENABLED' >> )); >> $selector->predicates[] = new Predicate('CampaignId', 'IN', array('id >> company')); >> >> $reportDefinition = new ReportDefinition(); >> $reportDefinition->selector = $selector; >> $reportDefinition->reportName = 'Criteria performance report #' . >> uniqid(); >> $reportDefinition->dateRangeType = 'LAST_7_DAYS'; >> $reportDefinition->reportType = 'CRITERIA_PERFORMANCE_REPORT'; >> $reportDefinition->downloadFormat = 'CSV'; >> >> >> $reportDefinition->includeZeroImpressions = FALSE; >> >> >> $options = array('version' => ADWORDS_VERSION); >> >> >> ReportUtils::DownloadReport($reportDefinition, $filePath, $user, >> $options); >> >> пробовал так сделать >> >> среда, 25 марта 2015 г., 17:25:34 UTC+2 пользователь Josh Radcliff >> (AdWords API Team) написал: >>> >>> Hi, >>> >>> Could you share the reporting request (with any sensitive information >>> removed) you are sending? >>> >>> Thanks, >>> Josh, AdWords API Team >>> >>> On Wednesday, March 25, 2015 at 6:22:30 AM UTC-4, Сергей Бакстон wrote: >>>> >>>> Пробовал, но в данный момент выводит одну строку и никакой конкретной >>>> информации по каждой компании(не знаю, может проблема в том что часть >>>> компаний приостановленна). >>>> >>>> вторник, 24 марта 2015 г., 19:41:39 UTC+2 пользователь Josh Radcliff >>>> (AdWords API Team) написал: >>>>> >>>>> Hi, >>>>> >>>>> Sorry, I can only answer in English, but the Reporting guide >>>>> <https://developers.google.com/adwords/api/docs/guides/reporting> >>>>> contains >>>>> an example of how to do this. In addition, each client library >>>>> <https://developers.google.com/adwords/api/docs/clientlibraries> contains >>>>> a *DownloadCriteriaReport* example that shows how to run a report >>>>> using the library. >>>>> >>>>> Thanks, >>>>> Josh, AdWords API Team >>>>> >>>>> On Tuesday, March 24, 2015 at 1:37:18 PM UTC-4, Сергей Бакстон wrote: >>>>>> >>>>>> Доброе время суток. Возник следующий вопрос - как получить отчет по >>>>>> конкретной рекламной компании, имея ее ID? Буду признателен за помощь. >>>>>> >>>>>
-- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/68f5a0ed-77ed-4029-b784-d3a589108fb2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.