[google-admob-ads-sdk-iOS] version 7.66 does not show IBOutlets

1,560 views
Skip to first unread message

Savita Pachisia

unread,
Mar 16, 2021, 2:03:38 PM3/16/21
to Google Mobile Ads SDK Developers
Hi Team,

Im using Google AdMobs sdk as a dependency from Firebase SDK.Firebase version is 7.6 and Google AdMobs is 7.66. I dont see the outlets for GADUnifiedNativeAdView. Im using Xcode 12.1. Can you please help me in this regard ?

Regards,
Savita

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 16, 2021, 3:10:22 PM3/16/21
to savita.p...@t-mobile.com, google-adm...@googlegroups.com
Hi Savita,

To see a working implementation of Native Advanced Ads with sdk 7.66 you can download a sample that is compatible with 7.66 , change a line in the podfile to "  pod 'Google-Mobile-Ads-SDK', '7.66.0' " , do "pod install --repo-update" and the sample should run. Each of the components has it's IBOutlet in the connections inspector and I just checked the Unified Native Ad View showed all the IBOutlets of the ad. Feel free to clarify further.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Dw69r:ref

Savita Pachisia

unread,
Mar 16, 2021, 5:36:48 PM3/16/21
to Google Mobile Ads SDK Developers
Hi Aryeh ,

Im not using the Google-Mobile-Ads-SDK pod directly. Im using it from Firebase. So what I do  is pod 'Firebase/AdMob' as I already have Firebase in my project. My current Firebase version is 7.6.0. In this case I don't see any Unified Native Ad View IBOutlets.

Regards,
Savita

Savita Pachisia

unread,
Mar 16, 2021, 5:50:27 PM3/16/21
to Google Mobile Ads SDK Developers
Hi Team,

Its bit confusing, should I use pod 'Firebase/AdMob' or pod 'Google-Mobile-Ads-SDK' ? If I use the former one, I get AdMob sdk with ~7.66 version. If I use the latter, I get the latest AdMob sdk with 8.2.0 version. I want to use the AdMob SDK  under Firebase SDK and in neither case Im able to see the IBOutlets

Regards,
Savita

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 17, 2021, 3:47:53 AM3/17/21
to savita.p...@t-mobile.com, google-adm...@googlegroups.com

Hi Savita,

Thank you for bringing this to us.

I work with Aryeh and will be assisting you today. Regard to your concern, you should use pod 'Google-Mobile-Ads-SDK’. It is the same way in adding AdMob dependency in iOS when using a standalone guide for iOS or using the AdMob iOS with firebase. You can also check the available pods for firebase products. 

Regards,
 

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Dw69r:ref

Savita Pachisia

unread,
Mar 17, 2021, 10:38:52 AM3/17/21
to Google Mobile Ads SDK Developers
Hi Team,

So Im doing pod 'Google-Mobile-Ads-SDK’ and I get 8.2.0 version of the GoogleMobsAd SDK. I do not see any IBOutlets for the GANativeAdView. Can you please help me in this regard ?

Regards,
Savita

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 17, 2021, 3:39:23 PM3/17/21
to savita.p...@t-mobile.com, google-adm...@googlegroups.com
Hi Savita,

To see IBOutlets you can make them yourself for your Native Ads Advanced implementation. To see a set up in File's Owner for all the outlets, you can assign the class you will make outlets to in the Identity Inspector for File's Owner and then make the IBOutlets from all your views to that class.

For an example of already set up Native Ad implementation you can import the Native Ad Templates from our Native Ad Templates Guide into your project and see how they're set up. The recommendation is to use the already made Native templates and get comfortable with them before making your own Custom Native Advanced Template. You may also follow the Native Advanced Sample app (download )

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Dw69r:ref

Savita Pachisia

unread,
Mar 17, 2021, 5:52:29 PM3/17/21
to Google Mobile Ads SDK Developers
Hi Team,

In the Native Advanced Sample app, there is a NativeAdView.xib in which the view's custom class is GADNativeAdView. How are the custom elements of this view connected  to GADNativeAdView's UI elements is not clear. Also there is warning symbol on each IBOutlet connection. If I remove the IBOutlets connections and try reconnecting it, I cannot see them anymore. 

