GoogleInteractiveMediaAds Framework Reference

  • IMASecureSignalsAdapter is 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() -> 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.