Skip to content

Commit

Permalink
Publish version 2.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
MortezaNedaei committed Aug 19, 2024
1 parent 320ab7f commit a1b41d8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ class _MyAppState extends State<MyApp> {
return;
}
TapsellPlus.instance.requestStandardBannerAd(
zoneId, TapsellPlusBannerType.BANNER_320x50,
onResponse: (map) {
zoneId, TapsellPlusBannerType.BANNER_320x50, onResponse: (map) {
log('Standard Ad is "READY"', tag: '--standard');
setResponseId(map['response_id'] ?? '');
}, onError: (map) {
Expand Down Expand Up @@ -396,13 +395,14 @@ class _MyAppState extends State<MyApp> {
log("AdNetwork '$adNetwork' does not support NativeAd");
return;
}
TapsellPlus.instance.requestNativeAd(zoneId).then((value) {
TapsellPlus.instance.requestNativeAd(zoneId, onResponse: (map) {
log('Native Ad is "READY"', tag: '--native');
print('requestNativeAd:' + value.entries.toString());
setResponseId(value['response_id']);
setUnitId(value['adnetwork_zone_id'] ?? "");
}).catchError((error) {
log('Error requesting ad - $error', tag: '--native-status');
print('requestNativeAd:' + map.entries.toString());
setResponseId(map['response_id'] ?? "");
setUnitId(map['adnetwork_zone_id'] ?? "");
}, onError: (map) {
log('Error requesting ad - ${map.entries}',
tag: '--native-status');
});
}
},
Expand Down

0 comments on commit a1b41d8

Please sign in to comment.