-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9acf403
commit 935518b
Showing
3 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'dart:io'; | ||
|
||
String testID = "ca-app-pub-3940256099942544~4354546703"; | ||
String testInterID = "ca-app-pub-3940256099942544/7049598008"; | ||
|
||
String appID = "ca-app-pub-1880918445827744~7516812574"; | ||
String appInterID = "ca-app-pub-1880918445827744/1357215445"; | ||
String appBannerID = "ca-app-pub-1880918445827744/5753973067"; | ||
|
||
class AdManager { | ||
static String get appId { | ||
if (Platform.isAndroid) { | ||
return appID; | ||
} else { | ||
throw new UnsupportedError("Unsupported platform"); | ||
} | ||
} | ||
|
||
static String get interstitialAdUnitId { | ||
if (Platform.isAndroid) { | ||
return appInterID; | ||
} else { | ||
throw new UnsupportedError("Unsupported platform"); | ||
} | ||
} | ||
|
||
static String get bannerAdUnitId { | ||
if (Platform.isAndroid) { | ||
return appBannerID; | ||
} else { | ||
throw new UnsupportedError("Unsupported platform"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters