Class ContentServiceClientImpl
ContentService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class ContentServiceClientImpl : ContentServiceClient
Remarks
Provides methods for handling Content objects.
Constructors
ContentServiceClientImpl(ContentServiceClient, ContentServiceSettings, ILogger)
Constructs a client wrapper for the ContentService service, with the specified gRPC client and settings.
Declaration
public ContentServiceClientImpl(ContentService.ContentServiceClient grpcClient, ContentServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentService.ContentServiceClient | grpcClient | The underlying gRPC client. |
| ContentServiceSettings | settings | The base ContentServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC ContentService client
Declaration
public override ContentService.ContentServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| ContentService.ContentServiceClient |
Overrides
Methods
GetContent(GetContentRequest, CallSettings)
API to retrieve a Content object.
Declaration
public override Content GetContent(GetContentRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetContentRequest | 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 |
|---|---|
| Content | The RPC response. |
Overrides
GetContentAsync(GetContentRequest, CallSettings)
API to retrieve a Content object.
Declaration
public override Task<Content> GetContentAsync(GetContentRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetContentRequest | 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<Content> | A Task containing the RPC response. |
Overrides
ListContent(ListContentRequest, CallSettings)
API to retrieve a list of Content objects.
Declaration
public override PagedEnumerable<ListContentResponse, Content> ListContent(ListContentRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListContentRequest | 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<ListContentResponse, Content> | A pageable sequence of Content resources. |
Overrides
ListContentAsync(ListContentRequest, CallSettings)
API to retrieve a list of Content objects.
Declaration
public override PagedAsyncEnumerable<ListContentResponse, Content> ListContentAsync(ListContentRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListContentRequest | 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<ListContentResponse, Content> | A pageable asynchronous sequence of Content resources. |