# GADPictureInPictureAdDelegate

    @protocol GADPictureInPictureAdDelegate <NSObject>

Delegate protocol for receiving Picture-in-Picture (PiP) ad presentation,
lifecycle, and interaction events.
[## Presentation Lifecycle](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/Presentation-Lifecycle)

- `


  ### [-pictureInPictureAdDidShow:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/c:objc(pl)GADPictureInPictureAdDelegate(im)pictureInPictureAdDidShow:)


  ` Called when the PiP ad is shown on screen.

  #### Declaration

  Swift

      @MainActor optional func pictureInPictureAdDidShow(_ pictureInPictureAd: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html)

  Objective-C

      - (void)pictureInPictureAdDidShow:
          (nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html *)pictureInPictureAd;

- `


  ### [-pictureInPictureAdDidHide:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/c:objc(pl)GADPictureInPictureAdDelegate(im)pictureInPictureAdDidHide:)


  ` Called when the PiP ad is dismissed/hidden.

  #### Declaration

  Swift

      @MainActor optional func pictureInPictureAdDidHide(_ pictureInPictureAd: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html)

  Objective-C

      - (void)pictureInPictureAdDidHide:
          (nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html *)pictureInPictureAd;

- `


  ### [-pictureInPictureAdDidFailToShow:withError:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/c:objc(pl)GADPictureInPictureAdDelegate(im)pictureInPictureAdDidFailToShow:withError:)


  ` Called when the PiP ad fails to show on screen.

  #### Declaration

  Swift

      @MainActor optional func pictureInPictureAdDidFailToShow(_ pictureInPictureAd: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html, error: any Error)

  Objective-C

      - (void)pictureInPictureAdDidFailToShow:
                  (nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html *)pictureInPictureAd
                                    withError:(nonnull NSError *)error;

[## Ad Lifecycle Events](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/Ad-Lifecycle-Events)

- `


  ### [-pictureInPictureAdDidRecordClick:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/c:objc(pl)GADPictureInPictureAdDelegate(im)pictureInPictureAdDidRecordClick:)


  ` Called when a click is recorded for a PiP ad.

  #### Declaration

  Swift

      @MainActor optional func pictureInPictureAdDidRecordClick(_ pictureInPictureAd: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html)

  Objective-C

      - (void)pictureInPictureAdDidRecordClick:
          (nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html *)pictureInPictureAd;

- `


  ### [-pictureInPictureAdDidRecordImpression:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/c:objc(pl)GADPictureInPictureAdDelegate(im)pictureInPictureAdDidRecordImpression:)


  ` Called when an impression is recorded for a PiP ad.

  #### Declaration

  Swift

      @MainActor optional func pictureInPictureAdDidRecordImpression(_ pictureInPictureAd: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html)

  Objective-C

      - (void)pictureInPictureAdDidRecordImpression:
          (nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html *)pictureInPictureAd;

- `


  ### [-pictureInPictureAd:didRecordPaidEventWithAdValue:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/c:objc(pl)GADPictureInPictureAdDelegate(im)pictureInPictureAd:didRecordPaidEventWithAdValue:)


  ` Called when the PiP ad is estimated to have earned money.

  #### Declaration

  Swift

      @MainActor optional func pictureInPictureAd(_ pictureInPictureAd: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html, didRecordPaidEventWith value: AdValue)

  Objective-C

      - (void)pictureInPictureAd:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html *)pictureInPictureAd
          didRecordPaidEventWithAdValue:(nonnull GADAdValue *)value;

[## Click-Time Lifecycle Notifications](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/Click-Time-Lifecycle-Notifications)

- `


  ### [-pictureInPictureAdWillPresentScreen:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/c:objc(pl)GADPictureInPictureAdDelegate(im)pictureInPictureAdWillPresentScreen:)


  ` Called when the PiP ad opens a view that covers the entire screen.

  #### Declaration

  Swift

      @MainActor optional func pictureInPictureAdWillPresentScreen(_ pictureInPictureAd: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html)

  Objective-C

      - (void)pictureInPictureAdWillPresentScreen:
          (nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html *)pictureInPictureAd;

- `


  ### [-pictureInPictureAdWillDismissScreen:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/c:objc(pl)GADPictureInPictureAdDelegate(im)pictureInPictureAdWillDismissScreen:)


  ` Called when the full-screen view opened from the PiP ad will be closed.

  #### Declaration

  Swift

      @MainActor optional func pictureInPictureAdWillDismissScreen(_ pictureInPictureAd: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html)

  Objective-C

      - (void)pictureInPictureAdWillDismissScreen:
          (nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html *)pictureInPictureAd;

- `


  ### [-pictureInPictureAdDidDismissScreen:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Protocols/GADPictureInPictureAdDelegate#/c:objc(pl)GADPictureInPictureAdDelegate(im)pictureInPictureAdDidDismissScreen:)


  ` Called when the full-screen view opened from the PiP ad is closed.

  #### Declaration

  Swift

      @MainActor optional func pictureInPictureAdDidDismissScreen(_ pictureInPictureAd: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html)

  Objective-C

      - (void)pictureInPictureAdDidDismissScreen:
          (nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/beta/reference/Classes/GADPictureInPictureAd.html *)pictureInPictureAd;