com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterface Maven / Gradle / Ivy
Show all versions of dfp-appengine Show documentation
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.admanager.jaxws.v202311;
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 report job status using {@link ReportService#getReportJobStatus}.
*
- Continue to poll until the status 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.3.0.2
* Generated source version: 2.1
*
*/
@WebService(name = "ReportServiceInterface", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
@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
* @param exportFormat
* @return
* returns java.lang.String
* @throws ApiException_Exception
*/
@WebMethod
@WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
@RequestWrapper(localName = "getReportDownloadURL", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacegetReportDownloadURL")
@ResponseWrapper(localName = "getReportDownloadURLResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacegetReportDownloadURLResponse")
public String getReportDownloadURL(
@WebParam(name = "reportJobId", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
Long reportJobId,
@WebParam(name = "exportFormat", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
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 reportDownloadOptions
* @param reportJobId
* @return
* returns java.lang.String
* @throws ApiException_Exception
*/
@WebMethod
@WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
@RequestWrapper(localName = "getReportDownloadUrlWithOptions", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacegetReportDownloadUrlWithOptions")
@ResponseWrapper(localName = "getReportDownloadUrlWithOptionsResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacegetReportDownloadUrlWithOptionsResponse")
public String getReportDownloadUrlWithOptions(
@WebParam(name = "reportJobId", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
Long reportJobId,
@WebParam(name = "reportDownloadOptions", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
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.admanager.jaxws.v202311.ReportJobStatus
* @throws ApiException_Exception
*/
@WebMethod
@WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
@RequestWrapper(localName = "getReportJobStatus", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacegetReportJobStatus")
@ResponseWrapper(localName = "getReportJobStatusResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacegetReportJobStatusResponse")
public ReportJobStatus getReportJobStatus(
@WebParam(name = "reportJobId", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
Long reportJobId)
throws ApiException_Exception
;
/**
*
* Retrieves a page of the saved queries either created by or shared with the current user. Each
* {@link SavedQuery} in the page, if it is compatible with the current API version, will contain
* a {@link ReportQuery} object which can be optionally modified and used to create a {@link
* ReportJob}. This can then be passed to {@link ReportService#runReportJob}. The following fields
* are supported for filtering:
*
*
*
* PQL Property Object Property
*
*
* {@code id}
* {@link SavedQuery#id}
*
*
* {@code name}
* {@link SavedQuery#name}
*
*
*
*
* @param filterStatement
* @return
* returns com.google.api.ads.admanager.jaxws.v202311.SavedQueryPage
* @throws ApiException_Exception
*/
@WebMethod
@WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
@RequestWrapper(localName = "getSavedQueriesByStatement", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacegetSavedQueriesByStatement")
@ResponseWrapper(localName = "getSavedQueriesByStatementResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacegetSavedQueriesByStatementResponse")
public SavedQueryPage getSavedQueriesByStatement(
@WebParam(name = "filterStatement", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
Statement filterStatement)
throws ApiException_Exception
;
/**
*
* Initiates the execution of a {@link ReportQuery} on the server.
*
* The following fields are required:
*
*
* - {@link ReportJob#reportQuery}
*
*
*
* @param reportJob
* @return
* returns com.google.api.ads.admanager.jaxws.v202311.ReportJob
* @throws ApiException_Exception
*/
@WebMethod
@WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
@RequestWrapper(localName = "runReportJob", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacerunReportJob")
@ResponseWrapper(localName = "runReportJobResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311", className = "com.google.api.ads.admanager.jaxws.v202311.ReportServiceInterfacerunReportJobResponse")
public ReportJob runReportJob(
@WebParam(name = "reportJob", targetNamespace = "https://www.google.com/apis/ads/publisher/v202311")
ReportJob reportJob)
throws ApiException_Exception
;
}