Space Ad Mobile 9.5.1
Space Ad Mobile makes ads easy to add into your mobile game: one unified workflow for LevelPlay, AdMob, Yandex.Ads across banners, interstitials and rewarded.
Loading...
Searching...
No Matches
LogOptions.cs
1using System;
2using UnityEngine;
3
4namespace SCG.SpaceAdMobile
5{
10 [Serializable]
11 public class LogOptions
12 {
13 #region Log Constants
14 private const string AdLogsTab = "Ad Logs";
15 private const string EventLogsTab = "Event Logs";
16
17 private const string SdkInitializationFailureLog = "The MobileAds SDK has not been initialized.";
18 private const string AdInitiateLoadLog = "Initiating loading for {ad}.";
19 private const string NoInternetLog = "Internet connection is currently unavailable.";
20 private const string AdCachedLoadLog = "The {ad} was successfully loaded from cache.";
21 private const string AdLoadFailedLog = "Failed to load the ad due to error: {0}.";
22 private const string AdShowingLog = "Attempting to show the {ad}.";
23 private const string AdUnavailableLog = "The {ad} is not ready to be shown yet.";
24
25 private const string AdPaidLog = "Revenue recorded for {ad}: {0} {1}.";
26 private const string AdLoadedLog = "{ad} was successfully loaded at {time}.";
27 private const string AdImpressionLog = "An impression for {ad} has been tracked. {0}";
28 private const string AdClickedLog = "{ad} has been interacted with by the user.";
29 private const string AdShownLog = "Content for {ad} is now displayed.";
30 private const string AdClosedLog = "Content for {ad} has been dismissed.";
31 private const string AdContentFailedLog = "Failed to display content for {ad} with error: {0}";
32 private const string AdRewardEarnedLog = "A reward of {1} {0} has been granted for {ad}.";
33 #endregion
34
35#if LEVELPLAY_MOBILE_ADS
36 public string Channel = "[LevelPlay]";
37#elif GOOGLE_MOBILE_ADS
38 public string Channel = "[AdMob]";
39#elif YANDEX_MOBILE_ADS
40 public string Channel = "[YandexAds]";
41#endif
42
44 [Tooltip("Enable this to suppress all logs generated by the plugin.")]
45 public bool SuppressAllLogs;
46
47 #region Ad Logs Configuration
49 [Space(10)]
50 [Header(AdLogsTab)]
51
52 [Tooltip(SdkInitializationFailureLog + " - occurs during ad loading process. Not available for Yandex mobile ads.")]
53 public string SdkNotInitializedLogText = SdkInitializationFailureLog;
54
56 [Tooltip(AdInitiateLoadLog + " - occurs when ad loading is initiated. Not available for Yandex mobile ads.")]
57 public string AdLoadingLogText = AdInitiateLoadLog;
58
60 [Tooltip(NoInternetLog + " - detected during ad loading process")]
61 public string NoInternetLogText = NoInternetLog;
62
64 [Tooltip(AdCachedLoadLog + " - occurs when an ad is loaded from cache")]
65 public string AdCachedLoadLogText = AdCachedLoadLog;
66
68 [Tooltip(AdShowingLog + " - occurs when attempting to show an ad")]
69 public string AdShowingLogText = AdShowingLog;
70
72 [Tooltip(AdUnavailableLog + " - occurs when an ad is not ready to be shown")]
73 public string AdUnavailableLogText = AdUnavailableLog;
74 #endregion
75
76 #region Event Logs Configuration
78 [Space(10)]
79 [Header(EventLogsTab)]
80
81 [Tooltip(AdPaidLog + " - occurs when ad revenue is recorded. Not available for Yandex mobile ads.")]
82 public string AdPaidLogText = AdPaidLog;
83
85 [Tooltip(AdImpressionLog + " - occurs when an ad impression is recorded")]
86 public string AdImpressionLogText = AdImpressionLog;
87
89 [Tooltip(AdLoadedLog + " - occurs when an ad is successfully loaded")]
90 public string AdLoadedLogText = AdLoadedLog;
91
93 [Tooltip(AdLoadFailedLog + " - occurs when an ad fails to load")]
94 public string AdLoadFailedText = AdLoadFailedLog;
95
97 [Tooltip(AdClickedLog + " - occurs when an ad is clicked")]
98 public string AdClickedLogText = AdClickedLog;
99
101 [Tooltip(AdShownLog + " - occurs when ad content is displayed")]
102 public string AdShownLogText = AdShownLog;
103
105 [Tooltip(AdClosedLog + " - occurs when ad content is closed by the user")]
106 public string AdClosedLogText = AdClosedLog;
107
109 [Tooltip(AdContentFailedLog + " - occurs when there's an error displaying ad content")]
110 public string AdContentFailedLogText = AdContentFailedLog;
111
113 [Tooltip(AdRewardEarnedLog + " - occurs when a user is rewarded from an ad")]
114 public string AdRewardEarnedLogText = AdRewardEarnedLog;
115
116 #endregion
117 }
118}
string AdPaidLogText
Specifies the ad paid log text.
Definition LogOptions.cs:82
string AdCachedLoadLogText
Specifies the ad cached load log text.
Definition LogOptions.cs:65
string AdUnavailableLogText
Specifies the ad unavailable log text.
Definition LogOptions.cs:73
string AdShowingLogText
Specifies the ad showing log text.
Definition LogOptions.cs:69
string AdImpressionLogText
Specifies the ad impression log text.
Definition LogOptions.cs:86
string AdRewardEarnedLogText
Specifies the ad reward earned log text.
string AdLoadingLogText
Specifies the ad loading log text.
Definition LogOptions.cs:57
string SdkNotInitializedLogText
Specifies the sdk not initialized log text.
Definition LogOptions.cs:53
string AdClosedLogText
Specifies the ad closed log text.
bool SuppressAllLogs
Enable this to suppress all logs generated by the plugin.
Definition LogOptions.cs:45
string AdLoadFailedText
Specifies the ad load failed text.
Definition LogOptions.cs:94
string NoInternetLogText
Specifies the no internet log text.
Definition LogOptions.cs:61
string AdShownLogText
Specifies the ad shown log text.
string AdLoadedLogText
Specifies the ad loaded log text.
Definition LogOptions.cs:90
string AdContentFailedLogText
Specifies the ad content failed log text.
string AdClickedLogText
Specifies the ad clicked log text.
Definition LogOptions.cs:98
Configuration for controlling visibility of plugin logs, helping to manage the verbosity of log outpu...
Definition LogOptions.cs:12