<commit_before>---
layout: bidder
title: Platform.io
description: Prebid Platform.io Bidder Adapter
hide: true
biddercode: platformio
media_types: native, video
gdpr_supported: true
---

### Bid Params

{: .table .table-bordered .table-striped }
| Name          | Scope    | Description                      | Example        | Type     |
|---------------|----------|----------------------------------|----------------|----------|
| `pubId`       | required | The publisher account ID         | `'28082'`      | `string` |
| `siteId`      | required | The publisher site ID            | `'26047'`      | `string` |
| `size`        | required | Ad size identifier               | `'300X250'`    | `string` |
| `placementId` | required | Identifies specific ad placement | `'17394'`      | `string` |
| `bidFloor`    | optional | The bid floor                    | `'0.001'`      | `string` |
| `ifa`         | optional | IFA ID                           | `'XXX-XXX'`    | `string` |
| `latitude`    | optional | Latitude                         | `'40.712775'`  | `string` |
| `longitude`   | optional | Longitude                        | `'-74.005973'` | `string` |

### test params

```
  var adUnits = [{
          code: 'dfp-native-div',
          mediaType: 'native',
          mediaTypes: {
              native: {
                  title: {
                      required: true,
                      len: 75
                  },
                  image: {
                      required: true
                  },
                  body: {
                      len: 200
                  },
                  icon: {
                      required: false
                  }
              }
          },
          bids: [{
              bidder: 'platformio',
              params: {
                  pubId: '29521',
                  siteId: '26048',
                  placementId: '123',
              }
          }]
      },
      {
          code: 'dfp-banner-div',
          mediaTypes: {
              banner: {
                  sizes: [
                      [300, 250]
                  ],
              }
          },
          bids: [{
              bidder: 'platformio',
              params: {
                  pubId: '29521',
                  siteId: '26049',
                  size: '300X250',
                  placementId: '123',
              }
          }]
      },
      {
          code: 'dfp-video-div',
          sizes: [640, 480],
          mediaTypes: {
              video: {
                  context: "instream"
              }
          },
          bids: [{
              bidder: 'platformio',
              params: {
                  pubId: '29521',
                  siteId: '26049',
                  size: '640X480',
                  placementId: '123',
                  video: {
                      skippable: true,
                  }
              }
          }]
      }
  ];
```<commit_msg>Update platformio.md (#1889)<commit_after>---
layout: bidder
title: Platform.io
description: Prebid Platform.io Bidder Adapter
hide: true
biddercode: platformio
media_types: native, video
gdpr_supported: true
---

### Bid Params

{: .table .table-bordered .table-striped }
| Name          | Scope    | Description                      | Example        | Type     |
|---------------|----------|----------------------------------|----------------|----------|
| `pubId`       | required | The publisher account ID         | `'28082'`      | `string` |
| `siteId`      | required | The publisher site ID            | `'26047'`      | `string` |
| `placementId` | required | Identifies specific ad placement | `'17394'`      | `string` |
| `bidFloor`    | optional | The bid floor                    | `'0.001'`      | `string` |
| `ifa`         | optional | IFA ID                           | `'XXX-XXX'`    | `string` |
| `latitude`    | optional | Latitude                         | `'40.712775'`  | `string` |
| `longitude`   | optional | Longitude                        | `'-74.005973'` | `string` |

### test params

```
 var adUnits = [{
          code: 'dfp-native-div',
          mediaTypes: {
              native: {
                  title: {
                      required: true,
                      len: 75
                  },
                  image: {
                      required: true
                  },
                  body: {
                      len: 200
                  },
                  icon: {
                      required: false
                  }
              }
          },
          bids: [{
              bidder: 'platformio',
              params: {
                  pubId: '29521', 
                  siteId: '26048',
                  placementId: '123',
                  bidFloor: '0.001', // optional
                  ifa: 'XXX-XXX', // optional
                  latitude: '40.712775', // optional
                  longitude: '-74.005973', // optional
              }
          }]
      },
      {
          code: 'dfp-banner-div',
          mediaTypes: {
              banner: {
                  sizes: [
                      [300, 250],[300,600]
                  ],
              }
          },
          bids: [{
              bidder: 'platformio',
              params: {
                  pubId: '29521',
                  siteId: '26049',
                  placementId: '123',
              }
          }]
      },
      {
          code: 'dfp-video-div',
          mediaTypes: {
              video: {
                  playerSize: [[640, 480]],
                  context: "instream"
              }
          },
          bids: [{
              bidder: 'platformio',
              params: {
                  pubId: '29521',
                  siteId: '26049',
                  placementId: '123',
                  video: {
                      skippable: true,
                  }
              }
          }]
      }
  ];
```
{'fraction_non_alphanumeric': 0.14673180592991913, 'fraction_numerical': 0.038746630727762806, 'mean_word_length': 0.8324074074074074, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7195931', 'n_tokens_mistral': 1753, 'n_tokens_neox': 1504, 'n_words': 321}