GoogleInteractiveMediaAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
IMASecureSignalsAdapter
@protocol IMASecureSignalsAdapter <NSObject>
Adapter that provides secure signal(3rd party signal only) to the IMA SDK to be included in an
-
Initializes the Secure Signal adapter.
Declaration
Objective-C
- (nullable instancetype)init;
-
The version of the adapter.
Declaration
Objective-C
+ (nonnull IMAVersion *)adapterVersion;
-
The version of the ad SDK.
-
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
Parameters
completion
|
The block to call when signal collection is complete.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-21 UTC.
[null,null,["Last updated 2024-08-21 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eIMASecureSignalsAdapter\u003c/code\u003e protocol enables integration of third-party secure signals for auctions within the IMA SDK.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for initialization, version retrieval (adapter and SDK), and signal collection.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecollectSignalsWithCompletion:\u003c/code\u003e is called to retrieve encrypted signals, which are then provided to third-party ad servers during ad requests.\u003c/p\u003e\n"],["\u003cp\u003eSignal collection happens off the main thread to avoid potential timeouts.\u003c/p\u003e\n"]]],[],null,["# GoogleInteractiveMediaAds Framework Reference\n\nIMASecureSignalsAdapter\n=======================\n\n @protocol IMASecureSignalsAdapter \u003cNSObject\u003e\n\nAdapter that provides secure signal(3rd party signal only) to the IMA SDK to be included in an\n\n- auction.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(pl)IMASecureSignalsAdapter(im)init)\n\n `\n ` \n Initializes the Secure Signal adapter. \n\n #### Declaration\n\n Swift \n\n init?()\n\n Objective-C \n\n - (nullable instancetype)init;\n\n- `\n ``\n ``\n `\n\n ### [+adapterVersion](#/c:objc(pl)IMASecureSignalsAdapter(cm)adapterVersion)\n\n `\n ` \n The version of the adapter. \n\n #### Declaration\n\n Swift \n\n static func adapterVersion() -\u003e ../Classes/IMAVersion.html\n\n Objective-C \n\n + (nonnull ../Classes/IMAVersion.html *)adapterVersion;\n\n- `\n ``\n ``\n `\n\n ### [+adSDKVersion](#/c:objc(pl)IMASecureSignalsAdapter(cm)adSDKVersion)\n\n `\n ` \n The version of the ad SDK. \n\n #### Declaration\n\n Swift \n\n static func adSDKVersion() -\u003e ../Classes/IMAVersion.html\n\n Objective-C \n\n + (nonnull ../Classes/IMAVersion.html *)adSDKVersion;\n\n- `\n ``\n ``\n `\n\n ### [-collectSignalsWithCompletion:](#/c:objc(pl)IMASecureSignalsAdapter(im)collectSignalsWithCompletion:)\n\n `\n ` \n Asks the receiver for encrypted signals. Signals are provided to the 3PAS at request time. The\n receiver must call `completionHandler` with signals or an error.\n This method is called on a non-main thread. The receiver should avoid using the main thread to\n prevent signal collection timeouts. \n\n #### Declaration\n\n Swift \n\n func collectSignals() async throws -\u003e String\n\n Objective-C \n\n - (void)collectSignalsWithCompletion:\n (nonnull ../Type-Definitions.html#/c:IMASecureSignalsAdapter.h@T@IMASignalCompletionHandler)completion;\n\n #### Parameters\n\n |--------------------|-------------------------------------------------------|\n | ` `*completion*` ` | The block to call when signal collection is complete. |"]]