GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGADNativeAdUnconfirmedClickDelegate\u003c/code\u003e handles unconfirmed clicks on Google native ads, allowing publishers to manage user interface changes and click confirmations.\u003c/p\u003e\n"],["\u003cp\u003eWhen an unconfirmed click occurs, \u003ccode\u003enativeAd:didReceiveUnconfirmedClickOnAssetID:\u003c/code\u003e is called, prompting the publisher to update the UI and request user confirmation.\u003c/p\u003e\n"],["\u003cp\u003ePublishers should register a click-confirming view using \u003ccode\u003eregisterClickConfirmingView:\u003c/code\u003e in \u003ccode\u003eGADNativeAd+ConfirmedClick.h\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIf the unconfirmed click is canceled, \u003ccode\u003enativeAdDidCancelUnconfirmedClick:\u003c/code\u003e is called, allowing publishers to revert UI changes.\u003c/p\u003e\n"],["\u003cp\u003eThis delegate applies only to Google ads and is not supported by mediated ads.\u003c/p\u003e\n"]]],["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"],null,["# GoogleMobileAds Framework Reference\n\nGADNativeAdUnconfirmedClickDelegate\n===================================\n\n @protocol GADNativeAdUnconfirmedClickDelegate \u003cNSObject\u003e\n\nDelegate methods for handling native ad unconfirmed clicks.\n- `\n ``\n ``\n `\n\n ### [-nativeAd:didReceiveUnconfirmedClickOnAssetID:](#/c:objc(pl)GADNativeAdUnconfirmedClickDelegate(im)nativeAd:didReceiveUnconfirmedClickOnAssetID:)\n\n `\n ` \n Tells the delegate that native ad receives an unconfirmed click on view with asset ID. You\n should update user interface and ask user to confirm the click once this message is received.\n Use the -registerClickConfirmingView: method in GADNativeAd+ConfirmedClick.h to register\n a view that will confirm the click. Only called for Google ads and is not supported for mediated\n ads. \n\n #### Declaration\n\n Swift \n\n func nativeAd(_ nativeAd: ../Classes/GADNativeAd.html, didReceiveUnconfirmedClickOnAssetID assetID: ../Type-Definitions.html#/c:GADNativeAdAssetIdentifiers.h@T@GADNativeAssetIdentifier)\n\n Objective-C \n\n - (void)nativeAd:(nonnull ../Classes/GADNativeAd.html *)nativeAd\n didReceiveUnconfirmedClickOnAssetID:\n (nonnull ../Type-Definitions.html#/c:GADNativeAdAssetIdentifiers.h@T@GADNativeAssetIdentifier)assetID;\n\n- `\n ``\n ``\n `\n\n ### [-nativeAdDidCancelUnconfirmedClick:](#/c:objc(pl)GADNativeAdUnconfirmedClickDelegate(im)nativeAdDidCancelUnconfirmedClick:)\n\n `\n ` \n Tells the delegate that the unconfirmed click is cancelled. You should revert the user interface\n change once this message is received. Only called for Google ads and is not supported for\n mediated ads. \n\n #### Declaration\n\n Swift \n\n func nativeAdDidCancelUnconfirmedClick(_ nativeAd: ../Classes/GADNativeAd.html)\n\n Objective-C \n\n - (void)nativeAdDidCancelUnconfirmedClick:(nonnull ../Classes/GADNativeAd.html *)nativeAd;"]]