glitch-javascript-sdk 3.2.7 → 3.2.8
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 +28 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +22 -0
- package/dist/esm/api/Scheduler.d.ts +5 -0
- package/dist/esm/index.js +28 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +27 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +36 -0
- package/src/api/Scheduler.ts +16 -0
- package/src/routes/AdsRoute.ts +10 -0
package/dist/index.d.ts
CHANGED
|
@@ -1119,6 +1119,19 @@ declare class Ads {
|
|
|
1119
1119
|
platform?: string;
|
|
1120
1120
|
}): AxiosPromise<Response<T>>;
|
|
1121
1121
|
/**
|
|
1122
|
+
* Get detailed paid campaign performance rows for tables and exports.
|
|
1123
|
+
*/
|
|
1124
|
+
static getDetailedBreakdownReport<T>(params: {
|
|
1125
|
+
start_date: string;
|
|
1126
|
+
end_date: string;
|
|
1127
|
+
community_id?: string;
|
|
1128
|
+
scheduler_id?: string;
|
|
1129
|
+
platform?: string;
|
|
1130
|
+
campaign_id?: string;
|
|
1131
|
+
ad_group_id?: string;
|
|
1132
|
+
ad_id?: string;
|
|
1133
|
+
}): AxiosPromise<Response<T>>;
|
|
1134
|
+
/**
|
|
1122
1135
|
* GET /ads/google/targeting/geo/suggest
|
|
1123
1136
|
*/
|
|
1124
1137
|
static listGoogleGeoSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
@@ -1177,6 +1190,15 @@ declare class Ads {
|
|
|
1177
1190
|
currency_code: string;
|
|
1178
1191
|
time_zone: string;
|
|
1179
1192
|
}): AxiosPromise<Response<T>>;
|
|
1193
|
+
/**
|
|
1194
|
+
* Submit a SKAN attribution postback to the public Apple app attribution endpoint.
|
|
1195
|
+
* This mirrors POST /.well-known/appattribution/report-attribution.
|
|
1196
|
+
*/
|
|
1197
|
+
static reportSkanAttributionPostback<T>(data: {
|
|
1198
|
+
"jws-string"?: string;
|
|
1199
|
+
jws?: string;
|
|
1200
|
+
[key: string]: any;
|
|
1201
|
+
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1180
1202
|
}
|
|
1181
1203
|
|
|
1182
1204
|
declare class Communities {
|
|
@@ -7071,6 +7093,11 @@ declare class Scheduler {
|
|
|
7071
7093
|
* @returns A response object with data (funding instruments)
|
|
7072
7094
|
*/
|
|
7073
7095
|
static listCampaignFundingInstruments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7096
|
+
/**
|
|
7097
|
+
* List Google Ads conversion actions available to a scheduler account.
|
|
7098
|
+
* GET /schedulers/{scheduler_id}/conversion-actions
|
|
7099
|
+
*/
|
|
7100
|
+
static listConversionActions<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7074
7101
|
/**
|
|
7075
7102
|
* List all destinations for a title update.
|
|
7076
7103
|
*
|
package/package.json
CHANGED
package/src/api/Ads.ts
CHANGED
|
@@ -1090,6 +1090,22 @@ class Ads {
|
|
|
1090
1090
|
return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
|
+
/**
|
|
1094
|
+
* Get detailed paid campaign performance rows for tables and exports.
|
|
1095
|
+
*/
|
|
1096
|
+
public static getDetailedBreakdownReport<T>(params: {
|
|
1097
|
+
start_date: string;
|
|
1098
|
+
end_date: string;
|
|
1099
|
+
community_id?: string;
|
|
1100
|
+
scheduler_id?: string;
|
|
1101
|
+
platform?: string;
|
|
1102
|
+
campaign_id?: string;
|
|
1103
|
+
ad_group_id?: string;
|
|
1104
|
+
ad_id?: string;
|
|
1105
|
+
}): AxiosPromise<Response<T>> {
|
|
1106
|
+
return Requests.processRoute(AdsRoute.routes.getDetailedBreakdownReport, undefined, undefined, params);
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1093
1109
|
/**
|
|
1094
1110
|
* GET /ads/google/targeting/geo/suggest
|
|
1095
1111
|
*/
|
|
@@ -1303,6 +1319,26 @@ class Ads {
|
|
|
1303
1319
|
);
|
|
1304
1320
|
}
|
|
1305
1321
|
|
|
1322
|
+
/**
|
|
1323
|
+
* Submit a SKAN attribution postback to the public Apple app attribution endpoint.
|
|
1324
|
+
* This mirrors POST /.well-known/appattribution/report-attribution.
|
|
1325
|
+
*/
|
|
1326
|
+
public static reportSkanAttributionPostback<T>(
|
|
1327
|
+
data: {
|
|
1328
|
+
"jws-string"?: string;
|
|
1329
|
+
jws?: string;
|
|
1330
|
+
[key: string]: any;
|
|
1331
|
+
},
|
|
1332
|
+
params?: Record<string, any>
|
|
1333
|
+
): AxiosPromise<Response<T>> {
|
|
1334
|
+
return Requests.processRoute(
|
|
1335
|
+
AdsRoute.routes.reportSkanAttributionPostback,
|
|
1336
|
+
data,
|
|
1337
|
+
undefined,
|
|
1338
|
+
params
|
|
1339
|
+
);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1306
1342
|
|
|
1307
1343
|
}
|
|
1308
1344
|
|
package/src/api/Scheduler.ts
CHANGED
|
@@ -770,6 +770,22 @@ class Scheduler {
|
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
+
/**
|
|
774
|
+
* List Google Ads conversion actions available to a scheduler account.
|
|
775
|
+
* GET /schedulers/{scheduler_id}/conversion-actions
|
|
776
|
+
*/
|
|
777
|
+
public static listConversionActions<T>(
|
|
778
|
+
scheduler_id: string,
|
|
779
|
+
params?: Record<string, any>
|
|
780
|
+
): AxiosPromise<Response<T>> {
|
|
781
|
+
return Requests.processRoute(
|
|
782
|
+
SchedulerRoute.routes.getConversionActions,
|
|
783
|
+
undefined,
|
|
784
|
+
{ scheduler_id },
|
|
785
|
+
params
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
|
|
773
789
|
/**
|
|
774
790
|
* List all destinations for a title update.
|
|
775
791
|
*
|
package/src/routes/AdsRoute.ts
CHANGED
|
@@ -402,6 +402,11 @@ class AdsRoute {
|
|
|
402
402
|
method: HTTP_METHODS.GET,
|
|
403
403
|
},
|
|
404
404
|
|
|
405
|
+
getDetailedBreakdownReport: {
|
|
406
|
+
url: "/ads/reports/detailed-breakdown",
|
|
407
|
+
method: HTTP_METHODS.GET,
|
|
408
|
+
},
|
|
409
|
+
|
|
405
410
|
getGoogleGeoSuggestions: {
|
|
406
411
|
url: "/ads/google/targeting/geo/suggest",
|
|
407
412
|
method: HTTP_METHODS.GET,
|
|
@@ -465,6 +470,11 @@ class AdsRoute {
|
|
|
465
470
|
method: HTTP_METHODS.POST,
|
|
466
471
|
},
|
|
467
472
|
|
|
473
|
+
reportSkanAttributionPostback: {
|
|
474
|
+
url: "/.well-known/appattribution/report-attribution",
|
|
475
|
+
method: HTTP_METHODS.POST,
|
|
476
|
+
},
|
|
477
|
+
|
|
468
478
|
};
|
|
469
479
|
}
|
|
470
480
|
|