ProgrammaticAccessLibrary Framework Reference

PALNonceManager


@interface PALNonceManager : NSObject

Manages a nonce and its ad event reporting for a single content stream.

  • The nonce generated for this manager when it was loaded.

    This value will never change for a given PALNonceManager instance. This nonce value is only valid for a single content stream.

    Declaration

    Swift

    var nonce: String { get }

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSString *nonce;
  • A gesture recognizer that must be attached to each view each ad is displayed in during playback.

    Attach this gesture recognizer via UIView‘s addGestureRecognizer: method. Once the ad is complete, the gesture recognizer may be removed with removeGestureRecognizer: and added to another one if the view is not the same. This recognizer does not trigger any network requests.

    Declaration

    Swift

    var gestureRecognizer: UIGestureRecognizer { get }

    Objective-C

    @property (nonatomic, readonly, nonnull) UIGestureRecognizer *gestureRecognizer;
  • Sends an ad click event to Google ad servers for the given content stream.

    Declaration

    Swift

    func sendAdClick()

    Objective-C

    - (void)sendAdClick;
  • Sends an ad impression event to Google ad servers for the given content stream.

    Declaration

    Swift

    func sendAdImpression()

    Objective-C

    - (void)sendAdImpression;