Class ProgrammaticBuyerService.ProgrammaticBuyerServiceClient
Client for ProgrammaticBuyerService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class ProgrammaticBuyerService.ProgrammaticBuyerServiceClient : ClientBase<ProgrammaticBuyerService.ProgrammaticBuyerServiceClient>
Constructors
ProgrammaticBuyerServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected ProgrammaticBuyerServiceClient()
ProgrammaticBuyerServiceClient(CallInvoker)
Creates a new client for ProgrammaticBuyerService that uses a custom CallInvoker.
Declaration
public ProgrammaticBuyerServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
ProgrammaticBuyerServiceClient(ChannelBase)
Creates a new client for ProgrammaticBuyerService
Declaration
public ProgrammaticBuyerServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
ProgrammaticBuyerServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected ProgrammaticBuyerServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GetProgrammaticBuyer(GetProgrammaticBuyerRequest, CallOptions)
API to retrieve a ProgrammaticBuyer object.
Declaration
public virtual ProgrammaticBuyer GetProgrammaticBuyer(GetProgrammaticBuyerRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProgrammaticBuyerRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| ProgrammaticBuyer | The response received from the server. |
GetProgrammaticBuyer(GetProgrammaticBuyerRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a ProgrammaticBuyer object.
Declaration
public virtual ProgrammaticBuyer GetProgrammaticBuyer(GetProgrammaticBuyerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProgrammaticBuyerRequest | 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 |
|---|---|
| ProgrammaticBuyer | The response received from the server. |
GetProgrammaticBuyerAsync(GetProgrammaticBuyerRequest, CallOptions)
API to retrieve a ProgrammaticBuyer object.
Declaration
public virtual AsyncUnaryCall<ProgrammaticBuyer> GetProgrammaticBuyerAsync(GetProgrammaticBuyerRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProgrammaticBuyerRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<ProgrammaticBuyer> | The call object. |
GetProgrammaticBuyerAsync(GetProgrammaticBuyerRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a ProgrammaticBuyer object.
Declaration
public virtual AsyncUnaryCall<ProgrammaticBuyer> GetProgrammaticBuyerAsync(GetProgrammaticBuyerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProgrammaticBuyerRequest | 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<ProgrammaticBuyer> | The call object. |
ListProgrammaticBuyers(ListProgrammaticBuyersRequest, CallOptions)
API to retrieve a list of ProgrammaticBuyer objects.
Declaration
public virtual ListProgrammaticBuyersResponse ListProgrammaticBuyers(ListProgrammaticBuyersRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListProgrammaticBuyersRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| ListProgrammaticBuyersResponse | The response received from the server. |
ListProgrammaticBuyers(ListProgrammaticBuyersRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of ProgrammaticBuyer objects.
Declaration
public virtual ListProgrammaticBuyersResponse ListProgrammaticBuyers(ListProgrammaticBuyersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListProgrammaticBuyersRequest | 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 |
|---|---|
| ListProgrammaticBuyersResponse | The response received from the server. |
ListProgrammaticBuyersAsync(ListProgrammaticBuyersRequest, CallOptions)
API to retrieve a list of ProgrammaticBuyer objects.
Declaration
public virtual AsyncUnaryCall<ListProgrammaticBuyersResponse> ListProgrammaticBuyersAsync(ListProgrammaticBuyersRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListProgrammaticBuyersRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<ListProgrammaticBuyersResponse> | The call object. |
ListProgrammaticBuyersAsync(ListProgrammaticBuyersRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of ProgrammaticBuyer objects.
Declaration
public virtual AsyncUnaryCall<ListProgrammaticBuyersResponse> ListProgrammaticBuyersAsync(ListProgrammaticBuyersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListProgrammaticBuyersRequest | 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<ListProgrammaticBuyersResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override ProgrammaticBuyerService.ProgrammaticBuyerServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| ProgrammaticBuyerService.ProgrammaticBuyerServiceClient |