Implementing Admob on Unreal Engine 5.1.1

Hello Friends!

Iam working on my First Game for Android, I finished it but I have some bugs or problems with implementing Admob, It dosen’t work any more!
Iam using Unreal Engine Blueprints not using any Plugin, and my Unreal Version is 5.1.1

First I followed Unreal Engine Documentation:

Enable Google Play Support
Add Games App ID and Google Play License Key From Google Play Console
Add Ad Mob -Test- Unit IDs from Google Developers Website
and add com.android.vending.BILLING to the Extra Permissions
also add this to my Target.cs file:

    if (Target.Platform == UnrealTargetPlatform.Android)
    {
        ExtraModuleNames.Add("OnlineSubsystemGooglePlay");
        ExtraModuleNames.Add("OnlineSubsystem");
        ExtraModuleNames.Add("AndroidAdvertising");
    }

But no thing work Neither the show ad banner nor load Interstitial AD and show worked, and the Game crashed when the time for Ad to be shown on my Android device
This is some crash log from logcat:

  2696 11158 E crkg    : Phenotype API error. Event: # fers@aa4af5e9, EventCode: GET_EXP [CONTEXT service_id=51 ]
  2696 11158 E crkg    : crin: 29505: No config packages for log source, or config package not registered
  2696 11158 E crkg    : 	at crlc.c(:com.google.android.gms@240812038@24.08.12 (190400-608507424):79)
  2696 11158 E crkg    : 	at crla.h(:com.google.android.gms@240812038@24.08.12 (190400-608507424):3)
  2696 11158 E crkg    : 	at crkg.g(:com.google.android.gms@240812038@24.08.12 (190400-608507424):18)
  2696 11158 E crkg    : 	at crkg.f(:com.google.android.gms@240812038@24.08.12 (190400-608507424):11)
  2696 11158 E crkg    : 	at bjyd.fO(:com.google.android.gms@240812038@24.08.12 (190400-608507424):1)
  2696 11158 E crkg    : 	at bjym.run(:com.google.android.gms@240812038@24.08.12 (190400-608507424):100)
  2696 11158 E crkg    : 	at edos.run(:com.google.android.gms@240812038@24.08.12 (190400-608507424):21)
  2696 11158 E crkg    : 	at alab.c(:com.google.android.gms@240812038@24.08.12 (190400-608507424):50)
  2696 11158 E crkg    : 	at alab.run(:com.google.android.gms@240812038@24.08.12 (190400-608507424):76)
  2696 11158 E crkg    : 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  2696 11158 E crkg    : 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
  2696 11158 E crkg    : 	at alfp.run(:com.google.android.gms@240812038@24.08.12 (190400-608507424):8)
  2696 11158 E crkg    : 	at java.lang.Thread.run(Thread.java:1012)
  2696 11158 W AsyncOperation: operation=GetExperimentTokensOperationCall, opStatusCode=29505 [CONTEXT service_id=51 ]
  2696 11158 W AsyncOperation: OperationException[Status{statusCode=No config packages for log source, or config package not registered, resolution=null}]
  2696 11158 W AsyncOperation: 	at crkg.g(:com.google.android.gms@240812038@24.08.12 (190400-608507424):48)
  2696 11158 W AsyncOperation: 	at crkg.f(:com.google.android.gms@240812038@24.08.12 (190400-608507424):11)
  2696 11158 W AsyncOperation: 	at bjyd.fO(:com.google.android.gms@240812038@24.08.12 (190400-608507424):1)
  2696 11158 W AsyncOperation: 	at bjym.run(:com.google.android.gms@240812038@24.08.12 (190400-608507424):100)
  2696 11158 W AsyncOperation: 	at edos.run(:com.google.android.gms@240812038@24.08.12 (190400-608507424):21)
  2696 11158 W AsyncOperation: 	at alab.c(:com.google.android.gms@240812038@24.08.12 (190400-608507424):50)
  2696 11158 W AsyncOperation: 	at alab.run(:com.google.android.gms@240812038@24.08.12 (190400-608507424):76)
  2696 11158 W AsyncOperation: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  2696 11158 W AsyncOperation: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
  2696 11158 W AsyncOperation: 	at alfp.run(:com.google.android.gms@240812038@24.08.12 (190400-608507424):8)
  2696 11158 W AsyncOperation: 	at java.lang.Thread.run(Thread.java:1012)

I noticed that when package it some google classes missing, I tried to solve this but I couldn’t, How Can I solve it?:

And when I Upload My Game To The Testers for Closed Test on Google Play Console there is an Error appeared on Experimental report, How Can I Solve it?

**

Also I Have many other Questions:

**

  1. Must I implement Firebase or any API on Google Cloud For Admob?

  2. where can I find module directory to edit Build.gradle with this code and Must I edit it to work with Admob ?

dependencies {
  implementation 'com.google.android.gms:play-services-ads:23.0.0'
}
  1. Where should I add AdMob app ID on My Project like this?
<manifest>  
<application>   
<!-- Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 -->    <meta-data        android:name="com.google.android.gms.ads.APPLICATION_ID"        android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>  
</application></manifest>
  1. Should I add any other code in my _____.build.cs file?

Sorry for this long post and so grateful for your help!

1 Like

Hello! I asked a lot of the same questions youre asking on another thread and have not recieved an answer either. Did you ever get this to work?