Show / Hide Table of Contents

Class ForecastAdjustmentServiceClient

ForecastAdjustmentService client wrapper, for convenient use.

Inheritance
object
ForecastAdjustmentServiceClient
ForecastAdjustmentServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class ForecastAdjustmentServiceClient
Remarks

Provides methods for handling ForecastAdjustment objects.

Properties

DefaultEndpoint

The default endpoint for the ForecastAdjustmentService service, which is a host of "admanager.googleapis.com" and a port of 443.

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default ForecastAdjustmentService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default ForecastAdjustmentService scopes are:

  • https://www.googleapis.com/auth/admanager
  • https://www.googleapis.com/auth/admanager.readonly

GrpcClient

The underlying gRPC ForecastAdjustmentService client

Declaration
public virtual ForecastAdjustmentService.ForecastAdjustmentServiceClient GrpcClient { get; }
Property Value
Type Description
ForecastAdjustmentService.ForecastAdjustmentServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

BatchActivateForecastAdjustments(BatchActivateForecastAdjustmentsRequest, CallSettings)

Activates a list of ForecastAdjustment objects.

Declaration
public virtual BatchActivateForecastAdjustmentsResponse BatchActivateForecastAdjustments(BatchActivateForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateForecastAdjustmentsRequest 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
BatchActivateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
BatchActivateForecastAdjustmentsRequest request = new BatchActivateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Names = { "", },
};
// Make the request
BatchActivateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchActivateForecastAdjustments(request);

BatchActivateForecastAdjustments(NetworkName, IEnumerable<string>, CallSettings)

Activates a list of ForecastAdjustment objects.

