Enabling SKAdNetwork in Native Ads Advanced Unity plugin

624 views
Skip to first unread message

Roman

unread,
Apr 30, 2021, 6:55:53 AM4/30/21
to Google Mobile Ads SDK Developers

Hi! I used GoogleMobileAds-native.unitypackage plugin for Unity, downloaded from

How do I implement support for SKAdNetwork IDs and display the App Tracking Transparency authorization request for accessing the IDFA?

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 30, 2021, 11:42:01 AM4/30/21
to romas...@gmail.com, google-adm...@googlegroups.com
Hi Roman,

You can add more SKADNetworks to Assets/GoogleMobileAds/Editor/GoogleMobileAdsSKAdNetworkItems.xml, just follow the same style of the first SKADNetwork entry for subsequent entries. I will bring up a document request to show this in our guide and you monitor it for an update.

To display the App Tracking Transparency authorization request, Unity has a method that works on older Unity platforms. We suggest you add your request to that thread.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2GIuR7:ref

Роман

unread,
Jun 29, 2021, 9:33:35 AM6/29/21
to Google Mobile Ads SDK Developers
Sorry for the long break! I have no file  Assets/GoogleMobileAds/Editor/GoogleMobileAdsSKAdNetworkItems.xml.  Should I create it? Could you give an example of formatting from this file?
Should I also add SKAdNetworkIdentifiers to Info.plist file?
Should I add all the networks, for example, like this is listed here https://www.skanids.com/?

пятница, 30 апреля 2021 г. в 18:42:01 UTC+3, mobileadssdkforumadvisor:

Mobile Ads SDK Forum Advisor

unread,
Jun 29, 2021, 1:02:02 PM6/29/21
to romas...@gmail.com, google-adm...@googlegroups.com
Hi,

Thank you for the response back. In looking more into this on the Unity side, I see this document from them that talks specifically about doing this.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2GIuR7:ref

Роман

unread,
Jun 30, 2021, 6:54:23 AM6/30/21
to Google Mobile Ads SDK Developers
Thank you! Yes, I have seen this document and used these instructions in my other project, where UnityAds ads are used. If this all applies to Google AdMob, I'll also use those instructions.

вторник, 29 июня 2021 г. в 20:02:02 UTC+3, mobileadssdk:

Mobile Ads SDK Forum Advisor

unread,
Jun 30, 2021, 10:00:30 AM6/30/21
to romas...@gmail.com, google-adm...@googlegroups.com
Hi Roman,

Are you not finding the Assets/GoogleMobileAds/Editor/GoogleMobileAdsSKAdNetworkItems.xml on the latest native Mobile Ads plugin? I just checked in a new app and I found the file. The latest Native Ads plugin uses Mobile Ads iOS SDK 7.68.0 which does support SKADNetworks, if you are using an old plugin the SDK may not pick it up.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2GIuR7:ref

Роман

unread,
Jun 30, 2021, 10:13:43 AM6/30/21
to Google Mobile Ads SDK Developers
Yes, I don't have this file. As I wrote in my first post, I am using GoogleMobileAds-native.unitypackage plugin for Unity, downloaded from
https://developers.google.com/admob/unity/native-advanced-unified, there is a link at the beginning of the article.
To be honest, I don't even know what version there is, since I don't see such information.

среда, 30 июня 2021 г. в 17:00:30 UTC+3, mobileadssdk:

Mobile Ads SDK Forum Advisor

unread,
Jun 30, 2021, 10:28:48 AM6/30/21
to romas...@gmail.com, google-adm...@googlegroups.com
Hi Roman,

I saw the information on which version Mobile Ads SDK for iOS in Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml as seen in the attached screenshot.

Could you tell me which version of Unity you are using? Did you try to create a new test project to see this? 
Screen Shot 2021-06-30 at 10.27.28 AM.png

Роман

unread,
Jun 30, 2021, 10:44:30 AM6/30/21
to Google Mobile Ads SDK Developers
Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:

<dependencies>
  <androidPackages>
    <androidPackage spec="com.google.android.gms:play-services-ads:19.2.0">
      <repositories>
        <repository>https://maven.google.com/</repository>
      </repositories>
    </androidPackage>
  </androidPackages>

  <iosPods>
    <iosPod name="Google-Mobile-Ads-SDK" version="~> 7.57">
      <sources>
        <source>https://github.com/CocoaPods/Specs</source>
      </sources>
    </iosPod>
  </iosPods>
</dependencies>

Unity Version 2019.2.14f1.
I didn't create a new test project.
I downloaded the GoogleMobileAds-native.unitypackage plugin again Tomorrow I'll try to update it.

среда, 30 июня 2021 г. в 17:28:48 UTC+3, mobileadssdk:

Mobile Ads SDK Forum Advisor

unread,
Jun 30, 2021, 10:56:34 AM6/30/21
to romas...@gmail.com, google-adm...@googlegroups.com
Hi Roman,

 Thank you for giving me your dependencies file. Mobile Ads SDK 7.57.0 won't handle SKADNetworks, the lowest version that does is 7.64.0 as described in our prepare for iOS 14 guide.  You will need to upgrade your Native Ads plugin order to use SKADNetworks in AdMob.

Роман

unread,
Jul 1, 2021, 8:49:13 AM7/1/21
to Google Mobile Ads SDK Developers
I downloaded the Native plugin again, updated it. Everything seems to have been updated. The file GoogleMobileAdsSKAdNetworkItems.xml has appeared. The version is specified in the GoogleMobileAdsDependencies.xml file:
<iosPod name = "Google-Mobile-Ads-SDK" version = "~> 7.68">
Request for permission has appeared.  Everything looks working :)
Thank you all for your help!!!

среда, 30 июня 2021 г. в 17:56:34 UTC+3, mobileadssdk:
Reply all
Reply to author
Forward
0 new messages