# Can get Ads working for Android

**URL:** <https://forums.unrealengine.com/t/can-get-ads-working-for-android/253908>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [October 3, 2021, 6:26pm UTC](https://forums.unrealengine.com/t/can-get-ads-working-for-android/253908 "2021-10-03T18:26:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Conflig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Conflig](https://forums.unrealengine.com/u/Conflig)\
**Post date:** [October 3, 2021, 6:26pm UTC](https://forums.unrealengine.com/t/can-get-ads-working-for-android/253908/1 "2021-10-03T18:26:41Z")

</div>

Hi. for the last week I’m trying to set up ads for my android game but without luck. So I have a few questions.

1. I’ve followed many guids online I’ve published closed testing in play console to Get app ID. I’ve created OAuth 2 and linked my ap. I also have Admob created and approved. But first I was using the test Ads IDs but they just doesnt show up.

Does the app need to be fully active on play store before it will work? The published app is stin in “review” so could that be the issue?.

Im testing it on real phone. btw

1. Or maybe the issue is with app signing via Keystore. I’ve created the keystore and put it in the build folder in project setting its all setup but even with “for distribudion” and on shipping build in log I still see "app wil be sign with debug.keystore.

in play console I’ve chosed the automatic Play app signing.

Im still super confused about this so I will appreciate any help. Thank you!

---

<div class="post-metadata">

**Author:** ![Conflig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Conflig](https://forums.unrealengine.com/u/Conflig)\
**Post date:** [October 5, 2021, 7:23pm UTC](https://forums.unrealengine.com/t/can-get-ads-working-for-android/253908/2 "2021-10-05T19:23:38Z")

</div>

I’ve managed to fix the issue thanks to this thred

> **[How to Fix ads and google play leaderboards ETC](https://forums.unrealengine.com/questions/473592/view.html)**
>
> READ THE UPDATE INSTEAD So i’ve been trying to get ads in ue4 for a long time and it has not been working. this video does not help me at all. - YouTube Im not trying to get interstital ads im trying to get banner ads to work and they’re not...

basicaly you need to add this code into your build.cs file

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

---

<div class="post-metadata">

**Author:** ![harshGoda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/harshgoda/32/484177_2.png) [@harshGoda](https://forums.unrealengine.com/u/harshGoda)\
**Post date:** [October 8, 2021, 7:24am UTC](https://forums.unrealengine.com/t/can-get-ads-working-for-android/253908/3 "2021-10-08T07:24:12Z")

</div>

![toshow](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/e/7e57561c954c3d65c7b62e25a3b990bcfe49a71b.png)  
t6ry this post now

---

<div class="post-metadata">

**Author:** ![Sky001](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sky001/32/1092299_2.png) [@Sky001](https://forums.unrealengine.com/u/Sky001)\
**Post date:** [October 22, 2021, 8:50am UTC](https://forums.unrealengine.com/t/can-get-ads-working-for-android/253908/4 "2021-10-22T08:50:11Z")

</div>

For all other users who have maybe these questions

- AdMob dont need a playstore connection / a playstore uploaded app
- Yes like the thread owner mentioned, you have to add something in VS to get it working

_Also be aware when using Google AdMob, you can get very very easily a ban on it for abusing it OR when users abusing it which you can’t control without record a lot of user data … also google dont inform you why you was banned - if you get banned, your other google accounts also will have problems and bans. So spend attention how you add these ads, how often you can click on it, NEVER EVER click on your own ads or even try to see if real ads are displayed and yes… be aware of it, you got money, but its risky_

- 

**The Video is in german but its easy to follow - How to add the CPP “Code”** _18:16_ :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/7/ae73f2153822c1e3d91fdacd790582fd947328f9.jpeg "ADMob einstellen für Anfänger (Mobile) & Android Fixes 2021 ► Unreal Engine Tutorial (German)") ](https://www.youtube.com/watch?v=rKU26atWRvA)

---

<div class="post-metadata">

**Author:** ![harshGoda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/harshgoda/32/484177_2.png) [@harshGoda](https://forums.unrealengine.com/u/harshGoda)\
**Post date:** [October 28, 2021, 11:12am UTC](https://forums.unrealengine.com/t/can-get-ads-working-for-android/253908/5 "2021-10-28T11:12:13Z")

</div>

UE4 adds sucks

---

<div class="post-metadata">

**Author:** ![harshGoda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/harshgoda/32/484177_2.png) [@harshGoda](https://forums.unrealengine.com/u/harshGoda)\
**Post date:** [November 25, 2021, 12:03pm UTC](https://forums.unrealengine.com/t/can-get-ads-working-for-android/253908/6 "2021-11-25T12:03:55Z")

</div>

try Facebook adds in ue4
