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 |
---|---|---|
Placement |
grpcClient | The underlying gRPC client. |
Placement |
settings | The base Placement |
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 |
---|---|
Placement |
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 |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
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 |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
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 |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
A pageable asynchronous sequence of Placement resources. |