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

Represents a CustomTargetingKeyService

Inheritance

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

Package

@google-ads/admanager

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

getCustomTargetingKey(request, callback)

public getCustomTargetingKey(request: google.ads.admanager.v1.IGetCustomTargetingKeyRequest, callback: google.ads.admanager.v1.CustomTargetingKeyService.GetCustomTargetingKeyCallback): void;

Calls GetCustomTargetingKey.

Parameters
Name Description
request IGetCustomTargetingKeyRequest

GetCustomTargetingKeyRequest message or plain object

callback GetCustomTargetingKeyCallback

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

Returns
Type Description
void

getCustomTargetingKey(request)

public getCustomTargetingKey(request: google.ads.admanager.v1.IGetCustomTargetingKeyRequest): Promise<google.ads.admanager.v1.CustomTargetingKey>;

Calls GetCustomTargetingKey.

Parameter
Name Description
request IGetCustomTargetingKeyRequest

GetCustomTargetingKeyRequest message or plain object

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

Promise

listCustomTargetingKeys(request, callback)

public listCustomTargetingKeys(request: google.ads.admanager.v1.IListCustomTargetingKeysRequest, callback: google.ads.admanager.v1.CustomTargetingKeyService.ListCustomTargetingKeysCallback): void;

Calls ListCustomTargetingKeys.

Parameters
Name Description
request IListCustomTargetingKeysRequest

ListCustomTargetingKeysRequest message or plain object

callback ListCustomTargetingKeysCallback

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

Returns
Type Description
void

listCustomTargetingKeys(request)

public listCustomTargetingKeys(request: google.ads.admanager.v1.IListCustomTargetingKeysRequest): Promise<google.ads.admanager.v1.ListCustomTargetingKeysResponse>;

Calls ListCustomTargetingKeys.

Parameter
Name Description
request IListCustomTargetingKeysRequest

ListCustomTargetingKeysRequest message or plain object

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

Promise