ProgrammaticAccessLibrary Framework Reference

Classes

The following classes are available globally.

  • PAL settings reflecting settings configured in Google Ad Manager.

    Declaration

    Swift

      class 
     GoogleAdManagerSettings 
     : 
     NSObject 
     
    

    Objective-C

      @interface 
     PALGoogleAdManagerSettings 
     : 
     NSObject 
     
    
  • Allows publishers to create a PALNonceManager for a single content stream.

    This instance’s methods and properties are not thread safe. Usage:

    1. Create a new PALNonceLoader .
    2. Create a new PALNonceRequest and populate its properties.
    3. Call loadNonceManagerWithRequest : to get a new PALNonceManager , which will contain the nonce to use for ad requests for a single content stream.
    4. For subsequent content streams, create a new PALNonceRequest but reuse the same PALNonceLoader .

    Declaration

    Swift

      class 
     NonceLoader 
     : 
     NSObject 
     
    

    Objective-C

      @interface 
     PALNonceLoader 
     : 
     NSObject 
     
    
  • Manages a nonce and its event reporting for a single content playback session.

    The below content playback session lifecycle methods must be accurately called in order to enable programmatic monetization.

    Declaration

    Swift

      class 
     NonceManager 
     : 
     NSObject 
     
    

    Objective-C

      @interface 
     PALNonceManager 
     : 
     NSObject 
     
    
  • The PALNonceRequest class contains data needed to create a programmatic access nonce.

    A PALNonceRequest instance is passed into a PALNonceLoader ‘s loadNonceManagerWithRequest : method to load a new PALNonceManager , containing the result nonce.

    Declaration

    Swift

      class 
     NonceRequest 
     : 
     NSObject 
     
    

    Objective-C

      @interface 
     PALNonceRequest 
     : 
     NSObject 
     
    
  • The PALSettings class stores SDK wide settings.

    Declaration

    Swift

      class 
     Settings 
     : 
     NSObject 
     
    

    Objective-C

      @interface 
     PALSettings 
     : 
     NSObject 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: