Class PartnerService.PartnerServiceClient
Client for PartnerService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class PartnerService.PartnerServiceClient : ClientBase<PartnerService.PartnerServiceClient>
Constructors
PartnerServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected PartnerServiceClient()
PartnerServiceClient(CallInvoker)
Creates a new client for PartnerService that uses a custom CallInvoker.
Declaration
public PartnerServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
PartnerServiceClient(ChannelBase)
Creates a new client for PartnerService
Declaration
public PartnerServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
PartnerServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected PartnerServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
BatchUpdatePartners(BatchUpdatePartnersRequest, CallOptions)
Batch updates [Partner][google.ads.admanager.v1.Partner] objects.
Declaration
public virtual BatchUpdatePartnersResponse BatchUpdatePartners(BatchUpdatePartnersRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdatePartnersRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchUpdatePartnersResponse | The response received from the server. |
BatchUpdatePartners(BatchUpdatePartnersRequest, Metadata, DateTime?, CancellationToken)
Batch updates [Partner][google.ads.admanager.v1.Partner] objects.
Declaration
public virtual BatchUpdatePartnersResponse BatchUpdatePartners(BatchUpdatePartnersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdatePartnersRequest | 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 |
|---|---|
| BatchUpdatePartnersResponse | The response received from the server. |
BatchUpdatePartnersAsync(BatchUpdatePartnersRequest, CallOptions)
Batch updates [Partner][google.ads.admanager.v1.Partner] objects.
Declaration
public virtual AsyncUnaryCall<BatchUpdatePartnersResponse> BatchUpdatePartnersAsync(BatchUpdatePartnersRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdatePartnersRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchUpdatePartnersResponse> | The call object. |
BatchUpdatePartnersAsync(BatchUpdatePartnersRequest, Metadata, DateTime?, CancellationToken)
Batch updates [Partner][google.ads.admanager.v1.Partner] objects.
Declaration
public virtual AsyncUnaryCall<BatchUpdatePartnersResponse> BatchUpdatePartnersAsync(BatchUpdatePartnersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdatePartnersRequest | 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<BatchUpdatePartnersResponse> | The call object. |
GetPartner(GetPartnerRequest, CallOptions)
Retrieves a [Partner][google.ads.admanager.v1.Partner] object.
Declaration
public virtual Partner GetPartner(GetPartnerRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPartnerRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Partner | The response received from the server. |
GetPartner(GetPartnerRequest, Metadata, DateTime?, CancellationToken)
Retrieves a [Partner][google.ads.admanager.v1.Partner] object.
Declaration
public virtual Partner GetPartner(GetPartnerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPartnerRequest | 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 |
|---|---|
| Partner | The response received from the server. |
GetPartnerAsync(GetPartnerRequest, CallOptions)
Retrieves a [Partner][google.ads.admanager.v1.Partner] object.
Declaration
public virtual AsyncUnaryCall<Partner> GetPartnerAsync(GetPartnerRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPartnerRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Partner> | The call object. |
GetPartnerAsync(GetPartnerRequest, Metadata, DateTime?, CancellationToken)
Retrieves a [Partner][google.ads.admanager.v1.Partner] object.
Declaration
public virtual AsyncUnaryCall<Partner> GetPartnerAsync(GetPartnerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPartnerRequest | 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<Partner> | The call object. |
ListPartners(ListPartnersRequest, CallOptions)
Lists [Partner][google.ads.admanager.v1.Partner] objects.
Declaration
public virtual ListPartnersResponse ListPartners(ListPartnersRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListPartnersRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| ListPartnersResponse | The response received from the server. |
ListPartners(ListPartnersRequest, Metadata, DateTime?, CancellationToken)
Lists [Partner][google.ads.admanager.v1.Partner] objects.
Declaration
public virtual ListPartnersResponse ListPartners(ListPartnersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListPartnersRequest | 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 |
|---|---|
| ListPartnersResponse | The response received from the server. |
ListPartnersAsync(ListPartnersRequest, CallOptions)
Lists [Partner][google.ads.admanager.v1.Partner] objects.
Declaration
public virtual AsyncUnaryCall<ListPartnersResponse> ListPartnersAsync(ListPartnersRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListPartnersRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<ListPartnersResponse> | The call object. |
ListPartnersAsync(ListPartnersRequest, Metadata, DateTime?, CancellationToken)
Lists [Partner][google.ads.admanager.v1.Partner] objects.
Declaration
public virtual AsyncUnaryCall<ListPartnersResponse> ListPartnersAsync(ListPartnersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListPartnersRequest | 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<ListPartnersResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override PartnerService.PartnerServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| PartnerService.PartnerServiceClient |
Overrides
UpdatePartner(UpdatePartnerRequest, CallOptions)
Updates a [Partner][google.ads.admanager.v1.Partner] object.
Declaration
public virtual Partner UpdatePartner(UpdatePartnerRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdatePartnerRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Partner | The response received from the server. |
UpdatePartner(UpdatePartnerRequest, Metadata, DateTime?, CancellationToken)
Updates a [Partner][google.ads.admanager.v1.Partner] object.
Declaration
public virtual Partner UpdatePartner(UpdatePartnerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdatePartnerRequest | 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 |
|---|---|
| Partner | The response received from the server. |
UpdatePartnerAsync(UpdatePartnerRequest, CallOptions)
Updates a [Partner][google.ads.admanager.v1.Partner] object.
Declaration
public virtual AsyncUnaryCall<Partner> UpdatePartnerAsync(UpdatePartnerRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdatePartnerRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Partner> | The call object. |
UpdatePartnerAsync(UpdatePartnerRequest, Metadata, DateTime?, CancellationToken)
Updates a [Partner][google.ads.admanager.v1.Partner] object.
Declaration
public virtual AsyncUnaryCall<Partner> UpdatePartnerAsync(UpdatePartnerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdatePartnerRequest | 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<Partner> | The call object. |