Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authorize Android Game - Where is the app-id?

I am trying to authorize my android game for google play services to be able to use leaderboards etc.

Now when clicking on authorize app, Nothing would happen. On the information page Google tells me to do following things:

enter image description here

I shall specify my application id, but where do i get this "app_id" from? And achievement id? leaderdboard id?

How should this ids.xml look like?

Any ideas?

like image 561
user2410644 Avatar asked Mar 04 '14 13:03

user2410644


People also ask

Where is my app ID app?

Android. We use the Application ID (package name) to identify your app inside our system. You can find this in the app's Play Store URL after 'id'. For example, in https://play.google.com/store/apps/details?id=com.company.appname the identifier would be com.

What is a mobile app ID?

Displays the package name of the app that an ad is advertising in a "Mobile app installs" campaign. Example for Android apps: com.example.android.myapp.

How can I get Google Play Services ID?

For the redesigned google play console (2020), click the Play Games Services, then click setup and management, then click Configuration. You will see information about your app, one field which is Authorization, and there you will find the application ID.


1 Answers

On the bottom of your 'leaderboards' or 'achievements' page is a handy link labeled 'Get resources'. This will open a page looking something like this:

<?xml version="1.0" encoding="utf-8"?>
 <!--
Google Play game services IDs.
Save this file as res/values/games-ids.xml in your project.
-->
<resources>
  <string name="app_id">00000000000</string>
  <string name="achievement_xxx">0000000000</string>
  <string name="achievement_yyy">0000000000</string>
 <string name="leaderboard_xxx">000000000000</string>
</resources>

Note that you are directed to put this in a file with an illegal name, 'games-ids.xml'. Eclipse won't let you use a dash in a file name, so either put it in your 'strings.xml' file or use 'ids.xml' for the file name as you planned to, I found both to work.

like image 97
Androidcoder Avatar answered Oct 13 '22 23:10

Androidcoder