Class NetworkServiceClientImpl
NetworkService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager .V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class NetworkServiceClientImpl : NetworkServiceClient
Remarks
Provides methods for handling Network objects.
Constructors
NetworkServiceClientImpl(NetworkServiceClient, NetworkServiceSettings, ILogger)
Constructs a client wrapper for the NetworkService service, with the specified gRPC client and settings.
Declaration
public NetworkServiceClientImpl(NetworkService.NetworkServiceClient grpcClient, NetworkServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Network |
grpcClient | The underlying gRPC client. |
Network |
settings | The base Network |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC NetworkService client
Declaration
public override NetworkService.NetworkServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
Network |
Overrides
Methods
GetNetwork(GetNetworkRequest, CallSettings)
API to retrieve a Network object.
Declaration
public override Network GetNetwork(GetNetworkRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Network | The RPC response. |
Overrides
GetNetworkAsync(GetNetworkRequest, CallSettings)
API to retrieve a Network object.
Declaration
public override Task<Network> GetNetworkAsync(GetNetworkRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Overrides
ListNetworks(ListNetworksRequest, CallSettings)
API to retrieve all the networks the current user has access to.
Declaration
public override ListNetworksResponse ListNetworks(ListNetworksRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
List |
The RPC response. |
Overrides
ListNetworksAsync(ListNetworksRequest, CallSettings)
API to retrieve all the networks the current user has access to.
Declaration
public override Task<ListNetworksResponse> ListNetworksAsync(ListNetworksRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<List |
A Task containing the RPC response. |