set method
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,
);
}