Jack Cole Well-Known Member Licensed User Longtime User Sep 18, 2019 #2 Are you using this class? Just replace Activity with the panel you want to add it to. Code: Copy nuad.Initialize(Me,"REPLACE_WITH_YOUR_NATIVE_AD_ID",10dip,10dip,100%X-20dip,150dip,Activity,testing) Upvote 0
Are you using this class? Just replace Activity with the panel you want to add it to. Code: Copy nuad.Initialize(Me,"REPLACE_WITH_YOUR_NATIVE_AD_ID",10dip,10dip,100%X-20dip,150dip,Activity,testing)
sentechnologies Member Licensed User Sep 19, 2019 #3 Too many parameters. Last edited: Sep 19, 2019 Upvote 0
DonManfred Expert Licensed User Longtime User Sep 19, 2019 #4 Yeskay said: NAd.Initialize("NAd","ca-app-pub-6386760469853814/9104576082",100%x,height) Click to expand... 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
Yeskay said: NAd.Initialize("NAd","ca-app-pub-6386760469853814/9104576082",100%x,height) Click to expand... 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.
sentechnologies Member Licensed User Sep 19, 2019 #5 DonManfred said: 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. Click to expand... my code are as follows, Code: Copy 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
DonManfred said: 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. Click to expand... my code are as follows, Code: Copy 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
DonManfred Expert Licensed User Longtime User Sep 19, 2019 #6 Yeskay said: my code are as follows Click to expand... based on the screenshot in #3 it was not the case. Stop fooling us Upvote 0
Yeskay said: my code are as follows Click to expand... based on the screenshot in #3 it was not the case. Stop fooling us
sentechnologies Member Licensed User Sep 19, 2019 #7 i tried this class too https://www.b4x.com/android/forum/threads/firebaseadmob-native-ad-class.107423/ but the screen remains blank. Upvote 0
i tried this class too https://www.b4x.com/android/forum/threads/firebaseadmob-native-ad-class.107423/ but the screen remains blank.
sentechnologies Member Licensed User Sep 19, 2019 #8 DonManfred said: based on the screenshot in #3 it was not the case. Stop fooling us Click to expand... the screenshot #3 is a reply for #2 i forget to add the class at the time of posting. Upvote 0
DonManfred said: based on the screenshot in #3 it was not the case. Stop fooling us Click to expand... the screenshot #3 is a reply for #2 i forget to add the class at the time of posting.
Jack Cole Well-Known Member Licensed User Longtime User Sep 19, 2019 #9 Did you try the example project? That's a good place to start. Upvote 0
asales Expert Licensed User Longtime User Sep 19, 2019 #10 Check this example: https://www.b4x.com/android/forum/threads/native-ads-unified-with-mediaview.100350/#content and this method: Code: Copy Sub NativeAd_FailedToReceiveAd (ErrorCode As String) Log("NativeAd_FailedToReceiveAd: " & ErrorCode) End Sub to see what might be happening. Upvote 0
Check this example: https://www.b4x.com/android/forum/threads/native-ads-unified-with-mediaview.100350/#content and this method: Code: Copy Sub NativeAd_FailedToReceiveAd (ErrorCode As String) Log("NativeAd_FailedToReceiveAd: " & ErrorCode) End Sub to see what might be happening.