glitch-javascript-sdk 1.9.4 → 1.9.5

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/cjs/index.js CHANGED
@@ -20110,6 +20110,29 @@ var AdsRoute = /** @class */ (function () {
20110
20110
  url: "/ads/campaigns/scheduler/{scheduler_id}/syncAll",
20111
20111
  method: HTTP_METHODS.POST,
20112
20112
  },
20113
+ // ----------------------------------------------------------------
20114
+ // AD REPORTS
20115
+ // ----------------------------------------------------------------
20116
+ getPerformanceSummary: {
20117
+ url: "/ads/reports/summary",
20118
+ method: HTTP_METHODS.GET,
20119
+ },
20120
+ getSpendDeliveryReport: {
20121
+ url: "/ads/reports/spend-delivery",
20122
+ method: HTTP_METHODS.GET,
20123
+ },
20124
+ getPlatformComparisonReport: {
20125
+ url: "/ads/reports/platform-comparison",
20126
+ method: HTTP_METHODS.GET,
20127
+ },
20128
+ getCreativePerformanceReport: {
20129
+ url: "/ads/reports/creative-performance",
20130
+ method: HTTP_METHODS.GET,
20131
+ },
20132
+ getTimePerformanceReport: {
20133
+ url: "/ads/reports/time-performance",
20134
+ method: HTTP_METHODS.GET,
20135
+ },
20113
20136
  };
20114
20137
  return AdsRoute;
20115
20138
  }());
@@ -20676,6 +20699,39 @@ var Ads = /** @class */ (function () {
20676
20699
  Ads.syncSchedulerCampaigns = function (scheduler_id, params) {
20677
20700
  return Requests.processRoute(AdsRoute.routes.syncSchedulerCampaigns, undefined, { scheduler_id: scheduler_id }, params);
20678
20701
  };
20702
+ // ----------------------------------------------------------------------
20703
+ // AD REPORTS
20704
+ // ----------------------------------------------------------------------
20705
+ /**
20706
+ * Get campaign performance summary.
20707
+ */
20708
+ Ads.getPerformanceSummary = function (params) {
20709
+ return Requests.processRoute(AdsRoute.routes.getPerformanceSummary, undefined, undefined, params);
20710
+ };
20711
+ /**
20712
+ * Get spend and delivery metrics over time.
20713
+ */
20714
+ Ads.getSpendDeliveryReport = function (params) {
20715
+ return Requests.processRoute(AdsRoute.routes.getSpendDeliveryReport, undefined, undefined, params);
20716
+ };
20717
+ /**
20718
+ * Compare performance across platforms.
20719
+ */
20720
+ Ads.getPlatformComparisonReport = function (params) {
20721
+ return Requests.processRoute(AdsRoute.routes.getPlatformComparisonReport, undefined, undefined, params);
20722
+ };
20723
+ /**
20724
+ * Get performance metrics for individual ad creatives.
20725
+ */
20726
+ Ads.getCreativePerformanceReport = function (params) {
20727
+ return Requests.processRoute(AdsRoute.routes.getCreativePerformanceReport, undefined, undefined, params);
20728
+ };
20729
+ /**
20730
+ * Get time-based performance metrics by hour and day of week.
20731
+ */
20732
+ Ads.getTimePerformanceReport = function (params) {
20733
+ return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
20734
+ };
20679
20735
  return Ads;
20680
20736
  }());
20681
20737