AI-generated Key Takeaways
-
The
IMASecureSignalsAdapter
protocol enables integration of third-party secure signals for auctions within the IMA SDK. -
It provides methods for initialization, version retrieval (adapter and SDK), and signal collection.
-
collectSignalsWithCompletion:
is called to retrieve encrypted signals, which are then provided to third-party ad servers during ad requests. -
Signal collection happens off the main thread to avoid potential timeouts.
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() -> IMAVersion
Objective-C
+ (nonnull IMAVersion *)adapterVersion;
-
The version of the ad SDK.
Declaration
Swift
static func adSDKVersion() -> IMAVersion
Objective-C
+ (nonnull IMAVersion *)adSDKVersion;
-
Asks the receiver for encrypted signals. Signals are provided to the 3PAS at request time. The receiver must call
completionHandler
with 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 -> String
Objective-C
- (void)collectSignalsWithCompletion: (nonnull IMASignalCompletionHandler)completion;
Parameters
completion
The block to call when signal collection is complete.