Class NetworkService.NetworkServiceBase
Base class for server-side implementations of NetworkService
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
[BindServiceMethod(typeof(NetworkService), "BindService")]
public abstract class NetworkService.NetworkServiceBase
Methods
GetNetwork(GetNetworkRequest, ServerCallContext)
API to retrieve a Network object.
Declaration
public virtual Task<Network> GetNetwork(GetNetworkRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetNetworkRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Network> | The response to send back to the client (wrapped by a task). |
ListNetworks(ListNetworksRequest, ServerCallContext)
API to retrieve all the networks the current user has access to.
Declaration
public virtual Task<ListNetworksResponse> ListNetworks(ListNetworksRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListNetworksRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListNetworksResponse> | The response to send back to the client (wrapped by a task). |