@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 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="../../public/dashboard.png" width="800" alt="Developer Dashboard">
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` | **required** | Unique identifier for this ad placement. |
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` | **required** | Unique identifier for this ad placement. |
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtogether/web-sdk",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "The official AdTogether Web SDK — reciprocal ad exchange to increase conversions and grow your audience.",
5
5
  "repository": {
6
6
  "type": "git",