com.google.api.ads.adwords.lib.utils
Class AwqlWriter

java.lang.Object
  extended by com.google.api.ads.adwords.lib.utils.AwqlWriter

public class AwqlWriter
extends Object

ReportWriter that handles writing AWQL reports in the correct format.

Author:
Kevin Winter

Constructor Summary
AwqlWriter(String reportQuery, String format)
          Constructs a ReportWriter for AWQL reports.
 
Method Summary
 String getReportParameters()
          Returns the report parameters that would be written (intended for logging).
 void write(OutputStream outputStream)
          Writes parameters for this report download to the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AwqlWriter

public AwqlWriter(String reportQuery,
                  String format)
Constructs a ReportWriter for AWQL reports.

Parameters:
reportQuery - Query to report on.
format - Download format.
Method Detail

write

public void write(OutputStream outputStream)
           throws IOException
Writes parameters for this report download to the output stream.

Parameters:
outputStream - to write to.
Throws:
IOException - if there was a problem writing to the stream.

getReportParameters

public String getReportParameters()
Returns the report parameters that would be written (intended for logging).



Copyright © 2012. All Rights Reserved.