Represents a DeviceCategoryService
Inheritance
$protobuf.rpc.Service > protos.google.ads.admanager.v1.DeviceCategoryServicePackage
@google-ads/admanagerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new DeviceCategoryService 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): DeviceCategoryService;Creates new DeviceCategoryService 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 |
DeviceCategoryService |
RPC service. Useful where requests and/or responses are streamed. |
getDeviceCategory(request, callback)
public getDeviceCategory(request: google.ads.admanager.v1.IGetDeviceCategoryRequest, callback: google.ads.admanager.v1.DeviceCategoryService.GetDeviceCategoryCallback): void;Calls GetDeviceCategory.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetDeviceCategoryRequest
GetDeviceCategoryRequest message or plain object |
callback |
GetDeviceCategoryCallback
Node-style callback called with the error, if any, and DeviceCategory |
| Returns | |
|---|---|
| Type | Description |
void |
|
getDeviceCategory(request)
public getDeviceCategory(request: google.ads.admanager.v1.IGetDeviceCategoryRequest): Promise<google.ads.admanager.v1.DeviceCategory>;Calls GetDeviceCategory.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetDeviceCategoryRequest
GetDeviceCategoryRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.DeviceCategory> |
Promise |
listDeviceCategories(request, callback)
public listDeviceCategories(request: google.ads.admanager.v1.IListDeviceCategoriesRequest, callback: google.ads.admanager.v1.DeviceCategoryService.ListDeviceCategoriesCallback): void;Calls ListDeviceCategories.
| Parameters | |
|---|---|
| Name | Description |
request |
IListDeviceCategoriesRequest
ListDeviceCategoriesRequest message or plain object |
callback |
ListDeviceCategoriesCallback
Node-style callback called with the error, if any, and ListDeviceCategoriesResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listDeviceCategories(request)
public listDeviceCategories(request: google.ads.admanager.v1.IListDeviceCategoriesRequest): Promise<google.ads.admanager.v1.ListDeviceCategoriesResponse>;Calls ListDeviceCategories.
| Parameter | |
|---|---|
| Name | Description |
request |
IListDeviceCategoriesRequest
ListDeviceCategoriesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.ListDeviceCategoriesResponse> |
Promise |