14 private const string AdLogsTab =
"Ad Logs";
15 private const string EventLogsTab =
"Event Logs";
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.";
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}.";
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]";
44 [Tooltip(
"Enable this to suppress all logs generated by the plugin.")]
47 #region Ad Logs Configuration
52 [Tooltip(SdkInitializationFailureLog +
" - occurs during ad loading process. Not available for Yandex mobile ads.")]
56 [Tooltip(AdInitiateLoadLog +
" - occurs when ad loading is initiated. Not available for Yandex mobile ads.")]
60 [Tooltip(NoInternetLog +
" - detected during ad loading process")]
64 [Tooltip(AdCachedLoadLog +
" - occurs when an ad is loaded from cache")]
68 [Tooltip(AdShowingLog +
" - occurs when attempting to show an ad")]
72 [Tooltip(AdUnavailableLog +
" - occurs when an ad is not ready to be shown")]
76 #region Event Logs Configuration
79 [Header(EventLogsTab)]
81 [Tooltip(AdPaidLog +
" - occurs when ad revenue is recorded. Not available for Yandex mobile ads.")]
85 [Tooltip(AdImpressionLog +
" - occurs when an ad impression is recorded")]
89 [Tooltip(AdLoadedLog +
" - occurs when an ad is successfully loaded")]
93 [Tooltip(AdLoadFailedLog +
" - occurs when an ad fails to load")]
97 [Tooltip(AdClickedLog +
" - occurs when an ad is clicked")]
101 [Tooltip(AdShownLog +
" - occurs when ad content is displayed")]
105 [Tooltip(AdClosedLog +
" - occurs when ad content is closed by the user")]
109 [Tooltip(AdContentFailedLog +
" - occurs when there's an error displaying ad content")]
113 [Tooltip(AdRewardEarnedLog +
" - occurs when a user is rewarded from an ad")]
string AdPaidLogText
Specifies the ad paid log text.
string AdCachedLoadLogText
Specifies the ad cached load log text.
string AdUnavailableLogText
Specifies the ad unavailable log text.
string AdShowingLogText
Specifies the ad showing log text.
string AdImpressionLogText
Specifies the ad impression log text.
string AdRewardEarnedLogText
Specifies the ad reward earned log text.
string AdLoadingLogText
Specifies the ad loading log text.
string SdkNotInitializedLogText
Specifies the sdk not initialized log text.
string AdClosedLogText
Specifies the ad closed log text.
bool SuppressAllLogs
Enable this to suppress all logs generated by the plugin.
string AdLoadFailedText
Specifies the ad load failed text.
string NoInternetLogText
Specifies the no internet log text.
string AdShownLogText
Specifies the ad shown log text.
string AdLoadedLogText
Specifies the ad loaded log text.
string AdContentFailedLogText
Specifies the ad content failed log text.
string AdClickedLogText
Specifies the ad clicked log text.
Configuration for controlling visibility of plugin logs, helping to manage the verbosity of log outpu...