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

com.google.api.ads.dfp.jaxws.v201505.ForecastServiceInterface Maven / Gradle / Ivy

There is a newer version: 5.8.0
Show newest version

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

import java.util.List;
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 estimating traffic (clicks/impressions) for line items.
 *       Forecasts can be provided for {@link LineItem} objects that exist in the
 *       system or which have not had an ID set yet.
 *       
 *       

Test network behavior

* *

Test networks are unable to provide forecasts that would be * comparable to the production environment because forecasts require traffic * history. For test networks, a consistent behavior can be expected * for forecast requests, according to the following rules: * *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Inputs
({@link LineItem} Fields)
Outputs
({@link Forecast} Fields)
{@link LineItem#lineItemType lineItemType}{@link LineItem#unitsBought unitsBought}{@link Forecast#availableUnits availableUnits}{@link Forecast#forecastUnits forecastUnits (matchedUnits)}{@link Forecast#deliveredUnits deliveredUnits}Exception *
Sponsorship13–––––– * {@link ForecastError.Reason#NO_FORECAST_YET NO_FORECAST_YET} *
Sponsorship20–––––– * {@link ForecastError.Reason#SERVER_NOT_AVAILABLE SERVER_NOT_AVAILABLE} *
Sponsorship501,200,0006,000,000600,000
For prospective: 0
––
Sponsorship!= 20 and
!= 50
1,200,0001,200,000600,000
For prospective: 0
––
Not Sponsorship<= 500,0003 * unitsBought / 2unitsBought * 6600,000
For prospective: 0
––
Not Sponsorship> 500,000 and <= 1,000,000unitsBought / 2unitsBought * 6600,000
For prospective: 0
––
Not Sponsorship> 1,000,000 and <= 1,500,000unitsBought / 23 * unitsBought / 2600,000
For prospective: 0
––
Not Sponsorship> 1,500,000unitsBought / 43 * unitsBought / 2600,000
For prospective: 0
––
* * * This class was generated by the JAX-WS RI. * JAX-WS RI 2.2.9-b130926.1035 * Generated source version: 2.1 * */ @WebService(name = "ForecastServiceInterface", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") @XmlSeeAlso({ ObjectFactory.class }) public interface ForecastServiceInterface { /** * * Gets the availability forecast for a {@link ProspectiveLineItem}. An availability forecast * reports the maximum number of available units that the line item can book, and the total * number of units matching the line item's targeting. * *

Note: Beginning in v201502, this replaces the previous getForecast method. * * @param lineItem the prospective line item (new or existing) to be forecasted for availability * @param forecastOptions options controlling the forecast * * * @param lineItem * @param forecastOptions * @return * returns com.google.api.ads.dfp.jaxws.v201505.AvailabilityForecast * @throws ApiException_Exception */ @WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") @RequestWrapper(localName = "getAvailabilityForecast", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505", className = "com.google.api.ads.dfp.jaxws.v201505.ForecastServiceInterfacegetAvailabilityForecast") @ResponseWrapper(localName = "getAvailabilityForecastResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505", className = "com.google.api.ads.dfp.jaxws.v201505.ForecastServiceInterfacegetAvailabilityForecastResponse") public AvailabilityForecast getAvailabilityForecast( @WebParam(name = "lineItem", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") ProspectiveLineItem lineItem, @WebParam(name = "forecastOptions", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") AvailabilityForecastOptions forecastOptions) throws ApiException_Exception ; /** * * Gets an {@link AvailabilityForecast} for an existing {@link LineItem} object. * An availability forecast reports the maximum number of available units that the line item can * be booked with, and also the total number of units matching the line item's targeting. * *

Only line items having type {@link LineItemType#SPONSORSHIP} or * {@link LineItemType#STANDARD} are valid. Other types will result in * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. * *

Note: Beginning in v201502, this replaces the previous getForecastById method. * * @param lineItemId the ID of a {@link LineItem} to run the forecast on. * @param forecastOptions options controlling the forecast * * * @param forecastOptions * @param lineItemId * @return * returns com.google.api.ads.dfp.jaxws.v201505.AvailabilityForecast * @throws ApiException_Exception */ @WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") @RequestWrapper(localName = "getAvailabilityForecastById", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505", className = "com.google.api.ads.dfp.jaxws.v201505.ForecastServiceInterfacegetAvailabilityForecastById") @ResponseWrapper(localName = "getAvailabilityForecastByIdResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505", className = "com.google.api.ads.dfp.jaxws.v201505.ForecastServiceInterfacegetAvailabilityForecastByIdResponse") public AvailabilityForecast getAvailabilityForecastById( @WebParam(name = "lineItemId", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") Long lineItemId, @WebParam(name = "forecastOptions", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") AvailabilityForecastOptions forecastOptions) throws ApiException_Exception ; /** * * Gets the delivery forecast for a list of {@link ProspectiveLineItem} objects in a single * delivery simulation with line items potentially contending with each other. A delivery * forecast reports the number of units that will be delivered to each line item given the line * item goals and contentions from other line items. * * @param lineItems line items to be forecasted for delivery * @param forecastOptions options controlling the forecast * * * @param lineItems * @param forecastOptions * @return * returns com.google.api.ads.dfp.jaxws.v201505.DeliveryForecast * @throws ApiException_Exception */ @WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") @RequestWrapper(localName = "getDeliveryForecast", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505", className = "com.google.api.ads.dfp.jaxws.v201505.ForecastServiceInterfacegetDeliveryForecast") @ResponseWrapper(localName = "getDeliveryForecastResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505", className = "com.google.api.ads.dfp.jaxws.v201505.ForecastServiceInterfacegetDeliveryForecastResponse") public DeliveryForecast getDeliveryForecast( @WebParam(name = "lineItems", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") List lineItems, @WebParam(name = "forecastOptions", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") DeliveryForecastOptions forecastOptions) throws ApiException_Exception ; /** * * Gets the delivery forecast for a list of existing {@link LineItem} objects in a single * delivery simulation with line items potentially contending with each other. A delivery * forecast reports the number of units that will be delivered to each line item given the line * item goals and contentions from other line items. * * @param lineItemIds the IDs of line items to be forecasted for delivery * @param forecastOptions options controlling the forecast * * * @param forecastOptions * @param lineItemIds * @return * returns com.google.api.ads.dfp.jaxws.v201505.DeliveryForecast * @throws ApiException_Exception */ @WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") @RequestWrapper(localName = "getDeliveryForecastByIds", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505", className = "com.google.api.ads.dfp.jaxws.v201505.ForecastServiceInterfacegetDeliveryForecastByIds") @ResponseWrapper(localName = "getDeliveryForecastByIdsResponse", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505", className = "com.google.api.ads.dfp.jaxws.v201505.ForecastServiceInterfacegetDeliveryForecastByIdsResponse") public DeliveryForecast getDeliveryForecastByIds( @WebParam(name = "lineItemIds", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") List lineItemIds, @WebParam(name = "forecastOptions", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505") DeliveryForecastOptions forecastOptions) throws ApiException_Exception ; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy