Based in this post:
https://www.b4x.com/android/forum/t...-native-ads-advanced.88100/page-2#post-567437
I created several "Wait For" to load a different native ad.
But If the second "Wait For" don't get the Ad, the third Wait For is not raised too.
I saw this line from Erel and the video tutorial about Resumable Sub:
Wait For can distinguish between events based on the event sender.
This is done with an optional parameter:
Wait For (<sender>) <event signature>
But I don't know how to implement this in my code?
Thanks in advance for any tips.
https://www.b4x.com/android/forum/t...-native-ads-advanced.88100/page-2#post-567437
I created several "Wait For" to load a different native ad.
B4X:
Wait for (LoadNativeAd("ca-app-pub-3940256099942544/2247696110")) Complete (Result As Panel)
If Result <> Null Then
Activity.AddView(Result, 0, 0, 100%x, 132dip)
End If
Wait for (LoadNativeAd("ca-app-pub-3940256099942544/2793859312")) Complete (Result As Panel)
If Result <> Null Then
Activity.AddView(Result, 0, 30%y, 100%x, 132dip)
End If
Wait for (LoadNativeAd("ca-app-pub-3940256099942544/2247696110")) Complete (Result As Panel)
If Result <> Null Then
Activity.AddView(Result, 0, 60%y, 100%x, 150dip)
End If
But If the second "Wait For" don't get the Ad, the third Wait For is not raised too.
I saw this line from Erel and the video tutorial about Resumable Sub:
Wait For can distinguish between events based on the event sender.
This is done with an optional parameter:
Wait For (<sender>) <event signature>
But I don't know how to implement this in my code?
Thanks in advance for any tips.