UNPKG

@niur/ng-gpt

Version:
58 lines (57 loc) 2.34 kB
/// <reference types="googletag" /> import { InjectionToken } from '@angular/core'; import * as i0 from "@angular/core"; export declare class NgGptServiceOptions { /** * Enables and disables horizontal centering of ads. Centering is disabled by default. In legacy gpt_mobile.js, centering is enabled by default. */ centering?: boolean; /** * Enables collapsing of slot divs so that they don't take up any space on the page when there is no ad content to display. */ collapseEmptyDivs?: boolean; /** * Sets custom targeting parameters for a given key that apply to all Publisher Ads service ad slots. */ targeting?: Record<string, string | string[]>; /** * Sets the value for the publisher-provided ID. See the article on {@link https://support.google.com/admanager/answer/2880055 PPID} for more details. */ ppid?: string; /** * Enables lazy loading in GPT as defined by the config object. */ enableLazyLoad?: { fetchMarginPercent: number; mobileScaling: number; renderMarginPercent: number; }; /** * Passes location information from websites so you can geo-target line items to specific locations. */ address?: string; /** * Configures whether all ads on the page should be forced to be rendered using a SafeFrame container. */ forceSafeFrame?: boolean; /** * Sets the page-level preferences for SafeFrame configuration. * * These page-level preferences will be overridden by slot-level preferences, if specified. */ safeFrameConfig?: googletag.SafeFrameConfig; /** * Configuration object for privacy settings. */ privacySettingsConfig?: googletag.PrivacySettingsConfig; disableInitialLoad?: boolean; /** * Enables single request mode for fetching multiple ads at the same time. * This requires all Publisher Ads slots to be defined and added to the PubAdsService prior to enabling the service. * Single request mode must be set before the service is enabled. */ enableSingleRequest?: boolean; static ɵfac: i0.ɵɵFactoryDeclaration<NgGptServiceOptions, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgGptServiceOptions>; } export declare const GPT_OPTIONS: InjectionToken<NgGptServiceOptions>;