google-ads-node
Version:
Google Ads gRPC Client Library for Node
25 lines (24 loc) • 908 B
TypeScript
import grpc from "grpc";
import Auth from "./auth";
declare type NextCall = (options: grpc.CallOptions) => grpc.InterceptingCall | null;
export declare class MetadataInterceptor {
private developer_token;
private login_customer_id;
private access_token;
private auth;
private requestInterceptor;
constructor(developer_token: string, login_customer_id: string | undefined, access_token: string | undefined, auth: Auth | undefined);
intercept(options: grpc.CallOptions, nextCall: NextCall): grpc.InterceptingCall;
private buildRequester;
}
export declare class ExceptionInterceptor {
private requestInterceptor;
constructor();
intercept(options: grpc.CallOptions, nextCall: NextCall): grpc.InterceptingCall;
private buildRequester;
private buildListener;
private getGoogleAdsFailure;
private getRequestId;
private handleGrpcFailure;
}
export {};