@asoftwareworld/google-adsense
Version:
Google Adsense for Angular
49 lines (48 loc) • 2.4 kB
TypeScript
/**
* @license
* Copyright ASW (A Software World) All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file
*/
import { AfterViewInit, OnDestroy, OnInit, ElementRef } from '@angular/core';
import { AswGoogleAdsenseConfig } from './google-adsense-config';
import * as i0 from "@angular/core";
export declare class AswGoogleAdsense implements OnInit, AfterViewInit, OnDestroy {
private config;
private platform;
/** adsense account ca-pub-XXXXXXXXXXXXXXXX */
adClient: string;
/** ad slot/number */
adSlot: string | number;
adFormat: string;
/** can be manually set if you need all ads on a page to have same id page-xxx */
adRegion: string;
/** ins element display style */
display: string;
/** ins element height in px */
width: number;
/** ins element width in px */
height: number;
/** used for in-feed ads */
layout: string;
/** used for in-feed ads */
layoutKey: string;
/** enable page-level ads */
pageLevelAds: boolean;
/** sets up some sort of google test ad */
adtest: string;
fullWidthResponsive: boolean;
/**
* classes applied to the ins element
*/
className: string;
ins: ElementRef;
constructor(config: AswGoogleAdsenseConfig, platform: any);
ngOnInit(): void;
ngOnDestroy(): void;
ngAfterViewInit(): void;
push(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AswGoogleAdsense, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AswGoogleAdsense, "asw-google-adsense", never, { "adClient": { "alias": "adClient"; "required": false; }; "adSlot": { "alias": "adSlot"; "required": false; }; "adFormat": { "alias": "adFormat"; "required": false; }; "adRegion": { "alias": "adRegion"; "required": false; }; "display": { "alias": "display"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "layoutKey": { "alias": "layoutKey"; "required": false; }; "pageLevelAds": { "alias": "pageLevelAds"; "required": false; }; "adtest": { "alias": "adtest"; "required": false; }; "fullWidthResponsive": { "alias": "fullWidthResponsive"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, false, never>;
}