AI-generated Key Takeaways
-
IMASecureSignalsAdapteris a protocol for an adapter that provides secure third-party signals to the IMA SDK for inclusion in an auction. -
It includes methods to initialize the adapter and retrieve the adapter's and ad SDK's versions.
-
The
collectSignalsWithCompletion:method is used to asynchronously retrieve encrypted signals, which are provided to the 3PAS at request time.
IMASecureSignalsAdapter
@protocol IMASecureSignalsAdapter <NSObject>Adapter that provides secure signal(3rd party signal only) to the IMA SDK to be included in an
- auction.
-
Initializes the Secure Signal adapter.
Declaration
Swift
init?()Objective-C
- (nullable instancetype)init; -
The version of the adapter.
Declaration
Swift
static func adapterVersion() -> IMAVersionObjective-C
+ (nonnull IMAVersion *)adapterVersion; -
The version of the ad SDK.
Declaration
Swift
static func adSDKVersion() -> IMAVersionObjective-C
+ (nonnull IMAVersion *)adSDKVersion; -
Asks the receiver for encrypted signals. Signals are provided to the 3PAS at request time. The receiver must call
completionHandlerwith signals or an error. This method is called on a non-main thread. The receiver should avoid using the main thread to prevent signal collection timeouts.Declaration
Swift
func collectSignals() async throws -> StringObjective-C
- (void)collectSignalsWithCompletion: (nonnull IMASignalCompletionHandler)completion;Parameters
completionThe block to call when signal collection is complete.