set method

  1. @override
Future<bool> set({
  1. String? adUnitId,
  2. AdRequest? targetInfo,
  3. List<String>? keywords,
  4. String? contentUrl,
  5. bool? childDirected,
  6. List<String>? testDevices,
  7. bool? nonPersonalizedAds,
  8. bool? testing,
  9. double? anchorOffset,
  10. double? horizontalCenterOffset,
  11. AdErrorListener? errorListener,
})
override

Set options for the Interstitial Ad

Implementation

@override
Future<bool> set({
  String? adUnitId,
  g.AdRequest? targetInfo,
  List<String>? keywords,
  String? contentUrl,
  bool? childDirected,
  List<String>? testDevices,
  bool? nonPersonalizedAds,
  bool? testing,
  double? anchorOffset,
  double? horizontalCenterOffset,
//    AnchorType anchorType,
  AdErrorListener? errorListener,
}) {
  super.set(
    adUnitId: adUnitId,
    targetInfo: targetInfo,
    keywords: keywords,
    contentUrl: contentUrl,
    childDirected: childDirected,
    testDevices: testDevices,
    nonPersonalizedAds: nonPersonalizedAds,
    testing: testing,
    anchorOffset: anchorOffset,
    horizontalCenterOffset: horizontalCenterOffset,
//      anchorType: anchorType,
    errorListener: errorListener,
  );
  return loadAd(
    show: false,
    adUnitId: adUnitId,
    targetInfo: targetInfo,
    keywords: keywords,
    contentUrl: contentUrl,
    childDirected: childDirected,
    testDevices: testDevices,
    testing: testing,
    anchorOffset: anchorOffset,
    horizontalCenterOffset: horizontalCenterOffset,
//      anchorType: anchorType,
  );
}