Class AudienceSegmentCategoryService.AudienceSegmentCategoryServiceClient
Client for AudienceSegmentCategoryService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class AudienceSegmentCategoryService.AudienceSegmentCategoryServiceClient : ClientBase<AudienceSegmentCategoryService.AudienceSegmentCategoryServiceClient>
Constructors
AudienceSegmentCategoryServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected AudienceSegmentCategoryServiceClient()
AudienceSegmentCategoryServiceClient(CallInvoker)
Creates a new client for AudienceSegmentCategoryService that uses a custom CallInvoker.
Declaration
public AudienceSegmentCategoryServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
AudienceSegmentCategoryServiceClient(ChannelBase)
Creates a new client for AudienceSegmentCategoryService
Declaration
public AudienceSegmentCategoryServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
AudienceSegmentCategoryServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected AudienceSegmentCategoryServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GetAudienceSegmentCategory(GetAudienceSegmentCategoryRequest, CallOptions)
Retrieves a AudienceSegmentCategory object.
Declaration
public virtual AudienceSegmentCategory GetAudienceSegmentCategory(GetAudienceSegmentCategoryRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAudienceSegmentCategoryRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AudienceSegmentCategory | The response received from the server. |
GetAudienceSegmentCategory(GetAudienceSegmentCategoryRequest, Metadata, DateTime?, CancellationToken)
Retrieves a AudienceSegmentCategory object.
Declaration
public virtual AudienceSegmentCategory GetAudienceSegmentCategory(GetAudienceSegmentCategoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAudienceSegmentCategoryRequest | 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 |
|---|---|
| AudienceSegmentCategory | The response received from the server. |
GetAudienceSegmentCategoryAsync(GetAudienceSegmentCategoryRequest, CallOptions)
Retrieves a AudienceSegmentCategory object.
Declaration
public virtual AsyncUnaryCall<AudienceSegmentCategory> GetAudienceSegmentCategoryAsync(GetAudienceSegmentCategoryRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAudienceSegmentCategoryRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<AudienceSegmentCategory> | The call object. |
GetAudienceSegmentCategoryAsync(GetAudienceSegmentCategoryRequest, Metadata, DateTime?, CancellationToken)
Retrieves a AudienceSegmentCategory object.
Declaration
public virtual AsyncUnaryCall<AudienceSegmentCategory> GetAudienceSegmentCategoryAsync(GetAudienceSegmentCategoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAudienceSegmentCategoryRequest | 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<AudienceSegmentCategory> | The call object. |
ListAudienceSegmentCategories(ListAudienceSegmentCategoriesRequest, CallOptions)
Lists AudienceSegmentCategory objects.
Declaration
public virtual ListAudienceSegmentCategoriesResponse ListAudienceSegmentCategories(ListAudienceSegmentCategoriesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAudienceSegmentCategoriesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| ListAudienceSegmentCategoriesResponse | The response received from the server. |
ListAudienceSegmentCategories(ListAudienceSegmentCategoriesRequest, Metadata, DateTime?, CancellationToken)
Lists AudienceSegmentCategory objects.
Declaration
public virtual ListAudienceSegmentCategoriesResponse ListAudienceSegmentCategories(ListAudienceSegmentCategoriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAudienceSegmentCategoriesRequest | 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 |
|---|---|
| ListAudienceSegmentCategoriesResponse | The response received from the server. |
ListAudienceSegmentCategoriesAsync(ListAudienceSegmentCategoriesRequest, CallOptions)
Lists AudienceSegmentCategory objects.
Declaration
public virtual AsyncUnaryCall<ListAudienceSegmentCategoriesResponse> ListAudienceSegmentCategoriesAsync(ListAudienceSegmentCategoriesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAudienceSegmentCategoriesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<ListAudienceSegmentCategoriesResponse> | The call object. |
ListAudienceSegmentCategoriesAsync(ListAudienceSegmentCategoriesRequest, Metadata, DateTime?, CancellationToken)
Lists AudienceSegmentCategory objects.
Declaration
public virtual AsyncUnaryCall<ListAudienceSegmentCategoriesResponse> ListAudienceSegmentCategoriesAsync(ListAudienceSegmentCategoriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAudienceSegmentCategoriesRequest | 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<ListAudienceSegmentCategoriesResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override AudienceSegmentCategoryService.AudienceSegmentCategoryServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| AudienceSegmentCategoryService.AudienceSegmentCategoryServiceClient |