itznotabug / houseads Goto Github PK
View Code? Open in Web Editor NEWA simple Android library to cross promote your apps, websites!
License: Apache License 2.0
A simple Android library to cross promote your apps, websites!
License: Apache License 2.0
please add random images interstitials.
Hello. Thank you for that library. I have a problem with interstitial. It doesn't show and I don't get any messages in logcat. My json:
{
"apps": [
{
"app_title": "App Name (Dialog)",
"app_desc": "Your App's description",
"app_icon": "https://lh3.googleusercontent.com/LNU3wSeIqCtYvvbcklHr4mAQbG4EAVZ_kamQZ_6ECmyYqudAX3FoZy42bIGnSj3pFE5n=s360-rw",
"app_header_image": "https://lh3.googleusercontent.com/jGNuhkp16zXN5njRuUcEEqeoEtxzyoo2V20r6-gPxRBd01kPDPpTqOEPy1gs33uef5w=w2880-h1438-rw",
"app_uri": "https://play.google.com/store/apps/details?id=fm.radio.sanity.radiofm",
"app_rating": "4.5",
"app_cta_text": "Install",
"app_price": "Free",
"app_adType": "dialog"
},
{
"app_title": "App Name (Dialog)",
"app_desc": "Your App's description",
"app_icon": "https://lh3.googleusercontent.com/LNU3wSeIqCtYvvbcklHr4mAQbG4EAVZ_kamQZ_6ECmyYqudAX3FoZy42bIGnSj3pFE5n=s360-rw",
"app_header_image": "https://lh3.googleusercontent.com/jGNuhkp16zXN5njRuUcEEqeoEtxzyoo2V20r6-gPxRBd01kPDPpTqOEPy1gs33uef5w=w2880-h1438-rw",
"app_uri": "https://play.google.com/store/apps/details?id=fm.radio.sanity.radiofm",
"app_rating": "4.5",
"app_cta_text": "Install",
"app_price": "Free",
"app_adType": "interstitial"
}
]
}
final HouseAdsInterstitial interstitial = new HouseAdsInterstitial(MainActivity.this);
interstitial.setUrl("myURL"); //URL to Json File
interstitial.loadAd();
interstitial.setAdListener(new AdListener() {
@Override
public void onAdLoadFailed() {
Log.w("xsa","onAdLoadFailed");
}
@Override
public void onAdLoaded() {
interstitial.show();
Log.w("xsa","onAdLoaded");
}
@Override
public void onAdClosed() {
}
@Override
public void onAdShown() {
}
@Override
public void onApplicationLeft() {
Log.w("xsa","onAdLoadFailed");
}
});
java.lang.IllegalArgumentException: Target must not be null.
at com.squareup.picasso.RequestCreator.into(RequestCreator.java:682)
at com.lazygeniouz.house.ads.HouseAdsNative.setUp(HouseAdsNative.java:174)
at com.lazygeniouz.house.ads.HouseAdsNative.lambda$loadAds$0$HouseAdsNative(HouseAdsNative.java:91)
at com.lazygeniouz.house.ads.-$$Lambda$HouseAdsNative$O9qITdYuNoBmCIlXYjxA9yjAJUE.onPostExecute(lambda)
at com.lazygeniouz.house.ads.helper.JsonPullerTask.onPostExecute(JsonPullerTask.java:28)
at com.lazygeniouz.house.ads.helper.JsonPullerTask.onPostExecute(JsonPullerTask.java:12)
at android.os.AsyncTask.finish(AsyncTask.java:667)
at android.os.AsyncTask.-wrap1(AsyncTask.java)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6198)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
java.lang.IllegalStateException:
at android.app.Activity.onCreate (Activity.java:1038)
at com.lazygeniouz.ads.HouseAds.HouseAdsInterstitial$InterstitialActivityPotrait.onCreate (HouseAdsInterstitial.java:205)
at android.app.Activity.performCreate (Activity.java:7174)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1220)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2910)
please unity version
ExoPlayer
)CountDown
for the reward time limit at the top of Ad
, maybe a Splash
Image at the endbackpress
& show a dialog stating to complete the Ad, if not alreadyThis will be added in a different module, as importing this into the existing base just means adding ExoPlayer
& bloating the library, if someone doesn't use Rewarded Ads
.
This is a lot of work, so this will take some time in setting up a dev branch with this.
how to calculate Impressions or ad loaded status sent to server and auto-refresh
Hello. Thank you for this library ,dialog doesn't show and I don't get any error messages in logcat. i use the same code in exemple :
HouseAdsDialog houseAds = new HouseAdsDialog(RingtonesActivity.this, "https://api.myjson.com/bins/15dehw"); . houseAds.hideIfAppInstalled(false); houseAds.setCardCorners(80); houseAds.setCtaCorner(80); houseAds.setForceLoadFresh(true); houseAds.showHeaderIfAvailable(true); houseAds.loadAds();
my json is :
{ "apps": [ { "app_title": "Kawaii Cats Wallpapers (Dialog)", "app_desc": "Kawaii Cats Wallpapers - Cute wallpapers", "app_icon": "https://funnyjokes.me/kawai/icon_play.png", "app_header_image": "https://funnyjokes.me/kawai/cover.png", "app_uri": "https://play.google.com/store/apps/details?id=com.CuteWallpaper.KawaiiCat", "app_rating": "5", "app_cta_text": "Install", "app_price": "Free", "app_adType": "dialog" }, { "app_interstitial_url": "https://funnyjokes.me/kawai/icon_play.png", "app_uri": "https://play.google.com/store/apps/details?id=com.CuteWallpaper.KawaiiCat", "app_adType": "interstitial" }, { "app_title": "Kawaii Cats Wallpapers (Native Ad)", "app_desc": "Kawaii Cats Wallpapers - Cute wallpapers", "app_icon": "https://funnyjokes.me/kawai/icon_play.png", "app_header_image": "https://funnyjokes.me/kawai/cover.png", "app_uri": "https://play.google.com/store/apps/details?id=com.CuteWallpaper.KawaiiCat", "app_rating": "4.5", "app_cta_text": "Install", "app_price": "Free", "app_adType": "native" } ] }
How I can this library in maven project?
Can you add another task in install.gradle that create maven jar.
Hi friend you can help we, of about class dont found im project BackPressListener, please you can update this file again? Your LIB iis amazing bro, thanks for share.
I have installed this app and it always crashing on Nexus 5 and ads are not displaying.
your idea is good but why not banner ads. if possible then also do that. any way cheers for your efforts!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.