GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADNativeAdCustomClickGestureOptions
Ad loader options for custom click gestures. Available for allowlisted publishers only. These
options will be ignored for publishers not allowlisted.
-
The direction in which swipe gestures should be detected and counted as clicks.
Declaration
Swift
var swipeGestureDirection: UISwipeGestureRecognizer.Direction { get set }
Objective-C
@property (nonatomic) UISwipeGestureRecognizerDirection swipeGestureDirection;
-
Whether tap gestures should continue to be detected and counted as clicks.
Declaration
Swift
var areTapsAllowed: Bool { get set }
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite,
getter=areTapsAllowed) BOOL tapsAllowed;
-
Initialize with the direction for detecting swipe gestures and counting them as clicks, and
whether tap gestures are allowed on the ad.
Declaration
Objective-C
- (nonnull instancetype)initWithSwipeGestureDirection:
(UISwipeGestureRecognizerDirection)direction
tapsAllowed:(BOOL)tapsAllowed;
-
Declaration
Objective-C
- (nonnull instancetype)init;
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.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADNativeAdCustomClickGestureOptions\u003c/code\u003e allows publishers to customize click gestures for native ads, such as swipe and tap interactions.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is available to allowlisted publishers only and might be ignored for others.\u003c/p\u003e\n"],["\u003cp\u003ePublishers can define the swipe direction that triggers a click and whether tap gestures should also be counted as clicks.\u003c/p\u003e\n"],["\u003cp\u003eThese options are managed through properties like \u003ccode\u003eswipeGestureDirection\u003c/code\u003e and \u003ccode\u003etapsAllowed\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eInitialization is done through the designated initializer, specifying both swipe direction and tap allowance.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds Framework Reference\n\nGADNativeAdCustomClickGestureOptions\n====================================\n\n\n @interface GADNativeAdCustomClickGestureOptions : ../Classes.html#/c:objc(cs)GADAdLoaderOptions\n\nAd loader options for custom click gestures. Available for allowlisted publishers only. These\noptions will be ignored for publishers not allowlisted.\n- `\n ``\n ``\n `\n\n ### [swipeGestureDirection](#/c:objc(cs)GADNativeAdCustomClickGestureOptions(py)swipeGestureDirection)\n\n `\n ` \n The direction in which swipe gestures should be detected and counted as clicks. \n\n #### Declaration\n\n Swift \n\n var swipeGestureDirection: UISwipeGestureRecognizer.Direction { get set }\n\n Objective-C \n\n @property (nonatomic) UISwipeGestureRecognizerDirection swipeGestureDirection;\n\n- `\n ``\n ``\n `\n\n ### [tapsAllowed](#/c:objc(cs)GADNativeAdCustomClickGestureOptions(py)tapsAllowed)\n\n `\n ` \n Whether tap gestures should continue to be detected and counted as clicks. \n\n #### Declaration\n\n Swift \n\n var areTapsAllowed: Bool { get set }\n\n Objective-C \n\n @property (nonatomic, assign, unsafe_unretained, readwrite,\n getter=areTapsAllowed) BOOL tapsAllowed;\n\n- `\n ``\n ``\n `\n\n ### [-initWithSwipeGestureDirection:tapsAllowed:](#/c:objc(cs)GADNativeAdCustomClickGestureOptions(im)initWithSwipeGestureDirection:tapsAllowed:)\n\n `\n ` \n Initialize with the direction for detecting swipe gestures and counting them as clicks, and\n whether tap gestures are allowed on the ad. \n\n #### Declaration\n\n Swift \n\n init(../Classes/GADNativeAdCustomClickGestureOptions.html#/c:objc(cs)GADNativeAdCustomClickGestureOptions(py)swipeGestureDirection direction: UISwipeGestureRecognizer.Direction, tapsAllowed: Bool)\n\n Objective-C \n\n - (nonnull instancetype)initWithSwipeGestureDirection:\n (UISwipeGestureRecognizerDirection)direction\n tapsAllowed:(BOOL)tapsAllowed;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GADNativeAdCustomClickGestureOptions(im)init)\n\n `\n ` \n Unavailable \n Unavailable. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;"]]