All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.ads.dfp.jaxws.v201511.ReportServiceInterface Maven / Gradle / Ivy

There is a newer version: 5.8.0
Show newest version

package com.google.api.ads.dfp.jaxws.v201511;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;


/**
 * 
 *       Provides methods for executing a {@link ReportJob} and retrieving performance
 *       and statistics about ad campaigns, networks, inventory and sales.
 *       

Follow the steps outlined below:

*

*

    *
  • Create the {@code ReportJob} object by invoking * {@link ReportService#runReportJob}.
  • *
  • Poll the {@code ReportJob} object using * {@link ReportService#getReportJob}.
  • *
  • Continue to poll the {@code ReportJob} object until the * {@link ReportJob#reportJobStatus} field is equal to * {@link ReportJobStatus#COMPLETED} or {@link ReportJobStatus#FAILED}.
  • *
  • If successful, fetch the URL for downloading the report by invoking * {@link ReportService#getReportDownloadURL}.
  • *
*

* *

Test network behavior

* *

* The networks created using {@link NetworkService#makeTestNetwork} are unable * to provide reports that would be comparable to the production environment * because reports require traffic history. * In the test networks, reports will consistently return no data for all reports. *

* * * This class was generated by the JAX-WS RI. * JAX-WS RI 2.2.9-b130926.1035 * Generated source version: 2.1 * */ @WebService(name = "ReportServiceInterface", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") @XmlSeeAlso({ ObjectFactory.class }) public interface ReportServiceInterface { /** * * Returns the URL at which the report file can be downloaded. *

* The report will be generated as a gzip archive, containing the report file itself. * * @param reportJobId the ID of the {@link ReportJob} * @param exportFormat the {@link ExportFormat} for the report file * @return the URL for report file download * * * @param reportJobId * @param exportFormat * @return * returns java.lang.String * @throws ApiException_Exception */ @WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") @RequestWrapper(localName = "getReportDownloadURL", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511", className = "com.google.api.ads.dfp.jaxws.v201511.ReportServiceInterfacegetReportDownloadURL") @ResponseWrapper(localName = "getReportDownloadURLResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511", className = "com.google.api.ads.dfp.jaxws.v201511.ReportServiceInterfacegetReportDownloadURLResponse") public String getReportDownloadURL( @WebParam(name = "reportJobId", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") Long reportJobId, @WebParam(name = "exportFormat", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") ExportFormat exportFormat) throws ApiException_Exception ; /** * * Returns the URL at which the report file can be downloaded, and allows for customization * of the downloaded report. *

* By default, the report will be generated as a gzip archive, containing the report file itself. * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. * * @param reportJobId the ID of the {@link ReportJob} * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request * @return the URL for report file download * * * @param reportDownloadOptions * @param reportJobId * @return * returns java.lang.String * @throws ApiException_Exception */ @WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") @RequestWrapper(localName = "getReportDownloadUrlWithOptions", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511", className = "com.google.api.ads.dfp.jaxws.v201511.ReportServiceInterfacegetReportDownloadUrlWithOptions") @ResponseWrapper(localName = "getReportDownloadUrlWithOptionsResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511", className = "com.google.api.ads.dfp.jaxws.v201511.ReportServiceInterfacegetReportDownloadUrlWithOptionsResponse") public String getReportDownloadUrlWithOptions( @WebParam(name = "reportJobId", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") Long reportJobId, @WebParam(name = "reportDownloadOptions", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") ReportDownloadOptions reportDownloadOptions) throws ApiException_Exception ; /** * * Returns the {@link ReportJobStatus} of the report job with the specified ID. * * * @param reportJobId * @return * returns com.google.api.ads.dfp.jaxws.v201511.ReportJobStatus * @throws ApiException_Exception */ @WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") @RequestWrapper(localName = "getReportJobStatus", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511", className = "com.google.api.ads.dfp.jaxws.v201511.ReportServiceInterfacegetReportJobStatus") @ResponseWrapper(localName = "getReportJobStatusResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511", className = "com.google.api.ads.dfp.jaxws.v201511.ReportServiceInterfacegetReportJobStatusResponse") public ReportJobStatus getReportJobStatus( @WebParam(name = "reportJobId", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") Long reportJobId) throws ApiException_Exception ; /** * * Initiates the execution of a {@link ReportQuery} on the server. * *

The following fields are required: *

    *
  • {@link ReportJob#reportQuery}
  • *
* * @param reportJob the report job to run * @return the report job with its ID filled in * * * @param reportJob * @return * returns com.google.api.ads.dfp.jaxws.v201511.ReportJob * @throws ApiException_Exception */ @WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") @RequestWrapper(localName = "runReportJob", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511", className = "com.google.api.ads.dfp.jaxws.v201511.ReportServiceInterfacerunReportJob") @ResponseWrapper(localName = "runReportJobResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511", className = "com.google.api.ads.dfp.jaxws.v201511.ReportServiceInterfacerunReportJobResponse") public ReportJob runReportJob( @WebParam(name = "reportJob", targetNamespace = "https://www.google.com/apis/ads/publisher/v201511") ReportJob reportJob) throws ApiException_Exception ; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy