Thanks Mat
The code I used:
report_query = ("SELECT KeywordTextMatchingQuery, Clicks FROM
SEARCH_QUERY_PERFORMANCE_REPORT WHERE KeywordTextMatchingQuery IN
[{}]".format(list_of_keywords_counted))
The error is below (I've removed the CID):
'includeZeroImpressions': 'False', 'server': 'adwords.google.com',
'skipColumnHeader': 'False', 'skipReportHeader': 'True',
'skipReportSummary': 'True', 'isError': True, 'errorMessage': '<?xml
version="1.0" encoding="UTF-8"
standalone="yes"?><reportDownloadError><ApiError><type>QueryError.INVALID_WHERE_CLAUSE</type><trigger></trigger><fieldPath></fieldPath></ApiError></reportDownloadError>'}
On Friday, September 4, 2020 at 12:59:05 AM UTC+12 Mat wrote:
> Hi Green Leaf,
>
> As far as I can see, you're not using the .format() method correctly. You
> either have to put the string to be formatted in quotes or double quotes.
> Example (as an oneliner, to make it clearer):
>
> *"*SELECT Id, Criteria, AdGroupName FROM SEARCH_QUERY_PERFORMANCE_REPORT
> WHERE somecondition AND KeywordTextMatchingQuery IN [{}]*"*.format(
> keyword_list_as_string)
>
> You can find more examples in the Python reference:
> https://docs.python.org/3.8/library/string.html#format-examples
>
> To help you further I'd need to have a look at the whole AWQL string you
> are using as well as the error messages it produces.
>
>
> Regards
> Mat
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/39161e1c-7536-4e05-b9d0-0df03d078e7dn%40googlegroups.com.