# GoogleMobileAds Framework Reference

# GADRTBAdapter

    @protocol GADRTBAdapter <https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter.html>

Adapter that provides signals to the Google Mobile Ads SDK to be included in an auction.
- `


  ### [-init](https://developers.google.com/admob/ios/api/reference/Protocols/GADRTBAdapter#/c:objc(pl)GADRTBAdapter(im)init)


  ` Returns an initialized RTB adapter.

  #### Declaration

  Swift

      init()

  Objective-C

      - (nonnull instancetype)init;

- `


  ### [-collectSignalsForRequestParameters:completionHandler:](https://developers.google.com/admob/ios/api/reference/Protocols/GADRTBAdapter#/c:objc(pl)GADRTBAdapter(im)collectSignalsForRequestParameters:completionHandler:)


  ` 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 https://developers.google.com/admob/ios/api/reference/Classes/GADRTBRequestParameters.html *)params
                           completionHandler:(nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADRTBAdapter.h@T@GADRTBSignalCompletionHandler)
                                                 completionHandler;