victormedranop Well-Known Member Licensed User Longtime User May 21, 2018 #1 Hi starting to work with this library. but got error 1. I made successfully the tutorial. and I cant find what is means. Victor
Hi starting to work with this library. but got error 1. I made successfully the tutorial. and I cant find what is means. Victor
victormedranop Well-Known Member Licensed User Longtime User May 23, 2018 #3 Using exact example from Erel. just changed my data from admod B4X: 'Erel -> BannerAd.Initialize2("BannerAd", "ca-app-pub-3940256099942544/6300978111", BannerAd.SIZE_SMART_BANNER) BannerAd.Initialize2("BannerAd", "ca-app-pub-1469396064706271~8656181070", BannerAd.SIZE_SMART_BANNER) Dim height As Int If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then 'phones If 100%x > 100%y Then height = 32dip Else height = 50dip Else 'tablets height = 90dip End If Activity.AddView(BannerAd, 0dip, 100%y - height, 100%x, height) BannerAd.LoadAd 'Erel -> IAd.Initialize("iad", "ca-app-pub-3940256099942544/1033173712") IAd.Initialize("iad", "ca-app-pub-1469396064706271/9174237587") IAd.LoadAd Upvote 0
Using exact example from Erel. just changed my data from admod B4X: 'Erel -> BannerAd.Initialize2("BannerAd", "ca-app-pub-3940256099942544/6300978111", BannerAd.SIZE_SMART_BANNER) BannerAd.Initialize2("BannerAd", "ca-app-pub-1469396064706271~8656181070", BannerAd.SIZE_SMART_BANNER) Dim height As Int If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then 'phones If 100%x > 100%y Then height = 32dip Else height = 50dip Else 'tablets height = 90dip End If Activity.AddView(BannerAd, 0dip, 100%y - height, 100%x, height) BannerAd.LoadAd 'Erel -> IAd.Initialize("iad", "ca-app-pub-3940256099942544/1033173712") IAd.Initialize("iad", "ca-app-pub-1469396064706271/9174237587") IAd.LoadAd
victormedranop Well-Known Member Licensed User Longtime User May 23, 2018 #4 my mistake. working code B4X: BannerAd.Initialize2("BannerAd", "ca-app-pub-1469396064706271/9174237587", BannerAd.SIZE_SMART_BANNER) Dim height As Int If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then 'phones If 100%x > 100%y Then height = 32dip Else height = 50dip Else 'tablets height = 90dip End If Activity.AddView(BannerAd, 0dip, 100%y - height, 100%x, height) BannerAd.LoadAd IAd.Initialize("iad", "ca-app-pub-1469396064706271~8656181070") IAd.LoadAd Upvote 0
my mistake. working code B4X: BannerAd.Initialize2("BannerAd", "ca-app-pub-1469396064706271/9174237587", BannerAd.SIZE_SMART_BANNER) Dim height As Int If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then 'phones If 100%x > 100%y Then height = 32dip Else height = 50dip Else 'tablets height = 90dip End If Activity.AddView(BannerAd, 0dip, 100%y - height, 100%x, height) BannerAd.LoadAd IAd.Initialize("iad", "ca-app-pub-1469396064706271~8656181070") IAd.LoadAd