GoogleMobileAds-Ad-Placements.unitypackage SDK

118 views
Skip to first unread message

80_boom Dev

unread,
Jan 4, 2023, 2:05:13 AM1/4/23
to Google Mobile Ads SDK Developers
I'm using  GoogleMobileAds-Ad-Placements.unitypackage in my Unity 2021.3.16 project. Like this dev who posted here I loaded  GoogleMobileAds-v7.1.0.unitypackage (7.3.1 actually). I had similar errors to those reported and applied the same solution that was proposed to him: delete plugin folders and Google Mobile Ads folder and apply the  GoogleMobileAds-Ad-Placements.unitypackage . This has worked, but when building in Android Studio it told me to upgrade my Google Mobile Ads SDK since it observed I was using 19.5. This is a concern since 19.xx has already been deprecated according to this and will be sunset (won't work) in the second quarter of this year. I'm about to publish an app on google play store so that's a problem.
If you open a new unity project and install the Google Mobile Ads package 7.3.1 you can go to Plugins - Android - GoogleMobileAdsPlugin.androdlib and click on AndroidManifest. In the inspector observe the "Asset Labels" at the bottom. It will give a version number - 7.3.1.
If you install GoogleMobileAds-Ad-Placements.unitypackage and go to the same place the version number you will observe is now 5.4.0.90. That's a very old GMA version number.
GMA 7.3.1 according to the release notes uses an SDK that will be good for a couple of years before it's sunset. I can't find release notes for GoogleMobileAds-Ad-Placements.unitypackage and Android Studio says it's an old SDK about to be sunset. 
How can I keep using GoogleMobileAds-Ad-Placements.unitypackage but update to an SDK at 21.xx or above? Simply installing GMA 7.3.1 on top of placements causes some big problems. Is there a more contemporary version of GoogleMobileAds-Ad-Placements.unitypackage using newer a SDK?

Mobile Ads SDK Forum Advisor

unread,
Jan 4, 2023, 10:48:00 AM1/4/23
to 80bo...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for raising this to us.

With regard to your concern, please be informed that the Unity Ad placements is still an experimental feature which is the reason why it is not sync with the latest version of the SDK. With that said, we would recommend to keep an eye on our release notes and developer blog for updates regarding this.

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 
 

ref:_00D1U1174p._5004Q2hZPKr:ref

80_boom Dev

unread,
Jan 4, 2023, 2:21:49 PM1/4/23
to Google Mobile Ads SDK Developers
Okay. For the sake of anyone who is using  GoogleMobileAds-Ad-Placements.unitypackage and needs to start using  GoogleMobileAds-v7.3.1.unitypackage for the newer SDK here's what I did to make the switch with a minimum amount of problems. (using unity 2021.3.16)
1. Deleted the Plugins folder
2. Deleted the Google Mobile Ads folder
3. Imported the  GoogleMobileAds-v7.3.1.unitypackage and had the External Dependency Manager force resolve.
4. Commented out the line in my Ads Script "using GoogleMobileAds.Placement;" because I'm not using Placements anymore and it caused an error.
5. Using the Ad Placements I had created an Interstitial Ad GameObject. Now it was missing its script and Unity really didn't like that. I deleted the Interstitial Ad GameObject.

Build and run shows that test ads and live ads (bearing the label "test ad") seem to be working now. 

(Also, I used to have to edit the dependencies section of my main gradle file because of this bug in GMA 20.4.0 and previous versions. Now I don't have to since GMA 7.3.1 uses Android SDK 21.3.0.)

Mobile Ads SDK Forum Advisor

unread,
Jan 4, 2023, 9:28:32 PM1/4/23
to 80bo...@gmail.com, google-adm...@googlegroups.com

Hi,

 

Thank you for sharing your workaround on this. If you have any other concerns related to the implementation of Google Mobile Ads SDK, kindly provide us the details. We'll be happy to assist you. In the meantime, kindly still keep an eye on our release notes and developer blog for updates regarding this.

 

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


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