MobileAd constructor

MobileAd(
  1. {@required String adPlatform,
  2. @required String adUnitId,
  3. MobileAdTargetingInfo targetingInfo,
  4. MobileAdListener listener}
)

Implementation

MobileAd(
    { @required this.adPlatform,
      @required this.adUnitId,
    MobileAdTargetingInfo targetingInfo,
    this.listener})
    : _targetingInfo = targetingInfo ?? const MobileAdTargetingInfo() {
  assert(adUnitId != null && adUnitId.isNotEmpty);
  assert(_allAds[id] == null);
  _allAds[id] = this;
}