Show / Hide Table of Contents

Class ForecastService.ForecastServiceClient

Client for ForecastService

Inheritance
object
ClientBase
ClientBase<ForecastService.ForecastServiceClient>
ForecastService.ForecastServiceClient
Inherited Members
ClientBase<ForecastService.ForecastServiceClient>.WithHost(string)
ClientBase.CallInvoker
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class ForecastService.ForecastServiceClient : ClientBase<ForecastService.ForecastServiceClient>

Constructors

ForecastServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected ForecastServiceClient()

ForecastServiceClient(CallInvoker)

Creates a new client for ForecastService that uses a custom CallInvoker.

Declaration
public ForecastServiceClient(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The callInvoker to use to make remote calls.

ForecastServiceClient(ChannelBase)

Creates a new client for ForecastService

Declaration
public ForecastServiceClient(ChannelBase channel)
Parameters
Type Name Description
ChannelBase channel

The channel to use to make remote calls.

ForecastServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

Declaration
protected ForecastServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration

The client configuration.

Methods

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override ForecastService.ForecastServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
ForecastService.ForecastServiceClient
Overrides
Grpc.Core.ClientBase<Google.Ads.AdManager.V1.ForecastService.ForecastServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

RunAvailabilityForecast(RunAvailabilityForecastRequest, CallOptions)

Gets the availability forecast for a [ProposalLineItem][] or [LineItem][google.ads.admanager.v1.LineItem]. 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.

Declaration
public virtual RunAvailabilityForecastResponse RunAvailabilityForecast(RunAvailabilityForecastRequest request, CallOptions options)
Parameters
Type Name Description
RunAvailabilityForecastRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
RunAvailabilityForecastResponse

The response received from the server.

RunAvailabilityForecast(RunAvailabilityForecastRequest, Metadata, DateTime?, CancellationToken)

Gets the availability forecast for a [ProposalLineItem][] or [LineItem][google.ads.admanager.v1.LineItem]. 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.

Declaration
public virtual RunAvailabilityForecastResponse RunAvailabilityForecast(RunAvailabilityForecastRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
RunAvailabilityForecastRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
RunAvailabilityForecastResponse

The response received from the server.

RunAvailabilityForecastAsync(RunAvailabilityForecastRequest, CallOptions)

Gets the availability forecast for a [ProposalLineItem][] or [LineItem][google.ads.admanager.v1.LineItem]. 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.

Declaration
public virtual AsyncUnaryCall<RunAvailabilityForecastResponse> RunAvailabilityForecastAsync(RunAvailabilityForecastRequest request, CallOptions options)
Parameters
Type Name Description
RunAvailabilityForecastRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<RunAvailabilityForecastResponse>

The call object.

RunAvailabilityForecastAsync(RunAvailabilityForecastRequest, Metadata, DateTime?, CancellationToken)

Gets the availability forecast for a [ProposalLineItem][] or [LineItem][google.ads.admanager.v1.LineItem]. 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.

Declaration
public virtual AsyncUnaryCall<RunAvailabilityForecastResponse> RunAvailabilityForecastAsync(RunAvailabilityForecastRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
RunAvailabilityForecastRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<RunAvailabilityForecastResponse>

The call object.

RunDeliveryForecast(RunDeliveryForecastRequest, CallOptions)

Runs a delivery simulation forecast for existing or prospective line items. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals. The simulation considers contentions from other line items, including the other prospective line items in the request.

Declaration
public virtual RunDeliveryForecastResponse RunDeliveryForecast(RunDeliveryForecastRequest request, CallOptions options)
Parameters
Type Name Description
RunDeliveryForecastRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
RunDeliveryForecastResponse

The response received from the server.

RunDeliveryForecast(RunDeliveryForecastRequest, Metadata, DateTime?, CancellationToken)

Runs a delivery simulation forecast for existing or prospective line items. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals. The simulation considers contentions from other line items, including the other prospective line items in the request.

Declaration
public virtual RunDeliveryForecastResponse RunDeliveryForecast(RunDeliveryForecastRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
RunDeliveryForecastRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
RunDeliveryForecastResponse

The response received from the server.

RunDeliveryForecastAsync(RunDeliveryForecastRequest, CallOptions)

Runs a delivery simulation forecast for existing or prospective line items. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals. The simulation considers contentions from other line items, including the other prospective line items in the request.

Declaration
public virtual AsyncUnaryCall<RunDeliveryForecastResponse> RunDeliveryForecastAsync(RunDeliveryForecastRequest request, CallOptions options)
Parameters
Type Name Description
RunDeliveryForecastRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<RunDeliveryForecastResponse>

The call object.

RunDeliveryForecastAsync(RunDeliveryForecastRequest, Metadata, DateTime?, CancellationToken)

Runs a delivery simulation forecast for existing or prospective line items. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals. The simulation considers contentions from other line items, including the other prospective line items in the request.

Declaration
public virtual AsyncUnaryCall<RunDeliveryForecastResponse> RunDeliveryForecastAsync(RunDeliveryForecastRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
RunDeliveryForecastRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<RunDeliveryForecastResponse>

The call object.

RunTrafficData(RunTrafficDataRequest, CallOptions)

Gets forecasted and historical traffic data for the segment of traffic specified by the provided request.

Declaration
public virtual RunTrafficDataResponse RunTrafficData(RunTrafficDataRequest request, CallOptions options)
Parameters
Type Name Description
RunTrafficDataRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
RunTrafficDataResponse

The response received from the server.

RunTrafficData(RunTrafficDataRequest, Metadata, DateTime?, CancellationToken)

Gets forecasted and historical traffic data for the segment of traffic specified by the provided request.

Declaration
public virtual RunTrafficDataResponse RunTrafficData(RunTrafficDataRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
RunTrafficDataRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
RunTrafficDataResponse

The response received from the server.

RunTrafficDataAsync(RunTrafficDataRequest, CallOptions)

Gets forecasted and historical traffic data for the segment of traffic specified by the provided request.

Declaration
public virtual AsyncUnaryCall<RunTrafficDataResponse> RunTrafficDataAsync(RunTrafficDataRequest request, CallOptions options)
Parameters
Type Name Description
RunTrafficDataRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<RunTrafficDataResponse>

The call object.

RunTrafficDataAsync(RunTrafficDataRequest, Metadata, DateTime?, CancellationToken)

Gets forecasted and historical traffic data for the segment of traffic specified by the provided request.

Declaration
public virtual AsyncUnaryCall<RunTrafficDataResponse> RunTrafficDataAsync(RunTrafficDataRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
RunTrafficDataRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<RunTrafficDataResponse>

The call object.

In this article
Back to top Generated by DocFX