Re: How to sort a report

2011-03-07 Thread AdWords API Advisor
Hi, ordering is an array of OrderBy objects, so I believe it would be array(new OrderBy('Date', 'ASCENDING'));. See http://code.google.com/apis/adwords/docs/reference/latest/ReportDefinitionService.Selector.html#ordering for details. Cheers, Anash P. Oommen, AdWords API Advisor. On Mar 7, 9:28 

How to sort a report

2011-03-06 Thread stiggywigget
I'm trying to sort by date when defining and adding a report. In PHP: $selector->fields = array('CampaignId', 'CampaignName', 'Status', 'Clicks', 'Cost', 'Date'); $selector->ordering = array('Date'); // Is this correct? $reportDefinition = new ReportDefinition(); $reportDefinition->reportName = '