system
April 6, 2019, 2:02pm
1
Attention
Topic was automatically imported from the old Question2Answer platform.
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.
system
April 7, 2019, 2:03pm
2
Reply From:
wombatstampede
Ok, how about looking into the example?
extends Node2D
var admob = null
var isReal = false
var isTop = true
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]
func _ready():
if(Engine.has_singleton("AdMob")):
admob = Engine.get_singleton("AdMob")
admob.init(isReal, get_instance_id())
loadBanner()
loadInterstitial()
loadRewardedVideo()
get_tree().connect("screen_resized", self, "onResize")
# Loaders
This file has been truncated. show original
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
I’ll try
I think that’s it, thank you.
Skyline | 2019-04-08 14:40
system
September 19, 2020, 4:20pm
3
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.