Class ForecastServiceClientImpl
ForecastService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class ForecastServiceClientImpl : ForecastServiceClient
Remarks
Provides methods for handling forecasting actions.
Constructors
ForecastServiceClientImpl(ForecastServiceClient, ForecastServiceSettings, ILogger)
Constructs a client wrapper for the ForecastService service, with the specified gRPC client and settings.
Declaration
public ForecastServiceClientImpl(ForecastService.ForecastServiceClient grpcClient, ForecastServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| ForecastService.ForecastServiceClient | grpcClient | The underlying gRPC client. |
| ForecastServiceSettings | settings | The base ForecastServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC ForecastService client
Declaration
public override ForecastService.ForecastServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| ForecastService.ForecastServiceClient |
Overrides
Methods
RunAvailabilityForecast(RunAvailabilityForecastRequest, CallSettings)
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 override RunAvailabilityForecastResponse RunAvailabilityForecast(RunAvailabilityForecastRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RunAvailabilityForecastRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| RunAvailabilityForecastResponse | The RPC response. |
Overrides
RunAvailabilityForecastAsync(RunAvailabilityForecastRequest, CallSettings)
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 override Task<RunAvailabilityForecastResponse> RunAvailabilityForecastAsync(RunAvailabilityForecastRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RunAvailabilityForecastRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<RunAvailabilityForecastResponse> | A Task containing the RPC response. |
Overrides
RunDeliveryForecast(RunDeliveryForecastRequest, CallSettings)
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 override RunDeliveryForecastResponse RunDeliveryForecast(RunDeliveryForecastRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RunDeliveryForecastRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| RunDeliveryForecastResponse | The RPC response. |
Overrides
RunDeliveryForecastAsync(RunDeliveryForecastRequest, CallSettings)
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 override Task<RunDeliveryForecastResponse> RunDeliveryForecastAsync(RunDeliveryForecastRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RunDeliveryForecastRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<RunDeliveryForecastResponse> | A Task containing the RPC response. |
Overrides
RunTrafficData(RunTrafficDataRequest, CallSettings)
Gets forecasted and historical traffic data for the segment of traffic specified by the provided request.
Declaration
public override RunTrafficDataResponse RunTrafficData(RunTrafficDataRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RunTrafficDataRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| RunTrafficDataResponse | The RPC response. |
Overrides
RunTrafficDataAsync(RunTrafficDataRequest, CallSettings)
Gets forecasted and historical traffic data for the segment of traffic specified by the provided request.
Declaration
public override Task<RunTrafficDataResponse> RunTrafficDataAsync(RunTrafficDataRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RunTrafficDataRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<RunTrafficDataResponse> | A Task containing the RPC response. |