# GADRewardedInterstitialAd


    @interface GADRewardedInterstitialAd
        : NSObject <https://developers.google.com/admob/ios/api/reference/Protocols/GADAdMetadataProvider.html, https://developers.google.com/admob/ios/api/reference/Protocols/GADFullScreenPresentingAd.html>

A rewarded interstitial ad. Rewarded Interstitial ads are full screen ads that can be presented
without user-opt in and allow you to reward the user with in-app items.
- `


  ### [adUnitID](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(py)adUnitID)


  ` The ad unit ID.

  #### Declaration

  Swift

      var adUnitID: String { get }

  Objective-C

      @property (nonatomic, readonly, nonnull) NSString *adUnitID;

- `


  ### [responseInfo](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(py)responseInfo)


  ` Information about the ad response that returned the ad.

  #### Declaration

  Swift

      var responseInfo: ResponseInfo { get }

  Objective-C

      @property (nonatomic, readonly, nonnull) https://developers.google.com/admob/ios/api/reference/Classes/GADResponseInfo.html *responseInfo;

- `


  ### [adReward](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(py)adReward)


  ` The reward earned by the user for interacting with the ad.

  #### Declaration

  Swift

      var adReward: AdReward { get }

  Objective-C

      @property (nonatomic, readonly, nonnull) https://developers.google.com/admob/ios/api/reference/Classes/GADAdReward.html *adReward;

- `


  ### [serverSideVerificationOptions](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(py)serverSideVerificationOptions)


  ` Options specified for server-side user reward verification. Must be set before presenting this
  ad.

  #### Declaration

  Swift

      @NSCopying var serverSideVerificationOptions: ServerSideVerificationOptions? { get set }

  Objective-C

      @property (nonatomic, copy, nullable) https://developers.google.com/admob/ios/api/reference/Classes/GADServerSideVerificationOptions.html *serverSideVerificationOptions;

- `


  ### [fullScreenContentDelegate](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(py)fullScreenContentDelegate)


  ` Delegate for handling full screen content messages.

  #### Declaration

  Swift

      weak var fullScreenContentDelegate: (any FullScreenContentDelegate)? { get set }

  Objective-C

      @property (nonatomic, weak, nullable) id<https://developers.google.com/admob/ios/api/reference/Protocols/GADFullScreenContentDelegate.html> fullScreenContentDelegate;

- `


  ### [placementID](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(py)placementID)


  ` An identifier for a placement in reporting. This property must be set prior to presenting the
  ad.

  #### Declaration

  Swift

      var placementID: Int64 { get set }

  Objective-C

      @property (nonatomic) int64_t placementID;

- `


  ### [+loadWithAdUnitID:request:completionHandler:](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(cm)loadWithAdUnitID:request:completionHandler:)


  ` Loads a rewarded interstitial ad.

  #### Declaration

  Swift

      class func load(with adUnitID: String, request: Request?) async throws -> sending RewardedInterstitialAd

  Objective-C

      + (void)loadWithAdUnitID:(nonnull NSString *)adUnitID
                       request:(nullable https://developers.google.com/admob/ios/api/reference/Classes/GADRequest.html *)request
             completionHandler:
                 (nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADRewardedInterstitialAd.h@T@GADRewardedInterstitialAdLoadCompletionHandler)
                     completionHandler;

  #### Parameters

  |---|---|
  | ` adUnitID ` | An ad unit ID created in the AdMob or Ad Manager UI. |
  | ` request ` | An ad request object. If nil, a default ad request object is used. |
  | ` completionHandler ` | A handler to execute when the load operation finishes or times out. |

- `


  ### [+loadWithAdResponseString:completionHandler:](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(cm)loadWithAdResponseString:completionHandler:)


  ` Loads a rewarded interstitial ad.

  #### Declaration

  Swift

      class func load(with adResponseString: String) async throws -> sending RewardedInterstitialAd

  Objective-C

      + (void)loadWithAdResponseString:(nonnull NSString *)adResponseString
                     completionHandler:
                         (nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADRewardedInterstitialAd.h@T@GADRewardedInterstitialAdLoadCompletionHandler)
                             completionHandler;

  #### Parameters

  |---|---|
  | ` adResponseString ` | A server-to-server ad response string. |
  | ` completionHandler ` | A handler to execute when the load operation finishes or times out. |

- `


  ### [-canPresentFromRootViewController:error:](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(im)canPresentFromRootViewController:error:)


  ` Indicates whether the rewarded interstitial ad can be presented from the provided root view
  controller. Must be called on the main thread.

  #### Declaration

  Swift

      @MainActor func canPresent(from rootViewController: UIViewController?) throws

  Objective-C

      - (BOOL)canPresentFromRootViewController:
                  (nullable UIViewController *)rootViewController
                                         error:(NSError *_Nullable *_Nullable)error;

  #### Return Value

  `YES` if the rewarded interstitial ad can be presented from the provided root view
  controller, `NO` otherwise.
- `


  ### [-presentFromRootViewController:userDidEarnRewardHandler:](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(im)presentFromRootViewController:userDidEarnRewardHandler:)


  ` Presents the rewarded interstitial ad. Must be called on the main thread.

  #### Declaration

  Swift

      @MainActor func present(from viewController: UIViewController?, userDidEarnRewardHandler: @escaping https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADAdReward.h@T@GADUserDidEarnRewardHandler)

  Objective-C

      - (void)presentFromRootViewController:
                  (nullable UIViewController *)viewController
                   userDidEarnRewardHandler:
                       (nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADAdReward.h@T@GADUserDidEarnRewardHandler)userDidEarnRewardHandler;

  #### Parameters

  |---|---|
  | ` viewController ` | A view controller to present the ad. If nil, attempts to present from the top view controller of the application's main window. |
  | ` userDidEarnRewardHandler ` | A handler to execute when the user earns a reward. adReward contains the reward information. |

[## Deprecated](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/Deprecated)

- `


  ### [paidEventHandler](https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd#/c:objc(cs)GADRewardedInterstitialAd(py)paidEventHandler)


  ` Deprecated

  Use \[GADFullScreenContentDelegate ad:didRecordPaidEventWithAdValue:\] instead.
  Called when the ad is estimated to have earned money. Available for allowlisted accounts only.

  #### Declaration

  Swift

      var paidEventHandler: https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADAdValue.h@T@GADPaidEventHandler? { get set }

  Objective-C

      @property (nonatomic, copy, nullable) https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADAdValue.h@T@GADPaidEventHandler paidEventHandler;