@niur/ng-gpt
Version:
A Angular implementation of the google GPT API.
22 lines (21 loc) • 899 B
TypeScript
/// <reference types="googletag" />
import { NgGptServiceOptions } from './ng-gpt-options.service';
import { ScriptInjectorUtil } from './utils';
import * as i0 from "@angular/core";
export declare class NgGptService {
private options;
private platformId;
private scriptInjector;
private $singleRequest;
constructor(options: NgGptServiceOptions, platformId: Object, scriptInjector: ScriptInjectorUtil);
init(): void;
define(ad: any, slot?: googletag.Slot): googletag.Slot;
display(slot: googletag.Slot): void;
refresh(slot: googletag.Slot): void;
destroy(slot: googletag.Slot): void;
getSlot(id: string): googletag.Slot | undefined;
getSlots(ids?: string[]): googletag.Slot[];
defineTask(task: () => void): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NgGptService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgGptService>;
}