Skip to content

Commit 766e42c

Browse files
malandr2copybara-github
authored andcommitted
Added region tags for the initalize_sdk snippet
PiperOrigin-RevId: 765284397
1 parent 4e85dc6 commit 766e42c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

samples/HelloWorld/Assets/Scripts/GoogleMobileAdsController.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)