glitch-javascript-sdk 2.1.1 → 2.1.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/dist/index.d.ts CHANGED
@@ -2731,6 +2731,17 @@ declare class Fingerprinting {
2731
2731
  * @returns Promise with geolocation report data
2732
2732
  */
2733
2733
  static installJourneyReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
2734
+ /**
2735
+ * Get how the ad campaigns are performing and turning into installs
2736
+ *
2737
+ * @param params Report options:
2738
+ * - title_id: string - Required title ID
2739
+ * - start_date?: string - Start date (YYYY-MM-DD)
2740
+ * - end_date?: string - End date (YYYY-MM-DD)
2741
+ * - group_by?: 'country'|'region'|'city' - Grouping level
2742
+ * @returns Promise with geolocation report data
2743
+ */
2744
+ static adCampaignPerformanceReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
2734
2745
  }
2735
2746
 
2736
2747
  declare class Teams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -249,6 +249,25 @@ class Fingerprinting {
249
249
  params
250
250
  );
251
251
  }
252
+
253
+ /**
254
+ * Get how the ad campaigns are performing and turning into installs
255
+ *
256
+ * @param params Report options:
257
+ * - title_id: string - Required title ID
258
+ * - start_date?: string - Start date (YYYY-MM-DD)
259
+ * - end_date?: string - End date (YYYY-MM-DD)
260
+ * - group_by?: 'country'|'region'|'city' - Grouping level
261
+ * @returns Promise with geolocation report data
262
+ */
263
+ public static adCampaignPerformanceReport<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
264
+ return Requests.processRoute(
265
+ FingerprintingRoute.routes.adCampaignPerformanceReport,
266
+ {},
267
+ undefined,
268
+ params
269
+ );
270
+ }
252
271
  }
253
272
 
254
273
  export default Fingerprinting;
@@ -51,6 +51,10 @@ class FingerprintingRoute {
51
51
  url: '/reports/fingerprinting/install-journey',
52
52
  method: HTTP_METHODS.GET
53
53
  },
54
+ adCampaignPerformanceReport: {
55
+ url: '/reports/fingerprinting/ad-campaign-performance',
56
+ method: HTTP_METHODS.GET
57
+ },
54
58
  };
55
59
  }
56
60