glitch-javascript-sdk 3.0.9 → 3.1.0

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.
@@ -353,5 +353,35 @@ declare class SocialPosts {
353
353
  content: string;
354
354
  title_id: string;
355
355
  }): AxiosPromise<Response<T>>;
356
+ /**
357
+ * Get a report attributing game installs, wishlists, and purchases to specific social media posts.
358
+ *
359
+ * @param params Filter object:
360
+ * - title_id: string (Required)
361
+ * - start_date?: string (YYYY-MM-DD)
362
+ * - end_date?: string (YYYY-MM-DD)
363
+ * - confidence_threshold?: number (0-100)
364
+ */
365
+ static getSocialPostAttribution<T>(params: {
366
+ title_id: string;
367
+ start_date?: string;
368
+ end_date?: string;
369
+ confidence_threshold?: number;
370
+ }): AxiosPromise<Response<T>>;
371
+ /**
372
+ * Get a report attributing game installs and revenue to specific UTM sources and campaigns.
373
+ *
374
+ * @param params Filter object:
375
+ * - title_id: string (Required)
376
+ * - start_date?: string (YYYY-MM-DD)
377
+ * - end_date?: string (YYYY-MM-DD)
378
+ * - confidence_threshold?: number (0-100)
379
+ */
380
+ static getUtmAttribution<T>(params: {
381
+ title_id: string;
382
+ start_date?: string;
383
+ end_date?: string;
384
+ confidence_threshold?: number;
385
+ }): AxiosPromise<Response<T>>;
356
386
  }
357
387
  export default SocialPosts;
package/dist/esm/index.js CHANGED
@@ -11279,6 +11279,22 @@ var SocialPostsRoute = /** @class */ (function () {
11279
11279
  getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
11280
11280
  getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
11281
11281
  syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
11282
+ /**
11283
+ * Get social media posts correlated with installs, wishlists, and purchases.
11284
+ * GET /reports/fingerprinting/social-post-attribution
11285
+ */
11286
+ socialPostAttribution: {
11287
+ url: '/reports/fingerprinting/social-post-attribution',
11288
+ method: HTTP_METHODS.GET
11289
+ },
11290
+ /**
11291
+ * Get UTM performance correlated with installs and revenue.
11292
+ * GET /reports/fingerprinting/utm-attribution
11293
+ */
11294
+ utmAttribution: {
11295
+ url: '/reports/fingerprinting/utm-attribution',
11296
+ method: HTTP_METHODS.GET
11297
+ },
11282
11298
  performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
11283
11299
  performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },
11284
11300
  creativePerformance: { url: '/socialposts/creative-performance', method: HTTP_METHODS.GET },
@@ -11732,6 +11748,30 @@ var SocialPosts = /** @class */ (function () {
11732
11748
  SocialPosts.optimizeRedditPost = function (data) {
11733
11749
  return Requests.processRoute(SocialPostsRoute.routes.optimizeRedditPost, data);
11734
11750
  };
11751
+ /**
11752
+ * Get a report attributing game installs, wishlists, and purchases to specific social media posts.
11753
+ *
11754
+ * @param params Filter object:
11755
+ * - title_id: string (Required)
11756
+ * - start_date?: string (YYYY-MM-DD)
11757
+ * - end_date?: string (YYYY-MM-DD)
11758
+ * - confidence_threshold?: number (0-100)
11759
+ */
11760
+ SocialPosts.getSocialPostAttribution = function (params) {
11761
+ return Requests.processRoute(SocialPostsRoute.routes.socialPostAttribution, {}, undefined, params);
11762
+ };
11763
+ /**
11764
+ * Get a report attributing game installs and revenue to specific UTM sources and campaigns.
11765
+ *
11766
+ * @param params Filter object:
11767
+ * - title_id: string (Required)
11768
+ * - start_date?: string (YYYY-MM-DD)
11769
+ * - end_date?: string (YYYY-MM-DD)
11770
+ * - confidence_threshold?: number (0-100)
11771
+ */
11772
+ SocialPosts.getUtmAttribution = function (params) {
11773
+ return Requests.processRoute(SocialPostsRoute.routes.utmAttribution, {}, undefined, params);
11774
+ };
11735
11775
  return SocialPosts;
11736
11776
  }());
11737
11777