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.
@@ -251,5 +251,22 @@ declare class Ads {
251
251
  * GET /ads/reddit/targeting/third_party_audiences
252
252
  */
253
253
  static listRedditThirdPartyAudiences<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
254
+ /**
255
+ * Sync an Ad Campaign with the remote platform
256
+ *
257
+ * @param campaign_id The UUID of the campaign to sync
258
+ * @param params Optional query parameters
259
+ * @returns The synced AdCampaign resource
260
+ */
261
+ static syncCampaign<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
262
+ /**
263
+ * Sync an Ad Group with the remote platform
264
+ *
265
+ * @param campaign_id The UUID of the parent campaign
266
+ * @param group_id The UUID of the ad group to sync
267
+ * @param params Optional query parameters
268
+ * @returns The synced AdGroup resource
269
+ */
270
+ static syncGroup<T>(campaign_id: string, group_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
254
271
  }
255
272
  export default Ads;
package/dist/esm/index.js CHANGED
@@ -6722,6 +6722,14 @@ var AdsRoute = /** @class */ (function () {
6722
6722
  url: "/ads/reddit/targeting/third_party_audiences",
6723
6723
  method: HTTP_METHODS.GET,
6724
6724
  },
6725
+ syncCampaign: {
6726
+ url: "/ads/campaigns/{campaign_id}/sync",
6727
+ method: HTTP_METHODS.POST,
6728
+ },
6729
+ syncGroup: {
6730
+ url: "/ads/campaigns/{campaign_id}/groups/{group_id}/sync",
6731
+ method: HTTP_METHODS.POST,
6732
+ },
6725
6733
  };
6726
6734
  return AdsRoute;
6727
6735
  }());
@@ -7054,6 +7062,27 @@ var Ads = /** @class */ (function () {
7054
7062
  Ads.listRedditThirdPartyAudiences = function (params) {
7055
7063
  return Requests.processRoute(AdsRoute.routes.getRedditThirdPartyAudiences, undefined, undefined, params);
7056
7064
  };
7065
+ /**
7066
+ * Sync an Ad Campaign with the remote platform
7067
+ *
7068
+ * @param campaign_id The UUID of the campaign to sync
7069
+ * @param params Optional query parameters
7070
+ * @returns The synced AdCampaign resource
7071
+ */
7072
+ Ads.syncCampaign = function (campaign_id, params) {
7073
+ return Requests.processRoute(AdsRoute.routes.syncCampaign, undefined, { campaign_id: campaign_id }, params);
7074
+ };
7075
+ /**
7076
+ * Sync an Ad Group with the remote platform
7077
+ *
7078
+ * @param campaign_id The UUID of the parent campaign
7079
+ * @param group_id The UUID of the ad group to sync
7080
+ * @param params Optional query parameters
7081
+ * @returns The synced AdGroup resource
7082
+ */
7083
+ Ads.syncGroup = function (campaign_id, group_id, params) {
7084
+ return Requests.processRoute(AdsRoute.routes.syncGroup, undefined, { campaign_id: campaign_id, group_id: group_id }, params);
7085
+ };
7057
7086
  return Ads;
7058
7087
  }());
7059
7088