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
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. |