Show / Hide Table of Contents

Class AdSpotService.AdSpotServiceClient

Client for AdSpotService

Inheritance
object
ClientBase
ClientBase<AdSpotService.AdSpotServiceClient>
AdSpotService.AdSpotServiceClient
Inherited Members
ClientBase<AdSpotService.AdSpotServiceClient>.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 AdSpotService.AdSpotServiceClient : ClientBase<AdSpotService.AdSpotServiceClient>

Constructors

AdSpotServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected AdSpotServiceClient()

AdSpotServiceClient(CallInvoker)

Creates a new client for AdSpotService that uses a custom CallInvoker.

Declaration
public AdSpotServiceClient(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The callInvoker to use to make remote calls.

AdSpotServiceClient(ChannelBase)

Creates a new client for AdSpotService

Declaration
public AdSpotServiceClient(ChannelBase channel)
Parameters
Type Name Description
ChannelBase channel

The channel to use to make remote calls.

AdSpotServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

Declaration
protected AdSpotServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration

The client configuration.

Methods

BatchCreateAdSpots(BatchCreateAdSpotsRequest, CallOptions)

Batch creates AdSpot objects.

Declaration
public virtual BatchCreateAdSpotsResponse BatchCreateAdSpots(BatchCreateAdSpotsRequest request, CallOptions options)
Parameters
Type Name Description
BatchCreateAdSpotsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
BatchCreateAdSpotsResponse

The response received from the server.

BatchCreateAdSpots(BatchCreateAdSpotsRequest, Metadata, DateTime?, CancellationToken)

Batch creates AdSpot objects.

Declaration
public virtual BatchCreateAdSpotsResponse BatchCreateAdSpots(BatchCreateAdSpotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchCreateAdSpotsRequest 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
BatchCreateAdSpotsResponse

The response received from the server.

BatchCreateAdSpotsAsync(BatchCreateAdSpotsRequest, CallOptions)

Batch creates AdSpot objects.

Declaration
public virtual AsyncUnaryCall<BatchCreateAdSpotsResponse> BatchCreateAdSpotsAsync(BatchCreateAdSpotsRequest request, CallOptions options)
Parameters
Type Name Description
BatchCreateAdSpotsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<BatchCreateAdSpotsResponse>

The call object.

BatchCreateAdSpotsAsync(BatchCreateAdSpotsRequest, Metadata, DateTime?, CancellationToken)

Batch creates AdSpot objects.

Declaration
public virtual AsyncUnaryCall<BatchCreateAdSpotsResponse> BatchCreateAdSpotsAsync(BatchCreateAdSpotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchCreateAdSpotsRequest 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<BatchCreateAdSpotsResponse>

The call object.

BatchUpdateAdSpots(BatchUpdateAdSpotsRequest, CallOptions)

Batch updates AdSpot objects.

Declaration
public virtual BatchUpdateAdSpotsResponse BatchUpdateAdSpots(BatchUpdateAdSpotsRequest request, CallOptions options)
Parameters
Type Name Description
BatchUpdateAdSpotsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
BatchUpdateAdSpotsResponse

The response received from the server.

BatchUpdateAdSpots(BatchUpdateAdSpotsRequest, Metadata, DateTime?, CancellationToken)

Batch updates AdSpot objects.

Declaration
public virtual BatchUpdateAdSpotsResponse BatchUpdateAdSpots(BatchUpdateAdSpotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchUpdateAdSpotsRequest 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
BatchUpdateAdSpotsResponse

The response received from the server.

BatchUpdateAdSpotsAsync(BatchUpdateAdSpotsRequest, CallOptions)

Batch updates AdSpot objects.

Declaration
public virtual AsyncUnaryCall<BatchUpdateAdSpotsResponse> BatchUpdateAdSpotsAsync(BatchUpdateAdSpotsRequest request, CallOptions options)
Parameters
Type Name Description
BatchUpdateAdSpotsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<BatchUpdateAdSpotsResponse>

The call object.

BatchUpdateAdSpotsAsync(BatchUpdateAdSpotsRequest, Metadata, DateTime?, CancellationToken)

Batch updates AdSpot objects.

Declaration
public virtual AsyncUnaryCall<BatchUpdateAdSpotsResponse> BatchUpdateAdSpotsAsync(BatchUpdateAdSpotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchUpdateAdSpotsRequest 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<BatchUpdateAdSpotsResponse>

The call object.

CreateAdSpot(CreateAdSpotRequest, CallOptions)

Creates an AdSpot object.

Declaration
public virtual AdSpot CreateAdSpot(CreateAdSpotRequest request, CallOptions options)
Parameters
Type Name Description
CreateAdSpotRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AdSpot

The response received from the server.

CreateAdSpot(CreateAdSpotRequest, Metadata, DateTime?, CancellationToken)

Creates an AdSpot object.

Declaration
public virtual AdSpot CreateAdSpot(CreateAdSpotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateAdSpotRequest 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
AdSpot

The response received from the server.

CreateAdSpotAsync(CreateAdSpotRequest, CallOptions)

Creates an AdSpot object.

Declaration
public virtual AsyncUnaryCall<AdSpot> CreateAdSpotAsync(CreateAdSpotRequest request, CallOptions options)
Parameters
Type Name Description
CreateAdSpotRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<AdSpot>

The call object.

CreateAdSpotAsync(CreateAdSpotRequest, Metadata, DateTime?, CancellationToken)

Creates an AdSpot object.

Declaration
public virtual AsyncUnaryCall<AdSpot> CreateAdSpotAsync(CreateAdSpotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateAdSpotRequest 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<AdSpot>

The call object.

GetAdSpot(GetAdSpotRequest, CallOptions)

Retrieves an AdSpot object.

Declaration
public virtual AdSpot GetAdSpot(GetAdSpotRequest request, CallOptions options)
Parameters
Type Name Description
GetAdSpotRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AdSpot

The response received from the server.

GetAdSpot(GetAdSpotRequest, Metadata, DateTime?, CancellationToken)

Retrieves an AdSpot object.

Declaration
public virtual AdSpot GetAdSpot(GetAdSpotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetAdSpotRequest 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
AdSpot

The response received from the server.

GetAdSpotAsync(GetAdSpotRequest, CallOptions)

Retrieves an AdSpot object.

Declaration
public virtual AsyncUnaryCall<AdSpot> GetAdSpotAsync(GetAdSpotRequest request, CallOptions options)
Parameters
Type Name Description
GetAdSpotRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<AdSpot>

The call object.

GetAdSpotAsync(GetAdSpotRequest, Metadata, DateTime?, CancellationToken)

Retrieves an AdSpot object.

Declaration
public virtual AsyncUnaryCall<AdSpot> GetAdSpotAsync(GetAdSpotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetAdSpotRequest 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<AdSpot>

The call object.

ListAdSpots(ListAdSpotsRequest, CallOptions)

Lists AdSpot objects.

Declaration
public virtual ListAdSpotsResponse ListAdSpots(ListAdSpotsRequest request, CallOptions options)
Parameters
Type Name Description
ListAdSpotsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListAdSpotsResponse

The response received from the server.

ListAdSpots(ListAdSpotsRequest, Metadata, DateTime?, CancellationToken)

Lists AdSpot objects.

Declaration
public virtual ListAdSpotsResponse ListAdSpots(ListAdSpotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListAdSpotsRequest 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
ListAdSpotsResponse

The response received from the server.

ListAdSpotsAsync(ListAdSpotsRequest, CallOptions)

Lists AdSpot objects.

Declaration
public virtual AsyncUnaryCall<ListAdSpotsResponse> ListAdSpotsAsync(ListAdSpotsRequest request, CallOptions options)
Parameters
Type Name Description
ListAdSpotsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListAdSpotsResponse>

The call object.

ListAdSpotsAsync(ListAdSpotsRequest, Metadata, DateTime?, CancellationToken)

Lists AdSpot objects.

Declaration
public virtual AsyncUnaryCall<ListAdSpotsResponse> ListAdSpotsAsync(ListAdSpotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListAdSpotsRequest 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<ListAdSpotsResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override AdSpotService.AdSpotServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
AdSpotService.AdSpotServiceClient
Overrides
Grpc.Core.ClientBase<Google.Ads.AdManager.V1.AdSpotService.AdSpotServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateAdSpot(UpdateAdSpotRequest, CallOptions)

Updates an AdSpot object.

Declaration
public virtual AdSpot UpdateAdSpot(UpdateAdSpotRequest request, CallOptions options)
Parameters
Type Name Description
UpdateAdSpotRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AdSpot

The response received from the server.

UpdateAdSpot(UpdateAdSpotRequest, Metadata, DateTime?, CancellationToken)

Updates an AdSpot object.

Declaration
public virtual AdSpot UpdateAdSpot(UpdateAdSpotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateAdSpotRequest 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
AdSpot

The response received from the server.

UpdateAdSpotAsync(UpdateAdSpotRequest, CallOptions)

Updates an AdSpot object.

Declaration
public virtual AsyncUnaryCall<AdSpot> UpdateAdSpotAsync(UpdateAdSpotRequest request, CallOptions options)
Parameters
Type Name Description
UpdateAdSpotRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<AdSpot>

The call object.

UpdateAdSpotAsync(UpdateAdSpotRequest, Metadata, DateTime?, CancellationToken)

Updates an AdSpot object.

Declaration
public virtual AsyncUnaryCall<AdSpot> UpdateAdSpotAsync(UpdateAdSpotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateAdSpotRequest 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<AdSpot>

The call object.

In this article
Back to top Generated by DocFX