set method

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. AdSize? size,
  10. double? anchorOffset,
  11. double? horizontalCenterOffset,
  12. AdErrorListener? errorListener,
})

Set options to the Banner Ad.

Implementation

Future<bool> set({
  String? adUnitId,
  AdRequest? targetInfo,
  List<String>? keywords,
  String? contentUrl,
  bool? childDirected,
  List<String>? testDevices,
  bool? nonPersonalizedAds,
  bool? testing,
  AdSize? size,
  double? anchorOffset,
  double? horizontalCenterOffset,
//    AnchorType anchorType,
  m.AdErrorListener? errorListener,
}) {
  // Add this listener to the Error Listeners.
  if (errorListener != null) {
    m.eventErrorListeners.add(errorListener);
  }
  return _banner.set(
    adUnitId: adUnitId,
    targetInfo: targetInfo,
    keywords: keywords,
    contentUrl: contentUrl,
    childDirected: childDirected,
    testDevices: testDevices,
    nonPersonalizedAds: nonPersonalizedAds,
    testing: testing,
    size: size,
    anchorOffset: anchorOffset,
    horizontalCenterOffset: horizontalCenterOffset,
//      anchorType: anchorType,
    errorListener: errorListener,
  );
}