Class protos.google.ads.admanager.v1.CustomFieldService (0.1.0)

Represents a CustomFieldService

Inheritance

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

Package

@google-ads/admanager

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

getCustomField(request, callback)

public getCustomField(request: google.ads.admanager.v1.IGetCustomFieldRequest, callback: google.ads.admanager.v1.CustomFieldService.GetCustomFieldCallback): void;

Calls GetCustomField.

Parameters
Name Description
request IGetCustomFieldRequest

GetCustomFieldRequest message or plain object

callback GetCustomFieldCallback

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

Returns
Type Description
void

getCustomField(request)

public getCustomField(request: google.ads.admanager.v1.IGetCustomFieldRequest): Promise<google.ads.admanager.v1.CustomField>;

Calls GetCustomField.

Parameter
Name Description
request IGetCustomFieldRequest

GetCustomFieldRequest message or plain object

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

Promise

listCustomFields(request, callback)

public listCustomFields(request: google.ads.admanager.v1.IListCustomFieldsRequest, callback: google.ads.admanager.v1.CustomFieldService.ListCustomFieldsCallback): void;

Calls ListCustomFields.

Parameters
Name Description
request IListCustomFieldsRequest

ListCustomFieldsRequest message or plain object

callback ListCustomFieldsCallback

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

Returns
Type Description
void

listCustomFields(request)

public listCustomFields(request: google.ads.admanager.v1.IListCustomFieldsRequest): Promise<google.ads.admanager.v1.ListCustomFieldsResponse>;

Calls ListCustomFields.

Parameter
Name Description
request IListCustomFieldsRequest

ListCustomFieldsRequest message or plain object

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

Promise