@the_ro_show/agent-ads-sdk 0.16.1 → 0.17.1
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 +187 -17
- package/dist/index.d.mts +107 -33
- package/dist/index.d.ts +107 -33
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -1
package/dist/index.mjs
CHANGED
|
@@ -817,6 +817,24 @@ var AttentionMarketClient = class {
|
|
|
817
817
|
async sendFeedback(request) {
|
|
818
818
|
return await this.http.request("POST", "/feedback", { body: request });
|
|
819
819
|
}
|
|
820
|
+
/**
|
|
821
|
+
* Rate the delivery quality of an ad after a verified click.
|
|
822
|
+
* Requires a prior click event for the tracking_token. Ratings feed
|
|
823
|
+
* into quality scores (minimum 5 unique raters per campaign).
|
|
824
|
+
*
|
|
825
|
+
* @example
|
|
826
|
+
* ```typescript
|
|
827
|
+
* await client.rateBusinessDelivery({
|
|
828
|
+
* tracking_token: ad.tracking_token,
|
|
829
|
+
* ad_unit_id: ad._ad.unit_id,
|
|
830
|
+
* rating: 4,
|
|
831
|
+
* context: 'Relevant product, good landing page'
|
|
832
|
+
* });
|
|
833
|
+
* ```
|
|
834
|
+
*/
|
|
835
|
+
async rateBusinessDelivery(request) {
|
|
836
|
+
return await this.http.request("POST", "/rate-business", { body: request });
|
|
837
|
+
}
|
|
820
838
|
/**
|
|
821
839
|
* Fetch default policy constraints and formatting requirements.
|
|
822
840
|
*/
|
|
@@ -1345,6 +1363,7 @@ var AttentionMarketClient = class {
|
|
|
1345
1363
|
url
|
|
1346
1364
|
);
|
|
1347
1365
|
}
|
|
1366
|
+
// TODO: Add getDeveloperMetrics() method when DeveloperMetricsResponse type is defined
|
|
1348
1367
|
};
|
|
1349
1368
|
|
|
1350
1369
|
// src/mock-client.ts
|