Class CustomTargetingKeyServiceClientImpl
CustomTargetingKeyService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class CustomTargetingKeyServiceClientImpl : CustomTargetingKeyServiceClient
Remarks
Provides methods for handling CustomTargetingKey objects.
Constructors
CustomTargetingKeyServiceClientImpl(CustomTargetingKeyServiceClient, CustomTargetingKeyServiceSettings, ILogger)
Constructs a client wrapper for the CustomTargetingKeyService service, with the specified gRPC client and settings.
Declaration
public CustomTargetingKeyServiceClientImpl(CustomTargetingKeyService.CustomTargetingKeyServiceClient grpcClient, CustomTargetingKeyServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomTargetingKeyService.CustomTargetingKeyServiceClient | grpcClient | The underlying gRPC client. |
| CustomTargetingKeyServiceSettings | settings | The base CustomTargetingKeyServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC CustomTargetingKeyService client
Declaration
public override CustomTargetingKeyService.CustomTargetingKeyServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| CustomTargetingKeyService.CustomTargetingKeyServiceClient |
Overrides
Methods
BatchActivateCustomTargetingKeys(BatchActivateCustomTargetingKeysRequest, CallSettings)
API to batch activate CustomTargetingKey objects.
Declaration
public override BatchActivateCustomTargetingKeysResponse BatchActivateCustomTargetingKeys(BatchActivateCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateCustomTargetingKeysRequest | 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 |
|---|---|
| BatchActivateCustomTargetingKeysResponse | The RPC response. |
Overrides
BatchActivateCustomTargetingKeysAsync(BatchActivateCustomTargetingKeysRequest, CallSettings)
API to batch activate CustomTargetingKey objects.
Declaration
public override Task<BatchActivateCustomTargetingKeysResponse> BatchActivateCustomTargetingKeysAsync(BatchActivateCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateCustomTargetingKeysRequest | 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<BatchActivateCustomTargetingKeysResponse> | A Task containing the RPC response. |
Overrides
BatchCreateCustomTargetingKeys(BatchCreateCustomTargetingKeysRequest, CallSettings)
API to batch create CustomTargetingKey objects.
Declaration
public override BatchCreateCustomTargetingKeysResponse BatchCreateCustomTargetingKeys(BatchCreateCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateCustomTargetingKeysRequest | 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 |
|---|---|
| BatchCreateCustomTargetingKeysResponse | The RPC response. |
Overrides
BatchCreateCustomTargetingKeysAsync(BatchCreateCustomTargetingKeysRequest, CallSettings)
API to batch create CustomTargetingKey objects.
Declaration
public override Task<BatchCreateCustomTargetingKeysResponse> BatchCreateCustomTargetingKeysAsync(BatchCreateCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateCustomTargetingKeysRequest | 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<BatchCreateCustomTargetingKeysResponse> | A Task containing the RPC response. |
Overrides
BatchDeactivateCustomTargetingKeys(BatchDeactivateCustomTargetingKeysRequest, CallSettings)
Deactivates a list of CustomTargetingKey objects.
Declaration
public override BatchDeactivateCustomTargetingKeysResponse BatchDeactivateCustomTargetingKeys(BatchDeactivateCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateCustomTargetingKeysRequest | 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 |
|---|---|
| BatchDeactivateCustomTargetingKeysResponse | The RPC response. |
Overrides
BatchDeactivateCustomTargetingKeysAsync(BatchDeactivateCustomTargetingKeysRequest, CallSettings)
Deactivates a list of CustomTargetingKey objects.
Declaration
public override Task<BatchDeactivateCustomTargetingKeysResponse> BatchDeactivateCustomTargetingKeysAsync(BatchDeactivateCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateCustomTargetingKeysRequest | 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<BatchDeactivateCustomTargetingKeysResponse> | A Task containing the RPC response. |
Overrides
BatchUpdateCustomTargetingKeys(BatchUpdateCustomTargetingKeysRequest, CallSettings)
API to batch update CustomTargetingKey objects.
Declaration
public override BatchUpdateCustomTargetingKeysResponse BatchUpdateCustomTargetingKeys(BatchUpdateCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateCustomTargetingKeysRequest | 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 |
|---|---|
| BatchUpdateCustomTargetingKeysResponse | The RPC response. |
Overrides
BatchUpdateCustomTargetingKeysAsync(BatchUpdateCustomTargetingKeysRequest, CallSettings)
API to batch update CustomTargetingKey objects.
Declaration
public override Task<BatchUpdateCustomTargetingKeysResponse> BatchUpdateCustomTargetingKeysAsync(BatchUpdateCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateCustomTargetingKeysRequest | 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<BatchUpdateCustomTargetingKeysResponse> | A Task containing the RPC response. |
Overrides
CreateCustomTargetingKey(CreateCustomTargetingKeyRequest, CallSettings)
API to create a CustomTargetingKey object.
Declaration
public override CustomTargetingKey CreateCustomTargetingKey(CreateCustomTargetingKeyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCustomTargetingKeyRequest | 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 |
|---|---|
| CustomTargetingKey | The RPC response. |
Overrides
CreateCustomTargetingKeyAsync(CreateCustomTargetingKeyRequest, CallSettings)
API to create a CustomTargetingKey object.
Declaration
public override Task<CustomTargetingKey> CreateCustomTargetingKeyAsync(CreateCustomTargetingKeyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCustomTargetingKeyRequest | 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<CustomTargetingKey> | A Task containing the RPC response. |
Overrides
GetCustomTargetingKey(GetCustomTargetingKeyRequest, CallSettings)
API to retrieve a CustomTargetingKey object.
Declaration
public override CustomTargetingKey GetCustomTargetingKey(GetCustomTargetingKeyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCustomTargetingKeyRequest | 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 |
|---|---|
| CustomTargetingKey | The RPC response. |
Overrides
GetCustomTargetingKeyAsync(GetCustomTargetingKeyRequest, CallSettings)
API to retrieve a CustomTargetingKey object.
Declaration
public override Task<CustomTargetingKey> GetCustomTargetingKeyAsync(GetCustomTargetingKeyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCustomTargetingKeyRequest | 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<CustomTargetingKey> | A Task containing the RPC response. |
Overrides
ListCustomTargetingKeys(ListCustomTargetingKeysRequest, CallSettings)
API to retrieve a list of CustomTargetingKey objects.
Declaration
public override PagedEnumerable<ListCustomTargetingKeysResponse, CustomTargetingKey> ListCustomTargetingKeys(ListCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCustomTargetingKeysRequest | 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<ListCustomTargetingKeysResponse, CustomTargetingKey> | A pageable sequence of CustomTargetingKey resources. |
Overrides
ListCustomTargetingKeysAsync(ListCustomTargetingKeysRequest, CallSettings)
API to retrieve a list of CustomTargetingKey objects.
Declaration
public override PagedAsyncEnumerable<ListCustomTargetingKeysResponse, CustomTargetingKey> ListCustomTargetingKeysAsync(ListCustomTargetingKeysRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCustomTargetingKeysRequest | 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<ListCustomTargetingKeysResponse, CustomTargetingKey> | A pageable asynchronous sequence of CustomTargetingKey resources. |
Overrides
UpdateCustomTargetingKey(UpdateCustomTargetingKeyRequest, CallSettings)
API to update a CustomTargetingKey object.
Declaration
public override CustomTargetingKey UpdateCustomTargetingKey(UpdateCustomTargetingKeyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateCustomTargetingKeyRequest | 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 |
|---|---|
| CustomTargetingKey | The RPC response. |
Overrides
UpdateCustomTargetingKeyAsync(UpdateCustomTargetingKeyRequest, CallSettings)
API to update a CustomTargetingKey object.
Declaration
public override Task<CustomTargetingKey> UpdateCustomTargetingKeyAsync(UpdateCustomTargetingKeyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateCustomTargetingKeyRequest | 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<CustomTargetingKey> | A Task containing the RPC response. |