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.
@@ -457,5 +457,24 @@ declare class Ads {
457
457
  static pauseGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
458
458
  /** POST /ads/posts/google/{post_id}/enable */
459
459
  static enableGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
460
+ /**
461
+ * Creates a new Google Ads client account under a specified manager account.
462
+ * Corresponds to POST /ads/google/accounts/create
463
+ *
464
+ * @param data The creation payload.
465
+ * @param data.scheduler_id The UUID of the scheduler with auth tokens.
466
+ * @param data.manager_customer_id The 10-digit MCC ID.
467
+ * @param data.descriptive_name The name for the new account.
468
+ * @param data.currency_code ISO 4217 currency code.
469
+ * @param data.time_zone Time zone identifier (e.g., 'America/New_York').
470
+ * @returns The newly created Google Ads account details.
471
+ */
472
+ static createGoogleAccount<T>(data: {
473
+ scheduler_id: string;
474
+ manager_customer_id: string;
475
+ descriptive_name: string;
476
+ currency_code: string;
477
+ time_zone: string;
478
+ }): AxiosPromise<Response<T>>;
460
479
  }
461
480
  export default Ads;
package/dist/esm/index.js CHANGED
@@ -7001,6 +7001,10 @@ var AdsRoute = /** @class */ (function () {
7001
7001
  url: "/ads/posts/google/{post_id}/enable",
7002
7002
  method: HTTP_METHODS.POST,
7003
7003
  },
7004
+ createGoogleAccount: {
7005
+ url: "/ads/google/accounts/create",
7006
+ method: HTTP_METHODS.POST,
7007
+ },
7004
7008
  };
7005
7009
  return AdsRoute;
7006
7010
  }());
@@ -7666,6 +7670,21 @@ var Ads = /** @class */ (function () {
7666
7670
  Ads.enableGoogleAdPost = function (post_id, params) {
7667
7671
  return Requests.processRoute(AdsRoute.routes.enableGoogleAdPost, {}, { post_id: post_id }, params);
7668
7672
  };
7673
+ /**
7674
+ * Creates a new Google Ads client account under a specified manager account.
7675
+ * Corresponds to POST /ads/google/accounts/create
7676
+ *
7677
+ * @param data The creation payload.
7678
+ * @param data.scheduler_id The UUID of the scheduler with auth tokens.
7679
+ * @param data.manager_customer_id The 10-digit MCC ID.
7680
+ * @param data.descriptive_name The name for the new account.
7681
+ * @param data.currency_code ISO 4217 currency code.
7682
+ * @param data.time_zone Time zone identifier (e.g., 'America/New_York').
7683
+ * @returns The newly created Google Ads account details.
7684
+ */
7685
+ Ads.createGoogleAccount = function (data) {
7686
+ return Requests.processRoute(AdsRoute.routes.createGoogleAccount, data, undefined, undefined);
7687
+ };
7669
7688
  return Ads;
7670
7689
  }());
7671
7690