Class AdUnitService.AdUnitServiceBase
Base class for server-side implementations of AdUnitService
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
[BindServiceMethod(typeof(AdUnitService), "BindService")]
public abstract class AdUnitService.AdUnitServiceBase
Methods
BatchActivateAdUnits(BatchActivateAdUnitsRequest, ServerCallContext)
API to batch activate AdUnit objects.
Declaration
public virtual Task<BatchActivateAdUnitsResponse> BatchActivateAdUnits(BatchActivateAdUnitsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateAdUnitsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchActivateAdUnitsResponse> | The response to send back to the client (wrapped by a task). |
BatchArchiveAdUnits(BatchArchiveAdUnitsRequest, ServerCallContext)
Archives a list of AdUnit objects.
Declaration
public virtual Task<BatchArchiveAdUnitsResponse> BatchArchiveAdUnits(BatchArchiveAdUnitsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveAdUnitsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchArchiveAdUnitsResponse> | The response to send back to the client (wrapped by a task). |
BatchCreateAdUnits(BatchCreateAdUnitsRequest, ServerCallContext)
API to batch create AdUnit objects.
Declaration
public virtual Task<BatchCreateAdUnitsResponse> BatchCreateAdUnits(BatchCreateAdUnitsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateAdUnitsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchCreateAdUnitsResponse> | The response to send back to the client (wrapped by a task). |
BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest, ServerCallContext)
Deactivates a list of AdUnit objects.
Declaration
public virtual Task<BatchDeactivateAdUnitsResponse> BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateAdUnitsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchDeactivateAdUnitsResponse> | The response to send back to the client (wrapped by a task). |
BatchUpdateAdUnits(BatchUpdateAdUnitsRequest, ServerCallContext)
API to batch update AdUnit objects.
Declaration
public virtual Task<BatchUpdateAdUnitsResponse> BatchUpdateAdUnits(BatchUpdateAdUnitsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateAdUnitsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchUpdateAdUnitsResponse> | The response to send back to the client (wrapped by a task). |
CreateAdUnit(CreateAdUnitRequest, ServerCallContext)
API to create an AdUnit object.
Declaration
public virtual Task<AdUnit> CreateAdUnit(CreateAdUnitRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAdUnitRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<AdUnit> | The response to send back to the client (wrapped by a task). |
GetAdUnit(GetAdUnitRequest, ServerCallContext)
API to retrieve an AdUnit object.
Declaration
public virtual Task<AdUnit> GetAdUnit(GetAdUnitRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAdUnitRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<AdUnit> | The response to send back to the client (wrapped by a task). |
ListAdUnitSizes(ListAdUnitSizesRequest, ServerCallContext)
API to retrieve a list of AdUnitSize objects.
Declaration
public virtual Task<ListAdUnitSizesResponse> ListAdUnitSizes(ListAdUnitSizesRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitSizesRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<ListAdUnitSizesResponse> | The response to send back to the client (wrapped by a task). |
ListAdUnits(ListAdUnitsRequest, ServerCallContext)
API to retrieve a list of AdUnit objects.
Declaration
public virtual Task<ListAdUnitsResponse> ListAdUnits(ListAdUnitsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAdUnitsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<ListAdUnitsResponse> | The response to send back to the client (wrapped by a task). |
UpdateAdUnit(UpdateAdUnitRequest, ServerCallContext)
API to update an AdUnit object.
Declaration
public virtual Task<AdUnit> UpdateAdUnit(UpdateAdUnitRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAdUnitRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<AdUnit> | The response to send back to the client (wrapped by a task). |