Releases: cleveradssolutions/CAS-Unity
Releases · cleveradssolutions/CAS-Unity
Version 2.9.7
Version 2.9.6
Version 2.9.5
Version 2.9.4
Version 2.9.3
Dependencies
Features
- Improved stability of the
AdMetaData
class to get information about ad impressions. - Added
IAdView.OnImpression
event withAdMetaData
structure and invoked only once for each new ad impression. - Added
impressionDepth
property for theAdMetaData
structure to get the amount of impressions of all ad formats to the current user. - Added
lifetimeRevenue
property for theAdMetaData
structure to get the total revenue in USD from impressions of all ad formats to the current user. - Added new
AdSize.ThinBanner
. Thin banners have a smaller height, taller banners compared to anchored adaptive banners. - Allowed simultaneous collection of
ad_impression
andCAS_Impression
analytics events with the same parameters. - [iOS] Added option to enable build Bitcode in
Ads Settings > Other
. By default disabled.
Changes
- The minimum iOS version supports is iOS 11.
- The
MobileAds.settings
are saved between sessions. - The
MobileAds.settings.isExecuteEventsOnUnityThread
is enabled by default. - The option to use the Medium Rectangle size has been removed from the settings window. Just select the Banner format to use the Medium Rectangle size.
- The
IAdView.rectInPixels
returnRect.zero
when ad view is not active. - Plugin caching the value of
IAdView.rectInPixels
on C# side to reduse number of calls to the native side. - The ID of the current device for
MobileAds.settings.SetTestDeviceIds()
will be printed in the logs even if theCAS.settings.isDebugMode
is disabled. - Mediation is no longer used for devices defined in
MobileAds.settings.SetTestDeviceIds()
. List of test devices should be defined before first MediationManager initialized. - Deprecated
IAdView.OnPresented
andIAdViwe.OnHidden
events. These events are invoked when the ad view's changesIAdView.SetActive()
. - Deprecated
IMediationManager.OnLoadedAd
event in favor of the new separateIMediationManager.OnInterstitialAdLoaded
andIMediationManager.OnRewardedAdLoaded
events. - Deprecated
IMediationManager.OnFailedToLoadAd
event in favor of the new separateIMediationManager.OnInterstitialAdFailedToLoad
andIMediationManager.OnRewardedAdFailedToLoad
events withAdError
enum. UseAdError.GetMessage()
to get the error text.
Version 2.8.6
Dependencies
Features
- [iOS] For iOS 12.2.0 or earlier builds, added
/usr/lib/swift
toXCode > Build Settings > Runpath Search Paths
to prevent any issues withlibswiftCore.dylib
. - [Android] Added update of the
mainTemplate.gradle
version if the file was created by Unity 2019.2 or older.
Version 2.8.5
Dependencies
Bug Fixes
- Fixed
AdSize.AdaptiveBanner
in portrait orientation. - Fixed refresh
AdSize.AdaptiveFullWidth
on orientation changed. - [iOS] Fixed crash from
[CASUView bannerAdView:willPresent:]
after application closed. - [Android] Fixed the Banner ad position in center of the screen with cutouts.
- [Editor] Fixed compilation errors for Unity 2017.
Unity 2017 is not officially supported and is not recommended for use. Please let us know about the issues and we will try to fix them.
Version 2.8.4
Dependencies
Features
- Added new
AdSize.AdaptiveFullWidth
to pick the best ad size for full full screen width.AdSize.AdaptiveBanner
can pick the ad size for screen width but not more than 728dp.
Known issue
- AdSize.AdaptiveBanner is incorrectly sized in portrait orientation. Please use
AdSize.AdaptiveFullWidth
while we fix this.
Version 2.8.3
Dependencies
Features
- Improved algorithm for processing bids with undisclosed prices.
- Improved ad serving algorithm to increase the average revenue of Banner Ads.
- Restored support for Fyber advertising network in closed beta.
- No longer supported
IMediationManager.GetLastActiveMediation(AdType)
feature.
Bug Fixes
- [Android] Fixed
FormatException
fromAdMetaData.GetDouble()
. - [Android] Fixed Android Proguard issue with
NoSuchMethodError
. - [iOS] Fixed simultaneous access crash on
BiddingManager.init(_:_:)
. - [iOS] Fixed index out of range crash.
- [iOS] Force disable
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
for Framework target. Cause build error when embed for both targets. - [Editor] Fixed Ads Settings inspector bug.
- Fixed internal reflection issue.
Version 2.8.1
Dependencies
Features
- Added new property
AdMetaData.creativeIdentifier
to get the creative id tied to the ad, if available.You can report creative issues to our Ad review team using this id.
- Added new property
AdMetaData.identifier
to get internal demand source name in CAS database. - Added feature to link your CAS app to Google Analytics to automatic measurement of ad revenue. Read more on our wiki page.(beta)
- Added new
AdError.Configuration
when configuration error has been detected in one of the mediation ad networks. - Added new
CAS.MobileAds.BuildManager().WithUserID(userID)
to set user id. The userID is a unique identifier supplied by your application and must be static for each user across sessions. - Improved initialization performance.
- [Android] All events from the native CAS SDK are called on a Background Thread instead of the Android UI Thread to avoid ANRs on unity reflection.
Use the
MobileAds.settings.isExecuteEventsOnUnityThread
for all events orEventExecutor.Add()
for each event to switch to the Unity Thread. - [Android] The Banner position inside the container now depends on the selected
AdPosition
, if the actual ad size is different.
Android Proguard issue
If the Proguard is active, then you have NoSuchMethodError
on device. Fix it by following steps:
- Enable Custom Proguard file in Player Settings window.
- Add keep line to the file:
-keep interface com.cleversolutions.ads.android.CAS$ManagerBuilder { *; }
Changes
⚠️ [iOS] Updated minimum supported Xcode version to 13.2.1.- [Android] Removed option to disable
ExoPlayer
. AppLovin added the dependency on ExoPlayer so that it is always used. - Migration from
CASInitSettings
class toIManagerBuilder
interface.
Update Cross promotion
- Added feature to get the
creativeIdentifier
. - Clicking on ad analytics event will be fired once per impression.
- Clicking on ad skips the video ad.
- Improved banner ads to promote non-app ad.
- [Android] Fixed video restart feature.