UNPKG

google-ads-api-client

Version:

A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.

21 lines (20 loc) 615 B
import { GoogleAdsFailure } from '..'; export declare class GoogleAdsApiError extends Error { failure: GoogleAdsFailure; constructor({ failure }: { failure: GoogleAdsFailure; }); } export declare class CouldNotExtractGoogleAdsApiError extends Error { source: Error; constructor({ source }: { source: Error; }); } /** * extracts a GoogleAdsError from the error object * * note: * - if its not possible to extract a GoogleAdsError from the input, it will throw a helpful error message */ export declare const extractGoogleAdsApiError: (error: Error) => GoogleAdsApiError;