GoogleMobileAds Framework Reference
GADNativeAdUnconfirmedClickDelegate
@protocol GADNativeAdUnconfirmedClickDelegate <NSObject>
Delegate methods for handling native ad unconfirmed clicks.
-
Tells the delegate that native ad receives an unconfirmed click on view with asset ID. You
should update user interface and ask user to confirm the click once this message is received.
Use the -registerClickConfirmingView: method in GADNativeAd+ConfirmedClick.h to register
a view that will confirm the click. Only called for Google ads and is not supported for mediated
ads.
-
Tells the delegate that the unconfirmed click is cancelled. You should revert the user interface
change once this message is received. Only called for Google ads and is not supported for
mediated ads.
Declaration
Swift
func nativeAdDidCancelUnconfirmedClick(_ nativeAd: GADNativeAd)
Objective-C
- (void)nativeAdDidCancelUnconfirmedClick:(nonnull GADNativeAd *)nativeAd;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-23 UTC.
[null,null,["Last updated 2021-02-23 UTC."],[[["The `GADNativeAdUnconfirmedClickDelegate` protocol handles unconfirmed clicks on Google native ads, enabling publishers to manage user interactions before a click is finalized."],["When an unconfirmed click occurs, the `nativeAd:didReceiveUnconfirmedClickOnAssetID:` method is called, prompting the publisher to update the UI and request user confirmation."],["Publishers can register a view to confirm the click using methods in `GADNativeAd+ConfirmedClick.h`."],["If an unconfirmed click is cancelled, the `nativeAdDidCancelUnconfirmedClick:` method is triggered, signaling the publisher to revert any UI changes."],["These features are specific to Google ads and are not supported by mediated ads."]]],["The `GADNativeAdUnconfirmedClickDelegate` protocol handles unconfirmed clicks on native ads. Upon receiving an unconfirmed click via `nativeAd:didReceiveUnconfirmedClickOnAssetID:`, the delegate should update the user interface and prompt the user for confirmation. A view can be registered to confirm the click. If the click is canceled, the `nativeAdDidCancelUnconfirmedClick:` method is invoked, requiring the delegate to revert UI changes. These actions are exclusive to Google ads, not mediated ones.\n"]]