Admob not working - warnings in LogCat

Hi,

so i’ve been trying desperately to get Admob to work with my game. All the required Ids are set at their proper places (Admob id in project settings, Games App Id too). In my main menu game mode, i have a Show Ad Banner node in the Event Construct flow, that gets called after a delay of 2 secs.

When i run the game on my device, no ads show up - ever. In logcat i’m seeing these warnings:

D/UE4     (15275): [2014.11.25-10.17.52:476][  0]LogModuleManager:Warning: ModuleManager: Module 'AndroidAdvertising' not found - its StaticallyLinkedModuleInitializers function is null.
D/UE4     (15275): [2014.11.25-10.17.52:476][  0]LogAdvertising:Warning: Failed to find Advertising provider named AndroidAdvertising.

I’m using the engine that is installed with the launcher, nothing self-built.

My DefaultEngine.ini has these lines:

[OnlineSubsystem]
DefaultPlatformService=GooglePlay

My Build.cs file has the line

PrivateDependencyModuleNames.Add("OnlineSubsystemGooglePlay");

uncommented.

What am i missing?

Those warnings appear more or less exactly when i would expect the execution of the “Show Ad Banner” node.

The solution to this issue, which i don’t see described anywhere, goes as follows:

In the Build.cs file - where one would also add/uncomment the line for the OnlineSubsystem module (for android “OnlineSubsystemGooglePlay”) - another line seems to be required:

PrivateDependencyModuleNames.Add("AndroidAdvertising");

Adding this line suddenly made all ads work like expected.

1 Like

Thanks a lot for posting this and the solution. I had the exact same problem.