glitch-javascript-sdk 1.9.6 → 1.9.7

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.
@@ -417,5 +417,45 @@ declare class Ads {
417
417
  community_id?: string;
418
418
  platform?: string;
419
419
  }): AxiosPromise<Response<T>>;
420
+ /**
421
+ * GET /ads/google/targeting/geo/suggest
422
+ */
423
+ static listGoogleGeoSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
424
+ /**
425
+ * POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
426
+ */
427
+ static addGoogleLocationTargets<T>(customer_id: number, campaign_id: number, data: object): AxiosPromise<Response<T>>;
428
+ /**
429
+ * GET /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
430
+ */
431
+ static getGoogleLocationTargets<T>(customer_id: number, campaign_id: number, params: Record<string, any>): AxiosPromise<Response<T>>;
432
+ /**
433
+ * DELETE /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
434
+ */
435
+ static removeGoogleLocationTargets<T>(customer_id: number, campaign_id: number, data: object): AxiosPromise<Response<T>>;
436
+ /**
437
+ * POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity
438
+ */
439
+ static addGoogleProximityTarget<T>(customer_id: number, campaign_id: number, data: object): AxiosPromise<Response<T>>;
440
+ /**
441
+ * PUT /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
442
+ */
443
+ static updateGoogleTargetingSettings<T>(resource_type: 'campaign' | 'ad_group', customer_id: number, resource_id: number, data: object): AxiosPromise<Response<T>>;
444
+ /**
445
+ * GET /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
446
+ */
447
+ static getGoogleTargetingSettings<T>(resource_type: 'campaign' | 'ad_group', customer_id: number, resource_id: number, params: Record<string, any>): AxiosPromise<Response<T>>;
448
+ /** GET /ads/posts/google */
449
+ static listGoogleAdPosts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
450
+ /** POST /ads/posts/google */
451
+ static createGoogleAdPost<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
452
+ /** PUT /ads/posts/google/{post_id} */
453
+ static updateGoogleAdPost<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
454
+ /** DELETE /ads/posts/google/{post_id} */
455
+ static deleteGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
456
+ /** POST /ads/posts/google/{post_id}/pause */
457
+ static pauseGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
458
+ /** POST /ads/posts/google/{post_id}/enable */
459
+ static enableGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
420
460
  }
421
461
  export default Ads;
package/dist/esm/index.js CHANGED
@@ -6949,6 +6949,58 @@ var AdsRoute = /** @class */ (function () {
6949
6949
  url: "/ads/reports/time-performance",
6950
6950
  method: HTTP_METHODS.GET,
6951
6951
  },
6952
+ getGoogleGeoSuggestions: {
6953
+ url: "/ads/google/targeting/geo/suggest",
6954
+ method: HTTP_METHODS.GET,
6955
+ },
6956
+ addGoogleLocationTargets: {
6957
+ url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
6958
+ method: HTTP_METHODS.POST,
6959
+ },
6960
+ getGoogleLocationTargets: {
6961
+ url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
6962
+ method: HTTP_METHODS.GET,
6963
+ },
6964
+ removeGoogleLocationTargets: {
6965
+ url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
6966
+ method: HTTP_METHODS.DELETE,
6967
+ },
6968
+ addGoogleProximityTarget: {
6969
+ url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity",
6970
+ method: HTTP_METHODS.POST,
6971
+ },
6972
+ updateGoogleTargetingSettings: {
6973
+ url: "/ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings",
6974
+ method: HTTP_METHODS.PUT,
6975
+ },
6976
+ getGoogleTargetingSettings: {
6977
+ url: "/ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings",
6978
+ method: HTTP_METHODS.GET,
6979
+ },
6980
+ getGoogleAdPosts: {
6981
+ url: "/ads/posts/google",
6982
+ method: HTTP_METHODS.GET,
6983
+ },
6984
+ createGoogleAdPost: {
6985
+ url: "/ads/posts/google",
6986
+ method: HTTP_METHODS.POST,
6987
+ },
6988
+ updateGoogleAdPost: {
6989
+ url: "/ads/posts/google/{post_id}",
6990
+ method: HTTP_METHODS.PUT,
6991
+ },
6992
+ deleteGoogleAdPost: {
6993
+ url: "/ads/posts/google/{post_id}",
6994
+ method: HTTP_METHODS.DELETE,
6995
+ },
6996
+ pauseGoogleAdPost: {
6997
+ url: "/ads/posts/google/{post_id}/pause",
6998
+ method: HTTP_METHODS.POST,
6999
+ },
7000
+ enableGoogleAdPost: {
7001
+ url: "/ads/posts/google/{post_id}/enable",
7002
+ method: HTTP_METHODS.POST,
7003
+ },
6952
7004
  };
