next-google-adsense
Version:
Next.js Google AdSense
66 lines (65 loc) • 1.74 kB
TypeScript
export declare const isPublisherId: (id: string | undefined) => boolean;
export declare const isSlotId: (id: string | undefined) => boolean;
export declare const isDevelopment: () => boolean;
export declare const DISPLAY_AD_SIZES: {
readonly LEADERBOARD: {
readonly width: 728;
readonly height: 90;
};
readonly BANNER: {
readonly width: 468;
readonly height: 60;
};
readonly HALF_BANNER: {
readonly width: 234;
readonly height: 60;
};
readonly MEDIUM_RECTANGLE: {
readonly width: 300;
readonly height: 250;
};
readonly LARGE_RECTANGLE: {
readonly width: 336;
readonly height: 280;
};
readonly VERTICAL_BANNER: {
readonly width: 120;
readonly height: 240;
};
readonly WIDE_SKYSCRAPER: {
readonly width: 160;
readonly height: 600;
};
readonly SKYSCRAPER: {
readonly width: 120;
readonly height: 600;
};
readonly MOBILE_BANNER: {
readonly width: 320;
readonly height: 50;
};
readonly LARGE_MOBILE_BANNER: {
readonly width: 320;
readonly height: 100;
};
};
export declare const ARTICLE_AD_SIZES: {
readonly SMALL_SQUARE: {
readonly width: 200;
readonly height: 200;
};
readonly SQUARE: {
readonly width: 250;
readonly height: 250;
};
readonly MEDIUM_RECTANGLE: {
readonly width: 300;
readonly height: 250;
};
readonly LARGE_RECTANGLE: {
readonly width: 336;
readonly height: 280;
};
};
export type DisplayAdSize = keyof typeof DISPLAY_AD_SIZES;
export type ArticleAdSize = keyof typeof ARTICLE_AD_SIZES;