import 'package:guru_app/ads/core/ads.dart';
import 'package:guru_app/ads/core/strategy/handler/ad_unit_cache.dart';
import 'package:guru_app/guru_app.dart';
import 'package:guru_app/property/app_property.dart';

/// Created by Haoyi on 2023/6/28

abstract class AdUnit<T> extends SingleAds<T> with AdsAudit<T> {
  @override
  final AdUnitId adUnitId;
  final AdSlotId? amazonAdSlotId;

  AdUnit(this.adUnitId, {this.amazonAdSlotId}) {
    // addObserver(AdUnitCacheObserver(adUnitId.id));
    addObserver(AdsAuditObserver("AdUnit[${adUnitId.id}]", tag: PropertyTags.strategyAds));
  }
}
