glitch-javascript-sdk 1.8.8 → 1.8.9

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
@@ -19986,6 +19986,10 @@ var AdsRoute = /** @class */ (function () {
19986
19986
  url: "/ads/posts/tiktok/media/info",
19987
19987
  method: HTTP_METHODS.GET,
19988
19988
  },
19989
+ syncAd: {
19990
+ url: "/ads/creatives/{ad_id}/sync",
19991
+ method: HTTP_METHODS.POST,
19992
+ },
19989
19993
  };
19990
19994
  return AdsRoute;
19991
19995
  }());
@@ -20396,6 +20400,16 @@ var Ads = /** @class */ (function () {
20396
20400
  Ads.tiktokGetMediaInfo = function (params) {
20397
20401
  return Requests.processRoute(AdsRoute.routes.tiktokGetMediaInfo, undefined, undefined, params);
20398
20402
  };
20403
+ /**
20404
+ * Sync an Ad with the remote platform.
20405
+ *
20406
+ * @param ad_id UUID of the ad to sync
20407
+ * @param params Optional query parameters
20408
+ * @returns The synced Ad resource
20409
+ */
20410
+ Ads.syncAd = function (ad_id, params) {
20411
+ return Requests.processRoute(AdsRoute.routes.syncAd, undefined, { ad_id: ad_id }, params);
20412
+ };
20399
20413
  return Ads;
20400
20414
  }());
20401
20415