GoogleMobileAds.Api.NativeOverlayAd

Native Overlay ads use the Native ad format to show overlays on top of the application.

Summary

They stay on screen while users are interacting with the app.

Events

OnAdClicked
Action
Raised when a click is recorded for an ad.
OnAdFullScreenContentClosed
Action
Raised when the ad closed full-screen content.
OnAdFullScreenContentOpened
Action
Raised when an ad opened full-screen content.
OnAdImpressionRecorded
Action
Raised when an impression is recorded for an ad.
OnAdPaid
Action< AdValue >
Raised when the ad is estimated to have earned money.

Properties

PlacementId
long
A long integer provided by the AdMob UI for the configured placement.

Public static functions

Load(string adUnitId, AdRequest request, NativeAdOptions options, Action< NativeOverlayAd, LoadAdError > adLoadCallback)
void
Loads a native overlay ad.

Public functions

Destroy()
void
Destroys the native overlay ad.
GetResponseInfo()
Fetches the ad request response info.
GetTemplateHeightInPixels()
float
Returns the height of the native overlay in pixels.
GetTemplateWidthInPixels()
float
Returns the width of the native overlay in pixels.
Hide()
void
Hides the ad from being shown.
RenderTemplate(NativeTemplateStyle nativeTemplateStyle, AdSize adSize, AdPosition adPosition)
void
Renders the native overlay ad at provided AdPosition with the given adSize.
RenderTemplate(NativeTemplateStyle nativeTemplateStyle, AdSize adSize, int x, int y)
void
Renders the native overlay ad at x,y coordinates with the provided size.
RenderTemplate(NativeTemplateStyle nativeTemplateStyle, AdPosition adPosition)
void
Renders the native overlay ad at provided AdPosition using the default size.
RenderTemplate(NativeTemplateStyle nativeTemplateStyle, int x, int y)
void
Renders the native Overlay ad at x,y coordinates using the default size.
SetTemplatePosition(AdPosition position)
void
Sets the position of the native overlay ad using standard position.
SetTemplatePosition(int x, int y)
void
Sets the position of the native overlay ad using custom position.
Show()
void
Shows the previously hidden ad.

Events

OnAdClicked

Action OnAdClicked

Raised when a click is recorded for an ad.

OnAdFullScreenContentClosed

Action OnAdFullScreenContentClosed

Raised when the ad closed full-screen content.

On iOS, this event is only raised when an ad opens an overlay, not when opening a new application such as Safari or the App Store.

OnAdFullScreenContentOpened

Action OnAdFullScreenContentOpened