Hi,
Thank you for providing your test project privately which gave us a view on your implementation.
We were able to replicate the extra UIWindow you are pertaining to when we run your app on our end as well as when we upgrade to the latest SDK version (7.29.0 as of this writing). However, the extra UIWindow is not there if we downgrade to the 7.27.0 version similar to what you described.
Also, we were able to replicate the click action issue you mentioned when the extra UIWindow is there and we are getiing the warning message "Warning: Attempt to present <PopupViewController: 0x7fb0bc410ab0> on <GADPlaceholderViewController: 0x7fb0bc621870> whose view is not in the window hierarchy!". Given this, we tried to edit your code implementation wherein when setting the rootViewController, instead of getting the first UIWindow directly from the windows array (which contains both visible and hidden windows), we tried to retrieve the app's keyWindow. After this little modification, the pop up view started showing even if the extra UIWindow is there.
What's odd to note is that there is nowhere in your code where you are implementing the Mobile Ads SDK. That said, we modified
our sample app to only import the Mobile Ads SDK to the app via CocoaPods but remove all code implementation of the Mobile Ads SDK, and we were also able to replicate the extra UIWindow for both 7.28.0 and 7.29.0 version but didn't encounter it in 7.27.0 version.
We will raise this to the rest of team and get back to you for any official feedback. In the meantime, feel free to try out the little modification we mentioned above when setting your rootViewController similar to the code snippet below.
UIViewController *rootViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
[rootViewController presentViewController:popupViewController animated:YES completion:nil];