initialize method

  1. @override
Future<void> initialize()
override

Initializes the underlying Mobile Ads SDK.

Safe to run in parallel with consent gathering — initialization sends no ad request. Completes when the SDK reports ready (or its internal timeout elapses).

Implementation

@override
Future<void> initialize() async {
  initializeCalls++;
  final hold = initializeHold;
  if (hold != null) await hold.future;
}