From 8ca1c63f003e204ff561b6a3a206ebfced4f3ad4 Mon Sep 17 00:00:00 2001 From: Maksim Roi <70580821+maksimroi@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:20:56 +0300 Subject: [PATCH] [AMSA-63] Error when make sync adUnits (#131) --- src/core/admob-api/admob.api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/admob-api/admob.api.ts b/src/core/admob-api/admob.api.ts index b6fc86d..85d8f2d 100644 --- a/src/core/admob-api/admob.api.ts +++ b/src/core/admob-api/admob.api.ts @@ -186,7 +186,7 @@ export class AdmobApiService { throw getTranslator(AdmobErrorTranslator).decode(data); } - if (method === 'ListGoogleBiddingAdUnits' && Object.keys(data).length === 0) { + if ((method === 'List' || method === 'ListGoogleBiddingAdUnits') && Object.keys(data).length === 0) { return {1: []}; }