glitch-javascript-sdk 3.2.7 → 3.2.9

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/dist/index.d.ts CHANGED
@@ -1119,6 +1119,19 @@ declare class Ads {
1119
1119
  platform?: string;
1120
1120
  }): AxiosPromise<Response<T>>;
1121
1121
  /**
1122
+ * Get detailed paid campaign performance rows for tables and exports.
1123
+ */
1124
+ static getDetailedBreakdownReport<T>(params: {
1125
+ start_date: string;
1126
+ end_date: string;
1127
+ community_id?: string;
1128
+ scheduler_id?: string;
1129
+ platform?: string;
1130
+ campaign_id?: string;
1131
+ ad_group_id?: string;
1132
+ ad_id?: string;
1133
+ }): AxiosPromise<Response<T>>;
1134
+ /**
1122
1135
  * GET /ads/google/targeting/geo/suggest
1123
1136
  */
1124
1137
  static listGoogleGeoSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
@@ -1177,6 +1190,15 @@ declare class Ads {
1177
1190
  currency_code: string;
1178
1191
  time_zone: string;
1179
1192
  }): AxiosPromise<Response<T>>;
1193
+ /**
1194
+ * Submit a SKAN attribution postback to the public Apple app attribution endpoint.
1195
+ * This mirrors POST /.well-known/appattribution/report-attribution.
1196
+ */
1197
+ static reportSkanAttributionPostback<T>(data: {
1198
+ "jws-string"?: string;
1199
+ jws?: string;
1200
+ [key: string]: any;
1201
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
1180
1202
  }
1181
1203
 
1182
1204
  declare class Communities {
@@ -7071,6 +7093,11 @@ declare class Scheduler {
7071
7093
  * @returns A response object with data (funding instruments)
7072
7094
  */
7073
7095
  static listCampaignFundingInstruments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
7096
+ /**
7097
+ * List Google Ads conversion actions available to a scheduler account.
7098
+ * GET /schedulers/{scheduler_id}/conversion-actions
7099
+ */
7100
+ static listConversionActions<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
7074
7101
  /**
7075
7102
  * List all destinations for a title update.
7076
7103
  *
@@ -7192,6 +7219,14 @@ declare class Scheduler {
7192
7219
  platform: string;
7193
7220
  account_id?: string;
7194
7221
  }): AxiosPromise<Response<T>>;
7222
+ /**
7223
+ * Send a platform test conversion event through the backend scheduler route.
7224
+ *
7225
+ * @param scheduler_id The ID of the promotion schedule.
7226
+ * @param platform Platform key, e.g. reddit, tiktok, facebook, google.
7227
+ * @param params Query parameters such as Reddit test_id or Meta test_event_code.
7228
+ */
7229
+ static sendTestConversionEvent<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
7195
7230
  /**
7196
7231
  * Trigger a historical sync for a specific platform on a scheduler.
7197
7232
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.2.7",
3
+ "version": "3.2.9",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/api/Ads.ts CHANGED
@@ -1090,6 +1090,22 @@ class Ads {
1090
1090
  return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
1091
1091
  }
1092
1092
 
1093
+ /**
1094
+ * Get detailed paid campaign performance rows for tables and exports.
1095
+ */
1096
+ public static getDetailedBreakdownReport<T>(params: {
1097
+ start_date: string;
1098
+ end_date: string;
1099
+ community_id?: string;
1100
+ scheduler_id?: string;
1101
+ platform?: string;
1102
+ campaign_id?: string;
1103
+ ad_group_id?: string;
1104
+ ad_id?: string;
1105
+ }): AxiosPromise<Response<T>> {
1106
+ return Requests.processRoute(AdsRoute.routes.getDetailedBreakdownReport, undefined, undefined, params);
1107
+ }
1108
+
1093
1109
  /**
1094
1110
  * GET /ads/google/targeting/geo/suggest
1095
1111
  */
@@ -1303,6 +1319,26 @@ class Ads {
1303
1319
  );
1304
1320
  }
1305
1321
 
1322
+ /**
1323
+ * Submit a SKAN attribution postback to the public Apple app attribution endpoint.
1324
+ * This mirrors POST /.well-known/appattribution/report-attribution.
1325
+ */
1326
+ public static reportSkanAttributionPostback<T>(
1327
+ data: {
1328
+ "jws-string"?: string;
1329
+ jws?: string;
1330
+ [key: string]: any;
1331
+ },
1332
+ params?: Record<string, any>
1333
+ ): AxiosPromise<Response<T>> {
1334
+ return Requests.processRoute(
1335
+ AdsRoute.routes.reportSkanAttributionPostback,
1336
+ data,
1337
+ undefined,
1338
+ params
1339
+ );
1340
+ }
1341
+
1306
1342
 
1307
1343
  }
1308
1344
 
@@ -770,6 +770,22 @@ class Scheduler {
770
770
  );
771
771
  }
772
772
 
773
+ /**
774
+ * List Google Ads conversion actions available to a scheduler account.
775
+ * GET /schedulers/{scheduler_id}/conversion-actions
776
+ */
777
+ public static listConversionActions<T>(
778
+ scheduler_id: string,
779
+ params?: Record<string, any>
780
+ ): AxiosPromise<Response<T>> {
781
+ return Requests.processRoute(
782
+ SchedulerRoute.routes.getConversionActions,
783
+ undefined,
784
+ { scheduler_id },
785
+ params
786
+ );
787
+ }
788
+
773
789
  /**
774
790
  * List all destinations for a title update.
775
791
  *
@@ -924,6 +940,17 @@ class Scheduler {
924
940
  return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id }, params);
925
941
  }
926
942
 
943
+ /**
944
+ * Send a platform test conversion event through the backend scheduler route.
945
+ *
946
+ * @param scheduler_id The ID of the promotion schedule.
947
+ * @param platform Platform key, e.g. reddit, tiktok, facebook, google.
948
+ * @param params Query parameters such as Reddit test_id or Meta test_event_code.
949
+ */
950
+ public static sendTestConversionEvent<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
951
+ return Requests.processRoute(SchedulerRoute.routes.sendTestConversionEvent, {}, { scheduler_id, platform }, params);
952
+ }
953
+
927
954
  /**
928
955
  * Trigger a historical sync for a specific platform on a scheduler.
929
956
  *
@@ -402,6 +402,11 @@ class AdsRoute {
402
402
  method: HTTP_METHODS.GET,
403
403
  },
404
404
 
405
+ getDetailedBreakdownReport: {
406
+ url: "/ads/reports/detailed-breakdown",
407
+ method: HTTP_METHODS.GET,
408
+ },
409
+
405
410
  getGoogleGeoSuggestions: {
406
411
  url: "/ads/google/targeting/geo/suggest",
407
412
  method: HTTP_METHODS.GET,
@@ -465,6 +470,11 @@ class AdsRoute {
465
470
  method: HTTP_METHODS.POST,
466
471
  },
467
472
 
473
+ reportSkanAttributionPostback: {
474
+ url: "/.well-known/appattribution/report-attribution",
475
+ method: HTTP_METHODS.POST,
476
+ },
477
+
468
478
  };
469
479
  }
470
480
 
@@ -150,6 +150,7 @@ class SchedulerRoute {
150
150
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
151
151
 
152
152
  getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
153
+ sendTestConversionEvent: { url: '/schedulers/{scheduler_id}/test-event/{platform}', method: HTTP_METHODS.GET },
153
154
 
154
155
  syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
155
156