c++ Interstitial Ads in Source 4.7
I tried to implement interstitials from Admob on Android, but the ad doesn't show up when I call it with a 5s delay after event begin play.
Banner ads work without problems on the same engine 4.7 source from github and the GameActivity file runs through packaging without errors.
My GameActivity.java file is attached. All my changes there are marked with //peep comment. link text
What I did:
Maybe I have to include something in some build.cs somewhere in the engine source? Or GameActivit.java has to be changed in another way?
[Admob Link] link text
We can help you. Our plugin Universal Mobile Ads for iOS & Android is exactly what you need: https://forums.unrealengine.com/unreal-engine/marketplace/65633-holiday-sale-40-universal-mobile-ads-for-ios-android It includes support for 15 ad networks (more coming soon) and Banners, Interstitials, Rewarded Videos. Plugin was released 2 years ago and was tested in many ways during this time. It's stable, receives update every 1-2 months ,and we provide premium support.
If you have any questions, feel free to ask! :)
Patrick, gameDNA Ltd
answered Dec 24 '17 at 03:57 PM
I had a look (or two :) at it again and was finally able to display interstitial ads with the gameactivity.java file attached.
It preloads an ad in the oncreate function and every time after the ad is closed. This way I don't get the delay from requesting to showing the ad. The ad itself displays everytime its called from custom blueprint node ShowIntAd.
I had some app crash on start up with error "In the JNI_OnLoad function" when I tried to add another FindMethod in AndroidJNI source files for my custom BP node. So so far I have to input the AdUnitId manually in the OnCreate function. Maybe some better solution comes up.link text
answered Apr 10 '15 at 08:37 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here