initialize method
Initializes AdMob SDK and runs the UMP consent flow.
Must be called once before showing any ads. Typically called
in main() before runApp().
This method:
- Calls
MobileAds.instance.initialize() - Configures test device IDs
- Runs the UMP consent check (shows dialog if needed)
Throws StateError if called after dispose.
Implementation
@override
Future<void> initialize() async {
initializeCallCount++;
_isInitialized = true;
}