includeZeroImpressions is not supported for this request

66 views
Skip to first unread message

Ray Chang

unread,
Apr 18, 2018, 6:35:29 AM4/18/18
to AdWords API Forum
Caused by: HTTP Response Code: 400, Trigger: includeZeroImpressions is not supported for this request, Type: ReportDownloadError.ZERO_IMPRESSIONS_REQUEST_NOT_SUPPORTED





[18 Apr 2018 08:32:14,718-report_download:INFO:pool-1-thread-11] HTTP request:
accept
-encoding: [gzip]
authorization
: REDACTED
user
-agent: [AwAlerting-zhengzhou_xizhi_tbu_aw_api (AwApi-Java, Common-Java/3.12.0, Java/1.8.0_73, maven)]
developertoken
: REDACTED
clientcustomerid
: 8824928745
skipreportheader
: true
skipcolumnheader
: false
skipreportsummary
: true
includezeroimpressions
: true


Content:
__rdquery
: SELECT ExternalCustomerId,AccountDescriptiveName,Query,Cost FROM SEARCH_QUERY_PERFORMANCE_REPORT WHERE  Impressions>0 and CampaignStatus=ENABLED and AdGroupStatus=ENABLED and Cost>10000000 DURING LAST_7_DAYS
__fmt
: GZIPPED_CSV


i know it because AccountDescriptiveName not support Zero Impressions, but in AWQL  , i set Impressions>0

{
 
"name":"搜索字词报告",
 
"type":"awql_report_query",
 
"cache_table":"aw_alerting_tmp._account_searchquery_cost_top10_not_added_1",
 
"cache_table_accountId_field":"ExternalCustomerId",
 
"ReportQuery": {
   
"ReportType": "SEARCH_QUERY_PERFORMANCE_REPORT",
   
"Fields": "ExternalCustomerId,AccountDescriptiveName,Query,Cost",
   
"Conditions": " Impressions>0 and CampaignStatus=ENABLED and AdGroupStatus=ENABLED and Cost>10000000",
   
"DateRange": "LAST_7_DAYS"
 
}},

"Conditions": " Impressions>0 and CampaignStatus=ENABLED and AdGroupStatus=ENABLED and Cost>10000000",

why also have this error, how to solve it ?

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Apr 18, 2018, 1:32:25 PM4/18/18
to AdWords API Forum
Hi, 

You have to set the to includeZeroImpressions to false in the header. Please check the line of code in Java sample where you can set this. Once you have this set to false, you could take out the condition "Impressions>0". Please give this a try and let me know if you are facing any issues. 

Thanks,
Sreelakshmi, AdWords API Team
Reply all
Reply to author
Forward
0 new messages