Skip to content

4.0.0

Compare
Choose a tag to compare
@vguerci vguerci released this 03 Nov 14:02
· 390 commits to main since this release

Breaking changes

  • API:
    • New: [Criteo loadBidForAdUnit:responseHandler:] loads asynchronously a bid from Criteo.
      This new method is intended for App Bidding and In-House SDK usage.
    • App Bidding: [Criteo enrichAdObject:withBid:] replaces [Criteo setBidsForRequest:withAdUnit:]:
      A bid is obtained using the aforementioned loadBidForAdUnit: method.
    • In House: CRBannerView, CRInterstitial and CRNativeLoader gets a loadAdWithBid: that
      replaces former loadAdWithBidToken: methods. A bid is obtained using the aforementioned
      loadBidForAdUnit: method.
    • CRInterstitialDelegate:
      • interstitialIsReadyToPresent: moved to interstitialDidReceiveAd:.
        This method is now called when an interstitial ad is ready to be displayed.
      • didFailToReceiveAdContentWithError: merged into didFailToReceiveAdWithError:.
        This method is now called when an error occurs while requesting an interstitiall ad.
  • CocoaPods: Pod is now source provided rather than binary. Few potential changes required on
    pod clients, you can:
    • Either add use_frameworks! to your Podfile so CocoaPods produce frameworks
      from source as before, keeping the same imports working.
    • Either edit Sdk imports:
      • from @import CriteoPublisherSdk; (Semantic import for frameworks)
      • to #import <CriteoPublisherSdk/CriteoPublisherSdk.h> (Standard CocoaPods imports)
    • Alternatively, binary frameworks are now provided through GitHub releases
  • iOS 9 is now the minimum supported version of iOS (bumped from iOS 8)
  • Swift we are including Swift code into the SDK, which means that if your project is Obj-C only,
    you now must have at least one .swift (even empty) file for Xcode to link against swift runtime.
  • Mediation Adapters: These have been merged in this repository. For CocoaPods pods are now
    declared as subspecs, meaning you have to edit your Podfile:
    • Google: From CriteoGoogleMediationAdapters to CriteoPublisherSdk/GoogleAdapter
    • MoPub: From CriteoMoPubMediationAdapters to CriteoPublisherSdk/MoPubAdapter