Skip to content

Commit d1ee487

Browse files
authored
fix: example showing pbjs.addAdUnits as variadic (#6216)
1 parent 0571c86 commit d1ee487

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

features/pbAdSlot.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,31 +113,34 @@ In this example, the publisher utilizes the same 'slotname' in the page for mult
113113
- defineSlot('/1111/homepage', [[728,90]], 'div-j98s9u9usj987665da');
114114

115115
```javascript
116-
pbjs.addAdUnits({
117-
code: 'div-293rj893p9wje9we9fj',
118-
ortb2Imp: {
119-
ext: {
120-
gpid: "/1111/homepage#300x250",
121-
data: {
122-
pbadslot: "/1111/homepage#300x250"
116+
pbjs.addAdUnits([
117+
{
118+
code: 'div-293rj893p9wje9we9fj',
119+
ortb2Imp: {
120+
ext: {
121+
gpid: "/1111/homepage#300x250",
122+
data: {
123+
pbadslot: "/1111/homepage#300x250"
124+
}
123125
}
124-
}
126+
},
127+
mediaTypes: ...
128+
bids: ...
125129
},
126-
mediaTypes: ...
127-
bids: ...
128-
},{
129-
code: 'div-j98s9u9usj987665da',
130-
ortb2Imp: {
131-
ext: {
132-
gpid: "/1111/homepage#728x90",
133-
data: {
134-
pbadslot: "/1111/homepage#728x90"
130+
{
131+
code: 'div-j98s9u9usj987665da',
132+
ortb2Imp: {
133+
ext: {
134+
gpid: "/1111/homepage#728x90",
135+
data: {
136+
pbadslot: "/1111/homepage#728x90"
137+
}
135138
}
136-
}
137-
},
138-
mediaTypes: ...
139-
bids: ...
140-
});
139+
},
140+
mediaTypes: ...
141+
bids: ...
142+
}
143+
]);
141144
```
142145

143146
## Prebid Server

0 commit comments

Comments
 (0)