Declaration
public virtual BatchActivateForecastAdjustmentsResponse BatchActivateForecastAdjustments(NetworkName parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to activate.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchActivateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchActivateForecastAdjustments(parent, names);

BatchActivateForecastAdjustments(string, IEnumerable<string>, CallSettings)

Activates a list of ForecastAdjustment objects.

Declaration
public virtual BatchActivateForecastAdjustmentsResponse BatchActivateForecastAdjustments(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to activate.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchActivateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchActivateForecastAdjustments(parent, names);

BatchActivateForecastAdjustmentsAsync(BatchActivateForecastAdjustmentsRequest, CallSettings)

Activates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchActivateForecastAdjustmentsResponse> BatchActivateForecastAdjustmentsAsync(BatchActivateForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateForecastAdjustmentsRequest 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<BatchActivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateForecastAdjustmentsRequest request = new BatchActivateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Names = { "", },
};
// Make the request
BatchActivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchActivateForecastAdjustmentsAsync(request);

BatchActivateForecastAdjustmentsAsync(BatchActivateForecastAdjustmentsRequest, CancellationToken)

Activates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchActivateForecastAdjustmentsResponse> BatchActivateForecastAdjustmentsAsync(BatchActivateForecastAdjustmentsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchActivateForecastAdjustmentsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateForecastAdjustmentsRequest request = new BatchActivateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Names = { "", },
};
// Make the request
BatchActivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchActivateForecastAdjustmentsAsync(request);

BatchActivateForecastAdjustmentsAsync(NetworkName, IEnumerable<string>, CallSettings)

Activates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchActivateForecastAdjustmentsResponse> BatchActivateForecastAdjustmentsAsync(NetworkName parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to activate.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchActivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchActivateForecastAdjustmentsAsync(parent, names);

BatchActivateForecastAdjustmentsAsync(NetworkName, IEnumerable<string>, CancellationToken)

Activates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchActivateForecastAdjustmentsResponse> BatchActivateForecastAdjustmentsAsync(NetworkName parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to activate.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchActivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchActivateForecastAdjustmentsAsync(parent, names);

BatchActivateForecastAdjustmentsAsync(string, IEnumerable<string>, CallSettings)

Activates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchActivateForecastAdjustmentsResponse> BatchActivateForecastAdjustmentsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to activate.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchActivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchActivateForecastAdjustmentsAsync(parent, names);

BatchActivateForecastAdjustmentsAsync(string, IEnumerable<string>, CancellationToken)

Activates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchActivateForecastAdjustmentsResponse> BatchActivateForecastAdjustmentsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to activate.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchActivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchActivateForecastAdjustmentsAsync(parent, names);

BatchCreateForecastAdjustments(BatchCreateForecastAdjustmentsRequest, CallSettings)

Creates ForecastAdjustment objects.

Declaration
public virtual BatchCreateForecastAdjustmentsResponse BatchCreateForecastAdjustments(BatchCreateForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateForecastAdjustmentsRequest 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
BatchCreateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
BatchCreateForecastAdjustmentsRequest request = new BatchCreateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateForecastAdjustmentRequest(),
    },
};
// Make the request
BatchCreateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchCreateForecastAdjustments(request);

BatchCreateForecastAdjustments(NetworkName, IEnumerable<CreateForecastAdjustmentRequest>, CallSettings)

Creates ForecastAdjustment objects.

Declaration
public virtual BatchCreateForecastAdjustmentsResponse BatchCreateForecastAdjustments(NetworkName parent, IEnumerable<CreateForecastAdjustmentRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where ForecastAdjustments will be created. Format: networks/{network_code} The parent field in the CreateForecastAdjustmentRequest must match this field.

IEnumerable<CreateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateForecastAdjustmentRequest> requests = new CreateForecastAdjustmentRequest[]
{
    new CreateForecastAdjustmentRequest(),
};
// Make the request
BatchCreateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchCreateForecastAdjustments(parent, requests);

BatchCreateForecastAdjustments(string, IEnumerable<CreateForecastAdjustmentRequest>, CallSettings)

Creates ForecastAdjustment objects.

Declaration
public virtual BatchCreateForecastAdjustmentsResponse BatchCreateForecastAdjustments(string parent, IEnumerable<CreateForecastAdjustmentRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where ForecastAdjustments will be created. Format: networks/{network_code} The parent field in the CreateForecastAdjustmentRequest must match this field.

IEnumerable<CreateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateForecastAdjustmentRequest> requests = new CreateForecastAdjustmentRequest[]
{
    new CreateForecastAdjustmentRequest(),
};
// Make the request
BatchCreateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchCreateForecastAdjustments(parent, requests);

BatchCreateForecastAdjustmentsAsync(BatchCreateForecastAdjustmentsRequest, CallSettings)

Creates ForecastAdjustment objects.

Declaration
public virtual Task<BatchCreateForecastAdjustmentsResponse> BatchCreateForecastAdjustmentsAsync(BatchCreateForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateForecastAdjustmentsRequest 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<BatchCreateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateForecastAdjustmentsRequest request = new BatchCreateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateForecastAdjustmentRequest(),
    },
};
// Make the request
BatchCreateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchCreateForecastAdjustmentsAsync(request);

BatchCreateForecastAdjustmentsAsync(BatchCreateForecastAdjustmentsRequest, CancellationToken)

Creates ForecastAdjustment objects.

Declaration
public virtual Task<BatchCreateForecastAdjustmentsResponse> BatchCreateForecastAdjustmentsAsync(BatchCreateForecastAdjustmentsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchCreateForecastAdjustmentsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateForecastAdjustmentsRequest request = new BatchCreateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateForecastAdjustmentRequest(),
    },
};
// Make the request
BatchCreateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchCreateForecastAdjustmentsAsync(request);

BatchCreateForecastAdjustmentsAsync(NetworkName, IEnumerable<CreateForecastAdjustmentRequest>, CallSettings)

Creates ForecastAdjustment objects.

Declaration
public virtual Task<BatchCreateForecastAdjustmentsResponse> BatchCreateForecastAdjustmentsAsync(NetworkName parent, IEnumerable<CreateForecastAdjustmentRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where ForecastAdjustments will be created. Format: networks/{network_code} The parent field in the CreateForecastAdjustmentRequest must match this field.

IEnumerable<CreateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateForecastAdjustmentRequest> requests = new CreateForecastAdjustmentRequest[]
{
    new CreateForecastAdjustmentRequest(),
};
// Make the request
BatchCreateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchCreateForecastAdjustmentsAsync(parent, requests);

BatchCreateForecastAdjustmentsAsync(NetworkName, IEnumerable<CreateForecastAdjustmentRequest>, CancellationToken)

Creates ForecastAdjustment objects.

Declaration
public virtual Task<BatchCreateForecastAdjustmentsResponse> BatchCreateForecastAdjustmentsAsync(NetworkName parent, IEnumerable<CreateForecastAdjustmentRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where ForecastAdjustments will be created. Format: networks/{network_code} The parent field in the CreateForecastAdjustmentRequest must match this field.

IEnumerable<CreateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateForecastAdjustmentRequest> requests = new CreateForecastAdjustmentRequest[]
{
    new CreateForecastAdjustmentRequest(),
};
// Make the request
BatchCreateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchCreateForecastAdjustmentsAsync(parent, requests);

BatchCreateForecastAdjustmentsAsync(string, IEnumerable<CreateForecastAdjustmentRequest>, CallSettings)

Creates ForecastAdjustment objects.

Declaration
public virtual Task<BatchCreateForecastAdjustmentsResponse> BatchCreateForecastAdjustmentsAsync(string parent, IEnumerable<CreateForecastAdjustmentRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where ForecastAdjustments will be created. Format: networks/{network_code} The parent field in the CreateForecastAdjustmentRequest must match this field.

IEnumerable<CreateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateForecastAdjustmentRequest> requests = new CreateForecastAdjustmentRequest[]
{
    new CreateForecastAdjustmentRequest(),
};
// Make the request
BatchCreateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchCreateForecastAdjustmentsAsync(parent, requests);

BatchCreateForecastAdjustmentsAsync(string, IEnumerable<CreateForecastAdjustmentRequest>, CancellationToken)

Creates ForecastAdjustment objects.

Declaration
public virtual Task<BatchCreateForecastAdjustmentsResponse> BatchCreateForecastAdjustmentsAsync(string parent, IEnumerable<CreateForecastAdjustmentRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where ForecastAdjustments will be created. Format: networks/{network_code} The parent field in the CreateForecastAdjustmentRequest must match this field.

IEnumerable<CreateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateForecastAdjustmentRequest> requests = new CreateForecastAdjustmentRequest[]
{
    new CreateForecastAdjustmentRequest(),
};
// Make the request
BatchCreateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchCreateForecastAdjustmentsAsync(parent, requests);

BatchDeactivateForecastAdjustments(BatchDeactivateForecastAdjustmentsRequest, CallSettings)

Deactivates a list of ForecastAdjustment objects.

Declaration
public virtual BatchDeactivateForecastAdjustmentsResponse BatchDeactivateForecastAdjustments(BatchDeactivateForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeactivateForecastAdjustmentsRequest 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
BatchDeactivateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
BatchDeactivateForecastAdjustmentsRequest request = new BatchDeactivateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Names = { "", },
};
// Make the request
BatchDeactivateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchDeactivateForecastAdjustments(request);

BatchDeactivateForecastAdjustments(NetworkName, IEnumerable<string>, CallSettings)

Deactivates a list of ForecastAdjustment objects.

Declaration
public virtual BatchDeactivateForecastAdjustmentsResponse BatchDeactivateForecastAdjustments(NetworkName parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to deactivate.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDeactivateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchDeactivateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchDeactivateForecastAdjustments(parent, names);

BatchDeactivateForecastAdjustments(string, IEnumerable<string>, CallSettings)

Deactivates a list of ForecastAdjustment objects.

Declaration
public virtual BatchDeactivateForecastAdjustmentsResponse BatchDeactivateForecastAdjustments(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to deactivate.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDeactivateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchDeactivateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchDeactivateForecastAdjustments(parent, names);

BatchDeactivateForecastAdjustmentsAsync(BatchDeactivateForecastAdjustmentsRequest, CallSettings)

Deactivates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchDeactivateForecastAdjustmentsResponse> BatchDeactivateForecastAdjustmentsAsync(BatchDeactivateForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeactivateForecastAdjustmentsRequest 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<BatchDeactivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeactivateForecastAdjustmentsRequest request = new BatchDeactivateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Names = { "", },
};
// Make the request
BatchDeactivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchDeactivateForecastAdjustmentsAsync(request);

BatchDeactivateForecastAdjustmentsAsync(BatchDeactivateForecastAdjustmentsRequest, CancellationToken)

Deactivates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchDeactivateForecastAdjustmentsResponse> BatchDeactivateForecastAdjustmentsAsync(BatchDeactivateForecastAdjustmentsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchDeactivateForecastAdjustmentsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeactivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeactivateForecastAdjustmentsRequest request = new BatchDeactivateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Names = { "", },
};
// Make the request
BatchDeactivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchDeactivateForecastAdjustmentsAsync(request);

BatchDeactivateForecastAdjustmentsAsync(NetworkName, IEnumerable<string>, CallSettings)

Deactivates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchDeactivateForecastAdjustmentsResponse> BatchDeactivateForecastAdjustmentsAsync(NetworkName parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to deactivate.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDeactivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchDeactivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchDeactivateForecastAdjustmentsAsync(parent, names);

BatchDeactivateForecastAdjustmentsAsync(NetworkName, IEnumerable<string>, CancellationToken)

Deactivates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchDeactivateForecastAdjustmentsResponse> BatchDeactivateForecastAdjustmentsAsync(NetworkName parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to deactivate.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeactivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchDeactivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchDeactivateForecastAdjustmentsAsync(parent, names);

BatchDeactivateForecastAdjustmentsAsync(string, IEnumerable<string>, CallSettings)

Deactivates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchDeactivateForecastAdjustmentsResponse> BatchDeactivateForecastAdjustmentsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to deactivate.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDeactivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchDeactivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchDeactivateForecastAdjustmentsAsync(parent, names);

BatchDeactivateForecastAdjustmentsAsync(string, IEnumerable<string>, CancellationToken)

Deactivates a list of ForecastAdjustment objects.

Declaration
public virtual Task<BatchDeactivateForecastAdjustmentsResponse> BatchDeactivateForecastAdjustmentsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the ForecastAdjustment objects to deactivate.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeactivateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[] { "", };
// Make the request
BatchDeactivateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchDeactivateForecastAdjustmentsAsync(parent, names);

BatchUpdateForecastAdjustments(BatchUpdateForecastAdjustmentsRequest, CallSettings)

Batch updates ForecastAdjustment objects.

Declaration
public virtual BatchUpdateForecastAdjustmentsResponse BatchUpdateForecastAdjustments(BatchUpdateForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateForecastAdjustmentsRequest 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
BatchUpdateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
BatchUpdateForecastAdjustmentsRequest request = new BatchUpdateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateForecastAdjustmentRequest(),
    },
};
// Make the request
BatchUpdateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchUpdateForecastAdjustments(request);

BatchUpdateForecastAdjustments(NetworkName, IEnumerable<UpdateForecastAdjustmentRequest>, CallSettings)

Batch updates ForecastAdjustment objects.

Declaration
public virtual BatchUpdateForecastAdjustmentsResponse BatchUpdateForecastAdjustments(NetworkName parent, IEnumerable<UpdateForecastAdjustmentRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where ForecastAdjustments will be updated. Format: networks/{network_code} The parent field in the UpdateForecastAdjustmentRequest must match this field.

IEnumerable<UpdateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateForecastAdjustmentRequest> requests = new UpdateForecastAdjustmentRequest[]
{
    new UpdateForecastAdjustmentRequest(),
};
// Make the request
BatchUpdateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchUpdateForecastAdjustments(parent, requests);

BatchUpdateForecastAdjustments(string, IEnumerable<UpdateForecastAdjustmentRequest>, CallSettings)

Batch updates ForecastAdjustment objects.

Declaration
public virtual BatchUpdateForecastAdjustmentsResponse BatchUpdateForecastAdjustments(string parent, IEnumerable<UpdateForecastAdjustmentRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where ForecastAdjustments will be updated. Format: networks/{network_code} The parent field in the UpdateForecastAdjustmentRequest must match this field.

IEnumerable<UpdateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateForecastAdjustmentsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateForecastAdjustmentRequest> requests = new UpdateForecastAdjustmentRequest[]
{
    new UpdateForecastAdjustmentRequest(),
};
// Make the request
BatchUpdateForecastAdjustmentsResponse response = forecastAdjustmentServiceClient.BatchUpdateForecastAdjustments(parent, requests);

BatchUpdateForecastAdjustmentsAsync(BatchUpdateForecastAdjustmentsRequest, CallSettings)

Batch updates ForecastAdjustment objects.

Declaration
public virtual Task<BatchUpdateForecastAdjustmentsResponse> BatchUpdateForecastAdjustmentsAsync(BatchUpdateForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateForecastAdjustmentsRequest 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<BatchUpdateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateForecastAdjustmentsRequest request = new BatchUpdateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateForecastAdjustmentRequest(),
    },
};
// Make the request
BatchUpdateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchUpdateForecastAdjustmentsAsync(request);

BatchUpdateForecastAdjustmentsAsync(BatchUpdateForecastAdjustmentsRequest, CancellationToken)

Batch updates ForecastAdjustment objects.

Declaration
public virtual Task<BatchUpdateForecastAdjustmentsResponse> BatchUpdateForecastAdjustmentsAsync(BatchUpdateForecastAdjustmentsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUpdateForecastAdjustmentsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateForecastAdjustmentsRequest request = new BatchUpdateForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateForecastAdjustmentRequest(),
    },
};
// Make the request
BatchUpdateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchUpdateForecastAdjustmentsAsync(request);

BatchUpdateForecastAdjustmentsAsync(NetworkName, IEnumerable<UpdateForecastAdjustmentRequest>, CallSettings)

Batch updates ForecastAdjustment objects.

Declaration
public virtual Task<BatchUpdateForecastAdjustmentsResponse> BatchUpdateForecastAdjustmentsAsync(NetworkName parent, IEnumerable<UpdateForecastAdjustmentRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where ForecastAdjustments will be updated. Format: networks/{network_code} The parent field in the UpdateForecastAdjustmentRequest must match this field.

IEnumerable<UpdateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateForecastAdjustmentRequest> requests = new UpdateForecastAdjustmentRequest[]
{
    new UpdateForecastAdjustmentRequest(),
};
// Make the request
BatchUpdateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchUpdateForecastAdjustmentsAsync(parent, requests);

BatchUpdateForecastAdjustmentsAsync(NetworkName, IEnumerable<UpdateForecastAdjustmentRequest>, CancellationToken)

Batch updates ForecastAdjustment objects.

Declaration
public virtual Task<BatchUpdateForecastAdjustmentsResponse> BatchUpdateForecastAdjustmentsAsync(NetworkName parent, IEnumerable<UpdateForecastAdjustmentRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where ForecastAdjustments will be updated. Format: networks/{network_code} The parent field in the UpdateForecastAdjustmentRequest must match this field.

IEnumerable<UpdateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateForecastAdjustmentRequest> requests = new UpdateForecastAdjustmentRequest[]
{
    new UpdateForecastAdjustmentRequest(),
};
// Make the request
BatchUpdateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchUpdateForecastAdjustmentsAsync(parent, requests);

BatchUpdateForecastAdjustmentsAsync(string, IEnumerable<UpdateForecastAdjustmentRequest>, CallSettings)

Batch updates ForecastAdjustment objects.

Declaration
public virtual Task<BatchUpdateForecastAdjustmentsResponse> BatchUpdateForecastAdjustmentsAsync(string parent, IEnumerable<UpdateForecastAdjustmentRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where ForecastAdjustments will be updated. Format: networks/{network_code} The parent field in the UpdateForecastAdjustmentRequest must match this field.

IEnumerable<UpdateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateForecastAdjustmentRequest> requests = new UpdateForecastAdjustmentRequest[]
{
    new UpdateForecastAdjustmentRequest(),
};
// Make the request
BatchUpdateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchUpdateForecastAdjustmentsAsync(parent, requests);

BatchUpdateForecastAdjustmentsAsync(string, IEnumerable<UpdateForecastAdjustmentRequest>, CancellationToken)

Batch updates ForecastAdjustment objects.

Declaration
public virtual Task<BatchUpdateForecastAdjustmentsResponse> BatchUpdateForecastAdjustmentsAsync(string parent, IEnumerable<UpdateForecastAdjustmentRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where ForecastAdjustments will be updated. Format: networks/{network_code} The parent field in the UpdateForecastAdjustmentRequest must match this field.

IEnumerable<UpdateForecastAdjustmentRequest> requests

Required. The ForecastAdjustment objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateForecastAdjustmentsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateForecastAdjustmentRequest> requests = new UpdateForecastAdjustmentRequest[]
{
    new UpdateForecastAdjustmentRequest(),
};
// Make the request
BatchUpdateForecastAdjustmentsResponse response = await forecastAdjustmentServiceClient.BatchUpdateForecastAdjustmentsAsync(parent, requests);

CalculateDailyAdOpportunityCounts(CalculateDailyAdOpportunityCountsRequest, CallSettings)

Calculates daily ad opportunity counts for a prospective ForecastAdjustment object.

Declaration
public virtual CalculateDailyAdOpportunityCountsResponse CalculateDailyAdOpportunityCounts(CalculateDailyAdOpportunityCountsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CalculateDailyAdOpportunityCountsRequest 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
CalculateDailyAdOpportunityCountsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
CalculateDailyAdOpportunityCountsRequest request = new CalculateDailyAdOpportunityCountsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    ForecastAdjustment = new ForecastAdjustment(),
};
// Make the request
CalculateDailyAdOpportunityCountsResponse response = forecastAdjustmentServiceClient.CalculateDailyAdOpportunityCounts(request);

CalculateDailyAdOpportunityCounts(NetworkName, ForecastAdjustment, CallSettings)

Calculates daily ad opportunity counts for a prospective ForecastAdjustment object.

Declaration
public virtual CalculateDailyAdOpportunityCountsResponse CalculateDailyAdOpportunityCounts(NetworkName parent, ForecastAdjustment forecastAdjustment, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this ForecastAdjustment will be calculated. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The prospective ForecastAdjustment to calculate daily ad opportunity counts for.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CalculateDailyAdOpportunityCountsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
CalculateDailyAdOpportunityCountsResponse response = forecastAdjustmentServiceClient.CalculateDailyAdOpportunityCounts(parent, forecastAdjustment);

CalculateDailyAdOpportunityCounts(string, ForecastAdjustment, CallSettings)

Calculates daily ad opportunity counts for a prospective ForecastAdjustment object.

Declaration
public virtual CalculateDailyAdOpportunityCountsResponse CalculateDailyAdOpportunityCounts(string parent, ForecastAdjustment forecastAdjustment, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this ForecastAdjustment will be calculated. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The prospective ForecastAdjustment to calculate daily ad opportunity counts for.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CalculateDailyAdOpportunityCountsResponse

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
CalculateDailyAdOpportunityCountsResponse response = forecastAdjustmentServiceClient.CalculateDailyAdOpportunityCounts(parent, forecastAdjustment);

CalculateDailyAdOpportunityCountsAsync(CalculateDailyAdOpportunityCountsRequest, CallSettings)

Calculates daily ad opportunity counts for a prospective ForecastAdjustment object.

Declaration
public virtual Task<CalculateDailyAdOpportunityCountsResponse> CalculateDailyAdOpportunityCountsAsync(CalculateDailyAdOpportunityCountsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CalculateDailyAdOpportunityCountsRequest 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<CalculateDailyAdOpportunityCountsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
CalculateDailyAdOpportunityCountsRequest request = new CalculateDailyAdOpportunityCountsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    ForecastAdjustment = new ForecastAdjustment(),
};
// Make the request
CalculateDailyAdOpportunityCountsResponse response = await forecastAdjustmentServiceClient.CalculateDailyAdOpportunityCountsAsync(request);

CalculateDailyAdOpportunityCountsAsync(CalculateDailyAdOpportunityCountsRequest, CancellationToken)

Calculates daily ad opportunity counts for a prospective ForecastAdjustment object.

Declaration
public virtual Task<CalculateDailyAdOpportunityCountsResponse> CalculateDailyAdOpportunityCountsAsync(CalculateDailyAdOpportunityCountsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CalculateDailyAdOpportunityCountsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CalculateDailyAdOpportunityCountsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
CalculateDailyAdOpportunityCountsRequest request = new CalculateDailyAdOpportunityCountsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    ForecastAdjustment = new ForecastAdjustment(),
};
// Make the request
CalculateDailyAdOpportunityCountsResponse response = await forecastAdjustmentServiceClient.CalculateDailyAdOpportunityCountsAsync(request);

CalculateDailyAdOpportunityCountsAsync(NetworkName, ForecastAdjustment, CallSettings)

Calculates daily ad opportunity counts for a prospective ForecastAdjustment object.

Declaration
public virtual Task<CalculateDailyAdOpportunityCountsResponse> CalculateDailyAdOpportunityCountsAsync(NetworkName parent, ForecastAdjustment forecastAdjustment, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this ForecastAdjustment will be calculated. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The prospective ForecastAdjustment to calculate daily ad opportunity counts for.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CalculateDailyAdOpportunityCountsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
CalculateDailyAdOpportunityCountsResponse response = await forecastAdjustmentServiceClient.CalculateDailyAdOpportunityCountsAsync(parent, forecastAdjustment);

CalculateDailyAdOpportunityCountsAsync(NetworkName, ForecastAdjustment, CancellationToken)

Calculates daily ad opportunity counts for a prospective ForecastAdjustment object.

Declaration
public virtual Task<CalculateDailyAdOpportunityCountsResponse> CalculateDailyAdOpportunityCountsAsync(NetworkName parent, ForecastAdjustment forecastAdjustment, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this ForecastAdjustment will be calculated. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The prospective ForecastAdjustment to calculate daily ad opportunity counts for.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CalculateDailyAdOpportunityCountsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
CalculateDailyAdOpportunityCountsResponse response = await forecastAdjustmentServiceClient.CalculateDailyAdOpportunityCountsAsync(parent, forecastAdjustment);

CalculateDailyAdOpportunityCountsAsync(string, ForecastAdjustment, CallSettings)

Calculates daily ad opportunity counts for a prospective ForecastAdjustment object.

Declaration
public virtual Task<CalculateDailyAdOpportunityCountsResponse> CalculateDailyAdOpportunityCountsAsync(string parent, ForecastAdjustment forecastAdjustment, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this ForecastAdjustment will be calculated. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The prospective ForecastAdjustment to calculate daily ad opportunity counts for.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CalculateDailyAdOpportunityCountsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
CalculateDailyAdOpportunityCountsResponse response = await forecastAdjustmentServiceClient.CalculateDailyAdOpportunityCountsAsync(parent, forecastAdjustment);

CalculateDailyAdOpportunityCountsAsync(string, ForecastAdjustment, CancellationToken)

Calculates daily ad opportunity counts for a prospective ForecastAdjustment object.

Declaration
public virtual Task<CalculateDailyAdOpportunityCountsResponse> CalculateDailyAdOpportunityCountsAsync(string parent, ForecastAdjustment forecastAdjustment, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where this ForecastAdjustment will be calculated. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The prospective ForecastAdjustment to calculate daily ad opportunity counts for.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CalculateDailyAdOpportunityCountsResponse>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
CalculateDailyAdOpportunityCountsResponse response = await forecastAdjustmentServiceClient.CalculateDailyAdOpportunityCountsAsync(parent, forecastAdjustment);

Create()

Synchronously creates a ForecastAdjustmentServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ForecastAdjustmentServiceClientBuilder.

Declaration
public static ForecastAdjustmentServiceClient Create()
Returns
Type Description
ForecastAdjustmentServiceClient

The created ForecastAdjustmentServiceClient.

CreateAsync(CancellationToken)

Asynchronously creates a ForecastAdjustmentServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ForecastAdjustmentServiceClientBuilder.

Declaration
public static Task<ForecastAdjustmentServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<ForecastAdjustmentServiceClient>

The task representing the created ForecastAdjustmentServiceClient.

CreateForecastAdjustment(CreateForecastAdjustmentRequest, CallSettings)

Creates a ForecastAdjustment object.

Declaration
public virtual ForecastAdjustment CreateForecastAdjustment(CreateForecastAdjustmentRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateForecastAdjustmentRequest 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
ForecastAdjustment

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
CreateForecastAdjustmentRequest request = new CreateForecastAdjustmentRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    ForecastAdjustment = new ForecastAdjustment(),
};
// Make the request
ForecastAdjustment response = forecastAdjustmentServiceClient.CreateForecastAdjustment(request);

CreateForecastAdjustment(NetworkName, ForecastAdjustment, CallSettings)

Creates a ForecastAdjustment object.

Declaration
public virtual ForecastAdjustment CreateForecastAdjustment(NetworkName parent, ForecastAdjustment forecastAdjustment, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this ForecastAdjustment will be created. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The ForecastAdjustment to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ForecastAdjustment

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
ForecastAdjustment response = forecastAdjustmentServiceClient.CreateForecastAdjustment(parent, forecastAdjustment);

CreateForecastAdjustment(string, ForecastAdjustment, CallSettings)

Creates a ForecastAdjustment object.

Declaration
public virtual ForecastAdjustment CreateForecastAdjustment(string parent, ForecastAdjustment forecastAdjustment, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this ForecastAdjustment will be created. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The ForecastAdjustment to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ForecastAdjustment

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
ForecastAdjustment response = forecastAdjustmentServiceClient.CreateForecastAdjustment(parent, forecastAdjustment);

CreateForecastAdjustmentAsync(CreateForecastAdjustmentRequest, CallSettings)

Creates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> CreateForecastAdjustmentAsync(CreateForecastAdjustmentRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateForecastAdjustmentRequest 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<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
CreateForecastAdjustmentRequest request = new CreateForecastAdjustmentRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    ForecastAdjustment = new ForecastAdjustment(),
};
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.CreateForecastAdjustmentAsync(request);

CreateForecastAdjustmentAsync(CreateForecastAdjustmentRequest, CancellationToken)

Creates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> CreateForecastAdjustmentAsync(CreateForecastAdjustmentRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateForecastAdjustmentRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
CreateForecastAdjustmentRequest request = new CreateForecastAdjustmentRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    ForecastAdjustment = new ForecastAdjustment(),
};
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.CreateForecastAdjustmentAsync(request);

CreateForecastAdjustmentAsync(NetworkName, ForecastAdjustment, CallSettings)

Creates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> CreateForecastAdjustmentAsync(NetworkName parent, ForecastAdjustment forecastAdjustment, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this ForecastAdjustment will be created. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The ForecastAdjustment to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.CreateForecastAdjustmentAsync(parent, forecastAdjustment);

CreateForecastAdjustmentAsync(NetworkName, ForecastAdjustment, CancellationToken)

Creates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> CreateForecastAdjustmentAsync(NetworkName parent, ForecastAdjustment forecastAdjustment, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this ForecastAdjustment will be created. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The ForecastAdjustment to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.CreateForecastAdjustmentAsync(parent, forecastAdjustment);

CreateForecastAdjustmentAsync(string, ForecastAdjustment, CallSettings)

Creates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> CreateForecastAdjustmentAsync(string parent, ForecastAdjustment forecastAdjustment, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this ForecastAdjustment will be created. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The ForecastAdjustment to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.CreateForecastAdjustmentAsync(parent, forecastAdjustment);

CreateForecastAdjustmentAsync(string, ForecastAdjustment, CancellationToken)

Creates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> CreateForecastAdjustmentAsync(string parent, ForecastAdjustment forecastAdjustment, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where this ForecastAdjustment will be created. Format: networks/{network_code}

ForecastAdjustment forecastAdjustment

Required. The ForecastAdjustment to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.CreateForecastAdjustmentAsync(parent, forecastAdjustment);

GetForecastAdjustment(ForecastAdjustmentName, CallSettings)

Retrieves a ForecastAdjustment object.

Declaration
public virtual ForecastAdjustment GetForecastAdjustment(ForecastAdjustmentName name, CallSettings callSettings = null)
Parameters
Type Name Description
ForecastAdjustmentName name

Required. The resource name of the ForecastAdjustment. Format: networks/{network_code}/forecastAdjustments/{forecastAdjustmentId}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ForecastAdjustment

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
ForecastAdjustmentName name = ForecastAdjustmentName.FromNetworkCodeForecastAdjustment("[NETWORK_CODE]", "[FORECAST_ADJUSTMENT]");
// Make the request
ForecastAdjustment response = forecastAdjustmentServiceClient.GetForecastAdjustment(name);

GetForecastAdjustment(GetForecastAdjustmentRequest, CallSettings)

Retrieves a ForecastAdjustment object.

Declaration
public virtual ForecastAdjustment GetForecastAdjustment(GetForecastAdjustmentRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetForecastAdjustmentRequest 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
ForecastAdjustment

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
GetForecastAdjustmentRequest request = new GetForecastAdjustmentRequest
{
    ForecastAdjustmentName = ForecastAdjustmentName.FromNetworkCodeForecastAdjustment("[NETWORK_CODE]", "[FORECAST_ADJUSTMENT]"),
};
// Make the request
ForecastAdjustment response = forecastAdjustmentServiceClient.GetForecastAdjustment(request);

GetForecastAdjustment(string, CallSettings)

Retrieves a ForecastAdjustment object.

Declaration
public virtual ForecastAdjustment GetForecastAdjustment(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the ForecastAdjustment. Format: networks/{network_code}/forecastAdjustments/{forecastAdjustmentId}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ForecastAdjustment

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/forecastAdjustments/[FORECAST_ADJUSTMENT]";
// Make the request
ForecastAdjustment response = forecastAdjustmentServiceClient.GetForecastAdjustment(name);

GetForecastAdjustmentAsync(ForecastAdjustmentName, CallSettings)

Retrieves a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> GetForecastAdjustmentAsync(ForecastAdjustmentName name, CallSettings callSettings = null)
Parameters
Type Name Description
ForecastAdjustmentName name

Required. The resource name of the ForecastAdjustment. Format: networks/{network_code}/forecastAdjustments/{forecastAdjustmentId}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
ForecastAdjustmentName name = ForecastAdjustmentName.FromNetworkCodeForecastAdjustment("[NETWORK_CODE]", "[FORECAST_ADJUSTMENT]");
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.GetForecastAdjustmentAsync(name);

GetForecastAdjustmentAsync(ForecastAdjustmentName, CancellationToken)

Retrieves a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> GetForecastAdjustmentAsync(ForecastAdjustmentName name, CancellationToken cancellationToken)
Parameters
Type Name Description
ForecastAdjustmentName name

Required. The resource name of the ForecastAdjustment. Format: networks/{network_code}/forecastAdjustments/{forecastAdjustmentId}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
ForecastAdjustmentName name = ForecastAdjustmentName.FromNetworkCodeForecastAdjustment("[NETWORK_CODE]", "[FORECAST_ADJUSTMENT]");
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.GetForecastAdjustmentAsync(name);

GetForecastAdjustmentAsync(GetForecastAdjustmentRequest, CallSettings)

Retrieves a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> GetForecastAdjustmentAsync(GetForecastAdjustmentRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetForecastAdjustmentRequest 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<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
GetForecastAdjustmentRequest request = new GetForecastAdjustmentRequest
{
    ForecastAdjustmentName = ForecastAdjustmentName.FromNetworkCodeForecastAdjustment("[NETWORK_CODE]", "[FORECAST_ADJUSTMENT]"),
};
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.GetForecastAdjustmentAsync(request);

GetForecastAdjustmentAsync(GetForecastAdjustmentRequest, CancellationToken)

Retrieves a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> GetForecastAdjustmentAsync(GetForecastAdjustmentRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetForecastAdjustmentRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
GetForecastAdjustmentRequest request = new GetForecastAdjustmentRequest
{
    ForecastAdjustmentName = ForecastAdjustmentName.FromNetworkCodeForecastAdjustment("[NETWORK_CODE]", "[FORECAST_ADJUSTMENT]"),
};
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.GetForecastAdjustmentAsync(request);

GetForecastAdjustmentAsync(string, CallSettings)

Retrieves a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> GetForecastAdjustmentAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the ForecastAdjustment. Format: networks/{network_code}/forecastAdjustments/{forecastAdjustmentId}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/forecastAdjustments/[FORECAST_ADJUSTMENT]";
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.GetForecastAdjustmentAsync(name);

GetForecastAdjustmentAsync(string, CancellationToken)

Retrieves a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> GetForecastAdjustmentAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the ForecastAdjustment. Format: networks/{network_code}/forecastAdjustments/{forecastAdjustmentId}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/forecastAdjustments/[FORECAST_ADJUSTMENT]";
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.GetForecastAdjustmentAsync(name);

ListForecastAdjustments(ListForecastAdjustmentsRequest, CallSettings)

Lists ForecastAdjustment objects.

Declaration
public virtual PagedEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> ListForecastAdjustments(ListForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListForecastAdjustmentsRequest 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
PagedEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment>

A pageable sequence of ForecastAdjustment resources.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
ListForecastAdjustmentsRequest request = new ListForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> response = forecastAdjustmentServiceClient.ListForecastAdjustments(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ForecastAdjustment item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListForecastAdjustmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ForecastAdjustment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ForecastAdjustment> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ForecastAdjustment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListForecastAdjustments(NetworkName, string, int?, CallSettings)

Lists ForecastAdjustment objects.

Declaration
public virtual PagedEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> ListForecastAdjustments(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of ForecastAdjustments. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment>

A pageable sequence of ForecastAdjustment resources.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> response = forecastAdjustmentServiceClient.ListForecastAdjustments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ForecastAdjustment item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListForecastAdjustmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ForecastAdjustment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ForecastAdjustment> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ForecastAdjustment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListForecastAdjustments(string, string, int?, CallSettings)

Lists ForecastAdjustment objects.

Declaration
public virtual PagedEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> ListForecastAdjustments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of ForecastAdjustments. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment>

A pageable sequence of ForecastAdjustment resources.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> response = forecastAdjustmentServiceClient.ListForecastAdjustments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ForecastAdjustment item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListForecastAdjustmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ForecastAdjustment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ForecastAdjustment> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ForecastAdjustment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListForecastAdjustmentsAsync(ListForecastAdjustmentsRequest, CallSettings)

Lists ForecastAdjustment objects.

Declaration
public virtual PagedAsyncEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> ListForecastAdjustmentsAsync(ListForecastAdjustmentsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListForecastAdjustmentsRequest 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
PagedAsyncEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment>

A pageable asynchronous sequence of ForecastAdjustment resources.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
ListForecastAdjustmentsRequest request = new ListForecastAdjustmentsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> response = forecastAdjustmentServiceClient.ListForecastAdjustmentsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (ForecastAdjustment item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListForecastAdjustmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ForecastAdjustment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ForecastAdjustment> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ForecastAdjustment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListForecastAdjustmentsAsync(NetworkName, string, int?, CallSettings)

Lists ForecastAdjustment objects.

Declaration
public virtual PagedAsyncEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> ListForecastAdjustmentsAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of ForecastAdjustments. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment>

A pageable asynchronous sequence of ForecastAdjustment resources.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> response = forecastAdjustmentServiceClient.ListForecastAdjustmentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (ForecastAdjustment item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListForecastAdjustmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ForecastAdjustment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ForecastAdjustment> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ForecastAdjustment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListForecastAdjustmentsAsync(string, string, int?, CallSettings)

Lists ForecastAdjustment objects.

Declaration
public virtual PagedAsyncEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> ListForecastAdjustmentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of ForecastAdjustments. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment>

A pageable asynchronous sequence of ForecastAdjustment resources.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListForecastAdjustmentsResponse, ForecastAdjustment> response = forecastAdjustmentServiceClient.ListForecastAdjustmentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (ForecastAdjustment item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListForecastAdjustmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ForecastAdjustment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ForecastAdjustment> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ForecastAdjustment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateForecastAdjustment(ForecastAdjustment, FieldMask, CallSettings)

Updates a ForecastAdjustment object.

Declaration
public virtual ForecastAdjustment UpdateForecastAdjustment(ForecastAdjustment forecastAdjustment, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
ForecastAdjustment forecastAdjustment

Required. The ForecastAdjustment to update.

The ForecastAdjustment's name is used to identify the ForecastAdjustment to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ForecastAdjustment

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
FieldMask updateMask = new FieldMask();
// Make the request
ForecastAdjustment response = forecastAdjustmentServiceClient.UpdateForecastAdjustment(forecastAdjustment, updateMask);

UpdateForecastAdjustment(UpdateForecastAdjustmentRequest, CallSettings)

Updates a ForecastAdjustment object.

Declaration
public virtual ForecastAdjustment UpdateForecastAdjustment(UpdateForecastAdjustmentRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateForecastAdjustmentRequest 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
ForecastAdjustment

The RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = ForecastAdjustmentServiceClient.Create();
// Initialize request argument(s)
UpdateForecastAdjustmentRequest request = new UpdateForecastAdjustmentRequest
{
    ForecastAdjustment = new ForecastAdjustment(),
    UpdateMask = new FieldMask(),
};
// Make the request
ForecastAdjustment response = forecastAdjustmentServiceClient.UpdateForecastAdjustment(request);

UpdateForecastAdjustmentAsync(ForecastAdjustment, FieldMask, CallSettings)

Updates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> UpdateForecastAdjustmentAsync(ForecastAdjustment forecastAdjustment, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
ForecastAdjustment forecastAdjustment

Required. The ForecastAdjustment to update.

The ForecastAdjustment's name is used to identify the ForecastAdjustment to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
FieldMask updateMask = new FieldMask();
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.UpdateForecastAdjustmentAsync(forecastAdjustment, updateMask);

UpdateForecastAdjustmentAsync(ForecastAdjustment, FieldMask, CancellationToken)

Updates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> UpdateForecastAdjustmentAsync(ForecastAdjustment forecastAdjustment, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
ForecastAdjustment forecastAdjustment

Required. The ForecastAdjustment to update.

The ForecastAdjustment's name is used to identify the ForecastAdjustment to update.

FieldMask updateMask

Optional. The list of fields to update.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
ForecastAdjustment forecastAdjustment = new ForecastAdjustment();
FieldMask updateMask = new FieldMask();
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.UpdateForecastAdjustmentAsync(forecastAdjustment, updateMask);

UpdateForecastAdjustmentAsync(UpdateForecastAdjustmentRequest, CallSettings)

Updates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> UpdateForecastAdjustmentAsync(UpdateForecastAdjustmentRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateForecastAdjustmentRequest 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<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateForecastAdjustmentRequest request = new UpdateForecastAdjustmentRequest
{
    ForecastAdjustment = new ForecastAdjustment(),
    UpdateMask = new FieldMask(),
};
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.UpdateForecastAdjustmentAsync(request);

UpdateForecastAdjustmentAsync(UpdateForecastAdjustmentRequest, CancellationToken)

Updates a ForecastAdjustment object.

Declaration
public virtual Task<ForecastAdjustment> UpdateForecastAdjustmentAsync(UpdateForecastAdjustmentRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateForecastAdjustmentRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ForecastAdjustment>

A Task containing the RPC response.

Sample code
// Create client
ForecastAdjustmentServiceClient forecastAdjustmentServiceClient = await ForecastAdjustmentServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateForecastAdjustmentRequest request = new UpdateForecastAdjustmentRequest
{
    ForecastAdjustment = new ForecastAdjustment(),
    UpdateMask = new FieldMask(),
};
// Make the request
ForecastAdjustment response = await forecastAdjustmentServiceClient.UpdateForecastAdjustmentAsync(request);
In this article
Back to top Generated by DocFX