Class AdUnitServiceClientImpl
AdUnitService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class AdUnitServiceClientImpl : AdUnitServiceClient
Remarks
Provides methods for handling AdUnit objects.
Constructors
AdUnitServiceClientImpl(AdUnitServiceClient, AdUnitServiceSettings, ILogger)
Constructs a client wrapper for the AdUnitService service, with the specified gRPC client and settings.
Declaration
public AdUnitServiceClientImpl(AdUnitService.AdUnitServiceClient grpcClient, AdUnitServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| AdUnitService.AdUnitServiceClient | grpcClient | The underlying gRPC client. |
| AdUnitServiceSettings | settings | The base AdUnitServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC AdUnitService client
Declaration
public override AdUnitService.AdUnitServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| AdUnitService.AdUnitServiceClient |
Overrides
Methods
BatchActivateAdUnits(BatchActivateAdUnitsRequest, CallSettings)
API to batch activate AdUnit objects.
Declaration
public override BatchActivateAdUnitsResponse BatchActivateAdUnits(BatchActivateAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateAdUnitsRequest | 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 |
|---|---|
| BatchActivateAdUnitsResponse | The RPC response. |
Overrides
BatchActivateAdUnitsAsync(BatchActivateAdUnitsRequest, CallSettings)
API to batch activate AdUnit objects.
Declaration
public override Task<BatchActivateAdUnitsResponse> BatchActivateAdUnitsAsync(BatchActivateAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateAdUnitsRequest | 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<BatchActivateAdUnitsResponse> | A Task containing the RPC response. |
Overrides
BatchArchiveAdUnits(BatchArchiveAdUnitsRequest, CallSettings)
Archives a list of AdUnit objects.
Declaration
public override BatchArchiveAdUnitsResponse BatchArchiveAdUnits(BatchArchiveAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveAdUnitsRequest | 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 |
|---|---|
| BatchArchiveAdUnitsResponse | The RPC response. |
Overrides
BatchArchiveAdUnitsAsync(BatchArchiveAdUnitsRequest, CallSettings)
Archives a list of AdUnit objects.
Declaration
public override Task<BatchArchiveAdUnitsResponse> BatchArchiveAdUnitsAsync(BatchArchiveAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveAdUnitsRequest | 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<BatchArchiveAdUnitsResponse> | A Task containing the RPC response. |
Overrides
BatchCreateAdUnits(BatchCreateAdUnitsRequest, CallSettings)
API to batch create AdUnit objects.
Declaration
public override BatchCreateAdUnitsResponse BatchCreateAdUnits(BatchCreateAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateAdUnitsRequest | 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 |
|---|---|
| BatchCreateAdUnitsResponse | The RPC response. |
Overrides
BatchCreateAdUnitsAsync(BatchCreateAdUnitsRequest, CallSettings)
API to batch create AdUnit objects.
Declaration
public override Task<BatchCreateAdUnitsResponse> BatchCreateAdUnitsAsync(BatchCreateAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateAdUnitsRequest | 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<BatchCreateAdUnitsResponse> | A Task containing the RPC response. |
Overrides
BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest, CallSettings)
Deactivates a list of AdUnit objects.
Declaration
public override BatchDeactivateAdUnitsResponse BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateAdUnitsRequest | 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 |
|---|---|
| BatchDeactivateAdUnitsResponse | The RPC response. |
Overrides
BatchDeactivateAdUnitsAsync(BatchDeactivateAdUnitsRequest, CallSettings)
Deactivates a list of AdUnit objects.
Declaration
public override Task<BatchDeactivateAdUnitsResponse> BatchDeactivateAdUnitsAsync(BatchDeactivateAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateAdUnitsRequest | 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<BatchDeactivateAdUnitsResponse> | A Task containing the RPC response. |
Overrides
BatchUpdateAdUnits(BatchUpdateAdUnitsRequest, CallSettings)
API to batch update AdUnit objects.
Declaration
public override BatchUpdateAdUnitsResponse BatchUpdateAdUnits(BatchUpdateAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateAdUnitsRequest | 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 |
|---|---|
| BatchUpdateAdUnitsResponse | The RPC response. |
Overrides
BatchUpdateAdUnitsAsync(BatchUpdateAdUnitsRequest, CallSettings)
API to batch update AdUnit objects.
Declaration
public override Task<BatchUpdateAdUnitsResponse> BatchUpdateAdUnitsAsync(BatchUpdateAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateAdUnitsRequest | 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<BatchUpdateAdUnitsResponse> | A Task containing the RPC response. |
Overrides
CreateAdUnit(CreateAdUnitRequest, CallSettings)
API to create an AdUnit object.
Declaration
public override AdUnit CreateAdUnit(CreateAdUnitRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAdUnitRequest | 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 |
|---|---|
| AdUnit | The RPC response. |
Overrides
CreateAdUnitAsync(CreateAdUnitRequest, CallSettings)
API to create an AdUnit object.
Declaration
public override Task<AdUnit> CreateAdUnitAsync(CreateAdUnitRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAdUnitRequest | 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<AdUnit> | A Task containing the RPC response. |
Overrides
GetAdUnit(GetAdUnitRequest, CallSettings)
API to retrieve an AdUnit object.
Declaration
public override AdUnit GetAdUnit(GetAdUnitRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAdUnitRequest | 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 |
|---|---|
| AdUnit | The RPC response. |
Overrides
GetAdUnitAsync(GetAdUnitRequest, CallSettings)
API to retrieve an AdUnit object.
Declaration
public override Task<AdUnit> GetAdUnitAsync(GetAdUnitRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAdUnitRequest | 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<AdUnit> | A Task containing the RPC response. |
Overrides
ListAdUnitSizes(ListAdUnitSizesRequest, CallSettings)
API to retrieve a list of AdUnitSize objects.
Declaration
public override PagedEnumerable<ListAdUnitSizesResponse, AdUnitSize> ListAdUnitSizes(ListAdUnitSizesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitSizesRequest | 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<ListAdUnitSizesResponse, AdUnitSize> | A pageable sequence of AdUnitSize resources. |
Overrides
ListAdUnitSizesAsync(ListAdUnitSizesRequest, CallSettings)
API to retrieve a list of AdUnitSize objects.
Declaration
public override PagedAsyncEnumerable<ListAdUnitSizesResponse, AdUnitSize> ListAdUnitSizesAsync(ListAdUnitSizesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitSizesRequest | 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<ListAdUnitSizesResponse, AdUnitSize> | A pageable asynchronous sequence of AdUnitSize resources. |
Overrides
ListAdUnits(ListAdUnitsRequest, CallSettings)
API to retrieve a list of AdUnit objects.
Declaration
public override PagedEnumerable<ListAdUnitsResponse, AdUnit> ListAdUnits(ListAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitsRequest | 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<ListAdUnitsResponse, AdUnit> | A pageable sequence of AdUnit resources. |
Overrides
ListAdUnitsAsync(ListAdUnitsRequest, CallSettings)
API to retrieve a list of AdUnit objects.
Declaration
public override PagedAsyncEnumerable<ListAdUnitsResponse, AdUnit> ListAdUnitsAsync(ListAdUnitsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitsRequest | 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<ListAdUnitsResponse, AdUnit> | A pageable asynchronous sequence of AdUnit resources. |
Overrides
UpdateAdUnit(UpdateAdUnitRequest, CallSettings)
API to update an AdUnit object.
Declaration
public override AdUnit UpdateAdUnit(UpdateAdUnitRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAdUnitRequest | 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 |
|---|---|
| AdUnit | The RPC response. |
Overrides
UpdateAdUnitAsync(UpdateAdUnitRequest, CallSettings)
API to update an AdUnit object.
Declaration
public override Task<AdUnit> UpdateAdUnitAsync(UpdateAdUnitRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAdUnitRequest | 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<AdUnit> | A Task containing the RPC response. |