You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
921 B
34 lines
921 B
import 'dart:io';
|
|
|
|
class AdHelper {
|
|
static String get bannerAdUnitId {
|
|
if (Platform.isAndroid) {
|
|
return 'ca-app-pub-3940256099942544/6300978111';
|
|
} else if (Platform.isIOS) {
|
|
return 'ca-app-pub-3940256099942544/2934735716';
|
|
} else {
|
|
throw new UnsupportedError('Unsupported platform');
|
|
}
|
|
}
|
|
|
|
static String get interstitialAdUnitId {
|
|
if (Platform.isAndroid) {
|
|
return "ca-app-pub-3940256099942544/1033173712";
|
|
} else if (Platform.isIOS) {
|
|
return "ca-app-pub-3940256099942544/4411468910";
|
|
} else {
|
|
throw new UnsupportedError("Unsupported platform");
|
|
}
|
|
}
|
|
|
|
static String get rewardedAdUnitId {
|
|
if (Platform.isAndroid) {
|
|
return "ca-app-pub-3940256099942544/5224354917";
|
|
} else if (Platform.isIOS) {
|
|
return "ca-app-pub-3940256099942544/1712485313";
|
|
} else {
|
|
throw new UnsupportedError("Unsupported platform");
|
|
}
|
|
}
|
|
}
|