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

Represents a McmEarningsService

Inheritance

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

Package

@google-ads/admanager

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

fetchMcmEarnings(request, callback)

public fetchMcmEarnings(request: google.ads.admanager.v1.IFetchMcmEarningsRequest, callback: google.ads.admanager.v1.McmEarningsService.FetchMcmEarningsCallback): void;

Calls FetchMcmEarnings.

Parameters
Name Description
request IFetchMcmEarningsRequest

FetchMcmEarningsRequest message or plain object

callback FetchMcmEarningsCallback

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

Returns
Type Description
void

fetchMcmEarnings(request)

public fetchMcmEarnings(request: google.ads.admanager.v1.IFetchMcmEarningsRequest): Promise<google.ads.admanager.v1.FetchMcmEarningsResponse>;

Calls FetchMcmEarnings.

Parameter
Name Description
request IFetchMcmEarningsRequest

FetchMcmEarningsRequest message or plain object

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

Promise