Guide on implementing ads is very vague, what is meant to put in?

Viewed 2086

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"/>
1 Answers

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.

Related