Guide on implementing ads is very vague, what is meant to put in?
I've been following this tutorial on Adding ads to an application. The part that says:
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="[ADMOB_APP_ID]"/>
is incredible frustrating.
I understand that ADMOB_APP_ID
is this ca-app-pub-numbers~numbers
but do you keep the square brackets in or not? Also what is APPLICATION_ID
? I've tried using the admob app id, the applicationID
under defaultconfig
, even leaving it as APPLICATIONID
but nothing is working
Here's what my current xml file attempt looks like:
<meta-data
android:name="com.google.android.gms.ads.Application_ID"
android:value="ca-app-pub-numbers~numbers"/>
android firebase admob
add a comment |
I've been following this tutorial on Adding ads to an application. The part that says:
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="[ADMOB_APP_ID]"/>
is incredible frustrating.
I understand that ADMOB_APP_ID
is this ca-app-pub-numbers~numbers
but do you keep the square brackets in or not? Also what is APPLICATION_ID
? I've tried using the admob app id, the applicationID
under defaultconfig
, even leaving it as APPLICATIONID
but nothing is working
Here's what my current xml file attempt looks like:
<meta-data
android:name="com.google.android.gms.ads.Application_ID"
android:value="ca-app-pub-numbers~numbers"/>
android firebase admob
Follow this answer View this answer for clear undertanding admob ads implementation
– Tahmid Bin Rashid
Nov 23 '18 at 9:06
add a comment |
I've been following this tutorial on Adding ads to an application. The part that says:
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="[ADMOB_APP_ID]"/>
is incredible frustrating.
I understand that ADMOB_APP_ID
is this ca-app-pub-numbers~numbers
but do you keep the square brackets in or not? Also what is APPLICATION_ID
? I've tried using the admob app id, the applicationID
under defaultconfig
, even leaving it as APPLICATIONID
but nothing is working
Here's what my current xml file attempt looks like:
<meta-data
android:name="com.google.android.gms.ads.Application_ID"
android:value="ca-app-pub-numbers~numbers"/>
android firebase admob
I've been following this tutorial on Adding ads to an application. The part that says:
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="[ADMOB_APP_ID]"/>
is incredible frustrating.
I understand that ADMOB_APP_ID
is this ca-app-pub-numbers~numbers
but do you keep the square brackets in or not? Also what is APPLICATION_ID
? I've tried using the admob app id, the applicationID
under defaultconfig
, even leaving it as APPLICATIONID
but nothing is working
Here's what my current xml file attempt looks like:
<meta-data
android:name="com.google.android.gms.ads.Application_ID"
android:value="ca-app-pub-numbers~numbers"/>
android firebase admob
android firebase admob
edited Nov 17 '18 at 16:55
Touhidul Islam
1,1781415
1,1781415
asked Nov 17 '18 at 9:23
L. F
188
188
Follow this answer View this answer for clear undertanding admob ads implementation
– Tahmid Bin Rashid
Nov 23 '18 at 9:06
add a comment |
Follow this answer View this answer for clear undertanding admob ads implementation
– Tahmid Bin Rashid
Nov 23 '18 at 9:06
Follow this answer View this answer for clear undertanding admob ads implementation
– Tahmid Bin Rashid
Nov 23 '18 at 9:06
Follow this answer View this answer for clear undertanding admob ads implementation
– Tahmid Bin Rashid
Nov 23 '18 at 9:06
add a comment |
1 Answer
1
active
oldest
votes
it should look alike this (the documentation):
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544/6300978111"/>
where the ADMOB_APP_ID
is the ID obtained from the Firebase console.
hint: you need to scroll down the menu to the left; it's the last item there.
So you leaveandroid:name="com.google.android.gms.ads.APPLICATION_ID" as
android:name="com.google.android.gms.ads.APPLICATION_ID"` without changing anything and use this: imgur.com/a/ExNf46M for the ADMOB_APP_ID
– L. F
Nov 17 '18 at 10:31
Realised what I did wrong! I had "Aplication_ID" instead of "APPLICATION_ID" in my actual app
– L. F
Nov 17 '18 at 10:59
@L.F suchpublic final static
constant names are always uppercase in Java.
– Martin Zeitler
Nov 17 '18 at 17:32
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53349865%2fguide-on-implementing-ads-is-very-vague-what-is-meant-to-put-in%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
it should look alike this (the documentation):
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544/6300978111"/>
where the ADMOB_APP_ID
is the ID obtained from the Firebase console.
hint: you need to scroll down the menu to the left; it's the last item there.
So you leaveandroid:name="com.google.android.gms.ads.APPLICATION_ID" as
android:name="com.google.android.gms.ads.APPLICATION_ID"` without changing anything and use this: imgur.com/a/ExNf46M for the ADMOB_APP_ID
– L. F
Nov 17 '18 at 10:31
Realised what I did wrong! I had "Aplication_ID" instead of "APPLICATION_ID" in my actual app
– L. F
Nov 17 '18 at 10:59
@L.F suchpublic final static
constant names are always uppercase in Java.
– Martin Zeitler
Nov 17 '18 at 17:32
add a comment |
it should look alike this (the documentation):
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544/6300978111"/>
where the ADMOB_APP_ID
is the ID obtained from the Firebase console.
hint: you need to scroll down the menu to the left; it's the last item there.
So you leaveandroid:name="com.google.android.gms.ads.APPLICATION_ID" as
android:name="com.google.android.gms.ads.APPLICATION_ID"` without changing anything and use this: imgur.com/a/ExNf46M for the ADMOB_APP_ID
– L. F
Nov 17 '18 at 10:31
Realised what I did wrong! I had "Aplication_ID" instead of "APPLICATION_ID" in my actual app
– L. F
Nov 17 '18 at 10:59
@L.F suchpublic final static
constant names are always uppercase in Java.
– Martin Zeitler
Nov 17 '18 at 17:32
add a comment |
it should look alike this (the documentation):
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544/6300978111"/>
where the ADMOB_APP_ID
is the ID obtained from the Firebase console.
hint: you need to scroll down the menu to the left; it's the last item there.
it should look alike this (the documentation):
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544/6300978111"/>
where the ADMOB_APP_ID
is the ID obtained from the Firebase console.
hint: you need to scroll down the menu to the left; it's the last item there.
answered Nov 17 '18 at 10:04
Martin Zeitler
14.6k33863
14.6k33863
So you leaveandroid:name="com.google.android.gms.ads.APPLICATION_ID" as
android:name="com.google.android.gms.ads.APPLICATION_ID"` without changing anything and use this: imgur.com/a/ExNf46M for the ADMOB_APP_ID
– L. F
Nov 17 '18 at 10:31
Realised what I did wrong! I had "Aplication_ID" instead of "APPLICATION_ID" in my actual app
– L. F
Nov 17 '18 at 10:59
@L.F suchpublic final static
constant names are always uppercase in Java.
– Martin Zeitler
Nov 17 '18 at 17:32
add a comment |
So you leaveandroid:name="com.google.android.gms.ads.APPLICATION_ID" as
android:name="com.google.android.gms.ads.APPLICATION_ID"` without changing anything and use this: imgur.com/a/ExNf46M for the ADMOB_APP_ID
– L. F
Nov 17 '18 at 10:31
Realised what I did wrong! I had "Aplication_ID" instead of "APPLICATION_ID" in my actual app
– L. F
Nov 17 '18 at 10:59
@L.F suchpublic final static
constant names are always uppercase in Java.
– Martin Zeitler
Nov 17 '18 at 17:32
So you leave
android:name="com.google.android.gms.ads.APPLICATION_ID" as
android:name="com.google.android.gms.ads.APPLICATION_ID"` without changing anything and use this: imgur.com/a/ExNf46M for the ADMOB_APP_ID– L. F
Nov 17 '18 at 10:31
So you leave
android:name="com.google.android.gms.ads.APPLICATION_ID" as
android:name="com.google.android.gms.ads.APPLICATION_ID"` without changing anything and use this: imgur.com/a/ExNf46M for the ADMOB_APP_ID– L. F
Nov 17 '18 at 10:31
Realised what I did wrong! I had "Aplication_ID" instead of "APPLICATION_ID" in my actual app
– L. F
Nov 17 '18 at 10:59
Realised what I did wrong! I had "Aplication_ID" instead of "APPLICATION_ID" in my actual app
– L. F
Nov 17 '18 at 10:59
@L.F such
public final static
constant names are always uppercase in Java.– Martin Zeitler
Nov 17 '18 at 17:32
@L.F such
public final static
constant names are always uppercase in Java.– Martin Zeitler
Nov 17 '18 at 17:32
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53349865%2fguide-on-implementing-ads-is-very-vague-what-is-meant-to-put-in%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Follow this answer View this answer for clear undertanding admob ads implementation
– Tahmid Bin Rashid
Nov 23 '18 at 9:06