I decided to put together a proper library project for showing ads using the webview component released in Defold 1.2.84. It should be fairly straight forward to integrate this in your own mobile project and show ads with just a few simple steps. You can check out the project and read more about how to integrate it here:
There’s also an example project showing the integration here:
I have updated DefAds to version 0.4. The new version brings with it a change in the setup where DefAds will no longer set itself up as IAC listener since that might interfere with if the app is already using the IAC module for something else. If you are using DefAds then please follow the updated steps in the readme (step #5 is new, the rest is unchanged).
DefAds has been updated to version 0.5. This release includes support for Giftgaming ads. I have also done additional testing on iOS to fix a couple of issues.
I remember having some issues with Adsense, but I can’t recall the details. If you are testing on Android then make sure to build a non-release build. Then take a look at the log:
adb logcat -s chromium
This should show if the webview runs into any Javascript errors or anything like that or if the Adsense SDK gives you any hints.
Really? That’s a shame. I’ll see what I can do to improve it.
I can reveal that Mathias has started working on an AdMob extension based on out new extension system. Things seem to be progressing well and I hope that we can share a teaser here on the forum soon. I can’t wait until we can get the extension system into the hands of you guys and see what you can make with it! I’m really impressed by what I’ve seen of the system so far!
I’ve added support to do a prefetch and get a callback when there is an ad available. I also added the GiftGaming ad tracking parameters to increase CPM. To prefetch an ad do the following:
msg.post("url_to_giftgaming_go", "prefetch", { apikey = "12345abcde", test = false })
This will post either a prefetch_ok or prefetch_failed message back to the sender. If prefetch_ok is received there’s a 30 second window to post a show message to show the prefetched ad.
I’m new to mobile advertising. What kind of ads do these networks provide? Are they safe for an app targeted to children?
Few years ago Leadbolt gained a bad reputation for very intrusive ads:
I’d like to hear someone with first hand experience.
I’m not sure if anyone is actually using any of the ad networks included in DefAds. Bear in mind that DefAds uses the webview API and can thus only show fullscreen ads. We recently released support for native extensions and this has opened up the box so to speak when it comes to including many more Ad SDKs and also supporting the full range of features from those networks. We (the Defold team) will release an AdMob integration sample soon and there is an ongoing implementation of Appodeal ads, made by the Appodeal guys themselves. Read more about this here and give it a try yourself!
I can’t try the Appodeal extension because it’s only for iOS. Anyway I’m a bit confused about lack of Defold proper ads support, being Defold a King product I thought it was targeted to making commercial games, but until now it seems ads support was not a priority. I hope this will change really soon.