We are constantly improving the InMobi SDK to ensure you get the best results on app monetization. The release notes here will give you an overview of all the important changes on InMobi SDK that impact our publishers.
@objc public class func putPublisherSignals(_ signals: [String: Any])
@objc public class func getPublisherSignals() -> [String: Any]?
@objc public class func resetPublisherSignals()
@objc public func cancel()
@objc public func cancel()
init
method
@objc public init(waterMarkImageData: Data)
@objc public var isMovable
@objc public weak var delegate: IMAudioDelegate?
@objc public var placementId: Int64
@objc public var keywords: String?
@objc public var extras: [String: Any]?
@objc public var transitionAnimation: AnimationTransition
@objc public var contentUrl: String?
@objc public var creativeId: String?
@objc public init(frame: CGRect, placementId: Int64, delegate: IMAudioDelegate?)
@objc public func getAdMetaInfo() -> [String: Any]?
@objc public func load()
@objc public func show()
@objc public func cancel()
@objc public static func setDoNotSell(_ doNotSell: Bool)
@objc public static func setUSPrivacyString(_ privacyString: String)
func onView(_ view: UIView, addBannerAudioDelegate delegate: IMBannerAudioDelegate)
func banner(_ banner: IMBanner, audioStatusChanged status: IMBannerAudioStatus)
audioDelegate: IMBannerAudioDelegate
isAudioAd: Bool
-(void)showFrom:(UIViewController*)viewController
IMCommonConstants.IM_GDPR_CONSENT_AVAILABLE
IMCommonConstants.IM_GDPR_CONSENT_IAB
IMCommonConstants.IM_SUBJECT_TO_GDPR
IMCommonConstants.IM_PARTNER_GDPR_CONSENT_AVAILABLE
IMCommonConstants.IM_PARTNER_GDPR_APPLIES
IMSDKLogLevelNone, IMSDKLogLevelError, IMSDKLogLevelDebug
IMSDKGenderMale, IMSDKGenderFemale
IMSDKEducationHighSchoolOrLess, IMSDKEducationCollageOrGraduate, IMSDKEducationPostGraduateOrAbove
IMSDKAgeGroupBelow18, IMSDKAgeGroupBetween18And24, IMSDKAgeGroupBetween25And29, IMSDKAgeGroupBetween30And34, IMSDKAgeGroupBetween35And44, IMSDKAgeGroupBetween45And54, IMSDKAgeGroupBetween55And65, IMSDKAgeGroupAbove65
IMInterstitialAnimationTypeCoverVertical, IMInterstitialAnimationTypeFlipHorizontal, IMInterstitialAnimationTypeAsNone
-(void)getSignals
-(void)getSignals
-(void)banner:(IMBanner*)banner gotSignals:(NSData*)signals
-(void)banner:(IMBanner *)banner failedToGetSignalsWithError:(IMRequestStatus*)status
-(void)interstitial:(IMInterstitial*)interstitial gotSignals:(NSData*)signals
-(void)interstitial:(IMInterstitial*)interstitial failedToGetSignalsWithError:(IMRequestStatus*)status
+ -(void)bannerAdImpressed:(IMBanner*)banner;
+ -(void)interstitialAdImpressed:(IMInterstitial*)interstitial;
+ +(void)setIsAgeRestricted:(BOOL)isRestricted;
+ +(void)push:(NSString *)hashId;
+ NSString* contentUrl;
+ NSString* contentUrl;
+ NSString* contentUrl;
+ +(void)setPartnerGDPRConsent:(nullable NSDictionary *)consentDictionary;
+ -(void)load:(NSData*)response;
+(void)setPublisherProvidedUnifiedId:(NSDictionary*)ids;
- +(void)push:(nullable IMUserDataModel *)data;
- +(void)reset;
- +(void)fetchUnifiedIds:(id<imunifiediddelegate>)delegate;</imunifiediddelegate>
<imunifiediddelegate></imunifiediddelegate>
- +(void)enableDebugMode:(BOOL)debugMode;
- +(void)onFetchCompleted:(nullable NSDictionary *)response error:(nullable NSError *)error;
- +(instancetype)initWithPhoneNumber:(nullable IMUserDataTypes *)phoneNumber emailId:(nullable IMUserDataTypes *)emailId extras:(nullable NSDictionary *)extras;
- +(instancetype)initWithMd5:(nullable NSString *)md5 sha1:(nullable NSString *)sha1 sha256:(nullable NSString *)sha256;
- +(void)shouldAutoManageAVAudioSesssion:(BOOL)value;
Bug Fixes- +(NSString *)getToken;
- +(NSString *)getTokenWithExtras:(nullable NSDictionary*)extras andKeywords:(nullable NSString*)keywords
Change log for Monetisation SDK
-(void)banner:(IMBanner*)banner gotSignals:(NSData*)signals;
-(void)banner:(IMBanner *)banner failedToGetSignalsWithError:(IMRequestStatus*)status;
-(void)banner:(IMBanner*)banner didReceiveWithMetaInfo:(IMAdMetaInfo*)info;
-(void)banner:(IMBanner*)banner didFailToReceiveWithError:(IMRequestStatus*)error;
-(void)interstitial:(IMInterstitial*)interstitial gotSignals:(NSData*)signals;
-(void)interstitial:(IMInterstitial*)interstitial failedToGetSignalsWithError:(IMRequestStatus*)status;
-(void)interstitial:(IMInterstitial*)interstitial didReceiveWithMetaInfo:(IMAdMetaInfo*)metaInfo;
-(void)interstitial:(IMInterstitial*)interstitial didFailToReceiveWithError:(NSError*)error;
-(void)preload;
-(void)load;
-(void)preload;
-(void)load;
-(void)interstitialDidReceiveAd:(IMInterstitial*)interstitial;
Change log for Audience Bidding SDK
- (instancetype)initWithFrame:(CGRect)frame placementId:(long long)placementId delegate:(id<imabmopubdelegate>)delegate;</imabmopubdelegate>
<imabmopubdelegate></imabmopubdelegate>
- (void)requestBid:(NSTimeInterval)timeout;
- (void)requestBid:(nullable id)ad timeout:(NSTimeInterval)timeout;
- (instancetype)initWithPlacementId:(long long)placementId delegate:(id<imabmopubdelegate>)delegate;</imabmopubdelegate>
<imabmopubdelegate></imabmopubdelegate>
- (void)requestBid:(NSTimeInterval)timeout;
- (void)requestBid:(nullable id)ad timeout:(NSTimeInterval)timeout;
- (void)bidRecievedFor:(nullable id)mpAd andInMobiAd:(id)imAd withTransactionInfo:(NSString*)keyword;
- (void)bidFailedFor:(nullable id)ad withError:(NSError*)error;
- (instancetype)initWithMoPubObject:(nullable id)mpAd andInMobiObject:(id)imAd;
- +(void)initWithAccountID:(NSString*)accountID consentDictionary:(nullable NSDictionary*) consentDictionary andError:(NSError * _Nullable * _Nonnull)error;
- +(void)initWithAccountID:(NSString *)accountID andError:(NSError * _Nullable * _Nonnull)error;
+ +(void)initWithAccountID:(NSString*)accountID andCompletionHandler:(void (^ _Nullable)( NSError * _Nullable )) completionBlock;
+ +(void)initWithAccountID:(NSString*)accountID consentDictionary:(nullable NSDictionary*) consentDictionary andCompletionHandler:(void (^ _Nullable)( NSError * _Nullable )) completionBlock;
initWithAccountID:consentDictionary:
api of IMSdk.initWithAccountID:consentDictionary:andError:
api to IMSdk.+ -(void)cancel;
+ -(void)cancel;
- @property (nonatomic, assign) ASEnvironmentType env;
- @property (nonatomic, assign) ASPlatformType platform;
- @property (nonatomic, assign) BOOL isMuted;
- @property (nonatomic, assign) BOOL outlineAd;
- @property (nonatomic, assign) BOOL sizeAdToFit;
- @property (nonatomic, assign) BOOL useHeaderBidding;
- @property (nonatomic, strong) NSArray* keyWords;
- @property (nonatomic, assign) BOOL allowAdvertiserCloseButton;
- -(void)forceRefreshAd;
- -(CGSize)adContentSize;
- -(void)rotateToOrientation:(UIInterfaceOrientation)newOrientation;
- -(void)play;
- -(void)pause;
- -(void)willLeaveApplicatonFromAd:(ASAdView*)adView;
- -(void)adSizeChanged:(ASAdView*)adView;
- -(void)adView:(ASAdView*)adView didFireAdvertiserEventWithMessage:(NSString*)msg;
- @property (nonatomic, assign) ASEnvironmentType env;
- @property (nonatomic, assign) ASPlatformType platform;
- @property (nonatomic, assign) BOOL isMuted;
- @property (nonatomic, assign) BOOL showOutline;
- @property (nonatomic, assign) BOOL useHeaderBidding;
- -(void)play;
- -(void)pause;
- -(void)interstitialViewControllerAdInteraction:(ASInterstitialViewController*)viewController;
- -(void)interstitialViewController:(ASInterstitialViewController*)viewController didFireAdvertiserEventWithMessage:(NSString*)msg;
+ -(void)nativeAdIsAvailable:(IMNative*)native;
+ -(void)nativeAdIsAvailable:(IMNative*)native;
By installing this SDK update, you agree that your Children Privacy Compliance setting remains accurate or that you will update that setting, whenever there is a change in your app's audience. You may update the app's Children Privacy Compliance settings at https://publisher.inmobi.com/my-inventory/app-and-placements.