6953
7005
  return AdsRoute;
6954
7006
  }());
@@ -7548,6 +7600,72 @@ var Ads = /** @class */ (function () {
7548
7600
  Ads.getTimePerformanceReport = function (params) {
7549
7601
  return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
7550
7602
  };
7603
+ /**
7604
+ * GET /ads/google/targeting/geo/suggest
7605
+ */
7606
+ Ads.listGoogleGeoSuggestions = function (params) {
7607
+ return Requests.processRoute(AdsRoute.routes.getGoogleGeoSuggestions, undefined, undefined, params);
7608
+ };
7609
+ /**
7610
+ * POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
7611
+ */
7612
+ Ads.addGoogleLocationTargets = function (customer_id, campaign_id, data) {
7613
+ return Requests.processRoute(AdsRoute.routes.addGoogleLocationTargets, data, { customer_id: customer_id, campaign_id: campaign_id });
7614
+ };
7615
+ /**
7616
+ * GET /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
7617
+ */
7618
+ Ads.getGoogleLocationTargets = function (customer_id, campaign_id, params) {
7619
+ return Requests.processRoute(AdsRoute.routes.getGoogleLocationTargets, undefined, { customer_id: customer_id, campaign_id: campaign_id }, params);
7620
+ };
7621
+ /**
7622
+ * DELETE /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
7623
+ */
7624
+ Ads.removeGoogleLocationTargets = function (customer_id, campaign_id, data) {
7625
+ return Requests.processRoute(AdsRoute.routes.removeGoogleLocationTargets, data, { customer_id: customer_id, campaign_id: campaign_id });
7626
+ };
7627
+ /**
7628
+ * POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity
7629
+ */
7630
+ Ads.addGoogleProximityTarget = function (customer_id, campaign_id, data) {
7631
+ return Requests.processRoute(AdsRoute.routes.addGoogleProximityTarget, data, { customer_id: customer_id, campaign_id: campaign_id });
7632
+ };
7633
+ /**
7634
+ * PUT /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
7635
+ */
7636
+ Ads.updateGoogleTargetingSettings = function (resource_type, customer_id, resource_id, data) {
7637
+ return Requests.processRoute(AdsRoute.routes.updateGoogleTargetingSettings, data, { resource_type: resource_type, customer_id: customer_id, resource_id: resource_id });
7638
+ };
7639
+ /**
7640
+ * GET /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
7641
+ */
7642
+ Ads.getGoogleTargetingSettings = function (resource_type, customer_id, resource_id, params) {
7643
+ return Requests.processRoute(AdsRoute.routes.getGoogleTargetingSettings, undefined, { resource_type: resource_type, customer_id: customer_id, resource_id: resource_id }, params);
7644
+ };
7645
+ /** GET /ads/posts/google */
7646
+ Ads.listGoogleAdPosts = function (params) {
7647
+ return Requests.processRoute(AdsRoute.routes.getGoogleAdPosts, undefined, undefined, params);
7648
+ };
7649
+ /** POST /ads/posts/google */
7650
+ Ads.createGoogleAdPost = function (data, params) {
7651
+ return Requests.processRoute(AdsRoute.routes.createGoogleAdPost, data, {}, params);
7652
+ };
7653
+ /** PUT /ads/posts/google/{post_id} */
7654
+ Ads.updateGoogleAdPost = function (post_id, data, params) {
7655
+ return Requests.processRoute(AdsRoute.routes.updateGoogleAdPost, data, { post_id: post_id }, params);
7656
+ };
7657
+ /** DELETE /ads/posts/google/{post_id} */
7658
+ Ads.deleteGoogleAdPost = function (post_id, params) {
7659
+ return Requests.processRoute(AdsRoute.routes.deleteGoogleAdPost, {}, { post_id: post_id }, params);
7660
+ };
7661
+ /** POST /ads/posts/google/{post_id}/pause */
7662
+ Ads.pauseGoogleAdPost = function (post_id, params) {
7663
+ return Requests.processRoute(AdsRoute.routes.pauseGoogleAdPost, {}, { post_id: post_id }, params);
7664
+ };
7665
+ /** POST /ads/posts/google/{post_id}/enable */
7666
+ Ads.enableGoogleAdPost = function (post_id, params) {
7667
+ return Requests.processRoute(AdsRoute.routes.enableGoogleAdPost, {}, { post_id: post_id }, params);
7668
+ };
7551
7669
  return Ads;
7552
7670
  }());
7553
7671