GADBanner and SwiftUI

308 views
Skip to first unread message

Florin Popa

unread,
Nov 10, 2022, 5:14:59 AM11/10/22
to Google Mobile Ads SDK Developers
Hi everyone,

We've been struggling to get the ads setup to work again after the latest XCode (14) and iOS (16) updates with no luck.
Our setup consists of a LazyLoadingVStack with a scrollview reader, and in this list we insert a banner in between items.
Wrapping the banner is done as per the BannerAd example from https://github.com/googleads/googleads-mobile-ios-examples.
With everything in place it worked seamlesly in previous versions, but now it will not push the next item below the banner. (trying to fix it by messing around with constraints is causing all sorts of undefined behaviour for the adview).

Is there any known issue at the moment regarding this ?
Any help or hints would be very much appreciated.


Florin.

Mobile Ads SDK Forum Advisor

unread,
Nov 10, 2022, 1:16:52 PM11/10/22
to florinpo...@gmail.com, google-adm...@googlegroups.com
Hi Florin,

Thank you for reaching out to us.

With regard to your concern, would it be possible for you to provide a copy of our modified sample app that reproduce your reported issue? This will greatly help us in our investigation.  You may provide it to us via reply privately to author option, our using the steps below.
 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002g2KDUQA2&entry.80707362=00156775

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.



Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2g2KDU:ref

Florin Popa

unread,
Nov 11, 2022, 8:51:10 AM11/11/22
to Google Mobile Ads SDK Developers
Hey again,

Thank you for the super prompt reply. I've uploaded a version of the sample app containing the issue, its in the "BannerContentView".

Mobile Ads SDK Forum Advisor

unread,
Nov 11, 2022, 1:07:50 PM11/11/22
to florinpo...@gmail.com, google-adm...@googlegroups.com
Hi Florin,

Thank you for providing the requested information.

I went ahead and checked your app, and can confirm the ads is not showing on my end. Upon checking the app, it seems that the implementation is fine. Could you please share to us the Xcode and iOS version where this implementation works, so I could validate this as well? Once provided, I'll share this to the team to get their insight and to deliver decisive resolution to this concern.

Florin Popa

unread,
Nov 14, 2022, 5:13:01 AM11/14/22
to Google Mobile Ads SDK Developers
Hi again,

Unfortunately after trying out this morning i couldn't find a case for the sample app where it works correctly, but for our real project it was fine with : XCode 13.x and iOS15.5 and earlier.
Hope it helps and thank you again,
Florin

Mobile Ads SDK Forum Advisor

unread,
Nov 14, 2022, 1:10:57 PM11/14/22
to florinpo...@gmail.com, google-adm...@googlegroups.com
Hi Florin,

Thank you for getting back to us. While checking the reported behavior on various XCode version, I was able to confirm that your app is working fine now on iPhone 14 Pro iOS 16 simulator. Could you please check it on your end once again? If the reported behavior persists, kindly provide to us a screenshot or screen recoding of the issue, so I could include this findings to the rest of the team.

Florin Popa

unread,
Nov 16, 2022, 7:41:08 AM11/16/22
to Google Mobile Ads SDK Developers
Hey again,

Thanks for investigating, unfortunately on my end the issue is still there, happy to provide more info:
XCode Version 14.1 (14B47)
iOS Simulator iPhone 14 Pro iOS 16.1
I've also attached a screenshot, as well as a quick screen recording.
AdsSampleScreenRecording.gif
AdsSampleScreenshot.png

Mobile Ads SDK Forum Advisor

unread,
Nov 16, 2022, 1:32:31 PM11/16/22
to florinpo...@gmail.com, google-adm...@googlegroups.com
Hi Florin,

I had a discussion with the team regarding this. As per discussion, the recommendation is check our developer blog which contains detailed information on how would you implement the Mobile Ads SDK on SwiftUI.

Let me know how it goes after referring to the blog and if you still encounter the reported issue, so I could get back to the team with your feedback.

Stephen Aldous

unread,
Feb 23, 2023, 2:14:33 PM2/23/23
to Google Mobile Ads SDK Developers

Mobile Ads SDK Forum Advisor

unread,
Feb 24, 2023, 3:47:14 AM2/24/23
to stephen...@gmail.com, google-adm...@googlegroups.com
Hello Stephen,

We've noticed that you opened a new thread with a similar concern. Let's continue our discussion there. Thank you.

Regards,
Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2g2KDU:ref
Reply all
Reply to author
Forward
0 new messages