Class SiteServiceClientImpl
SiteService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class SiteServiceClientImpl : SiteServiceClient
Remarks
Provides methods for handling Site objects.
Constructors
SiteServiceClientImpl(SiteServiceClient, SiteServiceSettings, ILogger)
Constructs a client wrapper for the SiteService service, with the specified gRPC client and settings.
Declaration
public SiteServiceClientImpl(SiteService.SiteServiceClient grpcClient, SiteServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| SiteService.SiteServiceClient | grpcClient | The underlying gRPC client. |
| SiteServiceSettings | settings | The base SiteServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC SiteService client
Declaration
public override SiteService.SiteServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| SiteService.SiteServiceClient |
Overrides
Methods
BatchCreateSites(BatchCreateSitesRequest, CallSettings)
API to batch create Site objects.
Declaration
public override BatchCreateSitesResponse BatchCreateSites(BatchCreateSitesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateSitesRequest | 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 |
|---|---|
| BatchCreateSitesResponse | The RPC response. |
Overrides
BatchCreateSitesAsync(BatchCreateSitesRequest, CallSettings)
API to batch create Site objects.
Declaration
public override Task<BatchCreateSitesResponse> BatchCreateSitesAsync(BatchCreateSitesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateSitesRequest | 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<BatchCreateSitesResponse> | A Task containing the RPC response. |
Overrides
BatchDeactivateSites(BatchDeactivateSitesRequest, CallSettings)
Deactivates a list of Site objects.
Declaration
public override BatchDeactivateSitesResponse BatchDeactivateSites(BatchDeactivateSitesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateSitesRequest | 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 |
|---|---|
| BatchDeactivateSitesResponse | The RPC response. |
Overrides
BatchDeactivateSitesAsync(BatchDeactivateSitesRequest, CallSettings)
Deactivates a list of Site objects.
Declaration
public override Task<BatchDeactivateSitesResponse> BatchDeactivateSitesAsync(BatchDeactivateSitesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateSitesRequest | 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<BatchDeactivateSitesResponse> | A Task containing the RPC response. |
Overrides
BatchSubmitSitesForApproval(BatchSubmitSitesForApprovalRequest, CallSettings)
Submits a list of Site objects for approval.
Declaration
public override BatchSubmitSitesForApprovalResponse BatchSubmitSitesForApproval(BatchSubmitSitesForApprovalRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchSubmitSitesForApprovalRequest | 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 |
|---|---|
| BatchSubmitSitesForApprovalResponse | The RPC response. |
Overrides
BatchSubmitSitesForApprovalAsync(BatchSubmitSitesForApprovalRequest, CallSettings)
Submits a list of Site objects for approval.
Declaration
public override Task<BatchSubmitSitesForApprovalResponse> BatchSubmitSitesForApprovalAsync(BatchSubmitSitesForApprovalRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchSubmitSitesForApprovalRequest | 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<BatchSubmitSitesForApprovalResponse> | A Task containing the RPC response. |
Overrides
BatchUpdateSites(BatchUpdateSitesRequest, CallSettings)
API to batch update Site objects.
Declaration
public override BatchUpdateSitesResponse BatchUpdateSites(BatchUpdateSitesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateSitesRequest | 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 |
|---|---|
| BatchUpdateSitesResponse | The RPC response. |
Overrides
BatchUpdateSitesAsync(BatchUpdateSitesRequest, CallSettings)
API to batch update Site objects.
Declaration
public override Task<BatchUpdateSitesResponse> BatchUpdateSitesAsync(BatchUpdateSitesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateSitesRequest | 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<BatchUpdateSitesResponse> | A Task containing the RPC response. |
Overrides
CreateSite(CreateSiteRequest, CallSettings)
API to create a Site object.
Declaration
public override Site CreateSite(CreateSiteRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateSiteRequest | 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 |
|---|---|
| Site | The RPC response. |
Overrides
CreateSiteAsync(CreateSiteRequest, CallSettings)
API to create a Site object.
Declaration
public override Task<Site> CreateSiteAsync(CreateSiteRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateSiteRequest | 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<Site> | A Task containing the RPC response. |
Overrides
GetSite(GetSiteRequest, CallSettings)
API to retrieve a Site object.
Declaration
public override Site GetSite(GetSiteRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSiteRequest | 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 |
|---|---|
| Site | The RPC response. |
Overrides
GetSiteAsync(GetSiteRequest, CallSettings)
API to retrieve a Site object.
Declaration
public override Task<Site> GetSiteAsync(GetSiteRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSiteRequest | 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<Site> | A Task containing the RPC response. |
Overrides
ListSites(ListSitesRequest, CallSettings)
API to retrieve a list of Site objects.
Declaration
public override PagedEnumerable<ListSitesResponse, Site> ListSites(ListSitesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListSitesRequest | 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<ListSitesResponse, Site> | A pageable sequence of Site resources. |
Overrides
ListSitesAsync(ListSitesRequest, CallSettings)
API to retrieve a list of Site objects.
Declaration
public override PagedAsyncEnumerable<ListSitesResponse, Site> ListSitesAsync(ListSitesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListSitesRequest | 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<ListSitesResponse, Site> | A pageable asynchronous sequence of Site resources. |
Overrides
UpdateSite(UpdateSiteRequest, CallSettings)
API to update a Site object.
Declaration
public override Site UpdateSite(UpdateSiteRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSiteRequest | 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 |
|---|---|
| Site | The RPC response. |
Overrides
UpdateSiteAsync(UpdateSiteRequest, CallSettings)
API to update a Site object.
Declaration
public override Task<Site> UpdateSiteAsync(UpdateSiteRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSiteRequest | 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<Site> | A Task containing the RPC response. |