Class PlacementServiceClientImpl
PlacementService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class PlacementServiceClientImpl : PlacementServiceClient
Remarks
Provides methods for handling Placement
objects.
Constructors
PlacementServiceClientImpl(PlacementServiceClient, PlacementServiceSettings, ILogger)
Constructs a client wrapper for the PlacementService service, with the specified gRPC client and settings.
Declaration
public PlacementServiceClientImpl(PlacementService.PlacementServiceClient grpcClient, PlacementServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
PlacementService.PlacementServiceClient | grpcClient | The underlying gRPC client. |
PlacementServiceSettings | settings | The base PlacementServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC PlacementService client
Declaration
public override PlacementService.PlacementServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
PlacementService.PlacementServiceClient |
Overrides
Methods
GetPlacement(GetPlacementRequest, CallSettings)
API to retrieve a Placement
object.
Declaration
public override Placement GetPlacement(GetPlacementRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetPlacementRequest | 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 |
---|---|
Placement | The RPC response. |
Overrides
GetPlacementAsync(GetPlacementRequest, CallSettings)
API to retrieve a Placement
object.
Declaration
public override Task<Placement> GetPlacementAsync(GetPlacementRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetPlacementRequest | 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<Placement> | A Task containing the RPC response. |
Overrides
ListPlacements(ListPlacementsRequest, CallSettings)
API to retrieve a list of Placement
objects.
Declaration
public override PagedEnumerable<ListPlacementsResponse, Placement> ListPlacements(ListPlacementsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListPlacementsRequest | 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<ListPlacementsResponse, Placement> | A pageable sequence of Placement resources. |
Overrides
ListPlacementsAsync(ListPlacementsRequest, CallSettings)
API to retrieve a list of Placement
objects.
Declaration
public override PagedAsyncEnumerable<ListPlacementsResponse, Placement> ListPlacementsAsync(ListPlacementsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListPlacementsRequest | 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<ListPlacementsResponse, Placement> | A pageable asynchronous sequence of Placement resources. |