Skip to content

Commit e87566c

Browse files
author
Alex Castells
authored
Merge pull request #3 from scm-spain/feature/enable-modifying-all-definable-data
Add more fields to refresh definition
2 parents 3f446c4 + 29d4b7d commit e87566c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@schibstedspain/openads-connector-api",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "OpenAds Interfaces to be compliant developing a new OpenAds connector",
55
"main": "dist/",
66
"scripts": {

src/interface/AdViewable.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ export default class AdViewable {
1414
/**
1515
* Returns and empty Promise when the refresh operation has finished
1616
* @param {string} id The unique identifier of the position
17-
* @param {segmentation} segmentation Data to be updated for the position
17+
* @param {string} placement
18+
* @param {Array<Array<number,number>>} sizes
19+
* @param {string} segmentation
20+
* @param {Object} native - Fields requested to the ad server
1821
* @returns {Promise} Promise object representing when the operation finish
1922
*/
20-
refresh ({domElementId, segmentation}) {
23+
refresh ({domElementId, placement, sizes, segmentation, native}) {
2124
throw new Error('AdViewable#refresh must be implemented')
2225
}
2326
}

0 commit comments

Comments
 (0)