File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
samples/HelloWorld/Assets/Scripts Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ private void InitializeGoogleMobileAds()
105105
106106 // Initialize the Google Mobile Ads Unity plugin.
107107 Debug . Log ( "Google Mobile Ads Initializing." ) ;
108+
109+ // [START initialize_sdk]
108110 MobileAds . Initialize ( ( InitializationStatus initstatus ) =>
109111 {
110112 if ( initstatus == null )
@@ -113,7 +115,7 @@ private void InitializeGoogleMobileAds()
113115 _isInitialized = null ;
114116 return ;
115117 }
116-
118+ // [START_EXCLUDE silent]
117119 // If you use mediation, you can check the status of each adapter.
118120 var adapterStatusMap = initstatus . getAdapterStatusMap ( ) ;
119121 if ( adapterStatusMap != null )
@@ -125,10 +127,12 @@ private void InitializeGoogleMobileAds()
125127 item . Value . InitializationState ) ) ;
126128 }
127129 }
130+ // [END_EXCLUDE]
128131
129132 Debug . Log ( "Google Mobile Ads initialization complete." ) ;
130133 _isInitialized = true ;
131134 } ) ;
135+ // [END initialize_sdk]
132136 }
133137
134138 /// <summary>
You can’t perform that action at this time.
0 commit comments