Class CustomTargetingKeyService.CustomTargetingKeyServiceClient
Client for CustomTargetingKeyService
Inheritance
Inherited Members
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
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 |