Hi,
Thank you for contacting the Mobile SDK support team.
When you load the ads from the first method then an adView is added to the adContainerView before the ad is loaded after that ad request is initiated.
But when you are using method two to load the ads in this first we load the ad. After that we added the container to show the ads.
In both cases the onAdLoaded() method is called after every refresh.but it looks like you are binding the container every time. so I would suggest not binding the container a second time. Also you can try to put logs before bind the container to see onAdLoaded() method is called.
Thanks,![]() |
Mobile Ads SDK Team |
[2025-03-04 14:39:41Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH5sR:ref" (ADR-00291286)
Hi,
As per sample code, It is not require to addView(adView) again when automatically refreshing the banner ads.
If you will add adView again without removeAllViews, you may face below issue during automatically refresh in adLoaded listener.
Error Message: “The specified child already has a parent. You must call removeView() on the child's parent first. “
I would suggest to removeAllViews first then addView(adView) again.
Let me know you face any issues related to ad not refreshing in the view.
![]() |
Mobile Ads SDK Team |
[2025-03-05 00:54:58Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH5sR:ref" (ADR-00291286)