Class SiteService.SiteServiceBase
Base class for server-side implementations of SiteService
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
[BindServiceMethod(typeof(SiteService), "BindService")]
public abstract class SiteService.SiteServiceBase
Methods
BatchCreateSites(BatchCreateSitesRequest, ServerCallContext)
API to batch create Site objects.
Declaration
public virtual Task<BatchCreateSitesResponse> BatchCreateSites(BatchCreateSitesRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateSitesRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchCreateSitesResponse> | The response to send back to the client (wrapped by a task). |
BatchDeactivateSites(BatchDeactivateSitesRequest, ServerCallContext)
Deactivates a list of Site objects.
Declaration
public virtual Task<BatchDeactivateSitesResponse> BatchDeactivateSites(BatchDeactivateSitesRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateSitesRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchDeactivateSitesResponse> | The response to send back to the client (wrapped by a task). |
BatchSubmitSitesForApproval(BatchSubmitSitesForApprovalRequest, ServerCallContext)
Submits a list of Site objects for approval.
Declaration
public virtual Task<BatchSubmitSitesForApprovalResponse> BatchSubmitSitesForApproval(BatchSubmitSitesForApprovalRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchSubmitSitesForApprovalRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchSubmitSitesForApprovalResponse> | The response to send back to the client (wrapped by a task). |
BatchUpdateSites(BatchUpdateSitesRequest, ServerCallContext)
API to batch update Site objects.
Declaration
public virtual Task<BatchUpdateSitesResponse> BatchUpdateSites(BatchUpdateSitesRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateSitesRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchUpdateSitesResponse> | The response to send back to the client (wrapped by a task). |
CreateSite(CreateSiteRequest, ServerCallContext)
API to create a Site object.
Declaration
public virtual Task<Site> CreateSite(CreateSiteRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateSiteRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Site> | The response to send back to the client (wrapped by a task). |
GetSite(GetSiteRequest, ServerCallContext)
API to retrieve a Site object.
Declaration
public virtual Task<Site> GetSite(GetSiteRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSiteRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Site> | The response to send back to the client (wrapped by a task). |
ListSites(ListSitesRequest, ServerCallContext)
API to retrieve a list of Site objects.
Declaration
public virtual Task<ListSitesResponse> ListSites(ListSitesRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ListSitesRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<ListSitesResponse> | The response to send back to the client (wrapped by a task). |
UpdateSite(UpdateSiteRequest, ServerCallContext)
API to update a Site object.
Declaration
public virtual Task<Site> UpdateSite(UpdateSiteRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSiteRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Site> | The response to send back to the client (wrapped by a task). |