Class CompanyService.CompanyServiceClient
Client for CompanyService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class CompanyService.CompanyServiceClient : ClientBase<CompanyService.CompanyServiceClient>
Constructors
CompanyServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected CompanyServiceClient()
CompanyServiceClient(CallInvoker)
Creates a new client for CompanyService that uses a custom CallInvoker.
Declaration
public CompanyServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
CompanyServiceClient(ChannelBase)
Creates a new client for CompanyService
Declaration
public CompanyServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
CompanyServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected CompanyServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
BatchCreateCompanies(BatchCreateCompaniesRequest, CallOptions)
Creates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual BatchCreateCompaniesResponse BatchCreateCompanies(BatchCreateCompaniesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateCompaniesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchCreateCompaniesResponse | The response received from the server. |
BatchCreateCompanies(BatchCreateCompaniesRequest, Metadata, DateTime?, CancellationToken)
Creates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual BatchCreateCompaniesResponse BatchCreateCompanies(BatchCreateCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateCompaniesRequest | 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 |
|---|---|
| BatchCreateCompaniesResponse | The response received from the server. |
BatchCreateCompaniesAsync(BatchCreateCompaniesRequest, CallOptions)
Creates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual AsyncUnaryCall<BatchCreateCompaniesResponse> BatchCreateCompaniesAsync(BatchCreateCompaniesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateCompaniesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchCreateCompaniesResponse> | The call object. |
BatchCreateCompaniesAsync(BatchCreateCompaniesRequest, Metadata, DateTime?, CancellationToken)
Creates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual AsyncUnaryCall<BatchCreateCompaniesResponse> BatchCreateCompaniesAsync(BatchCreateCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateCompaniesRequest | 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<BatchCreateCompaniesResponse> | The call object. |
BatchUpdateCompanies(BatchUpdateCompaniesRequest, CallOptions)
Batch updates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual BatchUpdateCompaniesResponse BatchUpdateCompanies(BatchUpdateCompaniesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateCompaniesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchUpdateCompaniesResponse | The response received from the server. |
BatchUpdateCompanies(BatchUpdateCompaniesRequest, Metadata, DateTime?, CancellationToken)
Batch updates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual BatchUpdateCompaniesResponse BatchUpdateCompanies(BatchUpdateCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateCompaniesRequest | 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 |
|---|---|
| BatchUpdateCompaniesResponse | The response received from the server. |
BatchUpdateCompaniesAsync(BatchUpdateCompaniesRequest, CallOptions)
Batch updates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual AsyncUnaryCall<BatchUpdateCompaniesResponse> BatchUpdateCompaniesAsync(BatchUpdateCompaniesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateCompaniesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchUpdateCompaniesResponse> | The call object. |
BatchUpdateCompaniesAsync(BatchUpdateCompaniesRequest, Metadata, DateTime?, CancellationToken)
Batch updates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual AsyncUnaryCall<BatchUpdateCompaniesResponse> BatchUpdateCompaniesAsync(BatchUpdateCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateCompaniesRequest | 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<BatchUpdateCompaniesResponse> | The call object. |
CreateCompany(CreateCompanyRequest, CallOptions)
Creates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual Company CreateCompany(CreateCompanyRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCompanyRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Company | The response received from the server. |
CreateCompany(CreateCompanyRequest, Metadata, DateTime?, CancellationToken)
Creates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual Company CreateCompany(CreateCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCompanyRequest | 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 |
|---|---|
| Company | The response received from the server. |
CreateCompanyAsync(CreateCompanyRequest, CallOptions)
Creates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual AsyncUnaryCall<Company> CreateCompanyAsync(CreateCompanyRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCompanyRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Company> | The call object. |
CreateCompanyAsync(CreateCompanyRequest, Metadata, DateTime?, CancellationToken)
Creates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual AsyncUnaryCall<Company> CreateCompanyAsync(CreateCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCompanyRequest | 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<Company> | The call object. |
GetCompany(GetCompanyRequest, CallOptions)
Retrieves a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual Company GetCompany(GetCompanyRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCompanyRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Company | The response received from the server. |
GetCompany(GetCompanyRequest, Metadata, DateTime?, CancellationToken)
Retrieves a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual Company GetCompany(GetCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCompanyRequest | 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 |
|---|---|
| Company | The response received from the server. |
GetCompanyAsync(GetCompanyRequest, CallOptions)
Retrieves a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual AsyncUnaryCall<Company> GetCompanyAsync(GetCompanyRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCompanyRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Company> | The call object. |
GetCompanyAsync(GetCompanyRequest, Metadata, DateTime?, CancellationToken)
Retrieves a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual AsyncUnaryCall<Company> GetCompanyAsync(GetCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCompanyRequest | 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<Company> | The call object. |
ListCompanies(ListCompaniesRequest, CallOptions)
Lists [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual ListCompaniesResponse ListCompanies(ListCompaniesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCompaniesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| ListCompaniesResponse | The response received from the server. |
ListCompanies(ListCompaniesRequest, Metadata, DateTime?, CancellationToken)
Lists [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual ListCompaniesResponse ListCompanies(ListCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCompaniesRequest | 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 |
|---|---|
| ListCompaniesResponse | The response received from the server. |
ListCompaniesAsync(ListCompaniesRequest, CallOptions)
Lists [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual AsyncUnaryCall<ListCompaniesResponse> ListCompaniesAsync(ListCompaniesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCompaniesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<ListCompaniesResponse> | The call object. |
ListCompaniesAsync(ListCompaniesRequest, Metadata, DateTime?, CancellationToken)
Lists [Company][google.ads.admanager.v1.Company] objects.
Declaration
public virtual AsyncUnaryCall<ListCompaniesResponse> ListCompaniesAsync(ListCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCompaniesRequest | 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<ListCompaniesResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override CompanyService.CompanyServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| CompanyService.CompanyServiceClient |
Overrides
UpdateCompany(UpdateCompanyRequest, CallOptions)
Updates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual Company UpdateCompany(UpdateCompanyRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateCompanyRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Company | The response received from the server. |
UpdateCompany(UpdateCompanyRequest, Metadata, DateTime?, CancellationToken)
Updates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual Company UpdateCompany(UpdateCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateCompanyRequest | 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 |
|---|---|
| Company | The response received from the server. |
UpdateCompanyAsync(UpdateCompanyRequest, CallOptions)
Updates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual AsyncUnaryCall<Company> UpdateCompanyAsync(UpdateCompanyRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateCompanyRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Company> | The call object. |
UpdateCompanyAsync(UpdateCompanyRequest, Metadata, DateTime?, CancellationToken)
Updates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public virtual AsyncUnaryCall<Company> UpdateCompanyAsync(UpdateCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateCompanyRequest | 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<Company> | The call object. |