Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glimpse Adapter: Update overview and detail setup process #3397

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 90 additions & 48 deletions dev-docs/bidders/glimpse.md
Original file line number Diff line number Diff line change
@@ -1,95 +1,137 @@
---
layout: bidder
title: Glimpse Protocol
description: Glimpse Protocol Bidder Adapter
description: Glimpse Protocol Bid Adapter
biddercode: glimpse
pbjs: true
gdpr_supported: true
deals_supported: true
media_types: banner
gvl_id: 1012
---

## Overview

```
Module Name: Glimpse Protocol Adaptor
Module Name: Glimpse Protocol Bid Adapter
Module Type: Bidder Adapter
Maintainer: tim@glimpseprotocol.io
Maintainer: publisher@glimpseprotocol.io
```

## Description

This module connects publishers to Glimpse Protocol's demand sources via Prebid.js. Our
innovative marketplace protects consumer privacy while allowing precise targeting. It is
compliant with GDPR, DPA and CCPA.
innovative marketplace protects consumer privacy while allowing precise targeting.

This module was built and tested against prebid 3.21.0 and so compatibility against
version 2 and earlier is unknown.
## Supported Media Types

## Media Types

| Type | Support |
| Type | Sizes |
| -------- | ------------------------------------------------------------------ |
| `Banner` | Fully supported for 320x50, 300x250, 300x600, 728x90, and 970x250. |
| `Banner` | 300x250, 300x600, 320x50, 728x90, 970x250 |

## Setup

## Bid Parameters
This section shows how to configure your Prebid.js integration to work with the Glimpse module.

The only parameter is `placementId` and it is required.
### Prerequisites

### Banner
Before you start to configure Glimpse, you will need to build a `prebid.js` file with the Glimpse module included,
and include both `gpt.js` and `prebid.js` in the `head` of each page with supply. An example of a typical pair of script tags might be:

| Name | Scope | Description | Example | Type |
| ------------- | -------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------- | ------ |
| `placementId` | Required | An identifier associated unique to a publisher and ad unit. Values can be obtained through our publisher portal. | 'glimpse-demo-300x250' | String |
```html
<script
async
src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"
></script>

## Setup Guide
<script
async
src="https://<PUBLISHER_DOMAIN>/prebid.js"
></script>
```

Follow these steps to configure and add the glimpse module to your Prebid.js integration.
### Publisher Registration

Coming soon.

### 0. Preconditions
### Domain Registration

- A built prebid module with the glimpse adaptor included
- You've included the built prebid adaptor and GPT script in your websites html code
- You've setup GAM mappings
Coming soon.

### 1. Create an account and setup your domain via the Publisher Portal
### Ad Unit Registration

Coming soon.

### 2. Enable Glimpse as a bidder on your ad units
## Configuration

### Bid Requests
samueldobbie marked this conversation as resolved.
Show resolved Hide resolved

Our adapter captures the following values in the `params` block of each bid request:

| Name | Scope | Type | Description | Example |
| ------------- | -------- | ------ | ---------------------------------------------------------------------------------------------------------------- | ---------------------- |
| `placementId` | Required | string | A unique identifier associated with a publisher and ad unit, provided by the Glimpse Publisher Portal when registering a unit | 'glimpse-placement-id' |
| `keywords` | Optional | Record<string, any> | Audience targeting data (applies to the single ad unit) | { sticky: true } |

#### Example

```javascript
const adUnits = {
code: 'your-ad-unit-div-id',
mediaTypes: {
banner: {
sizes: [[300, 250]],
const units = [{
code: "ad-unit-0",
mediaTypes: {
banner: { sizes: [[300, 250]] },
},
},
bids: [
{
bidder: 'glimpse',
params: {
placementId: 'placementId-from-publisher-portal',
bids: [{
bidder: "glimpse",
params: {
placementId: "glimpse-placement-id",
keywords: {
sticky: true,
},
},
}],
}]
```

### Bidder Config

Our adapter captures the following values in the `glimpse` block of the `BidderConfig` object:

| Name | Scope | Type | Description | Example |
| ------------- | -------- | ------ | ---------------------------------------------------------------------------------------------------------------- | ---------------------- |
| `demo` | Optional | boolean | Triggers Glimpse to respond with dummy bids (defaults to false) | true |
| `account` | Optional | number | Your Glimpse account id | 1234 |
| `demand` | Optional | string | The target demand source (defaults to 'glimpse') | 'xandr' |
| `keywords` | Optional | Record<string, any> | Audience targeting data (applies to all ad units) | { sticky: true } |
samueldobbie marked this conversation as resolved.
Show resolved Hide resolved

#### Example

```javascript
pbjs.que.push(() => {
pbjs.setBidderConfig({
bidders: ["glimpse"],
config: {
glimpse: {
demo: true,
account: 1234,
demand: "glimpse",
keywords: {
"language": "en",
},
},
},
...
],
})

...
}
})
```

## FAQs

### Can I test my setup without a Publisher Portal Account?

Yep. Use a demo placementId:

- glimpse-demo-320x50
- glimpse-demo-300x250
- glimpse-demo-300x600
- glimpse-demo-728x90
- glimpse-demo-970x250
Yes, you can test your setup by setting `demo: true` in the `glimpse` block of the `BidderConfig` object. This will trigger Glimpse to respond with randomly-generated bids for all bid requests you make to Glimpse.

### How do I get more help?
### Can you provide additional support?

Reach out to us at [hello@glimpseprotocol.io](mailto:hello@glimpseprotocol.io)
Of course! You can check the Glimpse Prebid Adapter documentation, [here](https://docs.glimpseportal.io/en/latest/), or reach out to us at [publisher@glimpseprotocol.io](mailto:publisher@glimpseprotocol.io).