Class UserServiceClientImpl
UserService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class UserServiceClientImpl : UserServiceClient
Remarks
Provides methods for handling User objects.
Constructors
UserServiceClientImpl(UserServiceClient, UserServiceSettings, ILogger)
Constructs a client wrapper for the UserService service, with the specified gRPC client and settings.
Declaration
public UserServiceClientImpl(UserService.UserServiceClient grpcClient, UserServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| UserService.UserServiceClient | grpcClient | The underlying gRPC client. |
| UserServiceSettings | settings | The base UserServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC UserService client
Declaration
public override UserService.UserServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| UserService.UserServiceClient |
Overrides
Methods
GetUser(GetUserRequest, CallSettings)
API to retrieve a User object.
To get the current user, the resource name
networks/{networkCode}/users/me can be used.
Declaration
public override User GetUser(GetUserRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetUserRequest | 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 |
|---|---|
| User | The RPC response. |
Overrides
GetUserAsync(GetUserRequest, CallSettings)
API to retrieve a User object.
To get the current user, the resource name
networks/{networkCode}/users/me can be used.
Declaration
public override Task<User> GetUserAsync(GetUserRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetUserRequest | 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<User> | A Task containing the RPC response. |