public interface ForecastServiceInterface extends Remote
| Modifier and Type | Method and Description |
|---|---|
AvailabilityForecast |
getAvailabilityForecast(ProspectiveLineItem lineItem,
AvailabilityForecastOptions forecastOptions)
Gets the availability forecast for a
ProspectiveLineItem. |
AvailabilityForecast |
getAvailabilityForecastById(Long lineItemId,
AvailabilityForecastOptions forecastOptions)
Gets an
AvailabilityForecast for an existing LineItem object. |
DeliveryForecast |
getDeliveryForecast(ProspectiveLineItem[] lineItems,
DeliveryForecastOptions forecastOptions)
Gets the delivery forecast for a list of
ProspectiveLineItem
objects in a single
delivery simulation with line items potentially contending
with each other. |
DeliveryForecast |
getDeliveryForecastByIds(long[] lineItemIds,
DeliveryForecastOptions forecastOptions)
Gets the delivery forecast for a list of existing
LineItem
objects in a single
delivery simulation. |
TrafficDataResponse |
getTrafficData(TrafficDataRequest trafficDataRequest)
Returns forecasted and historical traffic data for the segment
of traffic specified by the
provided request.
|
AvailabilityForecast getAvailabilityForecast(ProspectiveLineItem lineItem, AvailabilityForecastOptions forecastOptions) throws RemoteException, ApiException
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.lineItem - the prospective line item (new or existing) to be
forecasted for availabilityforecastOptions - options controlling the forecastRemoteExceptionApiExceptionAvailabilityForecast getAvailabilityForecastById(Long lineItemId, AvailabilityForecastOptions forecastOptions) throws RemoteException, ApiException
AvailabilityForecast for an existing 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 LineItemType.SPONSORSHIP
or LineItemType.STANDARD are valid. Other types will result
in ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED.
lineItemId - the ID of a LineItem to run the forecast
on.forecastOptions - options controlling the forecastRemoteExceptionApiExceptionDeliveryForecast getDeliveryForecast(ProspectiveLineItem[] lineItems, DeliveryForecastOptions forecastOptions) throws RemoteException, ApiException
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.lineItems - line items to be forecasted for deliveryforecastOptions - options controlling the forecastRemoteExceptionApiExceptionDeliveryForecast getDeliveryForecastByIds(long[] lineItemIds, DeliveryForecastOptions forecastOptions) throws RemoteException, ApiException
LineItem
objects in a single
delivery simulation. 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.lineItemIds - the IDs of line items to be forecasted for deliveryforecastOptions - options controlling the forecastRemoteExceptionApiExceptionTrafficDataResponse getTrafficData(TrafficDataRequest trafficDataRequest) throws RemoteException, ApiException
Calling this endpoint programmatically is only available for Ad Manager 360 networks.
trafficDataRequest - the request specifying the segment of traffic
for which data should
be returnedRemoteExceptionApiExceptionCopyright © 2022. All rights reserved.