Share via


NativeAdsManagerV2.AdReady Event

Definition

Raised when a NativeAdV2 is ready for your app.

// Register
event_token AdReady(EventHandler<NativeAdReadyEventArgs> const& handler) const;

// Revoke with event_token
void AdReady(event_token const* cookie) const;

// Revoke with event_revoker
NativeAdsManagerV2::AdReady_revoker AdReady(auto_revoke_t, EventHandler<NativeAdReadyEventArgs> const& handler) const;
public event System.EventHandler<NativeAdReadyEventArgs> AdReady;
function onAdReady(eventArgs) { /* Your code */ }
nativeAdsManagerV2.addEventListener("adready", onAdReady);
nativeAdsManagerV2.removeEventListener("adready", onAdReady);
- or -
nativeAdsManagerV2.onadready = onAdReady;
Public Custom Event AdReady As EventHandler(Of NativeAdReadyEventArgs) 

Event Type

Remarks

The NativeAd property of the event args object that is passed to your event handler contains the NativeAdV2 that is ready for your app to use.

Applies to

See also