My first new app is getting close to be published. It’s a simple app but I want to go through the publishing process myself.
Today I decided to implement ad engine.
Background information and useful links:
Pulling together information from various sites. This is what people say (stackoverflow etc)
Overall guidance: http://developer.android.com/training/monetization/ads-and-ux.html
Google’s steps for publishing: http://developer.android.com/distribute/googleplay/publish/preparing.html
iAds/AdMob solution, AdWhirl, and attempted to use Burstly,
MoPub – people on stackoverflow saying good things that it’s easy (?) to integrate multiple networks.
What is network?
use different ad providers through mopub. In my experience Millenial Media gets much better eCPMs.
- No need to include other SDKs.
- Greater control. e.g. Frequency capping
Other ad engine names thrown around:
AdWhirl was fine, but they didn’t support all the networks I wanted to use and their custom network option was lacking, also adding the individual SDK for each ad network was cumbersome and bloated my app, and if I want to add a new network, another upgrade is involved.
AdMob – at first people were praising but it was at least two years ago.
Implementation wiki for MoPub ttps://github.com/mopub/mopub-android-sdk/wiki
Let’s give MoPub a swirl.
1. I decided to download a full sdk not basic.
Followed instruction and integrated into my Android project. This took 10 minutes. Idiot proof instructions.
Banner integration https://github.com/mopub/mopub-android-sdk/wiki/Banner-Integration
Interstitial integration https://github.com/mopub/mopub-android-sdk/wiki/Interstitial-Integration
BTW I don’t need now but they have Mobile Web Integration https://github.com/mopub/mopub-client/wiki/IntegrationHowToMobileWeb
Source (?) link https://github.com/mopub/mopub-android-sdk
Some kind of code and instructions mix at http://developer.inmobi.com/wiki/index.php?title=MoPub_InMobi_Android now sure if it’s any good for me.
Ah I see. Interstitial ads take a whole screen between screens. They are more lucrative however I’d think way more annoying.
Let’s do Banner Integration and ask customer at the Alpha test about interstitial.
Started to follow instructions, it really is trivial. Yey!
Problem: com.mopub not found. After 10 min found mopub-sdk.jar in the mopub project. Instructions didn’t say about adding it. I am adding this jar under my libs folder. Now compiles.
Major problem .. can;t build, Can’t generate R. Can;t generate BuildConfig. This indicates problem in some XML file but there is no indication in either of files. Stuck. TTL.
Three hours later back to functional app. Restarted Eclipse and using a chance rebooted computer (was not necessary but dues). After restarting Eclipse I saw real errors in the project: missing png files.
Can see my app and ads!
Learning point took me 30 min at least: move all findItemById into a method where you are setting up listeners, not in OnClick.
Checked in all to e-Git.
Other useful link found today: Nodejs tutorial http://nodetuts.com/