Regards,
Savita

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 18, 2021, 12:19:20 AM3/18/21
to savita.p...@t-mobile.com, google-adm...@googlegroups.com

Hi Savita,

Thank you for your reply.

Just for clarity, when you say “If I remove the IBOutlets connections and try reconnecting it, I cannot see them anymore” does this mean that the warnings have been removed? Meaning this fixed the issue on your end? I’m asking because I saw similar issues reported to external support (e.g. stackoverflow) related to IBOutlet not connecting in interface, one workaround I saw is to reconnect the class files in the interface builder. That being said, this seems to be an issue specific to Xcode settings instead of the Mobile Ads SDK.

Let me know your thoughts.

 

Regards,



Google Logo
Sherwin Diesta
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Dw69r:ref

Savita Pachisia

unread,
Mar 18, 2021, 12:38:08 PM3/18/21
to Google Mobile Ads SDK Developers
Hi,

No, I mean if I subclass my view from GADNativeAdView, ideally I should be seeing the GADNativeAdView's IBOutlets in my view's xib to be able to connect the view's UI elements to respective GADNativeAdView's elements. But I don't see them at all if I remove them in the sample example. I have tried in a separate sample app, they just don't appear. Im using Xcode 12.1. Yea, I have also seen someone complaining the same with newer version of the SDK i.e. 8.2.0.1 (the same that Im using). If its Xcode issue, which version can I use to avoid it ? What do you mean by "one workaround I saw is to reconnect the class files in the interface builder" ?

Regards,
Savita

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 18, 2021, 3:54:35 PM3/18/21
to savita.p...@t-mobile.com, google-adm...@googlegroups.com
Hi Savita,

I saw the warnings on the IBOutlet in the Native Ad View and when deleting the outlet I didn't find a way to reconnect. We don't have documentation on how this is done. To help you further we will need a project preferably based on one of our sample apps with minimum modification to show your use case.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Dw69r:ref

Savita Pachisia

unread,
Mar 18, 2021, 6:21:06 PM3/18/21
to Google Mobile Ads SDK Developers
Attaching the screenshots from the sample app provided by Google and just added an extra xib to show the issue.
1. SampleAppShowingOutlets - NativeAdView,xib , subclassed from GADNativeAdView and showing GADNativeAdView's IBOutlets in the connection inspector. 2. WarningInSampleApp -  NativeAdView,xib , warning reads 3. TestViewSubclassedFromGANativeAd - Created a similar xib and subclassed it from GADNativeAdView, same as NativeAdView.xib. 4. SampleAppShowingOutlets - TestView does not show any outlets from its super class ie.GADNativeAdView in the connections inspector.
SampleAppShowingOutlets.png
TestViewNotShowingGADNativeAdOutlets.png
TestViewSubclassedFromGANativeAd.png
WarningInSampleApp.png

Morgan Dock

unread,
Mar 18, 2021, 9:53:50 PM3/18/21
to Google Mobile Ads SDK Developers
I also have this issue.   I had to copy/paste the xib files into my own project and redesign without deleting any components because the moment a component was lost, so was the connection and there was no way to reconnect.  

I have to do this for each native ad design, as there is no possible way I have been able to create outlet connections be assigning the class in the xib.

Clarity on this would be immensely helpful.  Particularly since the designs in the sample I do not think even use all potential components that Admob documentations claim to have.

I also normally do UI design in my app with pure code, and haven't been able to figure out a way to implement a pure code design that works - other ad services allow for this capability.

Thanks!
Morgan

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 19, 2021, 2:24:46 AM3/19/21
to savita.p...@t-mobile.com, google-adm...@googlegroups.com

Hi Savita,

Thank you for reaching out to us. 

I work with Aryeh and will be assisting you today. We tested the screenshot you gave us, upon testing we added an IBOutlets in xib file after we added a view. We recommend that you add first the view before adding IBOutlets. If the issue still persist, could you please provide us your sample project via Reply privately to author option or send it directly to mobileads...@gmail.com for us to investigate this further?

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Dw69r:ref

Savita Pachisia

unread,
Mar 19, 2021, 12:01:41 PM3/19/21
to Google Mobile Ads SDK Developers

