Show / Hide Table of Contents

Class CustomTargetingKeyService.CustomTargetingKeyServiceClient

Client for CustomTargetingKeyService

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

Constructors

CustomTargetingKeyServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected CustomTargetingKeyServiceClient()

CustomTargetingKeyServiceClient(CallInvoker)

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

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

The callInvoker to use to make remote calls.

CustomTargetingKeyServiceClient(ChannelBase)

Creates a new client for CustomTargetingKeyService

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

The channel to use to make remote calls.

CustomTargetingKeyServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

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

The client configuration.

Methods

BatchActivateCustomTargetingKeys(BatchActivateCustomTargetingKeysRequest, CallOptions)

API to batch activate CustomTargetingKey objects.

Declaration
public virtual BatchActivateCustomTargetingKeysResponse BatchActivateCustomTargetingKeys(BatchActivateCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
BatchActivateCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
BatchActivateCustomTargetingKeysResponse

The response received from the server.

BatchActivateCustomTargetingKeys(BatchActivateCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

API to batch activate CustomTargetingKey objects.

Declaration
public virtual BatchActivateCustomTargetingKeysResponse BatchActivateCustomTargetingKeys(BatchActivateCustomTargetingKeysRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchActivateCustomTargetingKeysRequest request

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
BatchActivateCustomTargetingKeysResponse

The response received from the server.

BatchActivateCustomTargetingKeysAsync(BatchActivateCustomTargetingKeysRequest, CallOptions)

API to batch activate CustomTargetingKey objects.

Declaration
public virtual AsyncUnaryCall<BatchActivateCustomTargetingKeysResponse> BatchActivateCustomTargetingKeysAsync(BatchActivateCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
BatchActivateCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<BatchActivateCustomTargetingKeysResponse>

The call object.

BatchActivateCustomTargetingKeysAsync(BatchActivateCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

API to batch activate CustomTargetingKey objects.

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

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<BatchActivateCustomTargetingKeysResponse>

The call object.

BatchCreateCustomTargetingKeys(BatchCreateCustomTargetingKeysRequest, CallOptions)

API to batch create CustomTargetingKey objects.

Declaration
public virtual BatchCreateCustomTargetingKeysResponse BatchCreateCustomTargetingKeys(BatchCreateCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
BatchCreateCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
BatchCreateCustomTargetingKeysResponse

The response received from the server.

BatchCreateCustomTargetingKeys(BatchCreateCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

API to batch create CustomTargetingKey objects.

Declaration
public virtual BatchCreateCustomTargetingKeysResponse BatchCreateCustomTargetingKeys(BatchCreateCustomTargetingKeysRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchCreateCustomTargetingKeysRequest request

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
BatchCreateCustomTargetingKeysResponse

The response received from the server.

BatchCreateCustomTargetingKeysAsync(BatchCreateCustomTargetingKeysRequest, CallOptions)

API to batch create CustomTargetingKey objects.

Declaration
public virtual AsyncUnaryCall<BatchCreateCustomTargetingKeysResponse> BatchCreateCustomTargetingKeysAsync(BatchCreateCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
BatchCreateCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<BatchCreateCustomTargetingKeysResponse>

The call object.

BatchCreateCustomTargetingKeysAsync(BatchCreateCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

API to batch create CustomTargetingKey objects.

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

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<BatchCreateCustomTargetingKeysResponse>

The call object.

BatchDeactivateCustomTargetingKeys(BatchDeactivateCustomTargetingKeysRequest, CallOptions)

Deactivates a list of CustomTargetingKey objects.

Declaration
public virtual BatchDeactivateCustomTargetingKeysResponse BatchDeactivateCustomTargetingKeys(BatchDeactivateCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
BatchDeactivateCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
BatchDeactivateCustomTargetingKeysResponse

The response received from the server.

BatchDeactivateCustomTargetingKeys(BatchDeactivateCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

Deactivates a list of CustomTargetingKey objects.

Declaration
public virtual BatchDeactivateCustomTargetingKeysResponse BatchDeactivateCustomTargetingKeys(BatchDeactivateCustomTargetingKeysRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchDeactivateCustomTargetingKeysRequest request

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
BatchDeactivateCustomTargetingKeysResponse

The response received from the server.

BatchDeactivateCustomTargetingKeysAsync(BatchDeactivateCustomTargetingKeysRequest, CallOptions)

Deactivates a list of CustomTargetingKey objects.

Declaration
public virtual AsyncUnaryCall<BatchDeactivateCustomTargetingKeysResponse> BatchDeactivateCustomTargetingKeysAsync(BatchDeactivateCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
BatchDeactivateCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<BatchDeactivateCustomTargetingKeysResponse>

The call object.

BatchDeactivateCustomTargetingKeysAsync(BatchDeactivateCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

Deactivates a list of CustomTargetingKey objects.

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

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<BatchDeactivateCustomTargetingKeysResponse>

The call object.

BatchUpdateCustomTargetingKeys(BatchUpdateCustomTargetingKeysRequest, CallOptions)

API to batch update CustomTargetingKey objects.

Declaration
public virtual BatchUpdateCustomTargetingKeysResponse BatchUpdateCustomTargetingKeys(BatchUpdateCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
BatchUpdateCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
BatchUpdateCustomTargetingKeysResponse

The response received from the server.

BatchUpdateCustomTargetingKeys(BatchUpdateCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

API to batch update CustomTargetingKey objects.

Declaration
public virtual BatchUpdateCustomTargetingKeysResponse BatchUpdateCustomTargetingKeys(BatchUpdateCustomTargetingKeysRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchUpdateCustomTargetingKeysRequest request

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
BatchUpdateCustomTargetingKeysResponse

The response received from the server.

BatchUpdateCustomTargetingKeysAsync(BatchUpdateCustomTargetingKeysRequest, CallOptions)

API to batch update CustomTargetingKey objects.

Declaration
public virtual AsyncUnaryCall<BatchUpdateCustomTargetingKeysResponse> BatchUpdateCustomTargetingKeysAsync(BatchUpdateCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
BatchUpdateCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<BatchUpdateCustomTargetingKeysResponse>

The call object.

BatchUpdateCustomTargetingKeysAsync(BatchUpdateCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

API to batch update CustomTargetingKey objects.

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

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<BatchUpdateCustomTargetingKeysResponse>

The call object.

CreateCustomTargetingKey(CreateCustomTargetingKeyRequest, CallOptions)

API to create a CustomTargetingKey object.

Declaration
public virtual CustomTargetingKey CreateCustomTargetingKey(CreateCustomTargetingKeyRequest request, CallOptions options)
Parameters
Type Name Description
CreateCustomTargetingKeyRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
CustomTargetingKey

The response received from the server.

CreateCustomTargetingKey(CreateCustomTargetingKeyRequest, Metadata, DateTime?, CancellationToken)

API to create a CustomTargetingKey object.

Declaration
public virtual CustomTargetingKey CreateCustomTargetingKey(CreateCustomTargetingKeyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateCustomTargetingKeyRequest request

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
CustomTargetingKey

The response received from the server.

CreateCustomTargetingKeyAsync(CreateCustomTargetingKeyRequest, CallOptions)

API to create a CustomTargetingKey object.

Declaration
public virtual AsyncUnaryCall<CustomTargetingKey> CreateCustomTargetingKeyAsync(CreateCustomTargetingKeyRequest request, CallOptions options)
Parameters
Type Name Description
CreateCustomTargetingKeyRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<CustomTargetingKey>

The call object.

CreateCustomTargetingKeyAsync(CreateCustomTargetingKeyRequest, Metadata, DateTime?, CancellationToken)

API to create a CustomTargetingKey object.

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

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<CustomTargetingKey>

The call object.

GetCustomTargetingKey(GetCustomTargetingKeyRequest, CallOptions)

API to retrieve a CustomTargetingKey object.

Declaration
public virtual CustomTargetingKey GetCustomTargetingKey(GetCustomTargetingKeyRequest request, CallOptions options)
Parameters
Type Name Description
GetCustomTargetingKeyRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
CustomTargetingKey

The response received from the server.

GetCustomTargetingKey(GetCustomTargetingKeyRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a CustomTargetingKey object.

Declaration
public virtual CustomTargetingKey GetCustomTargetingKey(GetCustomTargetingKeyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetCustomTargetingKeyRequest request

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
CustomTargetingKey

The response received from the server.

GetCustomTargetingKeyAsync(GetCustomTargetingKeyRequest, CallOptions)

API to retrieve a CustomTargetingKey object.

Declaration
public virtual AsyncUnaryCall<CustomTargetingKey> GetCustomTargetingKeyAsync(GetCustomTargetingKeyRequest request, CallOptions options)
Parameters
Type Name Description
GetCustomTargetingKeyRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<CustomTargetingKey>

The call object.

GetCustomTargetingKeyAsync(GetCustomTargetingKeyRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a CustomTargetingKey object.

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

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<CustomTargetingKey>

The call object.

ListCustomTargetingKeys(ListCustomTargetingKeysRequest, CallOptions)

API to retrieve a list of CustomTargetingKey objects.

Declaration
public virtual ListCustomTargetingKeysResponse ListCustomTargetingKeys(ListCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
ListCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListCustomTargetingKeysResponse

The response received from the server.

ListCustomTargetingKeys(ListCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of CustomTargetingKey objects.

Declaration
public virtual ListCustomTargetingKeysResponse ListCustomTargetingKeys(ListCustomTargetingKeysRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListCustomTargetingKeysRequest request

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
ListCustomTargetingKeysResponse

The response received from the server.

ListCustomTargetingKeysAsync(ListCustomTargetingKeysRequest, CallOptions)

API to retrieve a list of CustomTargetingKey objects.

Declaration
public virtual AsyncUnaryCall<ListCustomTargetingKeysResponse> ListCustomTargetingKeysAsync(ListCustomTargetingKeysRequest request, CallOptions options)
Parameters
Type Name Description
ListCustomTargetingKeysRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListCustomTargetingKeysResponse>

The call object.

ListCustomTargetingKeysAsync(ListCustomTargetingKeysRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of CustomTargetingKey objects.

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

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<ListCustomTargetingKeysResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

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

UpdateCustomTargetingKey(UpdateCustomTargetingKeyRequest, CallOptions)

API to update a CustomTargetingKey object.

Declaration
public virtual CustomTargetingKey UpdateCustomTargetingKey(UpdateCustomTargetingKeyRequest request, CallOptions options)
Parameters
Type Name Description
UpdateCustomTargetingKeyRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
CustomTargetingKey

The response received from the server.

UpdateCustomTargetingKey(UpdateCustomTargetingKeyRequest, Metadata, DateTime?, CancellationToken)

API to update a CustomTargetingKey object.

Declaration
public virtual CustomTargetingKey UpdateCustomTargetingKey(UpdateCustomTargetingKeyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateCustomTargetingKeyRequest request

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
CustomTargetingKey

The response received from the server.

UpdateCustomTargetingKeyAsync(UpdateCustomTargetingKeyRequest, CallOptions)

API to update a CustomTargetingKey object.

Declaration
public virtual AsyncUnaryCall<CustomTargetingKey> UpdateCustomTargetingKeyAsync(UpdateCustomTargetingKeyRequest request, CallOptions options)
Parameters
Type Name Description
UpdateCustomTargetingKeyRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<CustomTargetingKey>

The call object.

UpdateCustomTargetingKeyAsync(UpdateCustomTargetingKeyRequest, Metadata, DateTime?, CancellationToken)

API to update a CustomTargetingKey object.

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

The request to send to the server.

Metadata headers

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

DateTime? deadline

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

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<CustomTargetingKey>

The call object.

In this article
Back to top Generated by DocFX