Represents a DeviceCapabilityService
Inheritance
$protobuf.rpc.Service > protos.google.ads.admanager.v1.DeviceCapabilityServicePackage
@google-ads/admanagerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new DeviceCapabilityService service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DeviceCapabilityService;Creates new DeviceCapabilityService service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
DeviceCapabilityService |
RPC service. Useful where requests and/or responses are streamed. |
getDeviceCapability(request, callback)
public getDeviceCapability(request: google.ads.admanager.v1.IGetDeviceCapabilityRequest, callback: google.ads.admanager.v1.DeviceCapabilityService.GetDeviceCapabilityCallback): void;Calls GetDeviceCapability.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetDeviceCapabilityRequest
GetDeviceCapabilityRequest message or plain object |
callback |
GetDeviceCapabilityCallback
Node-style callback called with the error, if any, and DeviceCapability |
| Returns | |
|---|---|
| Type | Description |
void |
|
getDeviceCapability(request)
public getDeviceCapability(request: google.ads.admanager.v1.IGetDeviceCapabilityRequest): Promise<google.ads.admanager.v1.DeviceCapability>;Calls GetDeviceCapability.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetDeviceCapabilityRequest
GetDeviceCapabilityRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.DeviceCapability> |
Promise |
listDeviceCapabilities(request, callback)
public listDeviceCapabilities(request: google.ads.admanager.v1.IListDeviceCapabilitiesRequest, callback: google.ads.admanager.v1.DeviceCapabilityService.ListDeviceCapabilitiesCallback): void;Calls ListDeviceCapabilities.
| Parameters | |
|---|---|
| Name | Description |
request |
IListDeviceCapabilitiesRequest
ListDeviceCapabilitiesRequest message or plain object |
callback |
ListDeviceCapabilitiesCallback
Node-style callback called with the error, if any, and ListDeviceCapabilitiesResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listDeviceCapabilities(request)
public listDeviceCapabilities(request: google.ads.admanager.v1.IListDeviceCapabilitiesRequest): Promise<google.ads.admanager.v1.ListDeviceCapabilitiesResponse>;Calls ListDeviceCapabilities.
| Parameter | |
|---|---|
| Name | Description |
request |
IListDeviceCapabilitiesRequest
ListDeviceCapabilitiesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.ListDeviceCapabilitiesResponse> |
Promise |