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

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

public class LegacyErrorResponseHandler
extends Object

Handles legacy bangpipe errors.

Author:
Kevin Winter

Constructor Summary
LegacyErrorResponseHandler()
           
 
Method Summary
 ReportDownloadResponse handleResponse(RawReportDownloadResponse response)
          Processes a RawReportDownloadResponse into a ReportDownloadResponse, unwrapping pre-v201209 error messages if possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyErrorResponseHandler

public LegacyErrorResponseHandler()
Method Detail

handleResponse

public ReportDownloadResponse handleResponse(RawReportDownloadResponse response)
                                      throws ReportException
Processes a RawReportDownloadResponse into a ReportDownloadResponse, unwrapping pre-v201209 error messages if possible.

Parameters:
response - to process
Returns:
Processed response.
Throws:
ReportException - if we have trouble reading the input stream.


Copyright © 2012. All Rights Reserved.