Class protos.google.ads.admanager.v1.MobileDeviceService (0.6.0)

Represents a MobileDeviceService

Inheritance

$protobuf.rpc.Service > protos.google.ads.admanager.v1.MobileDeviceService

Package

@google-ads/admanager

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new MobileDeviceService 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): MobileDeviceService;

Creates new MobileDeviceService 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
MobileDeviceService

RPC service. Useful where requests and/or responses are streamed.

getMobileDevice(request, callback)

public getMobileDevice(request: google.ads.admanager.v1.IGetMobileDeviceRequest, callback: google.ads.admanager.v1.MobileDeviceService.GetMobileDeviceCallback): void;

Calls GetMobileDevice.

Parameters
Name Description
request IGetMobileDeviceRequest

GetMobileDeviceRequest message or plain object

callback GetMobileDeviceCallback

Node-style callback called with the error, if any, and MobileDevice

Returns
Type Description
void

getMobileDevice(request)

public getMobileDevice(request: google.ads.admanager.v1.IGetMobileDeviceRequest): Promise<google.ads.admanager.v1.MobileDevice>;

Calls GetMobileDevice.

Parameter
Name Description
request IGetMobileDeviceRequest

GetMobileDeviceRequest message or plain object

Returns
Type Description
Promise<google.ads.admanager.v1.MobileDevice>

Promise

listMobileDevices(request, callback)

public listMobileDevices(request: google.ads.admanager.v1.IListMobileDevicesRequest, callback: google.ads.admanager.v1.MobileDeviceService.ListMobileDevicesCallback): void;

Calls ListMobileDevices.

Parameters
Name Description
request IListMobileDevicesRequest

ListMobileDevicesRequest message or plain object

callback ListMobileDevicesCallback

Node-style callback called with the error, if any, and ListMobileDevicesResponse

Returns
Type Description
void

listMobileDevices(request)

public listMobileDevices(request: google.ads.admanager.v1.IListMobileDevicesRequest): Promise<google.ads.admanager.v1.ListMobileDevicesResponse>;

Calls ListMobileDevices.

Parameter
Name Description
request IListMobileDevicesRequest

ListMobileDevicesRequest message or plain object

Returns
Type Description
Promise<google.ads.admanager.v1.ListMobileDevicesResponse>

Promise