Skip to content

Commit

Permalink
Open Ads
Browse files Browse the repository at this point in the history
  • Loading branch information
rysasahrial-99 committed Feb 25, 2023
1 parent 498eefb commit 31c806b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions AlienAdsV2/src/main/java/com/aliendroid/alienads/AlienOpenAds.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,20 @@ public AlienOpenAds(MyApplication myApplication) {
ProcessLifecycleOwner.get().getLifecycle().addObserver(this);
}

public static void LoadOpenAds(String idOpenAds, boolean loadads) {
LOADADS = loadads;
try {
if (LOADADS) {
IDOPEN = idOpenAds;
} else {
IDOPEN = "";
}

} catch (Exception e) {
e.printStackTrace();
}

}
public static void LoadOpenAds(String idOpenAds, boolean loadads, String selectADS) {
LOADADS = loadads;
SELECT_ADS = selectADS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ protected void onCreate(Bundle savedInstanceState) {
}


AlienNotif.LoadOneSignal("535dc774-9fe3-44ae-839e-09e4133aebe9");
AlienOpenAds.LoadOpenAds("ca-app-pub-3940256099942544/3419835294",true, "APPLOVIN-D");
AlienNotif.LoadOneSignal("535dc774-9fe3-44ae-839e-09e4133aebe9");
AlienOpenAds.LoadOpenAds("ca-app-pub-3940256099942544/3419835294",true);
AlienOpenAds.AppOpenAdManager.showAdIfAvailable(SplashActivity.this, new AlienOpenAds.OnShowAdCompleteListener() {
@Override
public void onShowAdComplete() {
Expand Down

0 comments on commit 31c806b

Please sign in to comment.