@@ -506,7 +506,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
506
506
///
507
507
/// returns:
508
508
/// 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;
510
510
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
511
511
@end
512
512
@@ -535,7 +535,7 @@ SWIFT_CLASS("_TtC8TeadsSDK7TeadsAd")
535
535
/// Optional delegate object that receives playback lifecycle changes notifications from TeadsAd.
536
536
/// Usually this is a <code>UIViewController</code>.
537
537
@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
539
539
@property (nonatomic, readonly, copy) NSUUID * _Nonnull requestIdentifier;
540
540
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
541
541
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@@ -601,6 +601,10 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
601
601
/// \param ad The ad that leaved the fullscreen mode.
602
602
///
603
603
- (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;
604
608
@end
605
609
606
610
@@ -611,6 +615,8 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK15TeadsAdDelegate_")
611
615
/// To do so: add this view just above your slot, when visibility is tracked, this view will be removed from superview automaically
612
616
SWIFT_CLASS("_TtC8TeadsSDK29TeadsAdOpportunityTrackerView")
613
617
@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;
614
620
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
615
621
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)_ SWIFT_UNAVAILABLE;
616
622
- (void)removeFromSuperview;
@@ -620,6 +626,8 @@ SWIFT_CLASS("_TtC8TeadsSDK29TeadsAdOpportunityTrackerView")
620
626
SWIFT_PROTOCOL("_TtP8TeadsSDK16TeadsAdPlacement_")
621
627
@protocol TeadsAdPlacement
622
628
/// Your Teads placement identifier for <em>inRead</em> or <em>native</em> ads
629
+ /// note:
630
+ /// no use for <code>TeadsPrebidAdPlacement</code>
623
631
@property (nonatomic, readonly) NSInteger pid;
624
632
@end
625
633
@@ -798,7 +806,7 @@ SWIFT_CLASS("_TtC8TeadsSDK27TeadsAdapterIntegrationType")
798
806
/// Settings used to load Teads’ mediation adapter ads
799
807
/// Specify which setting you want to set for the related mediation request.
800
808
/// 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
802
810
/// <ul>
803
811
/// <li>
804
812
/// <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")
809
817
/// <li>
810
818
/// <a href="https://support.teads.tv/support/solutions/articles/36000314771-smart-adserver-mediation-inread">Smart Ad Server</a>
811
819
/// </li>
820
+ /// <li>
821
+ /// <a href="https://support.teads.tv/support/solutions/articles/3600031477136000459748">Prebid</a>
822
+ /// </li>
812
823
/// </ul>
813
824
SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
814
825
@interface TeadsAdapterSettings : NSObject
826
+ /// Convenient way to specify ability to resize in settings
827
+ - (void)subscribeToAdResizing;
815
828
/// A value describing the native ad media scale that is being used.
816
829
/// This is only relevant for native ad.
817
830
@property (nonatomic, readonly) enum MediaScale mediaScale;
@@ -889,7 +902,7 @@ SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
889
902
/// \param mediaScale The media scale.
890
903
///
891
904
- (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:");
893
906
/// Register the ad view in case of mediation adapter.
894
907
/// In order to perform ad resizing you need to register AdView with a <code>delegate</code>
895
908
/// implementing <code>TeadsMediatedAdViewDelegate/didUpdateRatio(_:adRatio:)</code> will allows you to resize the AdView
@@ -900,7 +913,7 @@ SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
900
913
///
901
914
/// throws:
902
915
/// 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;
904
917
@end
905
918
906
919
@@ -1233,7 +1246,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK21TeadsPlaybackDelegate_")
1233
1246
1234
1247
/// / Prebid ad placement to load inRead ads from Prebid winning bid
1235
1248
/// 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>
1237
1250
/// important:
1238
1251
/// You must own/retain <code>TeadsPrebidAdPlacement</code> instance, otherwise ads could not be delivered properly
1239
1252
SWIFT_PROTOCOL("_TtP8TeadsSDK22TeadsPrebidAdPlacement_")
@@ -1250,8 +1263,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK22TeadsPrebidAdPlacement_")
1250
1263
///
1251
1264
///
1252
1265
/// 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
1254
1267
- (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;
1255
1277
@end
1256
1278
1257
1279
0 commit comments