Unable to get AdMob Ads to appear

Hello, I am using Unreal Engine 4.5 SHA ad6f983 and cannot seem to get ads showing on Android (I am using a Nexus 5).

In my “Project Settings” I have set the “Ad Mob Ad Unit ID” to the tester ID “ca-app-pub-3940256099942544/6300978111”.

I have also tried the same tester ID on the “Tappy Bird” example project and the tester ads appear. So I do not think the ID is an issue.

I have called “Show Ad Banner” on event begin play, as well as binding it to a UMG button, both do not seem to work.

Is there any other steps I need to perform to get the ads to appear?

I created some projects with the Git Source Code as well as the Engine downloaded by the Unreal Engine Launcher. After building, it seems the code projects do not work with ads. However a blueprint only project seems to work.

Git Source  4.5 SHA ad6f983 | Code Project    | No ads
UE Launcher 4.5.1           | Code Project    | No Ads
UE Launcher 4.5.1           | BP Only Project | Ads appear

Am I missing a step in the code projects? Or is this maybe a bug?

Howdy,

I narrowed my problem down to the AdMob ad type I was using.

When you reach step 2, make sure to select Banner and not interstitial.

Hope that helps!

Hi, have you found a way of getting adds on code projects? If you have a solution it would be greatly appreciated if you could share it. Thanks

I have done so but the ads wont appear, can you tell me what you did with umg button and the show ad banner one

See this video:

See this video ADMOB Unreal Engine 4:

Had the same problem with C++ project (with code, not only with BPs)
The solution that works for me is:

  1. Open MyProject\Source\MyProject\MyProject.Build.cs

  2. Add the following lines:

    if (Target.Platform == UnrealTargetPlatform.Android)
    {
    PrivateDependencyModuleNames.AddRange(new string[] { “OnlineSubsystemGooglePlay”, “AndroidAdvertising” });
    }

Hope it will help :slight_smile:

Hey how does the build tool work, will it only work after you package a game or what else do you have to do for it too know that the target platform is android. Does it only work after its been deployed on an android device and then it knows it’s android?

Hello,

We can help you. Our plugin Universal Mobile Ads for iOS & Android is exactly what you need: Universal Mobile Ads for iOS & Android - Marketplace - Unreal Engine Forums 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! :slight_smile:

Patrick,
gameDNA Ltd