Class CompanyServiceClientImpl
CompanyService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class CompanyServiceClientImpl : CompanyServiceClient
Remarks
Provides methods for handling [Company][google.ads.admanager.v1.Company] objects.
Constructors
CompanyServiceClientImpl(CompanyServiceClient, CompanyServiceSettings, ILogger)
Constructs a client wrapper for the CompanyService service, with the specified gRPC client and settings.
Declaration
public CompanyServiceClientImpl(CompanyService.CompanyServiceClient grpcClient, CompanyServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| CompanyService.CompanyServiceClient | grpcClient | The underlying gRPC client. |
| CompanyServiceSettings | settings | The base CompanyServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC CompanyService client
Declaration
public override CompanyService.CompanyServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| CompanyService.CompanyServiceClient |
Overrides
Methods
BatchCreateCompanies(BatchCreateCompaniesRequest, CallSettings)
Creates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public override BatchCreateCompaniesResponse BatchCreateCompanies(BatchCreateCompaniesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateCompaniesRequest | 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 |
|---|---|
| BatchCreateCompaniesResponse | The RPC response. |
Overrides
BatchCreateCompaniesAsync(BatchCreateCompaniesRequest, CallSettings)
Creates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public override Task<BatchCreateCompaniesResponse> BatchCreateCompaniesAsync(BatchCreateCompaniesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateCompaniesRequest | 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<BatchCreateCompaniesResponse> | A Task containing the RPC response. |
Overrides
BatchUpdateCompanies(BatchUpdateCompaniesRequest, CallSettings)
Batch updates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public override BatchUpdateCompaniesResponse BatchUpdateCompanies(BatchUpdateCompaniesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateCompaniesRequest | 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 |
|---|---|
| BatchUpdateCompaniesResponse | The RPC response. |
Overrides
BatchUpdateCompaniesAsync(BatchUpdateCompaniesRequest, CallSettings)
Batch updates [Company][google.ads.admanager.v1.Company] objects.
Declaration
public override Task<BatchUpdateCompaniesResponse> BatchUpdateCompaniesAsync(BatchUpdateCompaniesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateCompaniesRequest | 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<BatchUpdateCompaniesResponse> | A Task containing the RPC response. |
Overrides
CreateCompany(CreateCompanyRequest, CallSettings)
Creates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public override Company CreateCompany(CreateCompanyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCompanyRequest | 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 |
|---|---|
| Company | The RPC response. |
Overrides
CreateCompanyAsync(CreateCompanyRequest, CallSettings)
Creates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public override Task<Company> CreateCompanyAsync(CreateCompanyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCompanyRequest | 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<Company> | A Task containing the RPC response. |
Overrides
GetCompany(GetCompanyRequest, CallSettings)
Retrieves a [Company][google.ads.admanager.v1.Company] object.
Declaration
public override Company GetCompany(GetCompanyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCompanyRequest | 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 |
|---|---|
| Company | The RPC response. |
Overrides
GetCompanyAsync(GetCompanyRequest, CallSettings)
Retrieves a [Company][google.ads.admanager.v1.Company] object.
Declaration
public override Task<Company> GetCompanyAsync(GetCompanyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCompanyRequest | 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<Company> | A Task containing the RPC response. |
Overrides
ListCompanies(ListCompaniesRequest, CallSettings)
Lists [Company][google.ads.admanager.v1.Company] objects.
Declaration
public override PagedEnumerable<ListCompaniesResponse, Company> ListCompanies(ListCompaniesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCompaniesRequest | 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<ListCompaniesResponse, Company> | A pageable sequence of Company resources. |
Overrides
ListCompaniesAsync(ListCompaniesRequest, CallSettings)
Lists [Company][google.ads.admanager.v1.Company] objects.
Declaration
public override PagedAsyncEnumerable<ListCompaniesResponse, Company> ListCompaniesAsync(ListCompaniesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCompaniesRequest | 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<ListCompaniesResponse, Company> | A pageable asynchronous sequence of Company resources. |
Overrides
UpdateCompany(UpdateCompanyRequest, CallSettings)
Updates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public override Company UpdateCompany(UpdateCompanyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateCompanyRequest | 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 |
|---|---|
| Company | The RPC response. |
Overrides
UpdateCompanyAsync(UpdateCompanyRequest, CallSettings)
Updates a [Company][google.ads.admanager.v1.Company] object.
Declaration
public override Task<Company> UpdateCompanyAsync(UpdateCompanyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateCompanyRequest | 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<Company> | A Task containing the RPC response. |