ProgrammaticAccessLibrary Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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:
- Create a new
PALNonceLoader
.
- Create a new
PALNonceRequest
and populate its properties.
- Call
loadNonceManagerWithRequest
: to get a new PALNonceManager
,
which will contain the nonce to use for ad requests for a single content stream.
- 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
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\u003e\u003ccode\u003ePALNonceLoader\u003c/code\u003e enables publishers to create a \u003ccode\u003ePALNonceManager\u003c/code\u003e for single content streams and should be reused for subsequent streams.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePALNonceManager\u003c/code\u003e manages a nonce and its event reporting for a single content playback session, requiring accurate lifecycle method calls for programmatic monetization.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePALNonceRequest\u003c/code\u003e contains data needed for creating a programmatic access nonce and is used by \u003ccode\u003ePALNonceLoader\u003c/code\u003e to load a new \u003ccode\u003ePALNonceManager\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePALSettings\u003c/code\u003e stores SDK-wide settings for configuration and customization.\u003c/p\u003e\n"]]],[],null,["# ProgrammaticAccessLibrary Framework Reference\n\nClasses\n=======\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [PALGoogleAdManagerSettings](/ad-manager/pal/tvos/reference/Classes/PALGoogleAdManagerSettings)\n\n `\n ` \n PAL settings reflecting settings configured in Google Ad Manager. \n\n #### Declaration\n\n Swift \n\n class GoogleAdManagerSettings : NSObject\n\n Objective-C \n\n\n @interface PALGoogleAdManagerSettings : NSObject\n\n- `\n ``\n ``\n `\n\n ### [PALNonceLoader](/ad-manager/pal/tvos/reference/Classes/PALNonceLoader)\n\n `\n ` \n Allows publishers to create a [PALNonceManager](/ad-manager/pal/tvos/reference/Classes/PALNonceManager) for a single content stream.\n\n This instance's methods and properties are not thread safe. Usage:\n 1. Create a new `PALNonceLoader`.\n 2. Create a new [PALNonceRequest](/ad-manager/pal/tvos/reference/Classes/PALNonceRequest) and populate its properties.\n 3. Call `loadNonceManagerWithRequest`: to get a new [PALNonceManager](/ad-manager/pal/tvos/reference/Classes/PALNonceManager), which will contain the nonce to use for ad requests for a single content stream.\n 4. For subsequent content streams, create a new [PALNonceRequest](/ad-manager/pal/tvos/reference/Classes/PALNonceRequest) but reuse the same `PALNonceLoader`. \n\n #### Declaration\n\n Swift \n\n class NonceLoader : NSObject\n\n Objective-C \n\n\n @interface PALNonceLoader : NSObject\n\n- `\n ``\n ``\n `\n\n ### [PALNonceManager](/ad-manager/pal/tvos/reference/Classes/PALNonceManager)\n\n `\n ` \n Manages a nonce and its event reporting for a single content playback session.\n\n The below content playback session lifecycle methods must be accurately called in order to enable\n programmatic monetization. \n\n #### Declaration\n\n Swift \n\n class NonceManager : NSObject\n\n Objective-C \n\n\n @interface PALNonceManager : NSObject\n\n- `\n ``\n ``\n `\n\n ### [PALNonceRequest](/ad-manager/pal/tvos/reference/Classes/PALNonceRequest)\n\n `\n ` \n The `PALNonceRequest` class contains data needed to create a\n programmatic access nonce.\n\n A `PALNonceRequest` instance is passed into a [PALNonceLoader](/ad-manager/pal/tvos/reference/Classes/PALNonceLoader)'s\n `loadNonceManagerWithRequest`: method to load a new [PALNonceManager](/ad-manager/pal/tvos/reference/Classes/PALNonceManager),\n containing the result nonce. \n\n #### Declaration\n\n Swift \n\n class NonceRequest : NSObject\n\n Objective-C \n\n\n @interface PALNonceRequest : NSObject\n\n- `\n ``\n ``\n `\n\n ### [PALSettings](/ad-manager/pal/tvos/reference/Classes/PALSettings)\n\n `\n ` \n The PALSettings class stores SDK wide settings. \n\n #### Declaration\n\n Swift \n\n class Settings : NSObject\n\n Objective-C \n\n\n @interface PALSettings : NSObject"]]