Class AdSpotServiceClientImpl
AdSpotService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class AdSpotServiceClientImpl : AdSpotServiceClient
Remarks
Provides methods for handling AdSpot objects.
Constructors
AdSpotServiceClientImpl(AdSpotServiceClient, AdSpotServiceSettings, ILogger)
Constructs a client wrapper for the AdSpotService service, with the specified gRPC client and settings.
Declaration
public AdSpotServiceClientImpl(AdSpotService.AdSpotServiceClient grpcClient, AdSpotServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| AdSpotService.AdSpotServiceClient | grpcClient | The underlying gRPC client. |
| AdSpotServiceSettings | settings | The base AdSpotServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC AdSpotService client
Declaration
public override AdSpotService.AdSpotServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| AdSpotService.AdSpotServiceClient |
Overrides
Methods
BatchCreateAdSpots(BatchCreateAdSpotsRequest, CallSettings)
Batch creates AdSpot objects.
Declaration
public override BatchCreateAdSpotsResponse BatchCreateAdSpots(BatchCreateAdSpotsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateAdSpotsRequest | 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 |
|---|---|
| BatchCreateAdSpotsResponse | The RPC response. |
Overrides
BatchCreateAdSpotsAsync(BatchCreateAdSpotsRequest, CallSettings)
Batch creates AdSpot objects.
Declaration
public override Task<BatchCreateAdSpotsResponse> BatchCreateAdSpotsAsync(BatchCreateAdSpotsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateAdSpotsRequest | 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<BatchCreateAdSpotsResponse> | A Task containing the RPC response. |
Overrides
BatchUpdateAdSpots(BatchUpdateAdSpotsRequest, CallSettings)
Batch updates AdSpot objects.
Declaration
public override BatchUpdateAdSpotsResponse BatchUpdateAdSpots(BatchUpdateAdSpotsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateAdSpotsRequest | 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 |
|---|---|
| BatchUpdateAdSpotsResponse | The RPC response. |
Overrides
BatchUpdateAdSpotsAsync(BatchUpdateAdSpotsRequest, CallSettings)
Batch updates AdSpot objects.
Declaration
public override Task<BatchUpdateAdSpotsResponse> BatchUpdateAdSpotsAsync(BatchUpdateAdSpotsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateAdSpotsRequest | 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<BatchUpdateAdSpotsResponse> | A Task containing the RPC response. |
Overrides
CreateAdSpot(CreateAdSpotRequest, CallSettings)
Creates an AdSpot object.
Declaration
public override AdSpot CreateAdSpot(CreateAdSpotRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAdSpotRequest | 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 |
|---|---|
| AdSpot | The RPC response. |
Overrides
CreateAdSpotAsync(CreateAdSpotRequest, CallSettings)
Creates an AdSpot object.
Declaration
public override Task<AdSpot> CreateAdSpotAsync(CreateAdSpotRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAdSpotRequest | 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<AdSpot> | A Task containing the RPC response. |
Overrides
GetAdSpot(GetAdSpotRequest, CallSettings)
Retrieves an AdSpot object.
Declaration
public override AdSpot GetAdSpot(GetAdSpotRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAdSpotRequest | 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 |
|---|---|
| AdSpot | The RPC response. |
Overrides
GetAdSpotAsync(GetAdSpotRequest, CallSettings)
Retrieves an AdSpot object.
Declaration
public override Task<AdSpot> GetAdSpotAsync(GetAdSpotRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAdSpotRequest | 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<AdSpot> | A Task containing the RPC response. |
Overrides
ListAdSpots(ListAdSpotsRequest, CallSettings)
Lists AdSpot objects.
Declaration
public override PagedEnumerable<ListAdSpotsResponse, AdSpot> ListAdSpots(ListAdSpotsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdSpotsRequest | 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<ListAdSpotsResponse, AdSpot> | A pageable sequence of AdSpot resources. |
Overrides
ListAdSpotsAsync(ListAdSpotsRequest, CallSettings)
Lists AdSpot objects.
Declaration
public override PagedAsyncEnumerable<ListAdSpotsResponse, AdSpot> ListAdSpotsAsync(ListAdSpotsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdSpotsRequest | 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<ListAdSpotsResponse, AdSpot> | A pageable asynchronous sequence of AdSpot resources. |
Overrides
UpdateAdSpot(UpdateAdSpotRequest, CallSettings)
Updates an AdSpot object.
Declaration
public override AdSpot UpdateAdSpot(UpdateAdSpotRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAdSpotRequest | 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 |
|---|---|
| AdSpot | The RPC response. |
Overrides
UpdateAdSpotAsync(UpdateAdSpotRequest, CallSettings)
Updates an AdSpot object.
Declaration
public override Task<AdSpot> UpdateAdSpotAsync(UpdateAdSpotRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAdSpotRequest | 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<AdSpot> | A Task containing the RPC response. |