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 +19 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +19 -0
- package/dist/esm/index.js +19 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +29 -0
- package/src/routes/AdsRoute.ts +4 -0
package/dist/index.d.ts
CHANGED
|
@@ -1099,6 +1099,25 @@ declare class Ads {
|
|
|
1099
1099
|
static pauseGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1100
1100
|
/** POST /ads/posts/google/{post_id}/enable */
|
|
1101
1101
|
static enableGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1102
|
+
/**
|
|
1103
|
+
* Creates a new Google Ads client account under a specified manager account.
|
|
1104
|
+
* Corresponds to POST /ads/google/accounts/create
|
|
1105
|
+
*
|
|
1106
|
+
* @param data The creation payload.
|
|
1107
|
+
* @param data.scheduler_id The UUID of the scheduler with auth tokens.
|
|
1108
|
+
* @param data.manager_customer_id The 10-digit MCC ID.
|
|
1109
|
+
* @param data.descriptive_name The name for the new account.
|
|
1110
|
+
* @param data.currency_code ISO 4217 currency code.
|
|
1111
|
+
* @param data.time_zone Time zone identifier (e.g., 'America/New_York').
|
|
1112
|
+
* @returns The newly created Google Ads account details.
|
|
1113
|
+
*/
|
|
1114
|
+
static createGoogleAccount<T>(data: {
|
|
1115
|
+
scheduler_id: string;
|
|
1116
|
+
manager_customer_id: string;
|
|
1117
|
+
descriptive_name: string;
|
|
1118
|
+
currency_code: string;
|
|
1119
|
+
time_zone: string;
|
|
1120
|
+
}): AxiosPromise<Response<T>>;
|
|
1102
1121
|
}
|
|
1103
1122
|
|
|
1104
1123
|
declare class Communities {
|
package/package.json
CHANGED
package/src/api/Ads.ts
CHANGED
|
@@ -1274,6 +1274,35 @@ class Ads {
|
|
|
1274
1274
|
);
|
|
1275
1275
|
}
|
|
1276
1276
|
|
|
1277
|
+
/**
|
|
1278
|
+
* Creates a new Google Ads client account under a specified manager account.
|
|
1279
|
+
* Corresponds to POST /ads/google/accounts/create
|
|
1280
|
+
*
|
|
1281
|
+
* @param data The creation payload.
|
|
1282
|
+
* @param data.scheduler_id The UUID of the scheduler with auth tokens.
|
|
1283
|
+
* @param data.manager_customer_id The 10-digit MCC ID.
|
|
1284
|
+
* @param data.descriptive_name The name for the new account.
|
|
1285
|
+
* @param data.currency_code ISO 4217 currency code.
|
|
1286
|
+
* @param data.time_zone Time zone identifier (e.g., 'America/New_York').
|
|
1287
|
+
* @returns The newly created Google Ads account details.
|
|
1288
|
+
*/
|
|
1289
|
+
public static createGoogleAccount<T>(
|
|
1290
|
+
data: {
|
|
1291
|
+
scheduler_id: string;
|
|
1292
|
+
manager_customer_id: string;
|
|
1293
|
+
descriptive_name: string;
|
|
1294
|
+
currency_code: string;
|
|
1295
|
+
time_zone: string;
|
|
1296
|
+
}
|
|
1297
|
+
): AxiosPromise<Response<T>> {
|
|
1298
|
+
return Requests.processRoute(
|
|
1299
|
+
AdsRoute.routes.createGoogleAccount,
|
|
1300
|
+
data,
|
|
1301
|
+
undefined,
|
|
1302
|
+
undefined
|
|
1303
|
+
);
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1277
1306
|
|
|
1278
1307
|
}
|
|
1279
1308
|
|
package/src/routes/AdsRoute.ts
CHANGED