Help Please!!!

baron159

Member
Licensed User
Longtime User
Hello I am a :sign0104: at B4A and I have a question:

http://www.b4x.com/forum/basic4andr...-admob-tutorial-add-ads-your-application.html

on this page it take you through the steps of setting up ads but how do you:


1. Add a reference to AdMob and GoogleAdMobAdsSdk libraries. (like what is the code?)

and also does/what goes is the “ad” part of this code:

AdView1.Initialize("Ad", "YourPublisherId") 'publisher id that you received from AdMob.

and do you require the “ “ over the ad and your publisherID ?

thanks for all you help in the past and mostly likely in the future
 

NJDude

Expert
Licensed User
Longtime User
Hello I am a :sign0104: at B4A and I have a question:
1. Add a reference to AdMob and GoogleAdMobAdsSdk libraries. (like what is the code?)

The reference is done by clicking on the AdMob library and GoogleAdMobAdsSdk on the LIBS tab on the designer.

and also does/what goes is the “ad” part of this code:

AdView1.Initialize("Ad", "YourPublisherId") 'publisher id that you received from AdMob.

and do you require the “ “ over the ad and your publisherID ?

The "Ad" is the name of the AdView, you can name it whatever you want like for example (and yes it needs to be in quotes):

B4X:
AdView1.Initialize("myAdWindow", "YourPublisherId")

The publisher's ID is a code provided by AdMob when you create a Site/App in AdMob
 
Last edited:
Upvote 0
Top