Show / Hide Table of Contents

Class AdUnitService.AdUnitServiceClient

Client for AdUnitService

Inheritance
object
ClientBase
ClientBase<AdUnitService.AdUnitServiceClient>
AdUnitService.AdUnitServiceClient
Inherited Members
ClientBase<AdUnitService.AdUnitServiceClient>.WithHost(string)
ClientBase.CallInvoker
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
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

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
Grpc.Core.ClientBase<Google.Ads.AdManager.V1.AdUnitService.AdUnitServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)
In this article
Back to top Generated by DocFX