@@ -506,7 +506,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
506506///
507507/// returns:
508508/// TeadsInReadAdPlacement instance, this instance must be owned/retained
509- + (id <TeadsPrebidAdPlacement> _Nullable)createPrebidInReadPlacementWithSettings :(TeadsAdPlacementSettings * _Nonnull)settings delegate:(id <TeadsInReadAdPlacementDelegate> _Nullable)delegate SWIFT_WARN_UNUSED_RESULT;
509+ + (id <TeadsPrebidAdPlacement> _Nullable)createPrebidPlacementWithSettings :(TeadsAdPlacementSettings * _Nonnull)settings delegate:(id <TeadsInReadAdPlacementDelegate> _Nullable)delegate SWIFT_WARN_UNUSED_RESULT;
510510- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
511511@end
512512
@@ -535,7 +535,7 @@ SWIFT_CLASS("_TtC8TeadsSDK7TeadsAd")
535535/// Optional delegate object that receives playback lifecycle changes notifications from TeadsAd.
536536/// Usually this is a <code>UIViewController</code>.
537537@property (nonatomic, weak) id <TeadsPlaybackDelegate> _Nullable playbackDelegate;
538- /// Request identifier allows you to match the returned value from placement.requestAd call
538+ /// Request identifier allows you to match the returned value from <code> placement.requestAd</code> / <code>placement.loadAd</code> call
539539@property (nonatomic, readonly, copy) NSUUID * _Nonnull requestIdentifier;
540540- (nonnull instancetype)init SWIFT_UNAVAILABLE;
541541+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@@ -601,6 +601,10 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
601601/// \param ad The ad that leaved the fullscreen mode.
602602///
603603- (void)didCollapsedFromFullscreenWithAd:(TeadsAd * _Nonnull)ad;
604+ /// Called when an ad is terminated (deinit)
605+ /// \param identifier The ad request identifier
606+ ///
607+ - (void)didTerminateWithRequestIdentifier:(NSUUID * _Nonnull)requestIdentifier;
604608@end
605609
606610
@@ -611,6 +615,8 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
611615/// To do so: add this view just above your slot, when visibility is tracked, this view will be removed from superview automaically
612616SWIFT_CLASS("_TtC8TeadsSDK29TeadsAdOpportunityTrackerView")
613617@interface TeadsAdOpportunityTrackerView : UIView
618+ /// Request identifier allows you to match the returned value from placement.requestAd call
619+ @property (nonatomic, readonly, copy) NSUUID * _Nullable requestIdentifier;
614620- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
615621- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)_ SWIFT_UNAVAILABLE;
616622- (void)removeFromSuperview;
@@ -620,6 +626,8 @@ SWIFT_CLASS("_TtC8TeadsSDK29TeadsAdOpportunityTrackerView")
620626SWIFT_PROTOCOL("_TtP8TeadsSDK16TeadsAdPlacement_")
621627@protocol TeadsAdPlacement
622628/// Your Teads placement identifier for <em>inRead</em> or <em>native</em> ads
629+ /// note:
630+ /// no use for <code>TeadsPrebidAdPlacement</code>
623631@property (nonatomic, readonly) NSInteger pid;
624632@end
625633
@@ -798,7 +806,7 @@ SWIFT_CLASS("_TtC8TeadsSDK27TeadsAdapterIntegrationType")
798806/// Settings used to load Teads’ mediation adapter ads
799807/// Specify which setting you want to set for the related mediation request.
800808/// Those settings will be persisted for the ad lifecycle only.
801- /// Only relevant when using mediation adapter such as
809+ /// Only relevant when using adapter such as
802810/// <ul>
803811/// <li>
804812/// <a href="https://support.teads.tv/support/solutions/articles/36000314767-inread-google-ad-manager-and-admob-mediation">AdMob</a>
@@ -809,9 +817,14 @@ SWIFT_CLASS("_TtC8TeadsSDK27TeadsAdapterIntegrationType")
809817/// <li>
810818/// <a href="https://support.teads.tv/support/solutions/articles/36000314771-smart-adserver-mediation-inread">Smart Ad Server</a>
811819/// </li>
820+ /// <li>
821+ /// <a href="https://support.teads.tv/support/solutions/articles/3600031477136000459748">Prebid</a>
822+ /// </li>
812823/// </ul>
813824SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
814825@interface TeadsAdapterSettings : NSObject
826+ /// Convenient way to specify ability to resize in settings
827+ - (void)subscribeToAdResizing;
815828/// A value describing the native ad media scale that is being used.
816829/// This is only relevant for native ad.
817830@property (nonatomic, readonly) enum MediaScale mediaScale;
@@ -889,7 +902,7 @@ SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
889902/// \param mediaScale The media scale.
890903///
891904- (void)setMediaScale:(enum MediaScale)mediaScale;
892- - (BOOL)subscribeAdResizeDelegate:(id <TeadsMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("", "registerAdView:delegate:error: ");
905+ - (BOOL)subscribeAdResizeDelegate:(id <TeadsMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("", "registerAdView:delegate:");
893906/// Register the ad view in case of mediation adapter.
894907/// In order to perform ad resizing you need to register AdView with a <code>delegate</code>
895908/// implementing <code>TeadsMediatedAdViewDelegate/didUpdateRatio(_:adRatio:)</code> will allows you to resize the AdView
@@ -900,7 +913,7 @@ SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
900913///
901914/// throws:
902915/// Error is thrown if the <code>adView</code> parameter supplied is not a subclass of Mediation third-party networks like Admob or AppLovin
903- - (BOOL )registerAdView:(UIView * _Nonnull)adView delegate:(id <TeadsMediatedAdViewDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error ;
916+ - (void )registerAdView:(UIView * _Nonnull)adView delegate:(id <TeadsMediatedAdViewDelegate> _Nonnull)delegate;
904917@end
905918
906919
@@ -1233,7 +1246,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK21TeadsPlaybackDelegate_")
12331246
12341247/// / Prebid ad placement to load inRead ads from Prebid winning bid
12351248/// This object is reponsible of loading prebid winning ad response
1236- /// In order to create placement, call <code>Teads/createPrebidInReadPlacement (settings:delegate:)</code>
1249+ /// In order to create placement, call <code>Teads/createPrebidPlacement (settings:delegate:)</code>
12371250/// important:
12381251/// You must own/retain <code>TeadsPrebidAdPlacement</code> instance, otherwise ads could not be delivered properly
12391252SWIFT_PROTOCOL("_TtP8TeadsSDK22TeadsPrebidAdPlacement_")
@@ -1250,8 +1263,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK22TeadsPrebidAdPlacement_")
12501263///
12511264///
12521265/// returns:
1253- /// a unique request identifier, this identifier will be the same value of <code>TeadsInReadAd.requestIdentifier</code> property
1266+ /// a unique load identifier, this identifier will be the same value of <code>TeadsInReadAd.requestIdentifier</code> property
12541267- (NSUUID * _Nonnull)loadAdWithAdResponse:(NSString * _Nonnull)adResponse requestSettings:(TeadsAdRequestSettings * _Nonnull)requestSettings;
1268+ /// get prebid request data
1269+ /// requires:
1270+ /// <code>TeadsPrebidAdPlacement/delegate</code> property must be set to perform ad request, otherwise didReceiveAd will not be triggered
1271+ /// \param requestSettings settings <code>TeadsInReadAdRequestSettings</code> to tweak your needs
1272+ ///
1273+ ///
1274+ /// throws:
1275+ /// error when not able to gather data
1276+ - (NSDictionary * _Nullable)getDataWithRequestSettings:(TeadsAdRequestSettings * _Nonnull)requestSettings error:(NSError * _Nullable * _Nullable)error;
12551277@end
12561278
12571279
0 commit comments