GoogleMobileAds. Api. PictureInPictureAd
A Picture-in-Picture (PiP) ad that displays in a floating window across screens.
Summary
Events |
|
|---|---|
OnAdClicked
|
Action
Raised when an ad is clicked.
|
OnAdFullScreenContentClosed
|
Action
Raised when the ad closed full-screen content.
|
OnAdFullScreenContentFailed
|
Action< AdError >
Raised when the ad failed to open full-screen content.
|
OnAdFullScreenContentOpened
|
Action
Raised when an ad opened full-screen content.
|
OnAdHidden
|
Action
Raised when the PiP ad is hidden from the screen.
|
OnAdImpressionRecorded
|
Action
Raised when an impression is recorded for an ad.
|
OnAdPaid
|
Action< AdValue >
Raised when the ad is estimated to have earned money.
|
OnAdShown
|
Action
Raised when the PiP ad is displayed on the screen.
|
Public static functions |
|
|---|---|
Load(string adUnitId, AdRequest request, Action< PictureInPictureAd, LoadAdError > adLoadCallback)
|
void
Loads a Picture-in-Picture ad.
|
Public functions |
|
|---|---|
Destroy()
|
void
Destroys the Picture-in-Picture ad and cleans up native resources.
|
GetAdPosition()
|
Returns the current or last known position of the Picture-in-Picture ad.
|
GetResponseInfo()
|
Returns the ResponseInfo for the loaded ad, or null if unavailable.
|
Hide()
|
void
Hides the Picture-in-Picture ad from the screen.
|
Show(PictureInPictureAdPosition position)
|
void
Shows the Picture-in-Picture ad on the screen at the specified corner position.
|
Events
OnAdClicked
Action OnAdClicked
Raised when an ad is clicked.
OnAdFullScreenContentClosed
Action OnAdFullScreenContentClosed
Raised when the ad closed full-screen content.
OnAdFullScreenContentFailed
Action< AdError > OnAdFullScreenContentFailed
Raised when the ad failed to open full-screen content.
OnAdFullScreenContentOpened
Action OnAdFullScreenContentOpened
Raised when an ad opened full-screen content.
OnAdHidden
Action OnAdHidden
Raised when the PiP ad is hidden from the screen.
OnAdImpressionRecorded
Action OnAdImpressionRecorded
Raised when an impression is recorded for an ad.
OnAdShown
Action OnAdShown
Raised when the PiP ad is displayed on the screen.
Public static functions
Load
void Load( string adUnitId, AdRequest request, Action< PictureInPictureAd, LoadAdError > adLoadCallback )
Loads a Picture-in-Picture ad.
Public functions
Destroy
void Destroy()
Destroys the Picture-in-Picture ad and cleans up native resources.
GetAdPosition
PictureInPictureAdPosition GetAdPosition()
Returns the current or last known position of the Picture-in-Picture ad.
GetResponseInfo
ResponseInfo GetResponseInfo()
Returns the ResponseInfo for the loaded ad, or null if unavailable.
Hide
void Hide()
Hides the Picture-in-Picture ad from the screen.
Show
void Show( PictureInPictureAdPosition position )
Shows the Picture-in-Picture ad on the screen at the specified corner position.