Skip to content

Commit ab5dc73

Browse files
New Bidder:InMobi (#5722)
* prebidJs changes for inmobi.md file * change the usp support * space correction * lint issues
1 parent 34b9761 commit ab5dc73

File tree

1 file changed

+93
-1
lines changed

1 file changed

+93
-1
lines changed

dev-docs/bidders/inmobi.md

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ title: InMobi
44
description: InMobi Bidder Adapter
55
biddercode: inmobi
66
tcfeu_supported: true
7-
usp_supported: false
7+
usp_supported: true
88
gvl_id: 333
99
coppa_supported: true
1010
schain_supported: true
1111
media_types: banner, video, native
1212
pbs: true
1313
pbs_app_supported: true
1414
sidebarType: 1
15+
pbjs: true
1516
---
1617

1718
### Note
@@ -30,6 +31,97 @@ To opt out of InMobi ads on web inventory the user needs to visit the Opt-out pa
3031
### Bid Params
3132

3233
{: .table .table-bordered .table-striped }
34+
3335
| Name | Scope | Description | Example | Type |
3436
|---------------|----------|-----------------------|-----------|-----------|
3537
| `plc` | required | Placement ID | `'1234'` | `string` |
38+
39+
### First Party Data
40+
41+
Inmobi supports both `ortb2` and `ortb2Imp` methods to set [First Party Data](https://docs.prebid.org/features/firstPartyData.html).
42+
43+
The standard Open RTB properties supported from `ortb2` / `ortb2Imp` are described in the following table.
44+
45+
{: .table .table-bordered .table-striped }
46+
47+
| Name | Scope | Description | Example | Type |
48+
|-------------------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|-----------|
49+
| `ortb2Imp.instl` | optional | Details on interstitial/full-screen, 1 indicates that the ad is interstitial or full-screen, while 0 means it is not. | `1` | `integer` |
50+
| `ortb2Imp.rwdd` | optional | Specifies if the user receives a reward for viewing the ad: 0 for no, and 1 for yes. | `1` | `integer` |
51+
| `ortb2.user` | optional | Information about the advertising device's human user, provided through an OpenRTB User object. | N/A | `object` |
52+
| `ortb2.site` | optional | Information about the publisher's website provided through an OpenRTB Site object. | N/A | `object` |
53+
| `ortb2.device` | optional | Information about the user's device provided through an OpenRTB device object. | N/A | `object` |
54+
| `ortb2.bcat` | optional | Blocked advertiser categories using the IAB content categories. | `[ "IAB25" ]` | `string array` |
55+
| `ortb2.badv` | optional | Block list of advertisers by their domains | `[ "ford.com" ]` | `string array` |
56+
| `ortb2.regs` | optional | Regulatory conditions in effect for all impressions in this bid request. | N/A | `object` |
57+
58+
Besides these standard properties, `ext` field can be used to send any publisher specific data which may have been discussed with a Inmobi partner manager.
59+
60+
### Example Ad-Units
61+
62+
## Banner
63+
64+
```javascript
65+
var adUnits = [{
66+
code: 'div-gpt-ad-1460505748561-0',
67+
mediaTypes: {
68+
banner: {
69+
sizes: [[300, 250]],
70+
}
71+
},
72+
bids: [{
73+
bidder: 'inmobi',
74+
params: {
75+
plc: '1719108420057' // Mandatory
76+
}
77+
}]
78+
}];
79+
```
80+
81+
## Video
82+
83+
```javaScript
84+
var adUnits = [{
85+
code: 'div-gpt-ad-1460505748561-0',
86+
mediaTypes: {
87+
video: {
88+
playerSize : [300,250],
89+
mimes : ["video/x-ms-wmv", "video/mp4"],
90+
minduration : 0,
91+
maxduration: 30,
92+
protocols : [1,2],
93+
api: [1, 2, 4, 6],
94+
protocols: [3, 4, 7, 8, 10],
95+
placement: 1,
96+
plcmt: 1
97+
}
98+
},
99+
// Replace this object to test a new Adapter!
100+
bids: [{
101+
bidder: 'inmobi',
102+
params: {
103+
plc: '1443164204446401' //Mandatory
104+
}
105+
}]
106+
}];
107+
```
108+
109+
## Native
110+
111+
```javascript
112+
var adUnits = [{
113+
code: 'div-gpt-ad-1460505748561-0',
114+
mediaTypes: {
115+
native: {
116+
type: 'image'
117+
}
118+
},
119+
bids: [{
120+
bidder: 'inmobi',
121+
params: {
122+
plc: '10000033152',
123+
bidfloor: 0.9
124+
}
125+
}]
126+
}];
127+
```

0 commit comments

Comments
 (0)