The issue is related to the recently introduced Package Manager in Unity, see e.g. Unity Blog, and to keep the story short, our existing integration tests for Ads SDK doesn’t work with the package manager package, so for 2018.1 we had to manually test and verify the integration. Manual testing revealed an issue related to asset store version of Ads SDK late in 2018.1, and when this got fixed, unfortunately introduced the above issue on iOS.
We will soon ship an update for this, however in meantime use Ads SDK from asset store.
Regarding version number, we currently operate with two different version numbers, Ads SDK itself and the package manager package version. These are decoupled by design, as package manager doesn’t know what’s inside a package, and Ads SDK versioning started before package manager was introduced. In Unity 2018.2 we will align the version numbers to avoid confusion
I upgraded from 2017.1.1f1 to 2018.1.0f2 to fix a bug in my game that is fixed in a newer version. Upgrading caused Ads to stop working on Android devices. Upgrading Ads to 2.0.8, for whatever reason, has now messed up Unity IAP. Visual Studio complains “The name ‘IAPButton’ does not exist in the current context”. I can see the Unity IAP IAPButton.cs exists, but the #if UNITY_PURCHASING is returning false. Enabling/disabling IAP in Unity does not fix this.
I am also experiencing a related Android IAP issue. I am running 2018.1.0f2 and the Android IAP we’re working perfectly when downloaded from my Alpha on the Google Play Store. However iOS ads were not showing up on the iOS device, so I upgraded the Ads to 2.0.8 as advised. This fixed the iOS ads issue and both the iOS IAP and the Android Ads are working fine. However after uploading the new built to Alpha on Google Play and downloading that version on to the device my IAP buttons seem to just sign me in (as programmed) but never shows me the IAP popup.
I uploaded an old build without the updated Ads package and the IAPs work fine on the device, so it’s probably not something to do with my Google Play setup. I was also using the same test account for both builds.
I also don’t get any errors in the Unity Editor when testing IAP for Android, unlike @toughlucksmith .
After debugging with logcat it seems like the issue is with UnityEngine.VR.VRSettings. Strange as my game is a 2D mobile arcade game that has never seen any VR packages.
Here is the logs from the device when I click the IAP button and it fails. 50 coffee is the currency.
05-22 20:51:19.592 9341 9353 I Unity : UnityIAP: Promo is ready
05-22 20:51:19.592 9341 9353 I Unity :
05-22 20:51:19.592 9341 9353 I Unity : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
05-22 20:51:19.592 9341 9353 I Unity :
05-22 20:51:22.972 9341 9353 I Unity : Not connected to google play services
05-22 20:51:22.972 9341 9353 I Unity :
05-22 20:51:22.972 9341 9353 I Unity : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
05-22 20:51:22.972 9341 9353 I Unity :
05-22 20:51:39.497 9341 9353 I Unity : productId: 50_coffee_29.4.18
05-22 20:51:39.497 9341 9353 I Unity :
05-22 20:51:39.497 9341 9353 I Unity : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
05-22 20:51:39.497 9341 9353 I Unity :
05-22 20:51:39.502 9341 9353 W mono : Missing method get_enabled in assembly /data/app/com.WylieModro.htSoCollege-1/base.apk/assets/bin/Data/Managed/Stores.dll, type UnityEngine.VR.VRSettings
05-22 20:51:39.502 9341 9353 W mono : The class UnityEngine.VR.VRSettings could not be loaded, used in Stores
05-22 20:51:39.537 9341 9353 E Unity : TypeLoadException: Could not load type 'UnityEngine.VR.VRSettings' from assembly 'Stores'.
05-22 20:51:39.537 9341 9353 E Unity : at UnityEngine.Purchasing.JSONStore.Purchase (UnityEngine.Purchasing.ProductDefinition product, System.String developerPayload) [0x00000] in <filename unknown>:0
05-22 20:51:39.537 9341 9353 E Unity : at UnityEngine.Purchasing.PurchasingManager.InitiatePurchase (UnityEngine.Purchasing.Product product, System.String developerPayload) [0x00000] in <filename unknown>:0
05-22 20:51:39.537 9341 9353 E Unity : at UnityEngine.Purchasing.PurchasingManager.InitiatePurchase (UnityEngine.Purchasing.Product product) [0x00000] in <filename unknown>:0
05-22 20:51:39.537 9341 9353 E Unity : at IAPManager.BuyProductID (System.String productId) [0x00000] in <filename unknown>:0
05-22 20:51:39.537 9341 9353 E Unity : at IAPManager.Buy50Coffee () [0x00000] in <filename unknown>:0
05-22 20:51:39.537 9341 9353 E Unity : at UnityEngine.Events.InvokableCall.Invoke () [0x00000] in <filename unknown>:0
05-22 20:51:39.537 9341 9353 E Unity : at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <filename unknown>:0
05-22 20:51:39.537 9341 9353 E Unity : at UnityEngine.UI.Button.Press () [0x00000] in <filename unknown>:0
05-22 20:51:39.537 9341 9353 E Unity : at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems
05-22 20:51:40.347 9341 9341 V ActivityThread: updateVisibility : ActivityRecord{1a78b0a token=android.os.BinderProxy@d551753 {com.WylieModro.htSoCollege/com.unity3d.player.UnityPlayerActivity}} show : true
05-22 20:51:44.402 3729 3901 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{ced17d6 u0 d0 com.WylieModro.htSoCollege/com.unity3d.player.UnityPlayerActivity}
05-22 20:51:44.407 3729 3901 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{ced17d6 u0 d0 com.WylieModro.htSoCollege/com.unity3d.player.UnityPlayerActivity}
05-22 20:51:44.447 3729 3901 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{ced17d6 u0 d0 com.WylieModro.htSoCollege/com.unity3d.player.UnityPlayerActivity}
05-22 20:51:45.457 3729 3901 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{ced17d6 u0 d0 com.WylieModro.htSoCollege/com.unity3d.player.UnityPlayerActivity}
05-22 20:51:48.152 9341 9353 I Unity : Google sign in: False
I’m having problems with my adverts on iOS and in editor. I’m running v2018.1.0f2, I’ve updated the Ads package to 2.0.8 (before seeing this thread) and I’ve removed the IAP package (I don’t have IAP’s).
Advertisement.IsReady() is returning false on iOS and in editor.
And the console output in Xcode says the below (I’ve removed the task value, as I’m not sure if it’s private or not)
My UnityConnectSettings.asset is also setup with these:
my gameID’s
Due to the various changes going on with Ads/ Analytics since I started, I’ve (automatically) ended up with duplicate projects on two different teams. Analytics in one, and Ads in another. The above gameID’s (under UnityAdsSettings) are the ad ID’s and the below are using the Analytic ID’s.
Could this be the cause of my Ads not working in my new build?
Still looks like rewardedVideo always returns false on IOS device in 2018.1.1f1… That is using the built-in ads (in editor it does return true), have not yet tried it with the asset store version.
Hi! We are experimenting problems in Android. Users see the ads until the end, but then we are not receiving the callback so we are not giving the user the rewards
Our Unity version es 2018.1.3f1 and we were using Unity Ads 2.0.7. We have observed that we are getting new kind of ads so something has changed in the Unity Ads provider.
I updated Unity Ads 3.0.3 and Unity 2018.3.11.f1
if i use language “United Kingdom”, and test mode= true, banner is shown.
but i change language to “United State”, test mode is true, but banner is not shown. because
while (!Advertisement.IsReady(banner))
{
yield return new WaitForSeconds(0.5f);
}
Advertisement.isReady is always false
Can you tell me why? Can you help me to fix that issue?