adIdFor method

String? adIdFor(
  1. AdType type
)

Get the current platform ad ID for a type (null if not available)

Implementation

String? adIdFor(AdType type) => switch (type) {
  AdType.banner => bannerIds?.current,
  AdType.interstitial => interstitialIds?.current,
  AdType.native => nativeIds?.current,
  AdType.appOpen => appOpenIds?.current,
  AdType.rewarded => rewardedIds?.current,
  AdType.directInterstitial => directInterstitialIds?.current,
};