Where to put "application ID" HELP ME

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Skyline

Godot 3.1

image app id:

how do i use app id

I did the same in the tutorial: GitHub - Shin-NiL/godot-admob: Module Admob for Godot engine

but did not explain “application id”
Please, I need you, help me.

:bust_in_silhouette: Reply From: wombatstampede

Ok, how about looking into the example?

var adBannerId = "ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX" # [Replace with your Ad Unit ID and delete this message.]
var adInterstitialId = "ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX" # [Replace with your Ad Unit ID and delete this message.]
var adRewardedId = "ca-app-pub-3940256099942544/5224354917" # [There is no testing option for rewarded videos, so you can use this id for testing]

thank you
but I know how to use [adBannerId] and [adInterstitialId]
but I do not know how to use [application id]
I searched [androidmanifest.xml] I could not

Skyline | 2019-04-08 12:19

Ok, if I look into:
https://github.com/Shin-NiL/godot-admob/blob/master/admob/config.py

Then it seems that this module currently uses admob SDK version 16.0.0

Wich, according to these release notes:
Release Notes  |  Android  |  Google for Developers

…didn’t require the APP ID (opposed to 17.0.0).

If you want to actually use admon SDK 17.0.0 (or newer) then you can probably edit said config.py as well as add your APP ID here:
https://github.com/Shin-NiL/godot-admob/blob/master/admob/android/AndroidManifestChunk.xml

As described by Google here:
เริ่มต้นใช้งาน  |  Android  |  Google for Developers

BUT: I have no idea if there were any other changes from SDK 16.0.0 to 17.0.0 which maybe aren’t included in this Godot module.

wombatstampede | 2019-04-08 13:11

I’ll try
I think that’s it, thank you.

Skyline | 2019-04-08 14:40

:bust_in_silhouette: Reply From: oritZeFitret

inside res://android/build there is a file called AndroidManifest.xml. inside this file, You’ll find the following somewhere

<!-- Custom application XML added by add-ons. -->
<!--CHUNK_APPLICATION_BEGIN-->
	<!-- 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-3940256099942544~3347511713"/>
<!--CHUNK_APPLICATION_END-->

Change the value here.