Build.cs & Target.cs adding android advertising

Hi. I been looking trough the integrating instruction with Ad Mob & UE4 and I came across something I didn’t see before.

It says:

If you project is a >>>C++<< project you will also need to add the appropriate modules to your >>Target.cs file<<

Well all my projects are in C++ but I only added required modules to ((Build.cs file)) and AD’s do show at least on development phone.

Do you still need to put advertising modules in to Target.cs file if your running C++ and what happens if you don’t. Will there be some complication with Ad advertisement.

REQUIRED MODULES:

    ModuleNames.Add("OnlineSubsystemGooglePlay");
    ModuleNames.Add("OnlineSubsystem");
    ModuleNames.Add("AndroidAdvertising");

Thank’s.

Hi! For anyone interested, I was getting compile errors with the ModuleNames.Add-commands from the documentation. I learned it is supposed to be ExtraModuleNames.Add. And it works for me now. I never added anything to Build.cs

Well I’m getting no issues with compiling with ModuleNames.Add. All though I will try your suggestion. Which does seem to be the proper way? That’s because I notice something else that by default starts with ExtraModuleNames inside target.cs file. However, I’m not sure why your way works fine without adding nothing to build.cs. Maybe because of your running Blueprints? Target.cs should be for C+ projects. Also, I’m unclear on where the APP-ID goes. Since AD MOB is requesting to add it into your project. SDK. Any suggestions on that. Thanks!