How many times do I need to cache an ad? - android

I am fairly new to using Chartboost ads, and haven't managed to find much info regarding this.
I have written a game in which an interstitial ad and 'more apps page' ad is cached immediately when the game loads and is displayed when the user receives a game over message/clicks on show more apps button.
My question is do I have to call cacheInterstitial() and cacheMoreApps() again every time to cache a new ad whenever a previously cached add is displayed to the user, or is this handled automatically after the first time I call on the api to cache an add?

if you are not using Chartboost Autocache feature then YES you will have to call cacheInterstitial() and cacheMoreApps() again every time you display a previously cached Ad or chartboost will keep on showing same ad again and again.
To use Autocaching feature read the section 'Autocaching' in Chartboost docs.

Related

Implementing AppBrain banner-ad - Am I doing it right?

I tried AppBrain banner ads on my app recently. I am not sure if the ads are showing properly. This is what I see in my app
![Ads in my app]https://imgur.com/a/Pqwnw6q
The add seems like a generic template whereas, their website shows different images for a sample of banner ads.
![Sample ads in AppBrain website]https://imgur.com/a/IkSvdUj
The documentation says adding the view alone will automatically call the requestAd() function
public void requestAd()
Request an ad to be fetched. If a listener was set on this banner, that listener will be notified of the result. This method is automatically called once the banner is added to the view layout, so calling it manually is optional.
However, I did call the requestAd() in the activity also
AppBrainBanner banner;
In the onCreate
banner = findViewById(R.id.appBrainAdView);
banner.requestAd();
I contacted AppBrain 4-5 days ago and didn't receive any response yet. Am I implementing the ads right?
this is Mathijs from AppBrain.
Yes you're doing it right. The extra requestAd() is not needed, and our banners can show a number of different designs. The 'generic' one that requires a click before the user sees the apps he can install is the most common one, so it's normal you're seeing that one a lot.

Huge difference in admob Requests and Impressions, is my code placement wrong?

I am using admob Interstitial ads in one of my app and getting a huge difference in Requests and Impressions. With 1.1 million requests I'm getting only 256K impressions. I generally load an Interstitial ad when user clicks the back button. Is my code placement wrong or what could be the possible reason behind this? I am using admob only, no mediation.
public void onBackPressed() {
super.onBackPressed();
if(interstitialAd.isLoaded()){
interstitialAd.show();
}
else{
finish();
}
}
Yep, I had the same issue at first. You said that you load the Ad when the user clicks the back button.
Always load the ad at the beginning of the activity so that when the click method gets activated, the Ad is already available.
My ad is now at 99.73 percent after I made that change.
Good luck :)
I hope you get the point
Ad requests are the number of times the app requested ads from AdMob.
Ad impressions are the number of times at least 1 pixel of the ads are shown at the app.
There are always a difference between those metrics due to many cases like slow internet connection at which user wouldn't be served or shown the ads even though the ad requests are made to AdMob. Hence you see the difference.
The request is an attempt to show an ad. Potential advertisers may buy or not this particular requests, it could be filled with an ad or not.
The impression is counted after the ad has been delivered to the user's browser.

Where to put interstitial ad and banner ad using new admob

Play Store and Admob is updated after March 2014. My applications are suspended by playstore because of ad-policy violation.
Mailed me this
Ad Walls and Interstitial Ads
Interstitial ads may only be displayed inside of the app they came with. Forcing the user to click on ads or submit personal information for advertising purposes in order to fully use an app is prohibited. A prominent and accessible target must be made available to users in any interstitial ad so they may dismiss the ad without penalty or inadvertent click-through.
for eg. My app contains two activity
1. DashboardActivity.
2. MainActivity.
BannerAd:
I have place BannerAd in both the activity in respective layout file (xml).
InterstitialAd:
I have place InterstitialAd in both the acitvity. When activity loads the InterstitialAd will be open and when you get out of activity onBackPressed() method I again load InterstitialAd.
i.e. Total 4 times it load in the whole application. This was working with legacy admob.
Please tell me where to put banner and interstitial ad if anyone updated there application with new admob.
Displaying an interstitial on Activity start and end has always been frowned upon by Admob.
What you should do is to load your interstitial on Activity start and then at a natural break point in your app (not at Activity end) display the interstitial. A good example is when a user completes a level in a game or after performing some function for the user.

Android and MoPub integration

I integrate MoPub with Android.
https://github.com/mopub/mopub-android-sdk/wiki/Banner-Integration
But the ads are not displaying, instead of that
Welcome to Mopub!
Click here to test add
You can now setup a new campaign for other adds.
How can I list ads in my app? So that it will be clicked it will be counted against my app.
Seems like your request to Mopub is being reviewed (there is probably a message in box on Marketplace tab saying so). You should wait for it to be done. However, in my case there wasn't any progress for quite a long time (about 2 weeks) until I asked for that the Mopub support. Once the request is checked you'll get ads.
When you create a new account in MoPub, Mopub automatically creates test order with that particular banner:
Welcome to Mopub!
Click here to test add
You can now setup a new campaign for other adds.
To disable this banner and add your own banners, go to https://app.mopub.com/advertise/orders/ , pause "MoPub Demo Order" and add your own orders and line items.
The system works right after the account was created, you don't need to undergo review to disable test banners or add your own banners.
Be sure to test with test ads.
This link of the MoPub documentation will show you how to use test ad id's to get an ad on every request while developing.
To make things easy for you, this is a often used solution making use of the ternary operator. This says IF development THEN use test ad id ELSE use your production ad id.
moPubView = (MoPubView) findViewById(R.id.adview);
moPubView.setAdUnitId(BuildConfig.DEBUG ? "b195f8dd8ded45fe847ad89ed1d016da" : "YOUR_PRODUCTION_BANNER_ID");

Admob banner not showing but working in logcat?

I wrote a test app to implement the admob banner using xml in the layout file. The first time I ran the application, it worked and I could see the banner. I added a second activity and I was able to switch between activities and I still can see the banner.
The following day I tried running the app again and the banner does not show. I checked the catlog and it tells me the a request for ad was succesfull but no ad was returned because my inventory is empty.
I wanted to know if this would be something normal when you are working on eclipse. Or if the banner would still show even if there are no ads in the inventory.
Thanks,
Richard.
If you get this error your code is probably correct (you say it worked before and you didn't change anything). The issue is that AdMob does not always have an ad to return to every request. You can enable the Use keyword-targeted ads and Google certified ad networks (GCANs) to improve fill rate. in AdMob app settings to increase the fill rate.
If you want to be sure your code works as intended you can set the testmode to true, if you get back an ad you can be sure your code is correct.

Categories

Resources