Android Question Firebase Admob Native Ads

sentechnologies

Member
Licensed User
Too many parameters.

upload_2019-9-19_10-10-47.png
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
NAd.Initialize("NAd","ca-app-pub-6386760469853814/9104576082",100%x,height)
in your NAD.Initialize you are using two additional parameters. Activity and testing. Additional you are using much more params as expected.
what are the two 10dip values for? maybe you are trying to position left and top where there is no way to set them? Initialize only needs Eventprefix, ID, width and height.
 
Upvote 0

sentechnologies

Member
Licensed User
in your NAD.Initialize you are using two additional parameters. Activity and testing. Additional you are using much more params as expected.
what are the two 10dip values for? maybe you are trying to position left and top where there is no way to set them? Initialize only needs Eventprefix, ID, width and height.

my code are as follows,

B4X:
Private NAd As NativeExpressAd
NAd.Initialize("NAd","ca-app-pub-6386760469853814/9104576082",100%x,height)

Activity.AddView(NAd,0dip, 100%y - height, 100%x, height)

NAd.LoadAd

code compiled, but displays nothing
 
Upvote 0
Top