// // MAAdapterParameters.h // AppLovinSDK // // Created by Thomas So on 8/27/18. // #import NS_ASSUME_NONNULL_BEGIN /** * This protocol defines basic parameters passed to all adapter events. */ @protocol MAAdapterParameters /** * ********************* * AVAILABLE IN v11.0.0+ * ********************* *

* The MAX Ad Unit ID the adapter operation with these parameters are being performed for. * * @return The MAX Ad Unit ID to perform the adapter operation for. Guaranteed not to be null. */ @property (nonatomic, copy, readonly) NSString *adUnitIdentifier; /** * ********************* * AVAILABLE IN v11.0.0+ * ********************* *

* Local extra parameters to passed in from the integration code. * * @return Local extra parameters. Guaranteed not to be @c nil. */ @property (nonatomic, strong, readonly) NSDictionary *localExtraParameters; /** * Get parameters passed from AppLovin server to the current adapter. * * @return Server parameters. Guaranteed not to be nil. */ @property (nonatomic, strong, readonly) NSDictionary *serverParameters; /** * ********************* * AVAILABLE IN v11.1.1+ * ********************* *

* Get custom parameters passed from AppLovin server to the current custom network SDK adapter. * * @return Custom parameters. Guaranteed not to be @c nil. */ @property (nonatomic, strong, readonly) NSDictionary *customParameters; /** * Current state of user consent. * * @return @c 1 if the user has provided consent for information sharing. @c nil if not set. */ @property (nonatomic, strong, readonly, nullable, getter=hasUserConsent) NSNumber *userConsent; /** * Current state of user age restrictions. * * @return @c 1 if the user is age restricted (i.e. under 16). @c nil if not set. */ @property (nonatomic, strong, readonly, nullable, getter=isAgeRestrictedUser) NSNumber *ageRestrictedUser; /** * Current state of whether ot not the user has opted out of the sale of their personal information. * * @return @c 1 if the user has opted out of the sale of their personal information. @c nil if not set. */ @property (nonatomic, strong, readonly, nullable, getter=isDoNotSell) NSNumber *doNotSell; /** * ********************* * AVAILABLE IN v11.4.2+ * ********************* *

* The consent string to pass to networks that do not support a binary consent API (i.e. networks that use TCF-only) and do not automatically ingest the string from User Defaults. */ @property (nonatomic, copy, readonly, nullable) NSString *consentString; /** * Check if this request is made for testing. * * @return @c YES if the ads should be retrieved for testing. */ @property (nonatomic, assign, readonly, getter=isTesting) BOOL testing; /** * @return The view controller to present the fullscreen ad with. */ @property (nonatomic, weak, readonly, nullable) UIViewController *presentingViewController; @end NS_ASSUME_NONNULL_END