glitch-javascript-sdk 3.0.9 → 3.1.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.
@@ -353,5 +353,41 @@ 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>>;
386
+ static getInfluencerAttribution<T>(params: {
387
+ title_id: string;
388
+ start_date?: string;
389
+ end_date?: string;
390
+ confidence_threshold?: number;
391
+ }): AxiosPromise<Response<T>>;
356
392
  }
357
393
  export default SocialPosts;
package/dist/esm/index.js CHANGED
@@ -11279,6 +11279,26 @@ 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
+ influencerAttribution: {
11291
+ url: '/reports/fingerprinting/influencer-attribution',
11292
+ method: HTTP_METHODS.GET
11293
+ },
11294
+ /**
11295
+ * Get UTM performance correlated with installs and revenue.
11296
+ * GET /reports/fingerprinting/utm-attribution
11297
+ */
11298
+ utmAttribution: {
11299
+ url: '/reports/fingerprinting/utm-attribution',
11300
+ method: HTTP_METHODS.GET
11301
+ },
11282
11302
  performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
11283
11303
  performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },
11284
11304
  creativePerformance: { url: '/socialposts/creative-performance', method: HTTP_METHODS.GET },
@@ -11732,6 +11752,33 @@ var SocialPosts = /** @class */ (function () {
11732
11752
  SocialPosts.optimizeRedditPost = function (data) {
11733
11753
  return Requests.processRoute(SocialPostsRoute.routes.optimizeRedditPost, data);
11734
11754
  };
11755
+ /**
11756
+ * Get a report attributing game installs, wishlists, and purchases to specific social media posts.
11757
+ *
11758
+ * @param params Filter object:
11759
+ * - title_id: string (Required)
11760
+ * - start_date?: string (YYYY-MM-DD)
11761
+ * - end_date?: string (YYYY-MM-DD)
11762
+ * - confidence_threshold?: number (0-100)
11763
+ */
11764
+ SocialPosts.getSocialPostAttribution = function (params) {
11765
+ return Requests.processRoute(SocialPostsRoute.routes.socialPostAttribution, {}, undefined, params);
11766
+ };
11767
+ /**
11768
+ * Get a report attributing game installs and revenue to specific UTM sources and campaigns.
11769
+ *
11770
+ * @param params Filter object:
11771
+ * - title_id: string (Required)
11772
+ * - start_date?: string (YYYY-MM-DD)
11773
+ * - end_date?: string (YYYY-MM-DD)
11774
+ * - confidence_threshold?: number (0-100)
11775
+ */
11776
+ SocialPosts.getUtmAttribution = function (params) {
11777
+ return Requests.processRoute(SocialPostsRoute.routes.utmAttribution, {}, undefined, params);
11778
+ };
11779
+ SocialPosts.getInfluencerAttribution = function (params) {
11780
+ return Requests.processRoute(SocialPostsRoute.routes.influencerAttribution, {}, undefined, params);
11781
+ };
11735
11782
  return SocialPosts;
11736
11783
  }());
11737
11784