showNativeAd method

Future<String> showNativeAd({
  1. required String placementID,
  2. required Map extraMap,
  3. bool isAdaptiveHeight = false,
  4. Map<String, Object?>? atCustomContentResult,
})

Implementation

Future<String> showNativeAd({
  required String placementID,
  required Map extraMap,
  bool isAdaptiveHeight = false,
  Map<String, Object?>? atCustomContentResult,
}) async {
  return await AnythinkSdk.channel.invokeMethod("showNativeAd", {
    "placementID": placementID,
    "extraDic": extraMap,
    "isAdaptiveHeight": isAdaptiveHeight,
    if (atCustomContentResult != null)
      "atCustomContentResult": atCustomContentResult,
  });
}