Represents a ContentLabelService
Inheritance
$protobuf.rpc.Service > protos.google.ads.admanager.v1.ContentLabelServicePackage
@google-ads/admanagerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new ContentLabelService 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): ContentLabelService;Creates new ContentLabelService 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 |
ContentLabelService |
RPC service. Useful where requests and/or responses are streamed. |
getContentLabel(request, callback)
public getContentLabel(request: google.ads.admanager.v1.IGetContentLabelRequest, callback: google.ads.admanager.v1.ContentLabelService.GetContentLabelCallback): void;Calls GetContentLabel.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetContentLabelRequest
GetContentLabelRequest message or plain object |
callback |
GetContentLabelCallback
Node-style callback called with the error, if any, and ContentLabel |
| Returns | |
|---|---|
| Type | Description |
void |
|
getContentLabel(request)
public getContentLabel(request: google.ads.admanager.v1.IGetContentLabelRequest): Promise<google.ads.admanager.v1.ContentLabel>;Calls GetContentLabel.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetContentLabelRequest
GetContentLabelRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.ContentLabel> |
Promise |
listContentLabels(request, callback)
public listContentLabels(request: google.ads.admanager.v1.IListContentLabelsRequest, callback: google.ads.admanager.v1.ContentLabelService.ListContentLabelsCallback): void;Calls ListContentLabels.
| Parameters | |
|---|---|
| Name | Description |
request |
IListContentLabelsRequest
ListContentLabelsRequest message or plain object |
callback |
ListContentLabelsCallback
Node-style callback called with the error, if any, and ListContentLabelsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listContentLabels(request)
public listContentLabels(request: google.ads.admanager.v1.IListContentLabelsRequest): Promise<google.ads.admanager.v1.ListContentLabelsResponse>;Calls ListContentLabels.
| Parameter | |
|---|---|
| Name | Description |
request |
IListContentLabelsRequest
ListContentLabelsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.ListContentLabelsResponse> |
Promise |