glitch-javascript-sdk 1.8.5 → 1.8.6

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
@@ -19906,6 +19906,14 @@ var AdsRoute = /** @class */ (function () {
19906
19906
  url: "/ads/reddit/targeting/third_party_audiences",
19907
19907
  method: HTTP_METHODS.GET,
19908
19908
  },
19909
+ syncCampaign: {
19910
+ url: "/ads/campaigns/{campaign_id}/sync",
19911
+ method: HTTP_METHODS.POST,
19912
+ },
19913
+ syncGroup: {
19914
+ url: "/ads/campaigns/{campaign_id}/groups/{group_id}/sync",
19915
+ method: HTTP_METHODS.POST,
19916
+ },
19909
19917
  };
19910
19918
  return AdsRoute;
19911
19919
  }());
@@ -20238,6 +20246,27 @@ var Ads = /** @class */ (function () {
20238
20246
  Ads.listRedditThirdPartyAudiences = function (params) {
20239
20247
  return Requests.processRoute(AdsRoute.routes.getRedditThirdPartyAudiences, undefined, undefined, params);
20240
20248
  };
20249
+ /**
20250
+ * Sync an Ad Campaign with the remote platform
20251
+ *
20252
+ * @param campaign_id The UUID of the campaign to sync
20253
+ * @param params Optional query parameters
20254
+ * @returns The synced AdCampaign resource
20255
+ */
20256
+ Ads.syncCampaign = function (campaign_id, params) {
20257
+ return Requests.processRoute(AdsRoute.routes.syncCampaign, undefined, { campaign_id: campaign_id }, params);
20258
+ };
20259
+ /**
20260
+ * Sync an Ad Group with the remote platform
20261
+ *
20262
+ * @param campaign_id The UUID of the parent campaign
20263
+ * @param group_id The UUID of the ad group to sync
20264
+ * @param params Optional query parameters
20265
+ * @returns The synced AdGroup resource
20266
+ */
20267
+ Ads.syncGroup = function (campaign_id, group_id, params) {
20268
+ return Requests.processRoute(AdsRoute.routes.syncGroup, undefined, { campaign_id: campaign_id, group_id: group_id }, params);
20269
+ };
20241
20270
  return Ads;
20242
20271
  }());
20243
20272