diff --git a/BinaryProjects/AppNexusNativeSDK/Info.plist b/BinaryProjects/AppNexusNativeSDK/Info.plist index 2690f6674..3c0ad7214 100644 --- a/BinaryProjects/AppNexusNativeSDK/Info.plist +++ b/BinaryProjects/AppNexusNativeSDK/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 5.5 + 5.5.1 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/BinaryProjects/AppNexusSDK/Info.plist b/BinaryProjects/AppNexusSDK/Info.plist index d7cf73456..ac24b624c 100644 --- a/BinaryProjects/AppNexusSDK/Info.plist +++ b/BinaryProjects/AppNexusSDK/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 5.5 + 5.5.1 CFBundleSignature ???? CFBundleVersion diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 2b2cb8456..87405dd3b 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,9 +1,8 @@ -## 5.5 +## 5.5.1 ### New Features + MS-3778: Added new API to get Video Orientation for BannerVideo and Video Ads ### Mediation partner upgrades/changes -+ Upgraded Facebook framework to v5.4.0 + Removed support for following mediation Adaptor + AdColony SDK + AdMarvel SDK diff --git a/mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.m b/mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.m index e9a9d3933..98ee67659 100644 --- a/mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.m +++ b/mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.m @@ -40,7 +40,14 @@ - (void)requestNativeAdWithServerParameter:(nullable NSString *)parameterString - (void)registerViewForImpressionTrackingAndClickHandling:(nonnull UIView *)view withRootViewController:(nonnull UIViewController *)rvc clickableViews:(nullable NSArray *)clickableViews { - ANLogDebug(@"Not supporting registering views through this API, please get the FBNativeAd object from reponse's native elements and use FB's original API."); + if (clickableViews.count) { + [self.fbNativeAd registerViewForInteraction:view + withViewController:rvc + withClickableViews:clickableViews]; + } else { + [self.fbNativeAd registerViewForInteraction:view + withViewController:rvc]; + } } - (void)dealloc { @@ -70,6 +77,11 @@ - (void)nativeAd:(FBNativeAd *)nativeAd didFailWithError:(NSError *)error { - (void)nativeAdDidLoad:(FBNativeAd *)nativeAd { ANNativeMediatedAdResponse *response = [[ANNativeMediatedAdResponse alloc] initWithCustomAdapter:self networkCode:ANNativeAdNetworkCodeFacebook]; + response.title = nativeAd.title; + response.body = nativeAd.body; + response.iconImageURL = nativeAd.icon.url; + response.mainImageURL = nativeAd.coverImage.url; + response.callToAction = nativeAd.callToAction; response.customElements = @{ kANNativeElementObject : nativeAd}; [self.requestDelegate didLoadNativeAd:response]; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork old mode 100755 new mode 100644 index 01a69dfdb..4be0a79ac Binary files a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork and b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork differ diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdChoicesView.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdChoicesView.h index 52c2149cb..f97e954b3 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdChoicesView.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdChoicesView.h @@ -19,12 +19,11 @@ #import #import -#import NS_ASSUME_NONNULL_BEGIN @class FBAdImage; -@class FBNativeAdBase; +@class FBNativeAd; @class FBNativeAdViewAttributes; /** @@ -51,52 +50,42 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** The native ad that provides AdChoices info, such as the image url, and click url. Setting this updates the nativeAd. */ -@property (nonatomic, weak, readwrite, nullable) FBNativeAdBase *nativeAd; +@property (nonatomic, weak, readwrite, nullable) FBNativeAd *nativeAd; /** Affects background mask rendering. Setting this property updates the rendering. */ @property (nonatomic, assign, readwrite) UIRectCorner corner; -/** - Affects background mask rendering. Setting this property updates the rendering. - */ -@property (nonatomic, assign, readwrite) UIEdgeInsets insets; - /** The view controller to present the ad choices info from. If nil, the top view controller is used. */ @property (nonatomic, weak, readwrite, null_resettable) UIViewController *rootViewController; -/** - The tag for AdChoices view. It always returns FBNativeAdViewTagChoicesIcon. - */ -@property (nonatomic, assign, readonly) FBNativeAdViewTag nativeAdViewTag; - /** Initialize this view with a given native ad. Configuration is pulled from the native ad. - @param nativeAd The native ad to initialize with. + - Parameter nativeAd: The native ad to initialize with. */ -- (instancetype)initWithNativeAd:(FBNativeAdBase *)nativeAd; +- (instancetype)initWithNativeAd:(FBNativeAd *)nativeAd; /** Initialize this view with a given native ad. Configuration is pulled from the native ad. - @param nativeAd The native ad to initialize with. - @param expandable Controls whether view defaults to expanded or not, see property documentation + - Parameter nativeAd: The native ad to initialize with. + - Parameter expandable: Controls whether view defaults to expanded or not, see property documentation */ -- (instancetype)initWithNativeAd:(FBNativeAdBase *)nativeAd +- (instancetype)initWithNativeAd:(FBNativeAd *)nativeAd expandable:(BOOL)expandable; /** Initialize this view with a given native ad. Configuration is pulled from the native ad. - @param nativeAd The native ad to initialize with. - @param expandable Controls whether view defaults to expanded or not, see property documentation - @param attributes Attributes to configure look and feel. + - Parameter nativeAd: The native ad to initialize with. + - Parameter expandable: Controls whether view defaults to expanded or not, see property documentation + - Parameter attributes: Attributes to configure look and feel. */ -- (instancetype)initWithNativeAd:(FBNativeAdBase *)nativeAd +- (instancetype)initWithNativeAd:(FBNativeAd *)nativeAd expandable:(BOOL)expandable attributes:(nullable FBNativeAdViewAttributes *)attributes; @@ -108,16 +97,10 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Using the superview, this updates the frame of this view, positioning the icon in the corner specified. UIRectCornerAllCorners not supported. - @param corner The corner to display this view from. + - Parameter corner: The corner to display this view from. + - Parameter insets: Insets to take into account when positioning the view. Only respective insets are applied to corners. */ - (void)updateFrameFromSuperview:(UIRectCorner)corner; - -/** - Using the superview, this updates the frame of this view, positioning the icon in the corner specified. UIRectCornerAllCorners not supported. - - @param corner The corner to display this view from. - @param insets Insets to take into account when positioning the view. Only respective insets are applied to corners. - */ - (void)updateFrameFromSuperview:(UIRectCorner)corner insets:(UIEdgeInsets)insets; @end diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdDefines.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdDefines.h index 5a63b6761..5203db1b9 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdDefines.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdDefines.h @@ -35,7 +35,6 @@ #define FB_CLASS_EXPORT __attribute__((visibility("default"))) #define FB_DEPRECATED __attribute__((deprecated)) -#define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M))) #if __has_feature(objc_generics) #define FB_NSArrayOf(x) NSArray @@ -61,6 +60,18 @@ #define __nullable #endif +#ifndef FB_IOS9_SDK_OR_LATER +#define FB_IOS9_SDK_OR_LATER (__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0) +#endif + +#ifndef FBInterfaceOrientationMask +#if !FB_IOS9_SDK_OR_LATER +#define FBInterfaceOrientationMask NSUInteger +#else +#define FBInterfaceOrientationMask UIInterfaceOrientationMask +#endif // FB_IOS9_SDK_OR_LATER +#endif // FBInterfaceOrientationMask + #ifndef FB_SUBCLASSING_RESTRICTED #if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted) #define FB_SUBCLASSING_RESTRICTED __attribute__((objc_subclassing_restricted)) diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdSettings.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdSettings.h index 5168bad25..0359343cb 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdSettings.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdSettings.h @@ -90,9 +90,7 @@ typedef NS_ENUM(NSInteger, FBAdTestAdType) { /// carousel ad with square image and app install CTA option FBAdTestAdType_Carousel_Img_Square_App_Install, /// carousel ad with square image and link CTA option - FBAdTestAdType_Carousel_Img_Square_Link, - /// carousel ad with square video and link CTA option - FBAdTestAdType_Carousel_Vid_Square_Link + FBAdTestAdType_Carousel_Img_Square_Link }; @protocol FBAdLoggingDelegate; @@ -127,11 +125,6 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED */ @property (class, nonatomic, copy, readonly) NSString *bidderToken; -/** - Generates routing token needed for requests routing in reverse-proxy, since we don't have cookies in app environments. - */ -@property (class, nonatomic, copy, readonly) NSString *routingToken; - /** Returns test mode on/off. */ @@ -145,7 +138,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Adds a test device. - @param deviceHash The id of the device to use test mode, can be obtained from debug log or testDeviceHash + - Parameter deviceHash: The id of the device to use test mode, can be obtained from debug log or testDeviceHash @@ -157,7 +150,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Add a collection of test devices. See `+addTestDevices:` for details. - @param devicesHash The array of the device id to use test mode, can be obtained from debug log or testDeviceHash + - Parameter devicesHash: The array of the device id to use test mode, can be obtained from debug log or testDeviceHash */ + (void)addTestDevices:(FB_NSArrayOf(NSString *)*)devicesHash; @@ -169,14 +162,14 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Clears the added test device - @param deviceHash The id of the device using test mode, can be obtained from debug log or testDeviceHash + - Parameter deviceHash: The id of the device using test mode, can be obtained from debug log or testDeviceHash */ + (void)clearTestDevice:(NSString *)deviceHash; /** Configures the ad control for treatment as child-directed. - @param isChildDirected Indicates whether you would like your ad control to be treated as child-directed + - Parameter isChildDirected: Indicates whether you would like your ad control to be treated as child-directed Note that you may have other legal obligations under the Children's Online Privacy Protection Act (COPPA). Please review the FTC's guidance and consult with your own legal counsel. @@ -186,7 +179,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** If an ad provided service is mediating Audience Network in their sdk, it is required to set the name of the mediation service - @param service Representing the name of the mediation that is mediation Audience Network + - Parameter service: Representing the name of the mediation that is mediation Audience Network */ + (void)setMediationService:(NSString *)service; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdView.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdView.h index d460f575c..1f98ab004 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdView.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAdView.h @@ -20,7 +20,6 @@ #import #import -#import #import NS_ASSUME_NONNULL_BEGIN @@ -36,27 +35,14 @@ FB_CLASS_EXPORT /** This is a method to initialize an FBAdView matching the given placement id. - @param placementID The id of the ad placement. You can create your placement id from Facebook developers page. - @param adSize The size of the ad; for example, kFBAdSizeHeight50Banner or kFBAdSizeHeight90Banner. - @param rootViewController The view controller that will be used to present the ad and the app store view. + - Parameter placementID: The id of the ad placement. You can create your placement id from Facebook developers page. + - Parameter adSize: The size of the ad; for example, kFBAdSizeHeight50Banner or kFBAdSizeHeight90Banner. + - Parameter viewController: The view controller that will be used to present the ad and the app store view. */ - (instancetype)initWithPlacementID:(NSString *)placementID adSize:(FBAdSize)adSize rootViewController:(nullable UIViewController *)rootViewController NS_DESIGNATED_INITIALIZER; -/** - This is a method to initialize an FBAdView matching the given placement id with a given bidding payload. - - @param placementID The id of the ad placement. You can create your placement id from Facebook developers page. - @param bidPayload The bid payload sent from the server. - @param rootViewController The view controller that will be used to present the ad and the app store view. - @param error An out value that returns any error encountered during init. - */ -- (nullable instancetype)initWithPlacementID:(NSString *)placementID - bidPayload:(NSString *)bidPayload - rootViewController:(nullable UIViewController *)rootViewController - error:(NSError * __autoreleasing *) error; - /** Begins loading the FBAdView content. @@ -73,14 +59,23 @@ FB_CLASS_EXPORT You can implement `adViewDidLoad:` and `adView:didFailWithError:` methods of `FBAdViewDelegate` if you would like to be notified as loading succeeds or fails. - @param bidPayload The payload of the ad bid. You can get your bid id from Facebook bidder endpoint. + - Parameter bidPayload: The payload of the ad bid. You can get your bid id from Facebook bidder endpoint. */ - (void)loadAdWithBidPayload:(NSString *)bidPayload; /** - There is no reason to call this method anymore. Autorefresh is disabled by default. + This is a method to disable auto refresh for the FBAdView instance + + + By default, we read the refresh interval from the placement setting in your Facebook + developers page. Once you call this method, the auto refresh will be disabled for this FBAdView + instance, and you cannot re-enable the refresh for this instance. A new created FBAdView will still + use the default behavior. + + This method is designed for ad network mediation. We still recommend you to set the placement + refresh interval as 'None' if you're using one of the ad network mediation. */ -- (void)disableAutoRefresh FB_DEPRECATED; +- (void)disableAutoRefresh; /** Typed access to the id of the ad placement. @@ -90,18 +85,10 @@ FB_CLASS_EXPORT Typed access to the app's root view controller. */ @property (nonatomic, weak, readonly, nullable) UIViewController *rootViewController; -/** - Call isAdValid to check whether ad is valid - */ -@property (nonatomic, getter=isAdValid, readonly) BOOL adValid; /** the delegate */ @property (nonatomic, weak, nullable) id delegate; -/** - FBAdExtraHint to provide extra info - */ -@property (nonatomic, strong, nullable) FBAdExtraHint *extraHint; @end @@ -117,7 +104,7 @@ FB_CLASS_EXPORT /** Sent after an ad has been clicked by the person. - @param adView An FBAdView object sending the message. + - Parameter adView: An FBAdView object sending the message. */ - (void)adViewDidClick:(FBAdView *)adView; /** @@ -125,27 +112,27 @@ FB_CLASS_EXPORT interaction with the modal view and dismiss it, this message will be sent, returning control to the application. - @param adView An FBAdView object sending the message. + - Parameter adView: An FBAdView object sending the message. */ - (void)adViewDidFinishHandlingClick:(FBAdView *)adView; /** Sent when an ad has been successfully loaded. - @param adView An FBAdView object sending the message. + - Parameter adView: An FBAdView object sending the message. */ - (void)adViewDidLoad:(FBAdView *)adView; /** Sent after an FBAdView fails to load the ad. - @param adView An FBAdView object sending the message. - @param error An error object containing details of the error. + - Parameter adView: An FBAdView object sending the message. + - Parameter error: An error object containing details of the error. */ - (void)adView:(FBAdView *)adView didFailWithError:(NSError *)error; /** Sent immediately before the impression of an FBAdView object will be logged. - @param adView An FBAdView object sending the message. + - Parameter adView: An FBAdView object sending the message. */ - (void)adViewWillLogImpression:(FBAdView *)adView; @@ -153,7 +140,7 @@ FB_CLASS_EXPORT Asks the delegate for a view controller to present modal content, such as the in-app browser that can appear when an ad is clicked. - @return A view controller that is used to present modal content. + - Returns: A view controller that is used to present modal content. */ @property (nonatomic, readonly, strong) UIViewController *viewControllerForPresentingModalView; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h index 33430eeb8..07858208c 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h @@ -1,4 +1,3 @@ - // Copyright 2004-present Facebook. All Rights Reserved. // // You are hereby granted a non-exclusive, worldwide, royalty-free license to use, @@ -21,12 +20,8 @@ #import #import -#import -#import -#import #import #import -#import #import #import #import @@ -39,12 +34,9 @@ #import #import #import -#import -#import #import -#import // NOTE: Any changes should also be made to the module.modulemap // to ensure comptability with Swift apps using Cocoapods -#define FB_AD_SDK_VERSION @"5.4.0" +#define FB_AD_SDK_VERSION @"4.28.1" diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h index 22eae1d0c..d9565a86d 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h @@ -19,7 +19,6 @@ #import #import -#import NS_ASSUME_NONNULL_BEGIN @@ -50,16 +49,11 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED */ @property (nonatomic, copy, readonly) NSString *placementID; -/** - FBAdExtraHint to provide extra info - */ -@property (nonatomic, strong, nullable) FBAdExtraHint *extraHint; - /** Initializes and returns a newly allocated FBInstreamAdView object with the given placement id. - @param placementID The id of the ad placement. You can create your placement id from Facebook developers page. + - Parameter placementID: The id of the ad placement. You can create your placement id from Facebook developers page. */ - (nullable instancetype)initWithPlacementID:(NSString *)placementID NS_DESIGNATED_INITIALIZER; @@ -78,7 +72,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED You can implement `adViewDidLoad:` and `adView:didFailWithError:` methods of `FBInstreamAdViewDelegate` to be notified when loading succeeds or fails. - @param bidPayload The payload of the ad bid. You can get your bid id from Facebook bidder endpoint. + - Parameter bidPayload: The payload of the ad bid. You can get your bid id from Facebook bidder endpoint. */ - (void)loadAdWithBidPayload:(NSString *)bidPayload; @@ -86,7 +80,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED Begins ad playback. This method should only be called after an `adViewDidLoad:` call has been received. - @param rootViewController The view controller that will be used to modally + - Parameter rootViewController: The view controller that will be used to modally present additional view controllers, to render the ad's landing page for example. */ - (BOOL)showAdFromRootViewController:(nullable UIViewController *)rootViewController; @@ -102,7 +96,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Sent when an FBInstreamAdView instance successfully loads an ad. - @param adView The FBInstreamAdView object sending the message. + - Parameter adView: The FBInstreamAdView object sending the message. */ - (void)adViewDidLoad:(FBInstreamAdView *)adView; @@ -111,7 +105,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED deallocated. This method is mutually exclusive to `adView:didFailWithError:`, and it is impossible for both methods to be received for a single ad session. - @param adView The FBInstreamAdView object sending the message. + - Parameter adView: The FBInstreamAdView object sending the message. */ - (void)adViewDidEnd:(FBInstreamAdView *)adView; @@ -121,8 +115,8 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED `loadAd` (if they ad fails to load) or after `showAdFromRootViewController:` (if the ad has a playback failure). - @param adView The FBInstreamAdView object sending the message. - @param error An NSError object containing details of the error. + - Parameter adView: The FBInstreamAdView object sending the message. + - Parameter error: An NSError object containing details of the error. */ - (void)adView:(FBInstreamAdView *)adView didFailWithError:(NSError *)error; @@ -132,14 +126,14 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED Sent when the user has touched the click-through interface element. The ad's landing page will be shown. - @param adView The FBInstreamAdView object sending the message. + - Parameter adView: The FBInstreamAdView object sending the message. */ - (void)adViewDidClick:(FBInstreamAdView *)adView; /** Sent immediately before the impression of an FBInstreamAdView object will be logged. - @param adView The FBInstreamAdView object sending the message. + - Parameter adView: The FBInstreamAdView object sending the message. */ - (void)adViewWillLogImpression:(FBInstreamAdView *)adView; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBInterstitialAd.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBInterstitialAd.h index b52fd46f0..b1617b55b 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBInterstitialAd.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBInterstitialAd.h @@ -20,7 +20,6 @@ #import #import -#import #import NS_ASSUME_NONNULL_BEGIN @@ -42,15 +41,11 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED the delegate */ @property (nonatomic, weak, nullable) id delegate; -/** - FBAdExtraHint to provide extra info - */ -@property (nonatomic, strong, nullable) FBAdExtraHint *extraHint; /** This is a method to initialize an FBInterstitialAd matching the given placement id. - @param placementID The id of the ad placement. You can create your placement id from Facebook developers page. + - Parameter placementID: The id of the ad placement. You can create your placement id from Facebook developers page. */ - (instancetype)initWithPlacementID:(NSString *)placementID NS_DESIGNATED_INITIALIZER; @@ -78,14 +73,14 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED You can implement `adViewDidLoad:` and `adView:didFailWithError:` methods of `FBAdViewDelegate` if you would like to be notified as loading succeeds or fails. - @param bidPayload The payload of the ad bid. You can get your bid id from Facebook bidder endpoint. + - Parameter bidPayload: The payload of the ad bid. You can get your bid id from Facebook bidder endpoint. */ - (void)loadAdWithBidPayload:(NSString *)bidPayload; /** Presents the interstitial ad modally from the specified view controller. - @param rootViewController The view controller that will be used to present the interstitial ad. + - Parameter rootViewController: The view controller that will be used to present the interstitial ad. You can implement `interstitialAdDidClick:`, `interstitialAdWillClose:` and `interstitialAdWillClose` @@ -108,7 +103,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED Sent after an ad in the FBInterstitialAd object is clicked. The appropriate app store view or app browser will be launched. - @param interstitialAd An FBInterstitialAd object sending the message. + - Parameter interstitialAd: An FBInterstitialAd object sending the message. */ - (void)interstitialAdDidClick:(FBInterstitialAd *)interstitialAd; @@ -116,36 +111,36 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED Sent after an FBInterstitialAd object has been dismissed from the screen, returning control to your application. - @param interstitialAd An FBInterstitialAd object sending the message. + - Parameter interstitialAd: An FBInterstitialAd object sending the message. */ - (void)interstitialAdDidClose:(FBInterstitialAd *)interstitialAd; /** Sent immediately before an FBInterstitialAd object will be dismissed from the screen. - @param interstitialAd An FBInterstitialAd object sending the message. + - Parameter interstitialAd: An FBInterstitialAd object sending the message. */ - (void)interstitialAdWillClose:(FBInterstitialAd *)interstitialAd; /** Sent when an FBInterstitialAd successfully loads an ad. - @param interstitialAd An FBInterstitialAd object sending the message. + - Parameter interstitialAd: An FBInterstitialAd object sending the message. */ - (void)interstitialAdDidLoad:(FBInterstitialAd *)interstitialAd; /** Sent when an FBInterstitialAd failes to load an ad. - @param interstitialAd An FBInterstitialAd object sending the message. - @param error An error object containing details of the error. + - Parameter interstitialAd: An FBInterstitialAd object sending the message. + - Parameter error: An error object containing details of the error. */ - (void)interstitialAd:(FBInterstitialAd *)interstitialAd didFailWithError:(NSError *)error; /** Sent immediately before the impression of an FBInterstitialAd object will be logged. - @param interstitialAd An FBInterstitialAd object sending the message. + - Parameter interstitialAd: An FBInterstitialAd object sending the message. */ - (void)interstitialAdWillLogImpression:(FBInterstitialAd *)interstitialAd; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBMediaView.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBMediaView.h index 91633ec6c..c897ac8d2 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBMediaView.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBMediaView.h @@ -20,7 +20,6 @@ #import #import -#import NS_ASSUME_NONNULL_BEGIN @@ -38,32 +37,37 @@ FB_CLASS_EXPORT */ @property (nonatomic, weak, nullable) id delegate; +/** + This is a method to create a media view using the given native ad. + - Parameter nativeAd: The native ad to load media content from. + */ +- (instancetype)initWithNativeAd:(FBNativeAd *)nativeAd; + +/** + the native ad, can be set again to reuse this view. + */ +@property (nonatomic, strong) FBNativeAd *nativeAd; + /** A custom FBMediaViewVideoRenderer instance, used to override the default user experience of video ads. - The video renderer can only be set prior to registering the mediaView to a nativeAd */ @property (nonatomic, strong) FBMediaViewVideoRenderer *videoRenderer; /** The current volume of the media view, ranging from 0.0 through 1.0. */ -@property (nonatomic, assign, readonly) float volume; +@property (nonatomic, assign, readonly) float volume FB_DEPRECATED; /** - Shows if the video will autoplay or not + Enables or disables autoplay for some types of media. Defaults to YES. */ -@property (nonatomic, readonly, getter=isAutoplayEnabled) BOOL autoplayEnabled; +@property (nonatomic, assign, getter=isAutoplayEnabled) BOOL autoplayEnabled; /** The aspect ratio of the media view visual content. Returns a positive CGFloat, or 0.0 if no ad is currently loaded. */ @property (nonatomic, assign, readonly) CGFloat aspectRatio; -/** - The tag for media view. It always returns FBNativeAdViewTagMedia. - */ -@property (nonatomic, assign, readonly) FBNativeAdViewTag nativeAdViewTag; - /** Changes the width of the FBMediaView's frame based on the current height, respecting aspectRatio. */ @@ -74,6 +78,9 @@ FB_CLASS_EXPORT */ - (void)applyNaturalHeight; +// Setting autoplayEnabled in the SDK is deprecated. Migrate to using server-side control when available. +- (void)setAutoplayEnabled:(BOOL)autoplayEnabled FB_DEPRECATED; + @end /** @@ -86,50 +93,50 @@ FB_CLASS_EXPORT /** Sent when an FBMediaView has been successfully loaded. - @param mediaView An FBMediaView object sending the message. + - Parameter mediaView: An FBMediaView object sending the message. */ - (void)mediaViewDidLoad:(FBMediaView *)mediaView; /** Sent just before an FBMediaView will enter the fullscreen layout. - @param mediaView An FBMediaView object sending the message. + - Parameter mediaView: An FBMediaView object sending the message. */ - (void)mediaViewWillEnterFullscreen:(FBMediaView *)mediaView; /** Sent after an FBMediaView has exited the fullscreen layout. - @param mediaView An FBMediaView object sending the message. + - Parameter mediaView: An FBMediaView object sending the message. */ - (void)mediaViewDidExitFullscreen:(FBMediaView *)mediaView; /** Sent when an FBMediaView has changed the playback volume of a video ad. - @param mediaView An FBMediaView object sending the message. - @param volume The current ad video volume (after the volume change). + - Parameter mediaView: An FBMediaView object sending the message. + - Parameter volume: The current ad video volume (after the volume change). */ - (void)mediaView:(FBMediaView *)mediaView videoVolumeDidChange:(float)volume; /** Sent after a video ad in an FBMediaView enters a paused state. - @param mediaView An FBMediaView object sending the message. + - Parameter mediaView: An FBMediaView object sending the message. */ - (void)mediaViewVideoDidPause:(FBMediaView *)mediaView; /** Sent after a video ad in an FBMediaView enters a playing state. - @param mediaView An FBMediaView object sending the message. + - Parameter mediaView: An FBMediaView object sending the message. */ - (void)mediaViewVideoDidPlay:(FBMediaView *)mediaView; /** Sent when a video ad in an FBMediaView reaches the end of playback. - @param mediaView An FBMediaView object sending the message. + - Parameter mediaView: An FBMediaView object sending the message. */ - (void)mediaViewVideoDidComplete:(FBMediaView *)mediaView; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBMediaViewVideoRenderer.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBMediaViewVideoRenderer.h index 40a87bed3..cf4a300c6 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBMediaViewVideoRenderer.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBMediaViewVideoRenderer.h @@ -76,15 +76,15 @@ FB_CLASS_EXPORT /** Seeks the video to a particular time location. Only works after calling `engageVideoSeek`. - @param time The requested time location, expressed as a CMTime value. + - Parameter time: The requested time location, expressed as a CMTime value. */ - (void)seekVideoToTime:(CMTime)time; /** Requests the periodic invocation of a given block during playback to report changing time. - @param interval The time interval at which the block should be invoked during normal playback, according to progress of the player's current time. - @param queue A serial dispatch queue onto which block should be enqueued. - @param block The block to be invoked periodically. + - Parameter interval: The time interval at which the block should be invoked during normal playback, according to progress of the player's current time. + - Parameter queue: A serial dispatch queue onto which block should be enqueued. + - Parameter block: The block to be invoked periodically. */ - (nullable id)addPeriodicTimeObserverForInterval:(CMTime)interval queue:(dispatch_queue_t)queue diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAd.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAd.h index e066b0975..d7bde2733 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAd.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAd.h @@ -19,101 +19,160 @@ #import #import -#import -#import - -#import "FBAdImage.h" NS_ASSUME_NONNULL_BEGIN @protocol FBNativeAdDelegate; +@class FBAdImage; + +/** + Determines what parts of a native ad's content are cached through FBMediaView + */ +typedef NS_OPTIONS(NSInteger, FBNativeAdsCachePolicy) { + /// No ad content is cached + FBNativeAdsCachePolicyNone = 1 << 0, + /// Icon is cached + FBNativeAdsCachePolicyIcon = 1 << 1, + /// Cover image is cached + FBNativeAdsCachePolicyCoverImage = 1 << 2, + /// Video is cached + FBNativeAdsCachePolicyVideo = 1 << 3, + /// AdChoices icon is cached + FBNativeAdsCachePolicyAdChoices = 1 << 4, + /// All content is cached + FBNativeAdsCachePolicyAll = FBNativeAdsCachePolicyCoverImage | FBNativeAdsCachePolicyIcon | FBNativeAdsCachePolicyVideo | FBNativeAdsCachePolicyAdChoices, +}; /** The FBNativeAd represents ad metadata to allow you to construct custom ad views. See the AdUnitsSample in the sample apps section of the Audience Network framework. */ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED -@interface FBNativeAd: FBNativeAdBase +@interface FBNativeAd : NSObject + +/** + Typed access to the id of the ad placement. + */ +@property (nonatomic, copy, readonly) NSString *placementID; +/** + Typed access to the ad star rating. See `FBAdStarRating` for details. + */ +@property (nonatomic, assign, readonly) struct FBAdStarRating starRating FB_DEPRECATED; +/** + Typed access to the ad title. + */ +@property (nonatomic, copy, readonly, nullable) NSString *title; +/** + Typed access to the ad subtitle. + */ +@property (nonatomic, copy, readonly, nullable) NSString *subtitle; +/** + Typed access to the ad social context, for example "Over half a million users". + */ +@property (nonatomic, copy, readonly, nullable) NSString *socialContext; +/** + Typed access to the call to action phrase of the ad, for example "Install Now". + */ +@property (nonatomic, copy, readonly, nullable) NSString *callToAction; +/** + Typed access to the ad icon. See `FBAdImage` for details. + */ +@property (nonatomic, strong, readonly, nullable) FBAdImage *icon; +/** + Typed access to the ad cover image creative. See `FBAdImage` for details. + */ +@property (nonatomic, strong, readonly, nullable) FBAdImage *coverImage; +/** + Typed access to the body raw untruncated text, usually a longer description of the ad. Note, this method always returns untruncated text, as opposed to -(NSString *) body. + */ +@property (nonatomic, copy, readonly, nullable) NSString *rawBody; +/** + Typed access to the body text, usually a longer description of the ad. + */ +@property (nonatomic, copy, readonly, nullable) NSString *body; +/** + Typed access to the AdChoices icon. See `FBAdImage` for details. See `FBAdChoicesView` for an included implementation. + */ +@property (nonatomic, strong, readonly, nullable) FBAdImage *adChoicesIcon; +/** + Typed access to the AdChoices URL. Navigate to this link when the icon is tapped. See `FBAdChoicesView` for an included implementation. + */ +@property (nonatomic, copy, readonly, nullable) NSURL *adChoicesLinkURL; +/** + Typed access to the AdChoices text, usually a localized version of "AdChoices". See `FBAdChoicesView` for an included implementation. + */ +@property (nonatomic, copy, readonly, nullable) NSString *adChoicesText; /** - the delegate + Set the native ad caching policy. This controls which media (images, video, etc) from the native ad are cached before the native ad calls nativeAdLoaded on its delegate. The default is to not block on caching. Ensure that media is loaded through FBMediaView or through [FBAdImage loadImageAsyncWithBlock:] to take full advantage of caching. + */ +@property (nonatomic, assign) FBNativeAdsCachePolicy mediaCachePolicy; +/** + the delegate */ @property (nonatomic, weak, nullable) id delegate; -- (instancetype)initWithPlacementID:(NSString *)placementID; +/** + This is a method to initialize a FBNativeAd object matching the given placement id. + + - Parameter placementID: The id of the ad placement. You can create your placement id from Facebook developers page. + */ +- (instancetype)initWithPlacementID:(NSString *)placementID NS_DESIGNATED_INITIALIZER; /** - This is a method to associate a FBNativeAd with the UIView you will use to display the native ads. + This is a method to associate a FBNativeAd with the UIView you will use to display the native ads. - @param view The UIView you created to render all the native ads data elements. - @param mediaView The FBMediaView you created to render the media (cover image / video / carousel) - @param iconView The FBMediaView you created to render the icon - @param viewController The UIViewController that will be used to present SKStoreProductViewController + - Parameter view: The UIView you created to render all the native ads data elements. + - Parameter viewController: The UIViewController that will be used to present SKStoreProductViewController (iTunes Store product information) or the in-app browser. If nil is passed, the top view controller currently shown will be used. + + The whole area of the UIView will be clickable. */ - (void)registerViewForInteraction:(UIView *)view - mediaView:(FBMediaView *)mediaView - iconView:(nullable FBMediaView *)iconView - viewController:(nullable UIViewController *)viewController; + withViewController:(nullable UIViewController *)viewController; /** - This is a method to associate FBNativeAd with the UIView you will use to display the native ads - and set clickable areas. + This is a method to associate FBNativeAd with the UIView you will use to display the native ads + and set clickable areas. - @param view The UIView you created to render all the native ads data elements. - @param mediaView The FBMediaView you created to render the media (cover image / video / carousel) - @param iconView The FBMediaView you created to render the icon - @param viewController The UIViewController that will be used to present SKStoreProductViewController + - Parameter view: The UIView you created to render all the native ads data elements. + - Parameter viewController: The UIViewController that will be used to present SKStoreProductViewController (iTunes Store product information). If nil is passed, the top view controller currently shown will be used. - @param clickableViews An array of UIView you created to render the native ads data element, e.g. + - Parameter clickableViews: An array of UIView you created to render the native ads data element, e.g. CallToAction button, Icon image, which you want to specify as clickable. */ - (void)registerViewForInteraction:(UIView *)view - mediaView:(FBMediaView *)mediaView - iconView:(nullable FBMediaView *)iconView - viewController:(nullable UIViewController *)viewController - clickableViews:(nullable NSArray *)clickableViews; + withViewController:(nullable UIViewController *)viewController + withClickableViews:(FB_NSArrayOf(UIView *)*)clickableViews; +/** + This is a method to disconnect a FBNativeAd with the UIView you used to display the native ads. + */ +- (void)unregisterView; /** - This is a method to associate a FBNativeAd with the UIView you will use to display the native ads. + Begins loading the FBNativeAd content. - @param view The UIView you created to render all the native ads data elements. - @param mediaView The FBMediaView you created to render the media (cover image / video / carousel) - @param iconImageView The UIImageView you created to render the icon - @param viewController The UIViewController that will be used to present SKStoreProductViewController - (iTunes Store product information) or the in-app browser. If nil is passed, the top view controller currently shown will be used. - The whole area of the UIView will be clickable. + You can implement `nativeAdDidLoad:` and `nativeAd:didFailWithError:` methods + of `FBNativeAdDelegate` if you would like to be notified as loading succeeds or fails. */ -- (void)registerViewForInteraction:(UIView *)view - mediaView:(FBMediaView *)mediaView - iconImageView:(nullable UIImageView *)iconImageView - viewController:(nullable UIViewController *)viewController; +- (void)loadAd; /** - This is a method to associate FBNativeAd with the UIView you will use to display the native ads - and set clickable areas. + Begins loading the FBNativeAd content from a bid payload attained through a server side bid. - @param view The UIView you created to render all the native ads data elements. - @param mediaView The FBMediaView you created to render the media (cover image / video / carousel) - @param iconImageView The UIImageView you created to render the icon - @param viewController The UIViewController that will be used to present SKStoreProductViewController - (iTunes Store product information). If nil is passed, the top view controller currently shown will be used. - @param clickableViews An array of UIView you created to render the native ads data element, e.g. - CallToAction button, Icon image, which you want to specify as clickable. + - Parameter bidPayload: The payload of the ad bid. You can get your bid payload from Facebook bidder endpoint. */ -- (void)registerViewForInteraction:(UIView *)view - mediaView:(FBMediaView *)mediaView - iconImageView:(nullable UIImageView *)iconImageView - viewController:(nullable UIViewController *)viewController - clickableViews:(nullable NSArray *)clickableViews; +- (void)loadAdWithBidPayload:(NSString *)bidPayload; /** - This is a method to use to download all media for the ad (adChoicesIcon, icon, image, video). - This is only needed to be called if the mediaCachePolicy is set to FBNativeAdsCachePolicyNone. + Call isAdValid to check whether native ad is valid & internal consistent prior rendering using its properties. If + rendering is done as part of the loadAd callback, it is guarantee to be consistent */ -- (void)downloadMedia; +@property (nonatomic, getter=isAdValid, readonly) BOOL adValid; + +@property (nonatomic, copy, readonly, nullable, getter=getAdNetwork) NSString *adNetwork; @end @@ -128,34 +187,29 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Sent when an FBNativeAd has been successfully loaded. - @param nativeAd An FBNativeAd object sending the message. + - Parameter nativeAd: An FBNativeAd object sending the message. */ - (void)nativeAdDidLoad:(FBNativeAd *)nativeAd; -/** - Sent when an FBNativeAd has succesfully downloaded all media - */ -- (void)nativeAdDidDownloadMedia:(FBNativeAd *)nativeAd; - /** Sent immediately before the impression of an FBNativeAd object will be logged. - @param nativeAd An FBNativeAd object sending the message. + - Parameter nativeAd: An FBNativeAd object sending the message. */ - (void)nativeAdWillLogImpression:(FBNativeAd *)nativeAd; /** Sent when an FBNativeAd is failed to load. - @param nativeAd An FBNativeAd object sending the message. - @param error An error object containing details of the error. + - Parameter nativeAd: An FBNativeAd object sending the message. + - Parameter error: An error object containing details of the error. */ - (void)nativeAd:(FBNativeAd *)nativeAd didFailWithError:(NSError *)error; /** Sent after an ad has been clicked by the person. - @param nativeAd An FBNativeAd object sending the message. + - Parameter nativeAd: An FBNativeAd object sending the message. */ - (void)nativeAdDidClick:(FBNativeAd *)nativeAd; @@ -164,10 +218,90 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED interaction with the modal view and dismiss it, this message will be sent, returning control to the application. - @param nativeAd An FBNativeAd object sending the message. + - Parameter nativeAd: An FBNativeAd object sending the message. */ - (void)nativeAdDidFinishHandlingClick:(FBNativeAd *)nativeAd; @end +/** + Represents the Facebook ad star rating, which contains the rating value and rating scale. + */ +FB_EXPORT struct FBAdStarRating { + /// The value of the star rating, X in X/5 + CGFloat value; + /// The total possible star rating, Y in 4/Y + NSInteger scale; +} FBAdStarRating; + +/** + Represents an image creative. + */ +FB_CLASS_EXPORT +@interface FBAdImage : NSObject + +/** + Typed access to the image url. + */ +@property (nonatomic, copy, readonly) NSURL *url; +/** + Typed access to the image width. + */ +@property (nonatomic, assign, readonly) NSInteger width; +/** + Typed access to the image height. + */ +@property (nonatomic, assign, readonly) NSInteger height; + +/** + This is a method to initialize an FBAdImage. + + - Parameter url: the image url. + - Parameter width: the image width. + - Parameter height: the image height. + */ +- (instancetype)initWithURL:(NSURL *)url + width:(NSInteger)width + height:(NSInteger)height NS_DESIGNATED_INITIALIZER; + +/** + Loads an image from self.url over the network, or returns the cached image immediately. + + - Parameter block: Block to handle the loaded image. + */ +- (void)loadImageAsyncWithBlock:(nullable void (^)(UIImage * __nullable image))block; + +@end + +/** + Helper view that draws a star rating based off a native ad. + */ +FB_CLASS_EXPORT FB_DEPRECATED +@interface FBAdStarRatingView : UIView + +/** + The current rating from an FBNativeAd. When set, updates the view. + */ +@property (nonatomic, assign) struct FBAdStarRating rating FB_DEPRECATED; + +/** + The color drawn for filled-in stars. Defaults to yellow. + */ +@property (strong, nonatomic) UIColor *primaryColor FB_DEPRECATED; + +/** + The color drawn for empty stars. Defaults to gray. + */ +@property (strong, nonatomic) UIColor *secondaryColor FB_DEPRECATED; + +/** + Initializes a star rating view with a given frame and star rating. + + - Parameter frame: Frame of this view. + - Parameter starRating: Star rating from a native ad. + */ +- (instancetype)initWithFrame:(CGRect)frame withStarRating:(struct FBAdStarRating)starRating NS_DESIGNATED_INITIALIZER FB_DEPRECATED; + +@end + NS_ASSUME_NONNULL_END diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdCollectionViewAdProvider.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdCollectionViewAdProvider.h index ba19ccfb5..e18d37c80 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdCollectionViewAdProvider.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdCollectionViewAdProvider.h @@ -20,7 +20,6 @@ #import #import -#import #import #import @@ -37,51 +36,46 @@ FB_CLASS_EXPORT */ @property (nonatomic, weak, nullable) id delegate; -/** - FBAdExtraHint to provide extra info - */ -@property (nonatomic, strong, nullable) FBAdExtraHint *extraHint; - /** Create a FBNativeAdCollectionViewAdProvider. - @param manager The FBNativeAdsManager which is consumed by this class. + - Parameter manager: The FBNativeAdsManager which is consumed by this class. */ - (instancetype)initWithManager:(FBNativeAdsManager *)manager NS_DESIGNATED_INITIALIZER; /** Retrieve a native ad for an indexPath, will return the same ad for a given indexPath until the native ads manager is refreshed. This method is intended for usage with a collection view and specifically the caller is recommended to wait until collectionView:cellForRowAtIndexPath: to ensure getting the best native ad for the given collection cell. - @param collectionView The collectionView where native ad will be used - @param indexPath The indexPath to use as a key for this native ad - @return A FBNativeAd which is loaded and ready to be used. + - Parameter collectionView: The collectionView where native ad will be used + - Parameter indexPath: The indexPath to use as a key for this native ad + - Returns: A FBNativeAd which is loaded and ready to be used. */ - (FBNativeAd *)collectionView:(UICollectionView *)collectionView nativeAdForRowAtIndexPath:(NSIndexPath *)indexPath; /** Support for evenly distributed native ads within a collection view. Computes whether this cell is an ad or not. - @param indexPath The indexPath of the cell within the collection view - @param stride The frequency that native ads are to appear within the collection view - @return Boolean indicating whether the cell at the path is an ad + - Parameter indexPath: The indexPath of the cell within the collection view + - Parameter stride: The frequency that native ads are to appear within the collection view + - Returns: Boolean indicating whether the cell at the path is an ad */ - (BOOL)isAdCellAtIndexPath:(NSIndexPath *)indexPath forStride:(NSUInteger)stride; /** Support for evenly distributed native ads within a collection view. Adjusts a non-ad cell indexPath to the indexPath it would be in a collection with no ads. - @param indexPath The indexPath to of the non-ad cell - @param stride The frequency that native ads are to appear within the collection view - @return An indexPath adjusted to what it would be in a collection view with no ads + - Parameter indexPath: The indexPath to of the non-ad cell + - Parameter stride: The frequency that native ads are to appear within the collection view + - Returns: An indexPath adjusted to what it would be in a collection view with no ads */ -- (nullable NSIndexPath *)adjustNonAdCellIndexPath:(NSIndexPath *)indexPath forStride:(NSUInteger)stride; +- (NSIndexPath *)adjustNonAdCellIndexPath:(NSIndexPath *)indexPath forStride:(NSUInteger)stride; /** Support for evenly distributed native ads within a collection view. Adjusts the total count of cells within the collection view to account for the ad cells. - @param count The count of cells in the collection view not including ads - @param stride The frequency that native ads are to appear within the collection view - @return The total count of cells within the collection view including both ad and non-ad cells + - Parameter count: The count of cells in the collection view not including ads + - Parameter stride: The frequency that native ads are to appear within the collection view + - Returns: The total count of cells within the collection view including both ad and non-ad cells */ - (NSUInteger)adjustCount:(NSUInteger)count forStride:(NSUInteger)stride; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdCollectionViewCellProvider.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdCollectionViewCellProvider.h index 9a31a3de7..6593f6743 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdCollectionViewCellProvider.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdCollectionViewCellProvider.h @@ -36,17 +36,17 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Method to create a FBNativeAdCollectionViewCellProvider. - @param manager The naitve ad manager consumed by this provider - @param type The type of this native ad template. For more information, consult FBNativeAdViewType. + - Parameter manager: The naitve ad manager consumed by this provider + - Parameter type: The type of this native ad template. For more information, consult FBNativeAdViewType. */ - (instancetype)initWithManager:(FBNativeAdsManager *)manager forType:(FBNativeAdViewType)type; /** Method to create a FBNativeAdCollectionViewCellProvider. - @param manager The naitve ad manager consumed by this provider - @param type The type of this native ad template. For more information, consult FBNativeAdViewType. - @param attributes The layout of this native ad template. For more information, consult FBNativeAdViewLayout. + - Parameter manager: The naitve ad manager consumed by this provider + - Parameter type: The type of this native ad template. For more information, consult FBNativeAdViewType. + - Parameter attributes: The layout of this native ad template. For more information, consult FBNativeAdViewLayout. */ - (instancetype)initWithManager:(FBNativeAdsManager *)manager forType:(FBNativeAdViewType)type forAttributes:(FBNativeAdViewAttributes *)attributes NS_DESIGNATED_INITIALIZER; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdScrollView.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdScrollView.h index a5efe0e5a..720993471 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdScrollView.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdScrollView.h @@ -67,8 +67,8 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Creates a native ad horizontal scroll view for a given native ads manager and native ad template. The manager can be preloaded with ads, and loadAds will use the preloaded ads from the manager. Otherwise, the scroll view uses the manager to load ads normally. - @param manager An instance of FBNativeAdManager. Can be preloaded with ads. - @param type The type of this native ad template. For more information, consult FBNativeAdViewType. + - Parameter manager: An instance of FBNativeAdManager. Can be preloaded with ads. + - Parameter type: The type of this native ad template. For more information, consult FBNativeAdViewType. */ - (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withType:(FBNativeAdViewType)type; @@ -76,9 +76,9 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Creates a native ad horizontal scroll view for a given native ads manager and native ad template. The manager can be preloaded with ads, and loadAds will use the preloaded ads from the manager. Otherwise, the scroll view uses the manager to load ads normally. - @param manager An instance of FBNativeAdManager. Can be preloaded with ads. - @param type The type of this native ad template. For more information, consult FBNativeAdViewType. - @param attributes The layout of this native ad template. For more information, consult FBNativeAdViewLayout. + - Parameter manager: An instance of FBNativeAdManager. Can be preloaded with ads. + - Parameter type: The type of this native ad template. For more information, consult FBNativeAdViewType. + - Parameter attributes: The layout of this native ad template. For more information, consult FBNativeAdViewLayout. */ - (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withType:(FBNativeAdViewType)type @@ -86,10 +86,10 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Creates a native ad horizontal scroll view for a given native ads manager and native ad template. The manager can be preloaded with ads, and loadAds will use the preloaded ads from the manager. Otherwise, the scroll view uses the manager to load ads normally. - @param manager An instance of FBNativeAdManager. Can be preloaded with ads. - @param type The type of this native ad template. For more information, consult FBNativeAdViewType. - @param attributes The layout of this native ad template. For more information, consult FBNativeAdViewLayout. - @param maximumNativeAdCount Maximum native ads to show at once. + - Parameter manager: An instance of FBNativeAdManager. Can be preloaded with ads. + - Parameter type: The type of this native ad template. For more information, consult FBNativeAdViewType. + - Parameter attributes: The layout of this native ad template. For more information, consult FBNativeAdViewLayout. + - Parameter maximumNativeAdCount: Maximum native ads to show at once. */ - (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withType:(FBNativeAdViewType)type @@ -99,17 +99,17 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** This is a method to create a native ad horizontal scroll view from a user provided view. - @param manager An instance of FBNativeAdManager. Can be preloaded with ads. - @param childViewProvider Block that creates new views for each loaded native ad. Must not reuse the same instance, but return a new view for each call. Views may be arbitrarily resized and should support resizing their content through Auto Layout constraints, autoresizing masks, or manual resizing. + - Parameter manager: An instance of FBNativeAdManager. Can be preloaded with ads. + - Parameter childViewProvider: Block that creates new views for each loaded native ad. Must not reuse the same instance, but return a new view for each call. Views may be arbitrarily resized and should support resizing their content through Auto Layout constraints, autoresizing masks, or manual resizing. */ - (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withViewProvider:(UIView *(^)( FBNativeAd *nativeAd, NSUInteger position))childViewProvider; /** This is a method to create a native ad horizontal scroll view from a user provided view. - @param manager An instance of FBNativeAdManager. Can be preloaded with ads. - @param childViewProvider Block that creates new views for each loaded native ad. Must not reuse the same instance, but return a new view for each call. Views may be arbitrarily resized and should support resizing their content through Auto Layout constraints, autoresizing masks, or manual resizing. - @param maximumNativeAdCount Maximum native ads to show at once. + - Parameter manager: An instance of FBNativeAdManager. Can be preloaded with ads. + - Parameter childViewProvider: Block that creates new views for each loaded native ad. Must not reuse the same instance, but return a new view for each call. Views may be arbitrarily resized and should support resizing their content through Auto Layout constraints, autoresizing masks, or manual resizing. + - Parameter maximumNativeAdCount: Maximum native ads to show at once. */ - (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withViewProvider:(UIView *(^)(FBNativeAd *nativeAd, NSUInteger position))childViewProvider diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdTableViewAdProvider.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdTableViewAdProvider.h index 3f979381c..fbc17504e 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdTableViewAdProvider.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdTableViewAdProvider.h @@ -20,7 +20,6 @@ #import #import -#import #import #import @@ -37,51 +36,46 @@ FB_CLASS_EXPORT */ @property (nonatomic, weak, nullable) id delegate; -/** - FBAdExtraHint to provide extra info - */ -@property (nonatomic, strong, nullable) FBAdExtraHint *extraHint; - /** Create a FBNativeAdTableViewAdProvider. - @param manager The FBNativeAdsManager which is consumed by this class. + - Parameter manager: The FBNativeAdsManager which is consumed by this class. */ - (instancetype)initWithManager:(FBNativeAdsManager *)manager NS_DESIGNATED_INITIALIZER; /** Retrieve a native ad for an indexPath, will return the same ad for a given indexPath until the native ads manager is refreshed. This method is intended for usage with a table view and specifically the caller is recommended to wait until tableView:cellForRowAtIndexPath: to ensure getting the best native ad for the given table cell. - @param tableView The tableView where native ad will be used - @param indexPath The indexPath to use as a key for this native ad - @return A FBNativeAd which is loaded and ready to be used. + - Parameter tableView: The tableView where native ad will be used + - Parameter indexPath: The indexPath to use as a key for this native ad + - Returns: A FBNativeAd which is loaded and ready to be used. */ - (FBNativeAd *)tableView:(UITableView *)tableView nativeAdForRowAtIndexPath:(NSIndexPath *)indexPath; /** Support for evenly distributed native ads within a table view. Computes whether this cell is an ad or not. - @param indexPath The indexPath of the cell within the table view - @param stride The frequency that native ads are to appear within the table view - @return Boolean indicating whether the cell at the path is an ad + - Parameter indexPath: The indexPath of the cell within the table view + - Parameter stride: The frequency that native ads are to appear within the table view + - Returns: Boolean indicating whether the cell at the path is an ad */ - (BOOL)isAdCellAtIndexPath:(NSIndexPath *)indexPath forStride:(NSUInteger)stride; /** Support for evenly distributed native ads within a table view. Adjusts a non-ad cell indexPath to the indexPath it would be in a collection with no ads. - @param indexPath The indexPath to of the non-ad cell - @param stride The frequency that native ads are to appear within the table view - @return An indexPath adjusted to what it would be in a table view with no ads + - Parameter indexPath: The indexPath to of the non-ad cell + - Parameter stride: The frequency that native ads are to appear within the table view + - Returns: An indexPath adjusted to what it would be in a table view with no ads */ -- (nullable NSIndexPath *)adjustNonAdCellIndexPath:(NSIndexPath *)indexPath forStride:(NSUInteger)stride; +- (NSIndexPath *)adjustNonAdCellIndexPath:(NSIndexPath *)indexPath forStride:(NSUInteger)stride; /** Support for evenly distributed native ads within a table view. Adjusts the total count of cells within the table view to account for the ad cells. - @param count The count of cells in the table view not including ads - @param stride The frequency that native ads are to appear within the table view - @return The total count of cells within the table view including both ad and non-ad cells + - Parameter count: The count of cells in the table view not including ads + - Parameter stride: The frequency that native ads are to appear within the table view + - Returns: The total count of cells within the table view including both ad and non-ad cells */ - (NSUInteger)adjustCount:(NSUInteger)count forStride:(NSUInteger)stride; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdTableViewCellProvider.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdTableViewCellProvider.h index c5c61b3a6..2a1bbb266 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdTableViewCellProvider.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdTableViewCellProvider.h @@ -36,17 +36,17 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Method to create a FBNativeAdTableViewCellProvider. - @param manager The naitve ad manager consumed by this provider - @param type The type of this native ad template. For more information, consult FBNativeAdViewType. + - Parameter manager: The naitve ad manager consumed by this provider + - Parameter type: The type of this native ad template. For more information, consult FBNativeAdViewType. */ - (instancetype)initWithManager:(FBNativeAdsManager *)manager forType:(FBNativeAdViewType)type; /** Method to create a FBNativeAdTableViewCellProvider. - @param manager The naitve ad manager consumed by this provider - @param type The type of this native ad template. For more information, consult FBNativeAdViewType. - @param attributes The layout of this native ad template. For more information, consult FBNativeAdViewLayout. + - Parameter manager: The naitve ad manager consumed by this provider + - Parameter type: The type of this native ad template. For more information, consult FBNativeAdViewType. + - Parameter attributes: The layout of this native ad template. For more information, consult FBNativeAdViewLayout. */ - (instancetype)initWithManager:(FBNativeAdsManager *)manager forType:(FBNativeAdViewType)type forAttributes:(FBNativeAdViewAttributes *)attributes NS_DESIGNATED_INITIALIZER; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdView.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdView.h index cbbcf535a..df826d811 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdView.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdView.h @@ -20,70 +20,114 @@ #import #import -#import -#import NS_ASSUME_NONNULL_BEGIN +@class FBNativeAdViewAttributes; + /** Determines the type of native ad template. Different views are created for different values of FBNativeAdViewType */ typedef NS_ENUM(NSInteger, FBNativeAdViewType) { + /// Fixed height view, 100 points (banner equivalent) + FBNativeAdViewTypeGenericHeight100 = 1, + /// Fixed height view, 120 points (banner equivalent) + FBNativeAdViewTypeGenericHeight120, /// Fixed height view, 300 points - FBNativeAdViewTypeGenericHeight300 = 3, + FBNativeAdViewTypeGenericHeight300, /// Fixed height view, 400 points - FBNativeAdViewTypeGenericHeight400 = 4, - /// Dynamic height, will be rendered to make the best use of the size set. - FBNativeAdViewTypeDynamic = 6, + FBNativeAdViewTypeGenericHeight400, }; /** The FBNativeAdView creates prebuilt native ad template views and manages native ads. */ FB_CLASS_EXPORT -@interface FBNativeAdView : FBNativeAdBaseView +@interface FBNativeAdView : UIView /** - The type of the view, specifies which template to use + The type of the view, specifies which template to use */ @property (nonatomic, assign, readonly) FBNativeAdViewType type; /** - This is a method to create a native ad template using the given native ad and using default ad view attributes. - @param nativeAd The native ad to use to create this view. + This is a method to create a native ad template using the given placement id and type. + - Parameter nativeAd: The native ad to use to create this view. + - Parameter type: The type of this native ad template. For more information, consult FBNativeAdViewType. */ -+ (instancetype)nativeAdViewWithNativeAd:(FBNativeAd *)nativeAd; ++ (instancetype)nativeAdViewWithNativeAd:(FBNativeAd *)nativeAd withType:(FBNativeAdViewType)type; /** - This is a method to create a native ad template using the given native ad and ad view attributes. - @param nativeAd The native ad to use to create this view. + A view controller that is used to present modal content. If nil, the view searches for a view controller. */ -+ (instancetype)nativeAdViewWithNativeAd:(FBNativeAd *)nativeAd withAttributes:(FBNativeAdViewAttributes *)attributes; +@property (nonatomic, weak, nullable) UIViewController *rootViewController; /** - This is a method to create a native ad template using the given placement id and type. - @param nativeAd The native ad to use to create this view. - @param type The type of this native ad template. For more information, consult FBNativeAdViewType. + This is a method to create a native ad template using the given placement id and type. + - Parameter nativeAd: The native ad to use to create this view. + - Parameter type: The type of this native ad template. For more information, consult FBNativeAdViewType. + - Parameter attributes: The attributes to render this native ad template with. */ -+ (instancetype)nativeAdViewWithNativeAd:(FBNativeAd *)nativeAd withType:(FBNativeAdViewType)type; ++ (instancetype)nativeAdViewWithNativeAd:(FBNativeAd *)nativeAd withType:(FBNativeAdViewType)type withAttributes:(FBNativeAdViewAttributes *)attributes; + +@end /** - This is a method to create a native ad template using the given placement id and type. - @param nativeAd The native ad to use to create this view. - @param type The type of this native ad template. For more information, consult FBNativeAdViewType. - @param attributes The attributes to render this native ad template with. + Describes the look and feel of a native ad view. */ -+ (instancetype)nativeAdViewWithNativeAd:(FBNativeAd *)nativeAd withType:(FBNativeAdViewType)type withAttributes:(FBNativeAdViewAttributes *)attributes; +@interface FBNativeAdViewAttributes : NSObject -@end +/** + This is a method to create native ad view attributes with a dictionary + */ +- (instancetype)initWithDictionary:(NSDictionary *) dict NS_DESIGNATED_INITIALIZER; -@interface FBNativeAdViewAttributes (FBNativeAdView) +/** + Background color of the native ad view. + */ +@property (nonatomic, copy, nullable) UIColor *backgroundColor; +/** + Color of the title label. + */ +@property (nonatomic, copy, nullable) UIColor *titleColor; +/** + Font of the title label. + */ +@property (nonatomic, copy, nullable) UIFont *titleFont; +/** + Color of the description label. + */ +@property (nonatomic, copy, nullable) UIColor *descriptionColor; +/** + Font of the description label. + */ +@property (nonatomic, copy, nullable) UIFont *descriptionFont; +/** + Background color of the call to action button. + */ +@property (nonatomic, copy, nullable) UIColor *buttonColor; +/** + Color of the call to action button's title label. + */ +@property (nonatomic, copy, nullable) UIColor *buttonTitleColor; +/** + Font of the call to action button's title label. + */ +@property (nonatomic, copy, nullable) UIFont *buttonTitleFont; +/** + Border color of the call to action button. If nil, no border is shown. + */ +@property (nonatomic, copy, nullable) UIColor *buttonBorderColor; +/** + Enables or disables autoplay for some types of media. Defaults to YES. + */ +@property (nonatomic, assign, getter=isAutoplayEnabled) BOOL autoplayEnabled; /** - Returns default attributes for a given type. + Returns default attributes for a given type. - @param type The type for this layout. + - Parameter type: The type for this layout. */ + (instancetype)defaultAttributesForType:(FBNativeAdViewType)type; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdsManager.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdsManager.h index 36becefc6..82cf24a48 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdsManager.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBNativeAdsManager.h @@ -19,7 +19,6 @@ #import #import -#import #import NS_ASSUME_NONNULL_BEGIN @@ -39,7 +38,7 @@ NS_ASSUME_NONNULL_BEGIN /** When the FBNativeAdsManager has reached a failure while attempting to load a batch of ads this message will be sent to the application. - @param error An NSError object with information about the failure. + - Parameter error: An NSError object with information about the failure. */ - (void)nativeAdsFailedToLoadWithError:(NSError *)error; @@ -71,16 +70,11 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED */ @property (nonatomic, assign, getter=isValid, readonly) BOOL valid; -/** - FBAdExtraHint to provide extra info - */ -@property (nonatomic, strong, nullable) FBAdExtraHint *extraHint; - /** Initialize the native ads manager. - @param placementID The id of the ad placement. You can create your placement id from Facebook developers page. - @param numAdsRequested The number of ads you would like the native ads manager to retrieve. + - Parameter placementID: The id of the ad placement. You can create your placement id from Facebook developers page. + - Parameter numAdsRequested: The number of ads you would like the native ads manager to retrieve. */ - (instancetype)initWithPlacementID:(NSString *)placementID forNumAdsRequested:(NSUInteger)numAdsRequested NS_DESIGNATED_INITIALIZER; @@ -99,7 +93,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Retrieve the next native ad to be used from the batch. It is highly recommended that the caller wait until immediately before rendering the ad content to call this method to ensure the best ad for the given context is used. If more than uniqueNativeAdCount ads are requested cloned ads will be returned. Periodically the native ads manager will refresh and new ads will be returned. - @return A FBNativeAd which is loaded and ready to be used. + - Returns: A FBNativeAd which is loaded and ready to be used. */ @property (nonatomic, readonly, strong, nullable) FBNativeAd *nextNativeAd; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBRewardedVideoAd.h b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBRewardedVideoAd.h index 14ce6e8b0..e33a2896b 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBRewardedVideoAd.h +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Headers/FBRewardedVideoAd.h @@ -21,7 +21,6 @@ #import #import -#import NS_ASSUME_NONNULL_BEGIN @@ -51,19 +50,16 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Returns true if the rewarded video ad has been successfully loaded. + + You should check `isAdValid` before trying to show the ad. */ @property (nonatomic, getter=isAdValid, readonly) BOOL adValid; -/** - FBAdExtraHint to provide extra info - */ -@property (nonatomic, strong, nullable) FBAdExtraHint *extraHint; - /** This is a method to initialize an FBRewardedVideoAd matching the given placement id. - @param placementID The id of the ad placement. You can create your placement id from Facebook developers page. + - Parameter placementID: The id of the ad placement. You can create your placement id from Facebook developers page. */ - (instancetype)initWithPlacementID:(NSString *)placementID; @@ -111,7 +107,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Presents the rewarded video ad modally from the specified view controller. - @param rootViewController The view controller that will be used to present the rewarded video ad. + - Parameter rootViewController: The view controller that will be used to present the rewarded video ad. You can implement `rewardedVideoAdDidClick:` and `rewardedVideoAdWillClose:` @@ -122,8 +118,8 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Presents the rewarded video ad modally from the specified view controller. - @param rootViewController The view controller that will be used to present the rewarded video ad. - @param flag Pass YES to animate the presentation; otherwise, pass NO. + - Parameter rootViewController: The view controller that will be used to present the rewarded video ad. + - Parameter flag: Pass YES to animate the presentation; otherwise, pass NO. You can implement `rewardedVideoAdDidClick:` and `rewardedVideoAdWillClose:` @@ -145,14 +141,14 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED /** Sent after an ad has been clicked by the person. - @param rewardedVideoAd An FBRewardedVideoAd object sending the message. + - Parameter rewardedVideoAd: An FBRewardedVideoAd object sending the message. */ - (void)rewardedVideoAdDidClick:(FBRewardedVideoAd *)rewardedVideoAd; /** Sent when an ad has been successfully loaded. - @param rewardedVideoAd An FBRewardedVideoAd object sending the message. + - Parameter rewardedVideoAd: An FBRewardedVideoAd object sending the message. */ - (void)rewardedVideoAdDidLoad:(FBRewardedVideoAd *)rewardedVideoAd; @@ -160,22 +156,22 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED Sent after an FBRewardedVideoAd object has been dismissed from the screen, returning control to your application. - @param rewardedVideoAd An FBRewardedVideoAd object sending the message. + - Parameter rewardedVideoAd: An FBRewardedVideoAd object sending the message. */ - (void)rewardedVideoAdDidClose:(FBRewardedVideoAd *)rewardedVideoAd; /** Sent immediately before an FBRewardedVideoAd object will be dismissed from the screen. - @param rewardedVideoAd An FBRewardedVideoAd object sending the message. + - Parameter rewardedVideoAd: An FBRewardedVideoAd object sending the message. */ - (void)rewardedVideoAdWillClose:(FBRewardedVideoAd *)rewardedVideoAd; /** Sent after an FBRewardedVideoAd fails to load the ad. - @param rewardedVideoAd An FBRewardedVideoAd object sending the message. - @param error An error object containing details of the error. + - Parameter rewardedVideoAd: An FBRewardedVideoAd object sending the message. + - Parameter error: An error object containing details of the error. */ - (void)rewardedVideoAd:(FBRewardedVideoAd *)rewardedVideoAd didFailWithError:(NSError *)error; @@ -183,21 +179,21 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED Sent after the FBRewardedVideoAd object has finished playing the video successfully. Reward the user on this callback. - @param rewardedVideoAd An FBRewardedVideoAd object sending the message. + - Parameter rewardedVideoAd: An FBRewardedVideoAd object sending the message. */ - (void)rewardedVideoAdVideoComplete:(FBRewardedVideoAd *)rewardedVideoAd; /** Sent immediately before the impression of an FBRewardedVideoAd object will be logged. - @param rewardedVideoAd An FBRewardedVideoAd object sending the message. + - Parameter rewardedVideoAd: An FBRewardedVideoAd object sending the message. */ - (void)rewardedVideoAdWillLogImpression:(FBRewardedVideoAd *)rewardedVideoAd; /** Sent if server call to publisher's reward endpoint returned HTTP status code 200. - @param rewardedVideoAd An FBRewardedVideoAd object sending the message. + - Parameter rewardedVideoAd: An FBRewardedVideoAd object sending the message. */ - (void)rewardedVideoAdServerRewardDidSucceed:(FBRewardedVideoAd *)rewardedVideoAd; @@ -205,7 +201,7 @@ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED Sent if server call to publisher's reward endpoint did not return HTTP status code 200 or if the endpoint timed out. - @param rewardedVideoAd An FBRewardedVideoAd object sending the message. + - Parameter rewardedVideoAd: An FBRewardedVideoAd object sending the message. */ - (void)rewardedVideoAdServerRewardDidFail:(FBRewardedVideoAd *)rewardedVideoAd; diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Info.plist b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Info.plist index 4c46932f4..ce7657979 100644 Binary files a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Info.plist and b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Info.plist differ diff --git a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Modules/module.modulemap b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Modules/module.modulemap index 286a80bae..72796302d 100644 --- a/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Modules/module.modulemap +++ b/mediation/mediatedviews/Facebook/FacebookSDK/FBAudienceNetwork.framework/Modules/module.modulemap @@ -11,18 +11,14 @@ framework module FBAudienceNetwork { link framework "AdSupport" link framework "AudioToolbox" link framework "AVFoundation" - link framework "CFNetwork" link framework "CoreGraphics" link framework "CoreImage" link framework "CoreMedia" link framework "CoreMotion" - link framework "CoreTelephony" link framework "Foundation" - link framework "LocalAuthentication" link framework "SafariServices" link framework "Security" link framework "StoreKit" - link framework "SystemConfiguration" link framework "UIKit" link framework "WebKit" link framework "VideoToolbox" diff --git a/sdk/internal/ANGlobal.h b/sdk/internal/ANGlobal.h index 4fad92d7b..557ef5264 100644 --- a/sdk/internal/ANGlobal.h +++ b/sdk/internal/ANGlobal.h @@ -27,7 +27,7 @@ #define AN_ERROR_TABLE @"errors" #define AN_DEFAULT_PLACEMENT_ID @"default_placement_id" -#define AN_SDK_VERSION @"5.5" +#define AN_SDK_VERSION @"5.5.1" #define APPNEXUS_BANNER_SIZE CGSizeMake(320, 50)