Hi Saidar,

I am a colleague of Dannison and I would like to make a correction on our 
previous answer. I have tried replicating your issue on my end and found 
out that the error is caused by the select clause field name "Id" and the 
where clause field name "Status". Kindly replace "Id" with "AdGroupId" and 
"Status" with "AdGroupStatus" instead. You may also refer here 
<https://developers.google.com/adwords/api/docs/appendix/reports/adgroup-performance-report>
 for 
the complete list of attributes/fields the Adgroup Performance report 
allows. Also, I would like to point out that your constant variable 
ENABLED_STATUS should be equal to "ENABLED" String value. Let me know if 
error persists after trying the solution mentioned.

Best regards,
Vincent
AdWords API Team

On Wednesday, November 7, 2018 at 11:56:21 PM UTC+8, 
[email protected] wrote:
>
> Hi everyone!
>
> I faced with another one issue, and cannot understand what can be a 
> problem...
>
> ReportQuery query = new ReportQuery.Builder()
> .fields(
> "Id")
> .from(ReportDefinitionReportType.ADGROUP_PERFORMANCE_REPORT)
> .where("Status").equalTo(ENABLED_STATUS)
> .build();
>
> ReportingConfiguration reportingConfiguration =
> new ReportingConfiguration.Builder()
> .skipColumnHeader(true)
> .skipReportHeader(true)
> .skipReportSummary(false)
> .includeZeroImpressions(true)
> .build();
> session.setReportingConfiguration(reportingConfiguration);
> ReportDownloaderInterface reportDownloader =
> adWordsServices.getUtility(session, ReportDownloaderInterface.class);
> BufferedReader reader = null;
> AdGroupStoreIterator adGroupStoreIterator = new AdGroupStoreIterator(new 
> ArrayList<>());
> try {
> // Set the property api.adwords.reportDownloadTimeout or call
> // ReportDownloader.setReportDownloadTimeout to set a timeout (in 
> milliseconds)
> // for CONNECT and READ in report downloads.
> final ReportDownloadResponse response =
> reportDownloader.downloadReport(query.toString(), DownloadFormat.CSV);
> // Read the response as a BufferedReader.
> reader = new BufferedReader(new 
> InputStreamReader(response.getInputStream(), UTF_8));
>
>
> on the line "ReportDownloaderInterface reportDownloader = 
> adWordsServices.getUtility(session, 
> ReportDownloaderInterface.class);" the programm go to the catch block an 
> shows me these output:
>
> [07 Nov. 2018 16:38:46,500-report_download:INFO:main] HTTP request:
> accept-encoding: [gzip]
> authorization: REDACTED
> user-agent: [unknown (AwApi-Java, AdWords-Axis/4.1.0, Common-Java/4.1.0, 
> Axis/1.4, Java/10.0.2, jars, ReportDownloader, ReportQueryBuilder)]
> developertoken: REDACTED
> clientcustomerid: 8****-4495
> skipreportheader: false
> skipcolumnheader: false
> skipreportsummary: false
> includezeroimpressions: true
>
>
> Could you please explain what I am doing wrong?
>
> Thanks!!
> Saidar
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5bf8eec8-ccde-4180-be4b-6211923f48e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... saidar
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... 'Vincent Racaza (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to