Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.

GoogleMobileAds Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

GADNativeAdCustomClickGestureOptions

@interface GADNativeAdCustomClickGestureOptions : GADAdLoaderOptions

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 tapsAllowed: Bool { get set }

    Objective-C

    @property (nonatomic) 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

    Swift

    init(swipeGestureDirection direction: UISwipeGestureRecognizer.Direction, tapsAllowed: Bool)

    Objective-C

    - (nonnull instancetype)initWithSwipeGestureDirection:
                                (UISwipeGestureRecognizerDirection)direction
                                              tapsAllowed:(BOOL)tapsAllowed;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;