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)
AdUnitServiceClient.CreateAdUnitAsync(CreateAdUnitRequest, CancellationToken)
AdUnitServiceClient.CreateAdUnit(string, AdUnit, CallSettings)
AdUnitServiceClient.CreateAdUnitAsync(string, AdUnit, CallSettings)
AdUnitServiceClient.CreateAdUnitAsync(string, AdUnit, CancellationToken)
AdUnitServiceClient.CreateAdUnit(NetworkName, AdUnit, CallSettings)
AdUnitServiceClient.CreateAdUnitAsync(NetworkName, AdUnit, CallSettings)
AdUnitServiceClient.CreateAdUnitAsync(NetworkName, AdUnit, CancellationToken)
AdUnitServiceClient.UpdateAdUnitAsync(UpdateAdUnitRequest, CancellationToken)
AdUnitServiceClient.UpdateAdUnit(AdUnit, FieldMask, CallSettings)
AdUnitServiceClient.UpdateAdUnitAsync(AdUnit, FieldMask, CallSettings)
AdUnitServiceClient.UpdateAdUnitAsync(AdUnit, FieldMask, CancellationToken)
AdUnitServiceClient.BatchCreateAdUnitsAsync(BatchCreateAdUnitsRequest, CancellationToken)
AdUnitServiceClient.BatchCreateAdUnits(string, IEnumerable<CreateAdUnitRequest>, CallSettings)
AdUnitServiceClient.BatchCreateAdUnitsAsync(string, IEnumerable<CreateAdUnitRequest>, CallSettings)
AdUnitServiceClient.BatchCreateAdUnitsAsync(string, IEnumerable<CreateAdUnitRequest>, CancellationToken)
AdUnitServiceClient.BatchCreateAdUnits(NetworkName, IEnumerable<CreateAdUnitRequest>, CallSettings)
AdUnitServiceClient.BatchCreateAdUnitsAsync(NetworkName, IEnumerable<CreateAdUnitRequest>, CallSettings)
AdUnitServiceClient.BatchCreateAdUnitsAsync(NetworkName, IEnumerable<CreateAdUnitRequest>, CancellationToken)
AdUnitServiceClient.BatchUpdateAdUnitsAsync(BatchUpdateAdUnitsRequest, CancellationToken)
AdUnitServiceClient.BatchUpdateAdUnits(string, IEnumerable<UpdateAdUnitRequest>, CallSettings)
AdUnitServiceClient.BatchUpdateAdUnitsAsync(string, IEnumerable<UpdateAdUnitRequest>, CallSettings)
AdUnitServiceClient.BatchUpdateAdUnitsAsync(string, IEnumerable<UpdateAdUnitRequest>, CancellationToken)
AdUnitServiceClient.BatchUpdateAdUnits(NetworkName, IEnumerable<UpdateAdUnitRequest>, CallSettings)
AdUnitServiceClient.BatchUpdateAdUnitsAsync(NetworkName, IEnumerable<UpdateAdUnitRequest>, CallSettings)
AdUnitServiceClient.BatchUpdateAdUnitsAsync(NetworkName, IEnumerable<UpdateAdUnitRequest>, CancellationToken)
AdUnitServiceClient.BatchActivateAdUnitsAsync(BatchActivateAdUnitsRequest, CancellationToken)
AdUnitServiceClient.BatchActivateAdUnits(string, IEnumerable<string>, CallSettings)
AdUnitServiceClient.BatchActivateAdUnitsAsync(string, IEnumerable<string>, CallSettings)
AdUnitServiceClient.BatchActivateAdUnitsAsync(string, IEnumerable<string>, CancellationToken)
AdUnitServiceClient.BatchActivateAdUnits(NetworkName, IEnumerable<AdUnitName>, CallSettings)
AdUnitServiceClient.BatchActivateAdUnitsAsync(NetworkName, IEnumerable<AdUnitName>, CallSettings)
AdUnitServiceClient.BatchActivateAdUnitsAsync(NetworkName, IEnumerable<AdUnitName>, CancellationToken)
AdUnitServiceClient.BatchDeactivateAdUnitsAsync(BatchDeactivateAdUnitsRequest, CancellationToken)
AdUnitServiceClient.BatchDeactivateAdUnits(string, IEnumerable<string>, CallSettings)
AdUnitServiceClient.BatchDeactivateAdUnitsAsync(string, IEnumerable<string>, CallSettings)
AdUnitServiceClient.BatchDeactivateAdUnitsAsync(string, IEnumerable<string>, CancellationToken)
AdUnitServiceClient.BatchDeactivateAdUnits(NetworkName, IEnumerable<AdUnitName>, CallSettings)
AdUnitServiceClient.BatchDeactivateAdUnitsAsync(NetworkName, IEnumerable<AdUnitName>, CallSettings)
AdUnitServiceClient.BatchDeactivateAdUnitsAsync(NetworkName, IEnumerable<AdUnitName>, CancellationToken)
AdUnitServiceClient.BatchArchiveAdUnitsAsync(BatchArchiveAdUnitsRequest, CancellationToken)
AdUnitServiceClient.BatchArchiveAdUnits(string, IEnumerable<string>, CallSettings)
AdUnitServiceClient.BatchArchiveAdUnitsAsync(string, IEnumerable<string>, CallSettings)
AdUnitServiceClient.BatchArchiveAdUnitsAsync(string, IEnumerable<string>, CancellationToken)
AdUnitServiceClient.BatchArchiveAdUnits(NetworkName, IEnumerable<AdUnitName>, CallSettings)
AdUnitServiceClient.BatchArchiveAdUnitsAsync(NetworkName, IEnumerable<AdUnitName>, CallSettings)
AdUnitServiceClient.BatchArchiveAdUnitsAsync(NetworkName, IEnumerable<AdUnitName>, CancellationToken)
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

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
AdUnitServiceClient.BatchActivateAdUnits(BatchActivateAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.BatchActivateAdUnitsAsync(BatchActivateAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.BatchArchiveAdUnits(BatchArchiveAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.BatchArchiveAdUnitsAsync(BatchArchiveAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.BatchCreateAdUnits(BatchCreateAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.BatchCreateAdUnitsAsync(BatchCreateAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.BatchDeactivateAdUnitsAsync(BatchDeactivateAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.BatchUpdateAdUnits(BatchUpdateAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.BatchUpdateAdUnitsAsync(BatchUpdateAdUnitsRequest, CallSettings)

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
AdUnitServiceClient.CreateAdUnit(CreateAdUnitRequest, CallSettings)

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
AdUnitServiceClient.CreateAdUnitAsync(CreateAdUnitRequest, CallSettings)

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)

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
AdUnitServiceClient.UpdateAdUnit(UpdateAdUnitRequest, CallSettings)

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.

Overrides
AdUnitServiceClient.UpdateAdUnitAsync(UpdateAdUnitRequest, CallSettings)
In this article
Back to top Generated by DocFX