Show / Hide Table of Contents

Class AdUnitServiceClientImpl

AdUnitService client wrapper implementation, for convenient use.

Inheritance
object
AdUnitServiceClient
AdUnitServiceClientImpl
Inherited Members
AdUnitServiceClient.DefaultEndpoint
AdUnitServiceClient.DefaultScopes
AdUnitServiceClient.ServiceMetadata
AdUnitServiceClient.CreateAsync(CancellationToken)
AdUnitServiceClient.Create()
AdUnitServiceClient.ShutdownDefaultChannelsAsync()
AdUnitServiceClient.GetAdUnitAsync(GetAdUnitRequest, CancellationToken)
AdUnitServiceClient.GetAdUnit(string, CallSettings)
AdUnitServiceClient.GetAdUnitAsync(string, CallSettings)
AdUnitServiceClient.GetAdUnitAsync(string, CancellationToken)
AdUnitServiceClient.GetAdUnit(AdUnitName, CallSettings)
AdUnitServiceClient.GetAdUnitAsync(AdUnitName, CallSettings)
AdUnitServiceClient.GetAdUnitAsync(AdUnitName, CancellationToken)
AdUnitServiceClient.ListAdUnits(string, string, int?, CallSettings)
AdUnitServiceClient.ListAdUnitsAsync(string, string, int?, CallSettings)
AdUnitServiceClient.ListAdUnits(NetworkName, string, int?, CallSettings)
AdUnitServiceClient.ListAdUnitsAsync(NetworkName, string, int?, CallSettings)
AdUnitServiceClient.ListAdUnitSizes(string, string, int?, CallSettings)
AdUnitServiceClient.ListAdUnitSizesAsync(string, string, int?, CallSettings)
AdUnitServiceClient.ListAdUnitSizes(NetworkName, string, int?, CallSettings)
AdUnitServiceClient.ListAdUnitSizesAsync(NetworkName, string, int?, CallSettings)
object.GetHashCode()
object.GetType()
object.ToString()
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
AdUnitServiceClient.GrpcClient

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
AdUnitServiceClient.GetAdUnit(GetAdUnitRequest, CallSettings)

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
AdUnitServiceClient.GetAdUnitAsync(GetAdUnitRequest, CallSettings)

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
AdUnitServiceClient.ListAdUnitSizes(ListAdUnitSizesRequest, CallSettings)

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
AdUnitServiceClient.ListAdUnitSizesAsync(ListAdUnitSizesRequest, CallSettings)

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
AdUnitServiceClient.ListAdUnits(ListAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.ListAdUnitsAsync(ListAdUnitsRequest, CallSettings)
In this article
Back to top Generated by DocFX