To discuss and provide feedback on our products, join the official AdMob Discord channel in the Google Advertising and Measurement Community server.

GoogleMobileAds Framework Reference

  • GADRTBRequestParameters holds request parameters provided by the publisher and the Google Mobile Ads SDK.

  • The configuration property contains mediation configuration set by the publisher.

  • The extras property includes any ad network extras registered by the publisher.

  • For banner requests, the adSize property indicates the requested banner ad size.

GADRTBRequestParameters


@interface GADRTBRequestParameters : NSObject

Request parameters provided by the publisher and Google Mobile Ads SDK.

  • Mediation configuration for this request set by the publisher on the AdMob UI.

    Declaration

    Swift

    var configuration: RTBMediationSignalsConfiguration { get }

    Objective-C

    @property (nonatomic, readonly, nonnull) GADRTBMediationSignalsConfiguration *configuration;
  • Extras the publisher registered with -[GADRequest registerAdNetworkExtras:].

    Declaration

    Swift

    var extras: (any AdNetworkExtras)? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) id<GADAdNetworkExtras> extras;
  • Requested banner ad size. The ad size is GADAdSizeInvalid for non-banner requests.

    Declaration

    Swift

    var adSize: AdSize { get }

    Objective-C

    @property (nonatomic, readonly) GADAdSize adSize;

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.