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
GetDefaultThirdPartyDataDeclaration(GetDefaultThirdPartyDataDeclarationRequest, ServerCallContext)
Returns the [DefaultThirdPartyDataDeclaration] for this network.
Declaration
public virtual Task<DefaultThirdPartyDataDeclaration> GetDefaultThirdPartyDataDeclaration(GetDefaultThirdPartyDataDeclarationRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetDefaultThirdPartyDataDeclarationRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<DefaultThirdPartyDataDeclaration> | The response to send back to the client (wrapped by a task). |
GetNetwork(GetNetworkRequest, ServerCallContext)
Retrieves 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)
Retrieves 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). |
ProvisionTestNetwork(ProvisionTestNetworkRequest, ServerCallContext)
Provisions a test network associated with the current user. Only one test network can be provisioned per user.
Before the test network can be used, you must complete setup in the Ad Manager UI. If the test network's owner is a service account, you must add a non-service account user by calling UserService.CreateUser.
Test networks are limited in the following ways:
- Test networks have a maximum of 10,000 objects per entity type.
- Test networks cannot serve ads.
- Reports on serving data have zero rows.
- Forecast service results contain mock data.
- Test networks do not have Ad Manager 360 or premium features enabled.
Declaration
public virtual Task<Network> ProvisionTestNetwork(ProvisionTestNetworkRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ProvisionTestNetworkRequest | 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). |
UpdateNetwork(UpdateNetworkRequest, ServerCallContext)
Updates a Network object. Currently, only the network display name can be
updated.
Declaration
public virtual Task<Network> UpdateNetwork(UpdateNetworkRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateNetworkRequest | 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). |