Class AdUnitService.AdUnitServiceClient
Client for AdUnitService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class AdUnitService.AdUnitServiceClient : ClientBase<AdUnitService.AdUnitServiceClient>
Constructors
AdUnitServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected AdUnitServiceClient()
AdUnitServiceClient(CallInvoker)
Creates a new client for AdUnitService that uses a custom CallInvoker.
Declaration
public AdUnitServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
AdUnitServiceClient(ChannelBase)
Creates a new client for AdUnitService
Declaration
public AdUnitServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
AdUnitServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected AdUnitServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
BatchActivateAdUnits(BatchActivateAdUnitsRequest, CallOptions)
API to batch activate AdUnit objects.
Declaration
public virtual BatchActivateAdUnitsResponse BatchActivateAdUnits(BatchActivateAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchActivateAdUnitsResponse | The response received from the server. |
BatchActivateAdUnits(BatchActivateAdUnitsRequest, Metadata, DateTime?, CancellationToken)
API to batch activate AdUnit objects.
Declaration
public virtual BatchActivateAdUnitsResponse BatchActivateAdUnits(BatchActivateAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateAdUnitsRequest | 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 |
|---|---|
| BatchActivateAdUnitsResponse | The response received from the server. |
BatchActivateAdUnitsAsync(BatchActivateAdUnitsRequest, CallOptions)
API to batch activate AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchActivateAdUnitsResponse> BatchActivateAdUnitsAsync(BatchActivateAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchActivateAdUnitsResponse> | The call object. |
BatchActivateAdUnitsAsync(BatchActivateAdUnitsRequest, Metadata, DateTime?, CancellationToken)
API to batch activate AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchActivateAdUnitsResponse> BatchActivateAdUnitsAsync(BatchActivateAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateAdUnitsRequest | 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<BatchActivateAdUnitsResponse> | The call object. |
BatchArchiveAdUnits(BatchArchiveAdUnitsRequest, CallOptions)
Archives a list of AdUnit objects.
Declaration
public virtual BatchArchiveAdUnitsResponse BatchArchiveAdUnits(BatchArchiveAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchArchiveAdUnitsResponse | The response received from the server. |
BatchArchiveAdUnits(BatchArchiveAdUnitsRequest, Metadata, DateTime?, CancellationToken)
Archives a list of AdUnit objects.
Declaration
public virtual BatchArchiveAdUnitsResponse BatchArchiveAdUnits(BatchArchiveAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveAdUnitsRequest | 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 |
|---|---|
| BatchArchiveAdUnitsResponse | The response received from the server. |
BatchArchiveAdUnitsAsync(BatchArchiveAdUnitsRequest, CallOptions)
Archives a list of AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchArchiveAdUnitsResponse> BatchArchiveAdUnitsAsync(BatchArchiveAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchArchiveAdUnitsResponse> | The call object. |
BatchArchiveAdUnitsAsync(BatchArchiveAdUnitsRequest, Metadata, DateTime?, CancellationToken)
Archives a list of AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchArchiveAdUnitsResponse> BatchArchiveAdUnitsAsync(BatchArchiveAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveAdUnitsRequest | 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<BatchArchiveAdUnitsResponse> | The call object. |
BatchCreateAdUnits(BatchCreateAdUnitsRequest, CallOptions)
API to batch create AdUnit objects.
Declaration
public virtual BatchCreateAdUnitsResponse BatchCreateAdUnits(BatchCreateAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchCreateAdUnitsResponse | The response received from the server. |
BatchCreateAdUnits(BatchCreateAdUnitsRequest, Metadata, DateTime?, CancellationToken)
API to batch create AdUnit objects.
Declaration
public virtual BatchCreateAdUnitsResponse BatchCreateAdUnits(BatchCreateAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateAdUnitsRequest | 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 |
|---|---|
| BatchCreateAdUnitsResponse | The response received from the server. |
BatchCreateAdUnitsAsync(BatchCreateAdUnitsRequest, CallOptions)
API to batch create AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchCreateAdUnitsResponse> BatchCreateAdUnitsAsync(BatchCreateAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchCreateAdUnitsResponse> | The call object. |
BatchCreateAdUnitsAsync(BatchCreateAdUnitsRequest, Metadata, DateTime?, CancellationToken)
API to batch create AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchCreateAdUnitsResponse> BatchCreateAdUnitsAsync(BatchCreateAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateAdUnitsRequest | 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<BatchCreateAdUnitsResponse> | The call object. |
BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest, CallOptions)
Deactivates a list of AdUnit objects.
Declaration
public virtual BatchDeactivateAdUnitsResponse BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchDeactivateAdUnitsResponse | The response received from the server. |
BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest, Metadata, DateTime?, CancellationToken)
Deactivates a list of AdUnit objects.
Declaration
public virtual BatchDeactivateAdUnitsResponse BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateAdUnitsRequest | 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 |
|---|---|
| BatchDeactivateAdUnitsResponse | The response received from the server. |
BatchDeactivateAdUnitsAsync(BatchDeactivateAdUnitsRequest, CallOptions)
Deactivates a list of AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchDeactivateAdUnitsResponse> BatchDeactivateAdUnitsAsync(BatchDeactivateAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchDeactivateAdUnitsResponse> | The call object. |
BatchDeactivateAdUnitsAsync(BatchDeactivateAdUnitsRequest, Metadata, DateTime?, CancellationToken)
Deactivates a list of AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchDeactivateAdUnitsResponse> BatchDeactivateAdUnitsAsync(BatchDeactivateAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateAdUnitsRequest | 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<BatchDeactivateAdUnitsResponse> | The call object. |
BatchUpdateAdUnits(BatchUpdateAdUnitsRequest, CallOptions)
API to batch update AdUnit objects.
Declaration
public virtual BatchUpdateAdUnitsResponse BatchUpdateAdUnits(BatchUpdateAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchUpdateAdUnitsResponse | The response received from the server. |
BatchUpdateAdUnits(BatchUpdateAdUnitsRequest, Metadata, DateTime?, CancellationToken)
API to batch update AdUnit objects.
Declaration
public virtual BatchUpdateAdUnitsResponse BatchUpdateAdUnits(BatchUpdateAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateAdUnitsRequest | 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 |
|---|---|
| BatchUpdateAdUnitsResponse | The response received from the server. |
BatchUpdateAdUnitsAsync(BatchUpdateAdUnitsRequest, CallOptions)
API to batch update AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchUpdateAdUnitsResponse> BatchUpdateAdUnitsAsync(BatchUpdateAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchUpdateAdUnitsResponse> | The call object. |
BatchUpdateAdUnitsAsync(BatchUpdateAdUnitsRequest, Metadata, DateTime?, CancellationToken)
API to batch update AdUnit objects.
Declaration
public virtual AsyncUnaryCall<BatchUpdateAdUnitsResponse> BatchUpdateAdUnitsAsync(BatchUpdateAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateAdUnitsRequest | 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<BatchUpdateAdUnitsResponse> | The call object. |
CreateAdUnit(CreateAdUnitRequest, CallOptions)
API to create an AdUnit object.
Declaration
public virtual AdUnit CreateAdUnit(CreateAdUnitRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAdUnitRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AdUnit | The response received from the server. |
CreateAdUnit(CreateAdUnitRequest, Metadata, DateTime?, CancellationToken)
API to create an AdUnit object.
Declaration
public virtual AdUnit CreateAdUnit(CreateAdUnitRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAdUnitRequest | 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 |
|---|---|
| AdUnit | The response received from the server. |
CreateAdUnitAsync(CreateAdUnitRequest, CallOptions)
API to create an AdUnit object.
Declaration
public virtual AsyncUnaryCall<AdUnit> CreateAdUnitAsync(CreateAdUnitRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAdUnitRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<AdUnit> | The call object. |
CreateAdUnitAsync(CreateAdUnitRequest, Metadata, DateTime?, CancellationToken)
API to create an AdUnit object.
Declaration
public virtual AsyncUnaryCall<AdUnit> CreateAdUnitAsync(CreateAdUnitRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAdUnitRequest | 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<AdUnit> | The call object. |
GetAdUnit(GetAdUnitRequest, CallOptions)
API to retrieve an AdUnit object.
Declaration
public virtual AdUnit GetAdUnit(GetAdUnitRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAdUnitRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AdUnit | The response received from the server. |
GetAdUnit(GetAdUnitRequest, Metadata, DateTime?, CancellationToken)
API to retrieve an AdUnit object.
Declaration
public virtual AdUnit GetAdUnit(GetAdUnitRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAdUnitRequest | 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 |
|---|---|
| AdUnit | The response received from the server. |
GetAdUnitAsync(GetAdUnitRequest, CallOptions)
API to retrieve an AdUnit object.
Declaration
public virtual AsyncUnaryCall<AdUnit> GetAdUnitAsync(GetAdUnitRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAdUnitRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<AdUnit> | The call object. |
GetAdUnitAsync(GetAdUnitRequest, Metadata, DateTime?, CancellationToken)
API to retrieve an AdUnit object.
Declaration
public virtual AsyncUnaryCall<AdUnit> GetAdUnitAsync(GetAdUnitRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAdUnitRequest | 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<AdUnit> | The call object. |
ListAdUnitSizes(ListAdUnitSizesRequest, CallOptions)
API to retrieve a list of AdUnitSize objects.
Declaration
public virtual ListAdUnitSizesResponse ListAdUnitSizes(ListAdUnitSizesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitSizesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| ListAdUnitSizesResponse | The response received from the server. |
ListAdUnitSizes(ListAdUnitSizesRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of AdUnitSize objects.
Declaration
public virtual ListAdUnitSizesResponse ListAdUnitSizes(ListAdUnitSizesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitSizesRequest | 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 |
|---|---|
| ListAdUnitSizesResponse | The response received from the server. |
ListAdUnitSizesAsync(ListAdUnitSizesRequest, CallOptions)
API to retrieve a list of AdUnitSize objects.
Declaration
public virtual AsyncUnaryCall<ListAdUnitSizesResponse> ListAdUnitSizesAsync(ListAdUnitSizesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitSizesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<ListAdUnitSizesResponse> | The call object. |
ListAdUnitSizesAsync(ListAdUnitSizesRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of AdUnitSize objects.
Declaration
public virtual AsyncUnaryCall<ListAdUnitSizesResponse> ListAdUnitSizesAsync(ListAdUnitSizesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitSizesRequest | 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<ListAdUnitSizesResponse> | The call object. |
ListAdUnits(ListAdUnitsRequest, CallOptions)
API to retrieve a list of AdUnit objects.
Declaration
public virtual ListAdUnitsResponse ListAdUnits(ListAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| ListAdUnitsResponse | The response received from the server. |
ListAdUnits(ListAdUnitsRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of AdUnit objects.
Declaration
public virtual ListAdUnitsResponse ListAdUnits(ListAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitsRequest | 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 |
|---|---|
| ListAdUnitsResponse | The response received from the server. |
ListAdUnitsAsync(ListAdUnitsRequest, CallOptions)
API to retrieve a list of AdUnit objects.
Declaration
public virtual AsyncUnaryCall<ListAdUnitsResponse> ListAdUnitsAsync(ListAdUnitsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<ListAdUnitsResponse> | The call object. |
ListAdUnitsAsync(ListAdUnitsRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of AdUnit objects.
Declaration
public virtual AsyncUnaryCall<ListAdUnitsResponse> ListAdUnitsAsync(ListAdUnitsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitsRequest | 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<ListAdUnitsResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override AdUnitService.AdUnitServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| AdUnitService.AdUnitServiceClient |
Overrides
UpdateAdUnit(UpdateAdUnitRequest, CallOptions)
API to update an AdUnit object.
Declaration
public virtual AdUnit UpdateAdUnit(UpdateAdUnitRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAdUnitRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AdUnit | The response received from the server. |
UpdateAdUnit(UpdateAdUnitRequest, Metadata, DateTime?, CancellationToken)
API to update an AdUnit object.
Declaration
public virtual AdUnit UpdateAdUnit(UpdateAdUnitRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAdUnitRequest | 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 |
|---|---|
| AdUnit | The response received from the server. |
UpdateAdUnitAsync(UpdateAdUnitRequest, CallOptions)
API to update an AdUnit object.
Declaration
public virtual AsyncUnaryCall<AdUnit> UpdateAdUnitAsync(UpdateAdUnitRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAdUnitRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<AdUnit> | The call object. |
UpdateAdUnitAsync(UpdateAdUnitRequest, Metadata, DateTime?, CancellationToken)
API to update an AdUnit object.
Declaration
public virtual AsyncUnaryCall<AdUnit> UpdateAdUnitAsync(UpdateAdUnitRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAdUnitRequest | 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<AdUnit> | The call object. |