Class CreativeService.CreativeServiceClient
Client for CreativeService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class CreativeService.CreativeServiceClient : ClientBase<CreativeService.CreativeServiceClient>
Constructors
CreativeServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected CreativeServiceClient()
CreativeServiceClient(CallInvoker)
Creates a new client for CreativeService that uses a custom CallInvoker.
Declaration
public CreativeServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
CreativeServiceClient(ChannelBase)
Creates a new client for CreativeService
Declaration
public CreativeServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
CreativeServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected CreativeServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
BatchActivateCreatives(BatchActivateCreativesRequest, CallOptions)
Batch activates Creative objects.
Declaration
public virtual BatchActivateCreativesResponse BatchActivateCreatives(BatchActivateCreativesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateCreativesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchActivateCreativesResponse | The response received from the server. |
BatchActivateCreatives(BatchActivateCreativesRequest, Metadata, DateTime?, CancellationToken)
Batch activates Creative objects.
Declaration
public virtual BatchActivateCreativesResponse BatchActivateCreatives(BatchActivateCreativesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateCreativesRequest | 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 |
|---|---|
| BatchActivateCreativesResponse | The response received from the server. |
BatchActivateCreativesAsync(BatchActivateCreativesRequest, CallOptions)
Batch activates Creative objects.
Declaration
public virtual AsyncUnaryCall<BatchActivateCreativesResponse> BatchActivateCreativesAsync(BatchActivateCreativesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateCreativesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchActivateCreativesResponse> | The call object. |
BatchActivateCreativesAsync(BatchActivateCreativesRequest, Metadata, DateTime?, CancellationToken)
Batch activates Creative objects.
Declaration
public virtual AsyncUnaryCall<BatchActivateCreativesResponse> BatchActivateCreativesAsync(BatchActivateCreativesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateCreativesRequest | 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<BatchActivateCreativesResponse> | The call object. |
BatchDeactivateCreatives(BatchDeactivateCreativesRequest, CallOptions)
Deactivates a list of Creative objects.
Declaration
public virtual BatchDeactivateCreativesResponse BatchDeactivateCreatives(BatchDeactivateCreativesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateCreativesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchDeactivateCreativesResponse | The response received from the server. |
BatchDeactivateCreatives(BatchDeactivateCreativesRequest, Metadata, DateTime?, CancellationToken)
Deactivates a list of Creative objects.
Declaration
public virtual BatchDeactivateCreativesResponse BatchDeactivateCreatives(BatchDeactivateCreativesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateCreativesRequest | 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 |
|---|---|
| BatchDeactivateCreativesResponse | The response received from the server. |
BatchDeactivateCreativesAsync(BatchDeactivateCreativesRequest, CallOptions)
Deactivates a list of Creative objects.
Declaration
public virtual AsyncUnaryCall<BatchDeactivateCreativesResponse> BatchDeactivateCreativesAsync(BatchDeactivateCreativesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateCreativesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchDeactivateCreativesResponse> | The call object. |
BatchDeactivateCreativesAsync(BatchDeactivateCreativesRequest, Metadata, DateTime?, CancellationToken)
Deactivates a list of Creative objects.
Declaration
public virtual AsyncUnaryCall<BatchDeactivateCreativesResponse> BatchDeactivateCreativesAsync(BatchDeactivateCreativesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateCreativesRequest | 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<BatchDeactivateCreativesResponse> | The call object. |
GetCreative(GetCreativeRequest, CallOptions)
Retrieves a Creative object.
Declaration
public virtual Creative GetCreative(GetCreativeRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCreativeRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Creative | The response received from the server. |
GetCreative(GetCreativeRequest, Metadata, DateTime?, CancellationToken)
Retrieves a Creative object.
Declaration
public virtual Creative GetCreative(GetCreativeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCreativeRequest | 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 |
|---|---|
| Creative | The response received from the server. |
GetCreativeAsync(GetCreativeRequest, CallOptions)
Retrieves a Creative object.
Declaration
public virtual AsyncUnaryCall<Creative> GetCreativeAsync(GetCreativeRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCreativeRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Creative> | The call object. |
GetCreativeAsync(GetCreativeRequest, Metadata, DateTime?, CancellationToken)
Retrieves a Creative object.
Declaration
public virtual AsyncUnaryCall<Creative> GetCreativeAsync(GetCreativeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCreativeRequest | 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<Creative> | The call object. |
ListCreatives(ListCreativesRequest, CallOptions)
Lists Creative objects.
Declaration
public virtual ListCreativesResponse ListCreatives(ListCreativesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCreativesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| ListCreativesResponse | The response received from the server. |
ListCreatives(ListCreativesRequest, Metadata, DateTime?, CancellationToken)
Lists Creative objects.
Declaration
public virtual ListCreativesResponse ListCreatives(ListCreativesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCreativesRequest | 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 |
|---|---|
| ListCreativesResponse | The response received from the server. |
ListCreativesAsync(ListCreativesRequest, CallOptions)
Lists Creative objects.
Declaration
public virtual AsyncUnaryCall<ListCreativesResponse> ListCreativesAsync(ListCreativesRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCreativesRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<ListCreativesResponse> | The call object. |
ListCreativesAsync(ListCreativesRequest, Metadata, DateTime?, CancellationToken)
Lists Creative objects.
Declaration
public virtual AsyncUnaryCall<ListCreativesResponse> ListCreativesAsync(ListCreativesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCreativesRequest | 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<ListCreativesResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override CreativeService.CreativeServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| CreativeService.CreativeServiceClient |