diff --git a/src/LoggingInterceptor.ts b/src/LoggingInterceptor.ts index 4652b83..4dd1e38 100644 --- a/src/LoggingInterceptor.ts +++ b/src/LoggingInterceptor.ts @@ -243,7 +243,7 @@ export class LoggingInterceptor { const [googleAdsError] = errors ?? []; const [errorType, errorCode] = - Object.entries(googleAdsError.error_code ?? {}).find( + Object.entries(googleAdsError?.error_code ?? {}).find( ([key, value]) => ![undefined, null].includes(value), ) ?? [];