@adtogether/web-sdk 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/doc/dashboard.png +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
This SDK allows web developers (React and Vanilla JS) to easily integrate AdTogether ads into their applications. By displaying ads from other community members, you earn **Ad Credits** that allow your own app's ads to be shown across the AdTogether network.
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
25
|
-
<img src="
|
|
25
|
+
<img src="https://adtogether.relaxsoftwareapps.com/dashboard.png" width="800" alt="Developer Dashboard">
|
|
26
26
|
</p>
|
|
27
27
|
|
|
28
28
|
### 🖼️ Visualizing the Experience
|
|
@@ -92,7 +92,7 @@ function MyApp() {
|
|
|
92
92
|
|
|
93
93
|
| Prop | Type | Default | Description |
|
|
94
94
|
|--------------------|-------------------------|-----------|-------------|
|
|
95
|
-
| `adUnitId` | `string` |
|
|
95
|
+
| `adUnitId` | `string` | `'default'` | Optional label for this ad placement (e.g. `'home_banner'`, `'sidebar'`). Used for analytics grouping only — not validated server-side. |
|
|
96
96
|
| `showCloseButton` | `boolean` | `false` | Show a dismissable close button overlay. |
|
|
97
97
|
| `onAdClosed` | `() => void` | — | Called when the user closes the ad. |
|
|
98
98
|
| `width` | `number \| string` | `'100%'` | Width of the ad element. |
|
|
@@ -137,7 +137,7 @@ function MyApp() {
|
|
|
137
137
|
|
|
138
138
|
| Prop | Type | Default | Description |
|
|
139
139
|
|--------------------|-------------------------|-----------|-------------|
|
|
140
|
-
| `adUnitId` | `string` |
|
|
140
|
+
| `adUnitId` | `string` | `'default'` | Optional label for this ad placement. Used for analytics grouping only. |
|
|
141
141
|
| `isOpen` | `boolean` | **required** | When `true`, the interstitial is displayed. |
|
|
142
142
|
| `onClose` | `() => void` | **required** | Called when the user closes the interstitial. |
|
|
143
143
|
| `closeDelay` | `number` | `3` | Seconds before the close button appears. A countdown is shown during this time. |
|
|
Binary file
|
package/package.json
CHANGED