glitch-javascript-sdk 1.8.9 → 1.9.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 +175 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +43 -0
- package/dist/esm/index.js +175 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +43 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +119 -0
- package/src/routes/AdsRoute.ts +89 -0
package/dist/esm/api/Ads.d.ts
CHANGED
|
@@ -297,5 +297,48 @@ declare class Ads {
|
|
|
297
297
|
* @returns The synced Ad resource
|
|
298
298
|
*/
|
|
299
299
|
static syncAd<T>(ad_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
300
|
+
/**
|
|
301
|
+
* POST /ads/facebook/targeting/search
|
|
302
|
+
*/
|
|
303
|
+
static facebookTargetingSearch<T>(data: Record<string, any>, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
304
|
+
/**
|
|
305
|
+
* GET /ads/facebook/targeting/geo_search
|
|
306
|
+
*/
|
|
307
|
+
static facebookGeoSearch<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
308
|
+
/**
|
|
309
|
+
* GET /ads/facebook/targeting/option_status
|
|
310
|
+
*/
|
|
311
|
+
static facebookTargetingOptionStatus<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
312
|
+
/**
|
|
313
|
+
* POST /ads/facebook/targeting/suggestions
|
|
314
|
+
*/
|
|
315
|
+
static facebookTargetingSuggestions<T>(data: Record<string, any>, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
316
|
+
/**
|
|
317
|
+
* GET /ads/facebook/targeting/browse
|
|
318
|
+
*/
|
|
319
|
+
static facebookTargetingBrowse<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
320
|
+
/**
|
|
321
|
+
* POST /ads/facebook/targeting/validation
|
|
322
|
+
*/
|
|
323
|
+
static facebookTargetingValidation<T>(data: Record<string, any>, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
324
|
+
/**
|
|
325
|
+
* GET /ads/facebook/targeting/delivery_estimate
|
|
326
|
+
*/
|
|
327
|
+
static facebookDeliveryEstimate<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
328
|
+
static tiktokTargetingSearch<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
329
|
+
static tiktokContextualTags<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
330
|
+
static tiktokRecommendHashtags<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
331
|
+
static tiktokListCarriers<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
332
|
+
static tiktokListInterestCategories<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
333
|
+
static tiktokListActionCategories<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
334
|
+
static tiktokListContentExclusions<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
335
|
+
static tiktokListRegions<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
336
|
+
static listTwitterTargetingCriteria<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
337
|
+
static getTwitterTargetingCriterion<T>(criterion_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
338
|
+
static createTwitterTargetingCriterion<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
339
|
+
static deleteTwitterTargetingCriterion<T>(criterion_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
340
|
+
static twitterBatchTargetingCriteria<T>(data: object[], params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
341
|
+
static lookupTwitterTargeting<T>(resource: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
342
|
+
static twitterTargetingSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
300
343
|
}
|
|
301
344
|
export default Ads;
|
package/dist/esm/index.js
CHANGED
|
@@ -6806,6 +6806,94 @@ var AdsRoute = /** @class */ (function () {
|
|
|
6806
6806
|
url: "/ads/creatives/{ad_id}/sync",
|
|
6807
6807
|
method: HTTP_METHODS.POST,
|
|
6808
6808
|
},
|
|
6809
|
+
facebookTargetingSearch: {
|
|
6810
|
+
url: "/ads/facebook/targeting/search",
|
|
6811
|
+
method: HTTP_METHODS.POST,
|
|
6812
|
+
},
|
|
6813
|
+
facebookGeoSearch: {
|
|
6814
|
+
url: "/ads/facebook/targeting/geo_search",
|
|
6815
|
+
method: HTTP_METHODS.GET,
|
|
6816
|
+
},
|
|
6817
|
+
facebookTargetingOptionStatus: {
|
|
6818
|
+
url: "/ads/facebook/targeting/option_status",
|
|
6819
|
+
method: HTTP_METHODS.GET,
|
|
6820
|
+
},
|
|
6821
|
+
facebookTargetingSuggestions: {
|
|
6822
|
+
url: "/ads/facebook/targeting/suggestions",
|
|
6823
|
+
method: HTTP_METHODS.POST,
|
|
6824
|
+
},
|
|
6825
|
+
facebookTargetingBrowse: {
|
|
6826
|
+
url: "/ads/facebook/targeting/browse",
|
|
6827
|
+
method: HTTP_METHODS.GET,
|
|
6828
|
+
},
|
|
6829
|
+
facebookTargetingValidation: {
|
|
6830
|
+
url: "/ads/facebook/targeting/validation",
|
|
6831
|
+
method: HTTP_METHODS.POST,
|
|
6832
|
+
},
|
|
6833
|
+
facebookDeliveryEstimate: {
|
|
6834
|
+
url: "/ads/facebook/targeting/delivery_estimate",
|
|
6835
|
+
method: HTTP_METHODS.GET,
|
|
6836
|
+
},
|
|
6837
|
+
tiktokTargetingSearch: {
|
|
6838
|
+
url: "/ads/tiktok/targeting/search",
|
|
6839
|
+
method: HTTP_METHODS.POST,
|
|
6840
|
+
},
|
|
6841
|
+
tiktokContextualTags: {
|
|
6842
|
+
url: "/ads/tiktok/targeting/contextual_tags",
|
|
6843
|
+
method: HTTP_METHODS.GET,
|
|
6844
|
+
},
|
|
6845
|
+
tiktokRecommendHashtags: {
|
|
6846
|
+
url: "/ads/tiktok/targeting/hashtags",
|
|
6847
|
+
method: HTTP_METHODS.GET,
|
|
6848
|
+
},
|
|
6849
|
+
tiktokCarriers: {
|
|
6850
|
+
url: "/ads/tiktok/targeting/carriers",
|
|
6851
|
+
method: HTTP_METHODS.GET,
|
|
6852
|
+
},
|
|
6853
|
+
tiktokInterestCategories: {
|
|
6854
|
+
url: "/ads/tiktok/targeting/interest_categories",
|
|
6855
|
+
method: HTTP_METHODS.GET,
|
|
6856
|
+
},
|
|
6857
|
+
tiktokActionCategories: {
|
|
6858
|
+
url: "/ads/tiktok/targeting/action_categories",
|
|
6859
|
+
method: HTTP_METHODS.GET,
|
|
6860
|
+
},
|
|
6861
|
+
tiktokContentExclusions: {
|
|
6862
|
+
url: "/ads/tiktok/targeting/content_exclusions",
|
|
6863
|
+
method: HTTP_METHODS.GET,
|
|
6864
|
+
},
|
|
6865
|
+
tiktokRegions: {
|
|
6866
|
+
url: "/ads/tiktok/targeting/regions",
|
|
6867
|
+
method: HTTP_METHODS.GET,
|
|
6868
|
+
},
|
|
6869
|
+
twitterListTargetingCriteria: {
|
|
6870
|
+
url: "/ads/twitter/targeting/criteria",
|
|
6871
|
+
method: HTTP_METHODS.GET,
|
|
6872
|
+
},
|
|
6873
|
+
twitterGetTargetingCriterion: {
|
|
6874
|
+
url: "/ads/twitter/targeting/criteria/{criterion_id}",
|
|
6875
|
+
method: HTTP_METHODS.GET,
|
|
6876
|
+
},
|
|
6877
|
+
twitterCreateTargetingCriterion: {
|
|
6878
|
+
url: "/ads/twitter/targeting/criteria",
|
|
6879
|
+
method: HTTP_METHODS.POST,
|
|
6880
|
+
},
|
|
6881
|
+
twitterDeleteTargetingCriterion: {
|
|
6882
|
+
url: "/ads/twitter/targeting/criteria/{criterion_id}",
|
|
6883
|
+
method: HTTP_METHODS.DELETE,
|
|
6884
|
+
},
|
|
6885
|
+
twitterBatchTargetingCriteria: {
|
|
6886
|
+
url: "/ads/twitter/targeting/batch_criteria",
|
|
6887
|
+
method: HTTP_METHODS.POST,
|
|
6888
|
+
},
|
|
6889
|
+
twitterTargetingDiscovery: {
|
|
6890
|
+
url: "/ads/twitter/targeting/{resource}",
|
|
6891
|
+
method: HTTP_METHODS.GET,
|
|
6892
|
+
},
|
|
6893
|
+
twitterTargetingSuggestions: {
|
|
6894
|
+
url: "/ads/twitter/targeting/suggestions",
|
|
6895
|
+
method: HTTP_METHODS.GET,
|
|
6896
|
+
},
|
|
6809
6897
|
};
|
|
6810
6898
|
return AdsRoute;
|
|
6811
6899
|
}());
|
|
@@ -7226,6 +7314,93 @@ var Ads = /** @class */ (function () {
|
|
|
7226
7314
|
Ads.syncAd = function (ad_id, params) {
|
|
7227
7315
|
return Requests.processRoute(AdsRoute.routes.syncAd, undefined, { ad_id: ad_id }, params);
|
|
7228
7316
|
};
|
|
7317
|
+
/**
|
|
7318
|
+
* POST /ads/facebook/targeting/search
|
|
7319
|
+
*/
|
|
7320
|
+
Ads.facebookTargetingSearch = function (data, params) {
|
|
7321
|
+
return Requests.processRoute(AdsRoute.routes.facebookTargetingSearch, data, undefined, params);
|
|
7322
|
+
};
|
|
7323
|
+
/**
|
|
7324
|
+
* GET /ads/facebook/targeting/geo_search
|
|
7325
|
+
*/
|
|
7326
|
+
Ads.facebookGeoSearch = function (params) {
|
|
7327
|
+
return Requests.processRoute(AdsRoute.routes.facebookGeoSearch, undefined, undefined, params);
|
|
7328
|
+
};
|
|
7329
|
+
/**
|
|
7330
|
+
* GET /ads/facebook/targeting/option_status
|
|
7331
|
+
*/
|
|
7332
|
+
Ads.facebookTargetingOptionStatus = function (params) {
|
|
7333
|
+
return Requests.processRoute(AdsRoute.routes.facebookTargetingOptionStatus, undefined, undefined, params);
|
|
7334
|
+
};
|
|
7335
|
+
/**
|
|
7336
|
+
* POST /ads/facebook/targeting/suggestions
|
|
7337
|
+
*/
|
|
7338
|
+
Ads.facebookTargetingSuggestions = function (data, params) {
|
|
7339
|
+
return Requests.processRoute(AdsRoute.routes.facebookTargetingSuggestions, data, undefined, params);
|
|
7340
|
+
};
|
|
7341
|
+
/**
|
|
7342
|
+
* GET /ads/facebook/targeting/browse
|
|
7343
|
+
*/
|
|
7344
|
+
Ads.facebookTargetingBrowse = function (params) {
|
|
7345
|
+
return Requests.processRoute(AdsRoute.routes.facebookTargetingBrowse, undefined, undefined, params);
|
|
7346
|
+
};
|
|
7347
|
+
/**
|
|
7348
|
+
* POST /ads/facebook/targeting/validation
|
|
7349
|
+
*/
|
|
7350
|
+
Ads.facebookTargetingValidation = function (data, params) {
|
|
7351
|
+
return Requests.processRoute(AdsRoute.routes.facebookTargetingValidation, data, undefined, params);
|
|
7352
|
+
};
|
|
7353
|
+
/**
|
|
7354
|
+
* GET /ads/facebook/targeting/delivery_estimate
|
|
7355
|
+
*/
|
|
7356
|
+
Ads.facebookDeliveryEstimate = function (params) {
|
|
7357
|
+
return Requests.processRoute(AdsRoute.routes.facebookDeliveryEstimate, undefined, undefined, params);
|
|
7358
|
+
};
|
|
7359
|
+
Ads.tiktokTargetingSearch = function (data, params) {
|
|
7360
|
+
return Requests.processRoute(AdsRoute.routes.tiktokTargetingSearch, data, {}, params);
|
|
7361
|
+
};
|
|
7362
|
+
Ads.tiktokContextualTags = function (params) {
|
|
7363
|
+
return Requests.processRoute(AdsRoute.routes.tiktokContextualTags, undefined, undefined, params);
|
|
7364
|
+
};
|
|
7365
|
+
Ads.tiktokRecommendHashtags = function (params) {
|
|
7366
|
+
return Requests.processRoute(AdsRoute.routes.tiktokRecommendHashtags, undefined, undefined, params);
|
|
7367
|
+
};
|
|
7368
|
+
Ads.tiktokListCarriers = function (params) {
|
|
7369
|
+
return Requests.processRoute(AdsRoute.routes.tiktokCarriers, undefined, undefined, params);
|
|
7370
|
+
};
|
|
7371
|
+
Ads.tiktokListInterestCategories = function (params) {
|
|
7372
|
+
return Requests.processRoute(AdsRoute.routes.tiktokInterestCategories, undefined, undefined, params);
|
|
7373
|
+
};
|
|
7374
|
+
Ads.tiktokListActionCategories = function (params) {
|
|
7375
|
+
return Requests.processRoute(AdsRoute.routes.tiktokActionCategories, undefined, undefined, params);
|
|
7376
|
+
};
|
|
7377
|
+
Ads.tiktokListContentExclusions = function (params) {
|
|
7378
|
+
return Requests.processRoute(AdsRoute.routes.tiktokContentExclusions, undefined, undefined, params);
|
|
7379
|
+
};
|
|
7380
|
+
Ads.tiktokListRegions = function (params) {
|
|
7381
|
+
return Requests.processRoute(AdsRoute.routes.tiktokRegions, undefined, undefined, params);
|
|
7382
|
+
};
|
|
7383
|
+
Ads.listTwitterTargetingCriteria = function (params) {
|
|
7384
|
+
return Requests.processRoute(AdsRoute.routes.twitterListTargetingCriteria, undefined, undefined, params);
|
|
7385
|
+
};
|
|
7386
|
+
Ads.getTwitterTargetingCriterion = function (criterion_id, params) {
|
|
7387
|
+
return Requests.processRoute(AdsRoute.routes.twitterGetTargetingCriterion, undefined, { criterion_id: criterion_id }, params);
|
|
7388
|
+
};
|
|
7389
|
+
Ads.createTwitterTargetingCriterion = function (data, params) {
|
|
7390
|
+
return Requests.processRoute(AdsRoute.routes.twitterCreateTargetingCriterion, data, {}, params);
|
|
7391
|
+
};
|
|
7392
|
+
Ads.deleteTwitterTargetingCriterion = function (criterion_id, params) {
|
|
7393
|
+
return Requests.processRoute(AdsRoute.routes.twitterDeleteTargetingCriterion, undefined, { criterion_id: criterion_id }, params);
|
|
7394
|
+
};
|
|
7395
|
+
Ads.twitterBatchTargetingCriteria = function (data, params) {
|
|
7396
|
+
return Requests.processRoute(AdsRoute.routes.twitterBatchTargetingCriteria, data, {}, params);
|
|
7397
|
+
};
|
|
7398
|
+
Ads.lookupTwitterTargeting = function (resource, params) {
|
|
7399
|
+
return Requests.processRoute(AdsRoute.routes.twitterTargetingDiscovery, undefined, { resource: resource }, params);
|
|
7400
|
+
};
|
|
7401
|
+
Ads.twitterTargetingSuggestions = function (params) {
|
|
7402
|
+
return Requests.processRoute(AdsRoute.routes.twitterTargetingSuggestions, undefined, undefined, params);
|
|
7403
|
+
};
|
|
7229
7404
|
return Ads;
|
|
7230
7405
|
}());
|
|
7231
7406
|
|