GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADRTBAdapter\u003c/code\u003e enables providing signals to the Google Mobile Ads SDK for auction inclusion.\u003c/p\u003e\n"],["\u003cp\u003eThis adapter must be initialized using the provided \u003ccode\u003einit\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecollectSignalsForRequestParameters:completionHandler:\u003c/code\u003e is used to request secure signals from the adapter, which are then provided to the 3PAS during ad requests.\u003c/p\u003e\n"],["\u003cp\u003eSignal collection happens on a background thread to prevent impacting UI responsiveness.\u003c/p\u003e\n"],["\u003cp\u003eAdapters should call the completion handler with the collected signals or an error to indicate the outcome of the signal collection process.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds Framework Reference\n\nGADRTBAdapter\n=============\n\n @protocol GADRTBAdapter \u003c../Protocols/GADMediationAdapter.html\u003e\n\nAdapter that provides signals to the Google Mobile Ads SDK to be included in an auction.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(pl)GADRTBAdapter(im)init)\n\n `\n ` \n Returns an initialized RTB adapter. \n\n #### Declaration\n\n Swift \n\n init()\n\n Objective-C \n\n - (nonnull instancetype)init;\n\n- `\n ``\n ``\n `\n\n ### [-collectSignalsForRequestParameters:completionHandler:](#/c:objc(pl)GADRTBAdapter(im)collectSignalsForRequestParameters:completionHandler:)\n\n `\n ` \n Asks the receiver for secure signals. Signals are provided to the 3PAS at request time. The\n receiver must call completionHandler with signals or an error.\n\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(for params: RTBRequestParameters) async throws -\u003e String\n\n Objective-C \n\n - (void)\n collectSignalsForRequestParameters:(nonnull ../Classes/GADRTBRequestParameters.html *)params\n completionHandler:(nonnull ../Type-Definitions.html#/c:GADRTBAdapter.h@T@GADRTBSignalCompletionHandler)\n completionHandler;"]]