glitch-javascript-sdk 1.9.9 → 2.0.0

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
@@ -20185,6 +20185,10 @@ var AdsRoute = /** @class */ (function () {
20185
20185
  url: "/ads/posts/google/{post_id}/enable",
20186
20186
  method: HTTP_METHODS.POST,
20187
20187
  },
20188
+ createGoogleAccount: {
20189
+ url: "/ads/google/accounts/create",
20190
+ method: HTTP_METHODS.POST,
20191
+ },
20188
20192
  };
20189
20193
  return AdsRoute;
20190
20194
  }());
@@ -20850,6 +20854,21 @@ var Ads = /** @class */ (function () {
20850
20854
  Ads.enableGoogleAdPost = function (post_id, params) {
20851
20855
  return Requests.processRoute(AdsRoute.routes.enableGoogleAdPost, {}, { post_id: post_id }, params);
20852
20856
  };
20857
+ /**
20858
+ * Creates a new Google Ads client account under a specified manager account.
20859
+ * Corresponds to POST /ads/google/accounts/create
20860
+ *
20861
+ * @param data The creation payload.
20862
+ * @param data.scheduler_id The UUID of the scheduler with auth tokens.
20863
+ * @param data.manager_customer_id The 10-digit MCC ID.
20864
+ * @param data.descriptive_name The name for the new account.
20865
+ * @param data.currency_code ISO 4217 currency code.
20866
+ * @param data.time_zone Time zone identifier (e.g., 'America/New_York').
20867
+ * @returns The newly created Google Ads account details.
20868
+ */
20869
+ Ads.createGoogleAccount = function (data) {
20870
+ return Requests.processRoute(AdsRoute.routes.createGoogleAccount, data, undefined, undefined);
20871
+ };
20853
20872
  return Ads;
20854
20873
  }());
20855
20874