Represents a MarketingDataInsightsService
Inheritance
$protobuf.rpc.Service > protos.google.ads.datamanager.v1.MarketingDataInsightsServicePackage
@google-ads/datamanagerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new MarketingDataInsightsService 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): MarketingDataInsightsService;Creates new MarketingDataInsightsService 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 |
MarketingDataInsightsService |
RPC service. Useful where requests and/or responses are streamed. |
retrieveInsights(request, callback)
public retrieveInsights(request: google.ads.datamanager.v1.IRetrieveInsightsRequest, callback: google.ads.datamanager.v1.MarketingDataInsightsService.RetrieveInsightsCallback): void;Calls RetrieveInsights.
| Parameters | |
|---|---|
| Name | Description |
request |
IRetrieveInsightsRequest
RetrieveInsightsRequest message or plain object |
callback |
RetrieveInsightsCallback
Node-style callback called with the error, if any, and RetrieveInsightsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
retrieveInsights(request)
public retrieveInsights(request: google.ads.datamanager.v1.IRetrieveInsightsRequest): Promise<google.ads.datamanager.v1.RetrieveInsightsResponse>;Calls RetrieveInsights.
| Parameter | |
|---|---|
| Name | Description |
request |
IRetrieveInsightsRequest
RetrieveInsightsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.datamanager.v1.RetrieveInsightsResponse> |
Promise |