adUnitId property

  1. @protected
String get adUnitId

Implementation

@protected
String get adUnitId {
  var extIdList = _unit.extIdList;
  if (extIdList == null || extIdList.isEmpty) {
    return _unit.id;
  }
  final allIds = [_unit.id, ...(_unit.extIdList ?? [])];
  return allIds[_random.nextInt(allIds.length)];
}