@adtogether/web-sdk 0.2.0 → 0.2.2
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/CHANGELOG.md +3 -0
- package/README.md +6 -6
- package/dist/{chunk-AFLHEFSH.mjs → chunk-EGEGGY7K.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +1 -1
- package/package.json +2 -2
- package/src/core/AdTogether.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
## 0.2.2
|
|
2
|
+
* **Domain**: Updated base API domain to `www.ad-together.org`.
|
|
3
|
+
|
|
1
4
|
## 0.2.0
|
|
2
5
|
* **Security**: Implemented strict validation for required parameters and API keys.
|
|
3
6
|
* **Error Handling**: Improved error handling for invalid or missing App IDs across all platforms, ensuring graceful failures with descriptive logs.
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
14
|
> [!IMPORTANT]
|
|
15
|
-
> **Developer Account Required**: Before integrating the SDK, you must create a developer account at [https://
|
|
15
|
+
> **Developer Account Required**: Before integrating the SDK, you must create a developer account at [https://www.ad-together.org](https://www.ad-together.org) to generate your `appId` and configure your ad units. Integration will not work without a valid `appId`.
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
---
|
|
@@ -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="https://
|
|
25
|
+
<img src="https://www.ad-together.org/dashboard.png" width="800" alt="Developer Dashboard">
|
|
26
26
|
</p>
|
|
27
27
|
|
|
28
28
|
### 🖼️ Visualizing the Experience
|
|
@@ -51,7 +51,7 @@ npm install @adtogether/web-sdk
|
|
|
51
51
|
|
|
52
52
|
### 2. Initialize
|
|
53
53
|
|
|
54
|
-
Call `AdTogether.initialize()` before rendering any ad components. You can obtain your App ID from the [AdTogether Dashboard](https://
|
|
54
|
+
Call `AdTogether.initialize()` before rendering any ad components. You can obtain your App ID from the [AdTogether Dashboard](https://www.ad-together.org/dashboard).
|
|
55
55
|
|
|
56
56
|
```typescript
|
|
57
57
|
import { AdTogether } from '@adtogether/web-sdk';
|
|
@@ -151,14 +151,14 @@ function MyApp() {
|
|
|
151
151
|
2. **Spend credits** — Your ad credits are automatically spent to show *your* campaigns inside other apps on the network, helping you increase conversions.
|
|
152
152
|
3. **Fair weighting** — Different ad formats and geographies have different credit weights, ensuring a level playing field for apps of all sizes.
|
|
153
153
|
|
|
154
|
-
Create and manage your campaigns from the [AdTogether Dashboard](https://
|
|
154
|
+
Create and manage your campaigns from the [AdTogether Dashboard](https://www.ad-together.org/dashboard).
|
|
155
155
|
|
|
156
156
|
## Additional Information
|
|
157
157
|
|
|
158
|
-
- 📖 **Documentation**: [
|
|
158
|
+
- 📖 **Documentation**: [www.ad-together.org/docs](https://www.ad-together.org/docs)
|
|
159
159
|
- 🐛 **Issues**: [GitHub Issues](https://github.com/undecided2003/AdTogether/issues)
|
|
160
160
|
- 💬 **Support**: Join our [Discord community](https://discord.gg/maA8g4ADpk) for real-time help.
|
|
161
|
-
- 🌐 **Dashboard**: [
|
|
161
|
+
- 🌐 **Dashboard**: [www.ad-together.org/dashboard](https://www.ad-together.org/dashboard)
|
|
162
162
|
|
|
163
163
|
## License
|
|
164
164
|
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
28
28
|
var AdTogether = class _AdTogether {
|
|
29
29
|
constructor() {
|
|
30
30
|
this.allowSelfAds = true;
|
|
31
|
-
this.baseUrl = "https://
|
|
31
|
+
this.baseUrl = "https://www.ad-together.org";
|
|
32
32
|
}
|
|
33
33
|
static get shared() {
|
|
34
34
|
if (!_AdTogether.instance) {
|
package/dist/index.mjs
CHANGED
package/dist/react/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var import_react = require("react");
|
|
|
32
32
|
var AdTogether = class _AdTogether {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.allowSelfAds = true;
|
|
35
|
-
this.baseUrl = "https://
|
|
35
|
+
this.baseUrl = "https://www.ad-together.org";
|
|
36
36
|
}
|
|
37
37
|
static get shared() {
|
|
38
38
|
if (!_AdTogether.instance) {
|
package/dist/react/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adtogether/web-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
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",
|
|
7
7
|
"url": "git+https://github.com/undecided2003/adtogether-web-sdk.git"
|
|
8
8
|
},
|
|
9
|
-
"homepage": "https://
|
|
9
|
+
"homepage": "https://www.ad-together.org",
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/undecided2003/adtogether-web-sdk/issues"
|
|
12
12
|
},
|
package/src/core/AdTogether.ts
CHANGED
|
@@ -5,7 +5,7 @@ export class AdTogether {
|
|
|
5
5
|
private appId?: string;
|
|
6
6
|
private bundleId?: string;
|
|
7
7
|
private allowSelfAds: boolean = true;
|
|
8
|
-
public baseUrl: string = 'https://
|
|
8
|
+
public baseUrl: string = 'https://www.ad-together.org';
|
|
9
9
|
|
|
10
10
|
private constructor() {}
|
|
11
11
|
|