GoogleMobileAds Framework Reference
GADRTBAdapter
Adapter that provides signals to the Google Mobile Ads SDK to be included in an auction.
-
Returns an initialized RTB adapter.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Asks the receiver for secure 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(for params: RTBRequestParameters) async throws -> String
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 2025-02-04 UTC.
[null,null,["Last updated 2025-02-04 UTC."],[[["GADRTBAdapter facilitates communication between your bidding logic and the Google Mobile Ads SDK for real-time bidding."],["It enables the collection of signals, which are crucial data points used in the auction process to determine ad placements."],["The `collectSignalsForRequestParameters:completionHandler:` method is the primary way to provide these signals, and it's essential to implement it efficiently to avoid timeouts."],["Initialization of the adapter is done through the standard `init` method."]]],["The `GADRTBAdapter` protocol facilitates providing signals for auctions to the Google Mobile Ads SDK. It requires an initializer (`init`) and a method to collect secure signals (`collectSignalsForRequestParameters:completionHandler:`). This latter method, executed on a non-main thread, requests signals, requiring the adapter to call a completion handler with the signals or an error. The signals, which are passed at request time, are to be created without using the main thread to prevent timeout issues.\n"]]