requestAd method
Request a Native ad on this placement. listen for events by implementing TeadsNativeAdPlacementDelegate.
Use requestSettings
TeadsNativeAdRequestSettings
to tweak your needs.
Returns a unique request identifier, this identifier will be the same value of TeadsNativedAd.requestIdentifier
property.
The TeadsNativeAdPlacement delegate property must be set to perform ad request, otherwise didReceiveAd will not be triggered.
Implementation
@override
Future<String> requestAd(TeadsAdRequestSettings requestSettings) async {
final String id =
await channel.invokeMethod('requestAd', [requestSettings.mapValue]);
_nativeAds.add(TeadsNativeAd(id));
return id;
}