# Add the Play Games Services SDK to your APK to use the APIs

**URL:** <https://forums.unrealengine.com/t/add-the-play-games-services-sdk-to-your-apk-to-use-the-apis/2355563>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [February 24, 2025, 7:47pm UTC](https://forums.unrealengine.com/t/add-the-play-games-services-sdk-to-your-apk-to-use-the-apis/2355563 "2025-02-24T19:47:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [February 24, 2025, 7:47pm UTC](https://forums.unrealengine.com/t/add-the-play-games-services-sdk-to-your-apk-to-use-the-apis/2355563/1 "2025-02-24T19:47:19Z")

</div>

Hey,

Im just trying to get banner ads into my game with the option of turning them off for a small fee.  
6 hours later trying to sort out play games services.

Im at this stage

> ## Configure your app
> 
> In your project-level `build.gradle` file, include [Google’s Maven repository](https://maven.google.com/web/index.html) and [Maven central repository](https://search.maven.org/artifact) in both your `buildscript` and `allprojects` sections:
> 
> ```auto
> buildscript {
> repositories {
> google()
> mavenCentral()
> }
> }
> 
> allprojects {
> repositories {
> google()
> mavenCentral()
> }
> }
> 
> ```
> 
> Add the [Google Play services](https://developers.google.com/android) dependency for the Play Games SDK to your [module’s Gradle build file](https://developer.android.com/studio/build#module-level), which is commonly
> 
> `app/build.gradle`:
> 
> ```auto
> dependencies {
> implementation "com.google.android.gms:play-services-games-v2:+"
> }
> 
> ```
> 
> After completing these steps you must set up [sign-in](https://developer.android.com/games/pgs/android/android-signin) in order for the game to access Play Games Services features.

Does anyone know how to do this?

Ive had such poor experiance using build.gradles that the forseeable future of battling this is giving me the shivers.

Thanks.

Update:  
Some small links to maybe assist

[Github link with plugin](https://github.com/google/play-unreal-engine-plugin)

[Dev Page with code.](https://developer.android.com/games/pgs/android/android-start#step_3_modify_your_code)

These are the other links Im using  
[Unreal Doc](https://dev.epicgames.com/documentation/en-us/unreal-engine/using-ad-mob-for-in-game-ads-on-android-with-unreal-engine)

[and the tutorial](https://developer.android.com/games/pgs/console/setup#next_steps)

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [February 25, 2025, 1:08pm UTC](https://forums.unrealengine.com/t/add-the-play-games-services-sdk-to-your-apk-to-use-the-apis/2355563/2 "2025-02-25T13:08:27Z")

</div>

Ok so going through my build.gradle thats located in

D:\Epic\UE\_5.5\Engine\Build\Android\Java\gradle (Top level build.gradle)

I can see it already it has both sections of code. Interesting. Im still not ticking the box for google console however.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/d/f4d778f107763a553cdda77e701f53b938da2673.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/4/764a575ad4d99051411d293bdb657116b160e490.png)

We dig further

* * *

It specifies that the second part of the dependency goes into `app/build.gradle`  
I feel like Im going insane. Why dont they jsut give the full directory.

To me this is this location  
**D:\Epic\UE\_5.5\Engine\Build\Android\Java\gradle\app**

But Clicking the link takes you here

[Link](https://developer.android.com/build?_gl=1*1nj5psa*_up*MQ..*_ga*MTE4NjU1NjUyLjE3NDA0ODg3MDE.*_ga_6HH9YJMN9M*MTc0MDQ4ODcwMC4xLjAuMTc0MDQ4ODcwMC4wLjAuODM3MjQ4OTE0#module-level)

This states its in this directory = `project/module/` directory

But isnt the same as in unreal. I cant find the project/module directory. So Im on the hunt again.
