File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,10 @@ All connectors should implement these methods in order to display Ads:
1313
1414Connectors that support Ad loading without rendering yet (pre-load) should implement these methods:
1515
16- * loadAd: Should return
16+ * loadAd: Should return the creative data from the Ad server
17+
18+ ## Logger
19+
20+ Connectors that has any Log system integrated, should implement the Logger interface:
21+
22+ * enableDebug: Should enable or disable the debug tracing for the implementing connector
Original file line number Diff line number Diff line change 11{
22 "name" : " @schibstedspain/openads-connector-api" ,
3- "version" : " 1.0 .0" ,
3+ "version" : " 1.1 .0" ,
44 "description" : " OpenAds Interfaces to be compliant developing a new OpenAds connector" ,
55 "main" : " dist/" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11import AdLoadable from './interface/AdLoadable'
22import AdViewable from './interface/AdViewable'
3+ import Logger from './interface/Logger'
34
45export {
56 AdLoadable ,
6- AdViewable
7+ AdViewable ,
8+ Logger
79}
Original file line number Diff line number Diff line change 1+ /**
2+ * @interface
3+ */
4+ export default class Logger {
5+ /**
6+ * Enables or disables debug mode depending on the debug value
7+ * @param {boolean } true enables debug, false disables it
8+ */
9+ enableDebug ( { debug} ) {
10+ throw new Error ( 'Logger#enableDebug must be implemented' )
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments