AI-generated Key Takeaways
-
GADRTBAdapter is an adapter that provides signals to the Google Mobile Ads SDK for inclusion in an auction.
-
It includes an initializer method,
init
, to return an initialized RTB adapter. -
The
collectSignalsForRequestParameters:completionHandler:
method is used to request and provide secure signals to a third party, and it should be called on a non-main thread.
GADRTBAdapter
@protocol GADRTBAdapter <GADMediationAdapter>
Adapter that provides signals to the Google Mobile Ads SDK to be included in an auction.
-
Returns an initialized RTB adapter.
Declaration
Swift
init()
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
Objective-C
- (void) collectSignalsForRequestParameters:(nonnull GADRTBRequestParameters *)params completionHandler:(nonnull GADRTBSignalCompletionHandler) completionHandler;