Class TargetingPresetService.TargetingPresetServiceClient
Client for TargetingPresetService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class TargetingPresetService.TargetingPresetServiceClient : ClientBase<TargetingPresetService.TargetingPresetServiceClient>
Constructors
TargetingPresetServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected TargetingPresetServiceClient()
TargetingPresetServiceClient(CallInvoker)
Creates a new client for TargetingPresetService that uses a custom CallInvoker.
Declaration
public TargetingPresetServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
TargetingPresetServiceClient(ChannelBase)
Creates a new client for TargetingPresetService
Declaration
public TargetingPresetServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
TargetingPresetServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected TargetingPresetServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
BatchCreateTargetingPresets(BatchCreateTargetingPresetsRequest, CallOptions)
Creates TargetingPreset objects.
Declaration
public virtual BatchCreateTargetingPresetsResponse BatchCreateTargetingPresets(BatchCreateTargetingPresetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateTargetingPresetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchCreateTargetingPresetsResponse | The response received from the server. |
BatchCreateTargetingPresets(BatchCreateTargetingPresetsRequest, Metadata, DateTime?, CancellationToken)
Creates TargetingPreset objects.
Declaration
public virtual BatchCreateTargetingPresetsResponse BatchCreateTargetingPresets(BatchCreateTargetingPresetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateTargetingPresetsRequest | 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 |
|---|---|
| BatchCreateTargetingPresetsResponse | The response received from the server. |
BatchCreateTargetingPresetsAsync(BatchCreateTargetingPresetsRequest, CallOptions)
Creates TargetingPreset objects.
Declaration
public virtual AsyncUnaryCall<BatchCreateTargetingPresetsResponse> BatchCreateTargetingPresetsAsync(BatchCreateTargetingPresetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateTargetingPresetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchCreateTargetingPresetsResponse> | The call object. |
BatchCreateTargetingPresetsAsync(BatchCreateTargetingPresetsRequest, Metadata, DateTime?, CancellationToken)
Creates TargetingPreset objects.
Declaration
public virtual AsyncUnaryCall<BatchCreateTargetingPresetsResponse> BatchCreateTargetingPresetsAsync(BatchCreateTargetingPresetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateTargetingPresetsRequest | 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<BatchCreateTargetingPresetsResponse> | The call object. |
BatchDeactivateTargetingPresets(BatchDeactivateTargetingPresetsRequest, CallOptions)
Batch deactivates TargetingPreset objects.
Declaration
public virtual BatchDeactivateTargetingPresetsResponse BatchDeactivateTargetingPresets(BatchDeactivateTargetingPresetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateTargetingPresetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchDeactivateTargetingPresetsResponse | The response received from the server. |
BatchDeactivateTargetingPresets(BatchDeactivateTargetingPresetsRequest, Metadata, DateTime?, CancellationToken)
Batch deactivates TargetingPreset objects.
Declaration
public virtual BatchDeactivateTargetingPresetsResponse BatchDeactivateTargetingPresets(BatchDeactivateTargetingPresetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateTargetingPresetsRequest | 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 |
|---|---|
| BatchDeactivateTargetingPresetsResponse | The response received from the server. |
BatchDeactivateTargetingPresetsAsync(BatchDeactivateTargetingPresetsRequest, CallOptions)
Batch deactivates TargetingPreset objects.
Declaration
public virtual AsyncUnaryCall<BatchDeactivateTargetingPresetsResponse> BatchDeactivateTargetingPresetsAsync(BatchDeactivateTargetingPresetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateTargetingPresetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchDeactivateTargetingPresetsResponse> | The call object. |
BatchDeactivateTargetingPresetsAsync(BatchDeactivateTargetingPresetsRequest, Metadata, DateTime?, CancellationToken)
Batch deactivates TargetingPreset objects.
Declaration
public virtual AsyncUnaryCall<BatchDeactivateTargetingPresetsResponse> BatchDeactivateTargetingPresetsAsync(BatchDeactivateTargetingPresetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateTargetingPresetsRequest | 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<BatchDeactivateTargetingPresetsResponse> | The call object. |
BatchUpdateTargetingPresets(BatchUpdateTargetingPresetsRequest, CallOptions)
Batch updates TargetingPreset objects.
Declaration
public virtual BatchUpdateTargetingPresetsResponse BatchUpdateTargetingPresets(BatchUpdateTargetingPresetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateTargetingPresetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchUpdateTargetingPresetsResponse | The response received from the server. |
BatchUpdateTargetingPresets(BatchUpdateTargetingPresetsRequest, Metadata, DateTime?, CancellationToken)
Batch updates TargetingPreset objects.
Declaration
public virtual BatchUpdateTargetingPresetsResponse BatchUpdateTargetingPresets(BatchUpdateTargetingPresetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateTargetingPresetsRequest | 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 |
|---|---|
| BatchUpdateTargetingPresetsResponse | The response received from the server. |
BatchUpdateTargetingPresetsAsync(BatchUpdateTargetingPresetsRequest, CallOptions)
Batch updates TargetingPreset objects.
Declaration
public virtual AsyncUnaryCall<BatchUpdateTargetingPresetsResponse> BatchUpdateTargetingPresetsAsync(BatchUpdateTargetingPresetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateTargetingPresetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchUpdateTargetingPresetsResponse> | The call object. |
BatchUpdateTargetingPresetsAsync(BatchUpdateTargetingPresetsRequest, Metadata, DateTime?, CancellationToken)
Batch updates TargetingPreset objects.
Declaration
public virtual AsyncUnaryCall<BatchUpdateTargetingPresetsResponse> BatchUpdateTargetingPresetsAsync(BatchUpdateTargetingPresetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateTargetingPresetsRequest | 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<BatchUpdateTargetingPresetsResponse> | The call object. |
CreateTargetingPreset(CreateTargetingPresetRequest, CallOptions)
Creates a TargetingPreset object.
Declaration
public virtual TargetingPreset CreateTargetingPreset(CreateTargetingPresetRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateTargetingPresetRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| TargetingPreset | The response received from the server. |
CreateTargetingPreset(CreateTargetingPresetRequest, Metadata, DateTime?, CancellationToken)
Creates a TargetingPreset object.
Declaration
public virtual TargetingPreset CreateTargetingPreset(CreateTargetingPresetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateTargetingPresetRequest | 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 |
|---|---|
| TargetingPreset | The response received from the server. |
CreateTargetingPresetAsync(CreateTargetingPresetRequest, CallOptions)
Creates a TargetingPreset object.
Declaration
public virtual AsyncUnaryCall<TargetingPreset> CreateTargetingPresetAsync(CreateTargetingPresetRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateTargetingPresetRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<TargetingPreset> | The call object. |
CreateTargetingPresetAsync(CreateTargetingPresetRequest, Metadata, DateTime?, CancellationToken)
Creates a TargetingPreset object.
Declaration
public virtual AsyncUnaryCall<TargetingPreset> CreateTargetingPresetAsync(CreateTargetingPresetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateTargetingPresetRequest | 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<TargetingPreset> | The call object. |
GetTargetingPreset(GetTargetingPresetRequest, CallOptions)
Retrieves a TargetingPreset object.
Note: Deactivated targeting presets are "logically deleted" (filtered out)
by the get logic in the manager layer, so they will not be returned by the
GetTargetingPreset RPC.
Declaration
public virtual TargetingPreset GetTargetingPreset(GetTargetingPresetRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTargetingPresetRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| TargetingPreset | The response received from the server. |
GetTargetingPreset(GetTargetingPresetRequest, Metadata, DateTime?, CancellationToken)
Retrieves a TargetingPreset object.
Note: Deactivated targeting presets are "logically deleted" (filtered out)
by the get logic in the manager layer, so they will not be returned by the
GetTargetingPreset RPC.
Declaration
public virtual TargetingPreset GetTargetingPreset(GetTargetingPresetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTargetingPresetRequest | 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 |
|---|---|
| TargetingPreset | The response received from the server. |
GetTargetingPresetAsync(GetTargetingPresetRequest, CallOptions)
Retrieves a TargetingPreset object.
Note: Deactivated targeting presets are "logically deleted" (filtered out)
by the get logic in the manager layer, so they will not be returned by the
GetTargetingPreset RPC.
Declaration
public virtual AsyncUnaryCall<TargetingPreset> GetTargetingPresetAsync(GetTargetingPresetRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTargetingPresetRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<TargetingPreset> | The call object. |
GetTargetingPresetAsync(GetTargetingPresetRequest, Metadata, DateTime?, CancellationToken)
Retrieves a TargetingPreset object.
Note: Deactivated targeting presets are "logically deleted" (filtered out)
by the get logic in the manager layer, so they will not be returned by the
GetTargetingPreset RPC.
Declaration
public virtual AsyncUnaryCall<TargetingPreset> GetTargetingPresetAsync(GetTargetingPresetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTargetingPresetRequest | 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<TargetingPreset> | The call object. |
ListTargetingPresets(ListTargetingPresetsRequest, CallOptions)
Lists TargetingPreset objects.
Declaration
public virtual ListTargetingPresetsResponse ListTargetingPresets(ListTargetingPresetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListTargetingPresetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| ListTargetingPresetsResponse | The response received from the server. |
ListTargetingPresets(ListTargetingPresetsRequest, Metadata, DateTime?, CancellationToken)
Lists TargetingPreset objects.
Declaration
public virtual ListTargetingPresetsResponse ListTargetingPresets(ListTargetingPresetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListTargetingPresetsRequest | 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 |
|---|---|
| ListTargetingPresetsResponse | The response received from the server. |
ListTargetingPresetsAsync(ListTargetingPresetsRequest, CallOptions)
Lists TargetingPreset objects.
Declaration
public virtual AsyncUnaryCall<ListTargetingPresetsResponse> ListTargetingPresetsAsync(ListTargetingPresetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListTargetingPresetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<ListTargetingPresetsResponse> | The call object. |
ListTargetingPresetsAsync(ListTargetingPresetsRequest, Metadata, DateTime?, CancellationToken)
Lists TargetingPreset objects.
Declaration
public virtual AsyncUnaryCall<ListTargetingPresetsResponse> ListTargetingPresetsAsync(ListTargetingPresetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListTargetingPresetsRequest | 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<ListTargetingPresetsResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override TargetingPresetService.TargetingPresetServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| TargetingPresetService.TargetingPresetServiceClient |
Overrides
UpdateTargetingPreset(UpdateTargetingPresetRequest, CallOptions)
Updates a TargetingPreset object.
Declaration
public virtual TargetingPreset UpdateTargetingPreset(UpdateTargetingPresetRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateTargetingPresetRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| TargetingPreset | The response received from the server. |
UpdateTargetingPreset(UpdateTargetingPresetRequest, Metadata, DateTime?, CancellationToken)
Updates a TargetingPreset object.
Declaration
public virtual TargetingPreset UpdateTargetingPreset(UpdateTargetingPresetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateTargetingPresetRequest | 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 |
|---|---|
| TargetingPreset | The response received from the server. |
UpdateTargetingPresetAsync(UpdateTargetingPresetRequest, CallOptions)
Updates a TargetingPreset object.
Declaration
public virtual AsyncUnaryCall<TargetingPreset> UpdateTargetingPresetAsync(UpdateTargetingPresetRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateTargetingPresetRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<TargetingPreset> | The call object. |
UpdateTargetingPresetAsync(UpdateTargetingPresetRequest, Metadata, DateTime?, CancellationToken)
Updates a TargetingPreset object.
Declaration
public virtual AsyncUnaryCall<TargetingPreset> UpdateTargetingPresetAsync(UpdateTargetingPresetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateTargetingPresetRequest | 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<TargetingPreset> | The call object. |