parent
0c88e35f24
commit
1ecd077085
|
|
@ -53,7 +53,7 @@ namespace Guru
|
|||
public void Initialize()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
Debug.Log($"<color=orange>=== PubMatic will not init on Editor ===</color>");
|
||||
Debug.Log($"<color=orange>=== PubMatic will not init on Editor ===</color>");
|
||||
#endif
|
||||
if (!IsEnabled)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,7 +78,10 @@ namespace Guru
|
|||
channel.Initialize();
|
||||
_adChannels.Add(channel); // PubMatic
|
||||
|
||||
|
||||
#if UNITY_EDITOR
|
||||
Debug.Log($"---- Editor Ads Init Over ----");
|
||||
_onSdkInitReady?.Invoke();
|
||||
#endif
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Guru
|
|||
|
||||
private bool _isServiceStarted;
|
||||
|
||||
private Action _onSdkInitReady;
|
||||
protected Action _onSdkInitReady;
|
||||
|
||||
public static Action OnBannerLoaded;
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,12 @@ namespace Guru
|
|||
{
|
||||
if (_hasGotAdjustId) return;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
string adjustId = "editor_fake_adjust_id";
|
||||
#else
|
||||
string adjustId = AdjustService.AdjustId;
|
||||
#endif
|
||||
|
||||
if (!string.IsNullOrEmpty(adjustId))
|
||||
{
|
||||
IPMConfig.ADJUST_ID = adjustId;
|
||||
|
|
|
|||
Loading…
Reference in New Issue