Hi Saidar,

Unfortunately, I cannot provide a comment on why it is redirecting to your 
catch function. However, you could refer to the sample codes for reporting 
provided in this guide 
<https://developers.google.com/adwords/api/docs/samples/java/reporting> and 
our reporting guidelines 
<https://developers.google.com/adwords/api/docs/guides/reporting> on how to 
download your report.

If you encounter any API related issues after following the guide, feel 
free to write us back and we will be happy to assist you.

Regards,
Dannison
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/1797eeea-a22f-4942-a7f3-83e96e4678f4%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