Hi,

I'm having an odd issue, when using the AWQL to fetch some data from a 
report, it will work if I don't order the results....

The query I am using is

    $reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, 
CriteriaType, '
        . 'Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT '
        . 'WHERE Status IN [ACTIVE, PAUSED] DURING ' . $dateRange . ' ORDER 
BY Clicks Descending';

which throws an error
    Type = 'QueryError.INVALID_ORDER_BY_CLAUSE', Trigger = '', FieldPath = 
''. 

if I remove the ORDER BY then it works fine. If I remove the Descending it 
still fails.
Is it not possible to order a report?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to