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
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 = '