@financial-times/ads-display
Advanced tools
Comparing version 5.1.0 to 5.1.1-beta.1
@@ -17,6 +17,6 @@ { | ||
"dependencies": { | ||
"@financial-times/ads-legacy-o-ads": "^5.1.0", | ||
"@financial-times/ads-moat-integration": "^5.1.0", | ||
"@financial-times/ads-permutive": "^5.1.0", | ||
"@financial-times/ads-personalised-consent": "^5.1.0", | ||
"@financial-times/ads-legacy-o-ads": "^5.1.1-beta.1", | ||
"@financial-times/ads-moat-integration": "^5.1.1-beta.1", | ||
"@financial-times/ads-permutive": "^5.1.1-beta.1", | ||
"@financial-times/ads-personalised-consent": "^5.1.1-beta.1", | ||
"@financial-times/n-tracking": "^4.0.1", | ||
@@ -34,3 +34,3 @@ "@financial-times/o-tracking": "^4.0.0", | ||
}, | ||
"version": "5.1.0" | ||
"version": "5.1.1-beta.1" | ||
} |
@@ -8,1 +8,57 @@ export type OAdsMetricPayload = { | ||
}; | ||
export declare function getAdsData({ user, page, host }: Object): Object; | ||
export declare function formatArticleData(article: Object): Object; | ||
export declare function formatSmartmatchData(smartmatchData: Object): Object; | ||
export declare function formatUserData(user: Object): Object; | ||
export declare namespace adsUtils { | ||
function getRootID(): string; | ||
function enablePermutiveFtCom({ metadata, type, rootId }: Object): Promise<boolean>; | ||
} | ||
// interface for options in displayAds.init() via AdsOptionsEmbed | ||
interface IDisplayAdsOptions { | ||
appName: string; | ||
adUnit?: string[]; | ||
adsLayout?: any; | ||
abTestState?: string; | ||
rootId?: string; | ||
targeting?: Object; | ||
sandbox?: boolean; | ||
disableMonitoring?: boolean; | ||
formats?: Object; | ||
lazyLoadMargins?: Object; | ||
waitForMoat?: boolean; | ||
} | ||
interface IResponsive { | ||
extra: number[]; | ||
large: number[]; | ||
medium: number[]; | ||
small: number[]; | ||
} | ||
export declare namespace displayAds { | ||
function init(options: IDisplayAdsOptions, flags: Object): Promise<void>; | ||
function initAdSlots(oAdsInstance: Class): void; | ||
function initOads(options: IDisplayAdsOptions, flags: Object): Promise<oAdsInstance>; | ||
function getOAdsConfig( | ||
options: IDisplayAdsOptions, | ||
flags: Object | ||
): { | ||
gpt: { | ||
network: string; | ||
site: string; | ||
zone: string; | ||
rendering: ?string; | ||
enableLazyLoad: ?string; | ||
}; | ||
formats: Object; | ||
responsive: IResponsive; | ||
collapseEmpty: string; | ||
lazyLoad: false | { viewportMargin: string }; | ||
targeting: any; | ||
disableConsentCookie: boolean; | ||
}; | ||
function getAllTargeting(options: IDisplayAdsOptions): Object; | ||
function getGptSite(sandbox: boolean): string; | ||
function getGptZone(adUnit: string[]): string; | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
46037
858
335
2
0
1