Skip to content

Commit 11835d6

Browse files
committed
Improve logging of invalid AdMob App IDs
1 parent 200d157 commit 11835d6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Editor/PostProcess/iOSPostprocessUtils.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_IOS
1+
#if UNITY_IOS
22
// ReSharper Disable CheckNamespace
33

44
using System;
@@ -117,14 +117,14 @@ private static void AddAdMobApplicationIdentifier(string path)
117117

118118
if (String.IsNullOrEmpty(admobAppId))
119119
{
120-
Debug.LogError("Admob App ID is not set via 'Appodeal/Appodeal Settings' tool.\nThe app may crash on startup!");
120+
Debug.LogError("AdMob App ID is not set via the 'Appodeal/Appodeal Settings' tool.\nThe app may crash on startup!");
121121
return;
122122
}
123123

124124
if (!admobAppId.StartsWith("ca-app-pub-") || admobAppId == AppodealEditorConstants.AdMobAppIdPlaceholder)
125125
{
126-
Debug.LogError("Incorrect value. The app may crash on startup." +
127-
"\nPlease enter a valid AdMob App ID via 'Appodeal/Appodeal Settings' tool." +
126+
Debug.LogError($"Incorrect AdMob App ID: '{admobAppId}'. The app may crash on startup." +
127+
"\nPlease enter a valid AdMob App ID via the 'Appodeal/Appodeal Settings' tool." +
128128
"\nAlternatively, change the value manually in Info.plist file.");
129129
}
130130

Editor/PreProcess/AppodealPreProcess.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ private void AddAdmobAppId(string path, AndroidManifest androidManifest)
111111
androidManifest.RemoveAdmobAppId();
112112
}
113113
Debug.LogError(
114-
$"Admob App ID is not set via 'Appodeal/Appodeal Settings' tool." +
114+
"AdMob App ID is not set via the 'Appodeal/Appodeal Settings' tool." +
115115
"\nThe app may crash on startup!");
116116
}
117117
else
118118
{
119119
if (!admobAppId.StartsWith("ca-app-pub-") || admobAppId == AppodealEditorConstants.AdMobAppIdPlaceholder)
120120
{
121121
Debug.LogError(
122-
"Incorrect value. The app may crash on startup." +
122+
$"Incorrect AdMob App ID: '{admobAppId}'. The app may crash on startup." +
123123
"\nPlease enter a valid AdMob App ID via 'Appodeal/Appodeal Settings' tool.");
124124
}
125125

0 commit comments

Comments
 (0)