Hi Team,

I have sent you the project on the emaild id shared.

Regards,
Savita
On Thursday, March 18, 2021 at 11:24:46 PM UTC-7 mobileadssdkforumadvisor wrote:

Hi Savita,

Thank you for reaching out to us. 

I work with Aryeh and will be assisting you today. We tested the screenshot you gave us, upon testing we added an IBOutlets in xib file after we added a view. We recommend that you add first the view before adding IBOutlets. If the issue still persist, could you please provide us your sample project via Reply privately to author option or send it directly to mobileadstesting99@gmail.com for us to investigate this further?

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 19, 2021, 2:41:33 PM3/19/21
to savita.p...@t-mobile.com, google-adm...@googlegroups.com
Hi Savita,

Thank you for the demonstration apps and the background information. I raised this with my team and we will get back to to you as soon as possible.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Dw69r:ref

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 21, 2021, 6:50:23 PM3/21/21
to savita.p...@t-mobile.com, google-adm...@googlegroups.com
Hi Savita,

We are aware of this issue -- .xcframework is generally incompatible with .xib files. This is a Apple bug that we don't know when it'll get fixed.

As a temporary workaround, you could make a manual copy of the GADNativeAdView.h file to include in your project. You should then see all the outlets appearing in Interface Builder as expected.

Thanks,
Jill
Google Mobile Ads SDK Team

ref:_00D1U1174p._5004Q2Dw69r:ref

Savita Pachisia

unread,
Mar 22, 2021, 12:54:55 PM3/22/21
to Google Mobile Ads SDK Developers
The SDK 8.2.0 is in swift I believe, should I still use the GADNativeAdView.h file which is in  Objective-C ??

Also, is GoogleMobileAds SDK part of Firebase because I see the documentation says to add it as a separate pod instead of Firebase/AdMob ?

Regards,
Savita

Savita Pachisia

unread,
Mar 22, 2021, 1:15:44 PM3/22/21
to Google Mobile Ads SDK Developers
The SDK 8.2.0 is in swift I believe, should I still use the GADNativeAdView.h file which is in  Objective-C ??

Also, is GoogleMobileAds SDK part of Firebase because I see the documentation says to add it as a separate pod instead of Firebase/AdMob ? Im using Firebase SDK version 7.6.0. I think I can use AdMob as Firebase/AdMob, is that the case ? 

Regards,
Savita

RomanNy

unread,
Apr 28, 2021, 3:00:07 AM4/28/21
to Google Mobile Ads SDK Developers
Hi Jill,

Cannot seem to find GADNativeAdView.h in the framework. Is it private, renamed or removed? See screenshot:
Is there any other way to do that?

Thanks

SS 2021-04-28 at 4.27.06 pm.png

Pachisia, Savita

unread,
Apr 28, 2021, 12:26:42 PM4/28/21
to RomanNy, Google Mobile Ads SDK Developers

Hi Roman,

 

GADNativeAd.h file also contains the interface for GADNativeAdView class. So basically you can use GADNativeAd.h

 

Regards,

Savita

 

From: <google-adm...@googlegroups.com> on behalf of RomanNy <roman....@gmail.com>
Date: Wednesday, April 28, 2021 at 12:00 AM
To: Google Mobile Ads SDK Developers <google-adm...@googlegroups.com>
Subject: Re: [google-admob-ads-sdk] [google-admob-ads-sdk-iOS] version 7.66 does not show IBOutlets

 

[External]

 

Google Mobile Ads SDK TeamImage removed by sender.

ref:_00D1U1174p._5004Q2Dw69r:ref

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/YKCW9Be2_cs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/1eb04052-888a-42a5-a959-6ec3a981239bn%40googlegroups.com.

Mobile Ads SDK Forum Advisor Prod

unread,
May 10, 2021, 5:04:55 PM5/10/21
to savita.p...@t-mobile.com, roman....@gmail.com, google-adm...@googlegroups.com
Hi Savita,

Yes, you need to include the Objective-C header files in your Swift project as long as the bug exists.

Yes, Firebase/AdMob and AdMob are the same. You can include whichever way you want. 

Thanks,
Jill

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