Question by
IMindie · Aug 10, 2017 at 02:55 AM ·
androidjavaunity adsandroid-manifest
How to integrate Unity Ads to my game?
I made a game and I'm using Revmob already, but I would like use Unity Ads. I already modified my AndroidManifest following the instructions of the integration guide in Unity, but is not showing the ads.
In AndroidManifest I modified following what Unity say;
I added a file that became with SDK (classes.jar);
I added the lines that became with the SDK to ProGuard.
I tried to write
<meta-data android:vale=''game ID number''/>
but doesn't worked. In integration guide of Unity have a sdk metadata with this code:
if(UnityAds.isReady()) {
PlayerMetaData playerMetaData = new PlayerMetaData(context);
playerMetaData.setServerId("example");
playerMetaData.commit();
UnityAds.show(activity);
}
but it doesn't work too. I Think that isn't showing because I don't puted the game ID. How can I put the game ID? I'm using Eclipse Luna
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612131342im_/https://answers.unity.com/themes/thub/images/avi.jpg)