simbor / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
Apache License 2.0
0 stars 0 forks source link

ORDER BY Clicks DESC Returns INVALID_ORDER_BY_CLAUSE #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of the library are you using?
4.2.2

Which version of PHP are you using?
5.3.15

What steps will reproduce the problem?
Run ReportUtils::DownloadReportWithAwql with a query:
SELECT Query, MatchType, Clicks, Cost, Impressions FROM 
SEARCH_QUERY_PERFORMANCE_REPORT WHERE AdGroupId = "{ADGROUPID}" DURING 
20130621,20130721 ORDER BY Clicks DESC

Query without ORDER BY Clicks DESC works all OK.

What is the expected output? What do you see instead?
Expected is a report sorted by Clicks Desc however at the moment we are 
receiving: 'ReportDownloadException' with message 'Report download failed. 
Underlying errors are 
Type = 'QueryError.INVALID_ORDER_BY_CLAUSE', Trigger = '', FieldPath = ''  

Original issue reported on code.google.com by mar...@feedoptimise.com on 21 Jul 2013 at 4:18

GoogleCodeExporter commented 8 years ago
Hi Marcin,

Thank you for reporting this issue, but this bug tracker is for PHP errors. The 
error you're experiencing is not related to the PHP library, it's related to 
the AdWords API its self. Please submit this error to the AdWords API Forum, 
where it'll be handled appropriately:

https://groups.google.com/forum/#!forum/adwords-api

Regards,

- Paul, AdWords API Team.

Original comment by api.pmat...@gmail.com on 22 Jul 2013 at 2:41