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.
- package/dist/cjs/index.js +118 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +40 -0
- package/dist/esm/index.js +118 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +40 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +183 -0
- package/src/routes/AdsRoute.ts +60 -1
package/dist/cjs/index.js
CHANGED
|
@@ -20133,6 +20133,58 @@ var AdsRoute = /** @class */ (function () {
|
|
|
20133
20133
|
url: "/ads/reports/time-performance",
|
|
20134
20134
|
method: HTTP_METHODS.GET,
|
|
20135
20135
|
},
|
|
20136
|
+
getGoogleGeoSuggestions: {
|
|
20137
|
+
url: "/ads/google/targeting/geo/suggest",
|
|
20138
|
+
method: HTTP_METHODS.GET,
|
|
20139
|
+
},
|
|
20140
|
+
addGoogleLocationTargets: {
|
|
20141
|
+
url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
|
|
20142
|
+
method: HTTP_METHODS.POST,
|
|
20143
|
+
},
|
|
20144
|
+
getGoogleLocationTargets: {
|
|
20145
|
+
url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
|
|
20146
|
+
method: HTTP_METHODS.GET,
|
|
20147
|
+
},
|
|
20148
|
+
removeGoogleLocationTargets: {
|
|
20149
|
+
url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
|
|
20150
|
+
method: HTTP_METHODS.DELETE,
|
|
20151
|
+
},
|
|
20152
|
+
addGoogleProximityTarget: {
|
|
20153
|
+
url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity",
|
|
20154
|
+
method: HTTP_METHODS.POST,
|
|
20155
|
+
},
|
|
20156
|
+
updateGoogleTargetingSettings: {
|
|
20157
|
+
url: "/ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings",
|
|
20158
|
+
method: HTTP_METHODS.PUT,
|
|
20159
|
+
},
|
|
20160
|
+
getGoogleTargetingSettings: {
|
|
20161
|
+
url: "/ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings",
|
|
20162
|
+
method: HTTP_METHODS.GET,
|
|
20163
|
+
},
|
|
20164
|
+
getGoogleAdPosts: {
|
|
20165
|
+
url: "/ads/posts/google",
|
|
20166
|
+
method: HTTP_METHODS.GET,
|
|
20167
|
+
},
|
|
20168
|
+
createGoogleAdPost: {
|
|
20169
|
+
url: "/ads/posts/google",
|
|
20170
|
+
method: HTTP_METHODS.POST,
|
|
20171
|
+
},
|
|
20172
|
+
updateGoogleAdPost: {
|
|
20173
|
+
url: "/ads/posts/google/{post_id}",
|
|
20174
|
+
method: HTTP_METHODS.PUT,
|
|
20175
|
+
},
|
|
20176
|
+
deleteGoogleAdPost: {
|
|
20177
|
+
url: "/ads/posts/google/{post_id}",
|
|
20178
|
+
method: HTTP_METHODS.DELETE,
|
|
20179
|
+
},
|
|
20180
|
+
pauseGoogleAdPost: {
|
|
20181
|
+
url: "/ads/posts/google/{post_id}/pause",
|
|
20182
|
+
method: HTTP_METHODS.POST,
|
|
20183
|
+
},
|
|
20184
|
+
enableGoogleAdPost: {
|
|
20185
|
+
url: "/ads/posts/google/{post_id}/enable",
|
|
20186
|
+
method: HTTP_METHODS.POST,
|
|
20187
|
+
},
|
|
20136
20188
|
};
|
|
20137
20189
|
return AdsRoute;
|
|
20138
20190
|
}());
|
|
@@ -20732,6 +20784,72 @@ var Ads = /** @class */ (function () {
|
|
|
20732
20784
|
Ads.getTimePerformanceReport = function (params) {
|
|
20733
20785
|
return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
|
|
20734
20786
|
};
|
|
20787
|
+
/**
|
|
20788
|
+
* GET /ads/google/targeting/geo/suggest
|
|
20789
|
+
*/
|
|
20790
|
+
Ads.listGoogleGeoSuggestions = function (params) {
|
|
20791
|
+
return Requests.processRoute(AdsRoute.routes.getGoogleGeoSuggestions, undefined, undefined, params);
|
|
20792
|
+
};
|
|
20793
|
+
/**
|
|
20794
|
+
* POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
|
|
20795
|
+
*/
|
|
20796
|
+
Ads.addGoogleLocationTargets = function (customer_id, campaign_id, data) {
|
|
20797
|
+
return Requests.processRoute(AdsRoute.routes.addGoogleLocationTargets, data, { customer_id: customer_id, campaign_id: campaign_id });
|
|
20798
|
+
};
|
|
20799
|
+
/**
|
|
20800
|
+
* GET /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
|
|
20801
|
+
*/
|
|
20802
|
+
Ads.getGoogleLocationTargets = function (customer_id, campaign_id, params) {
|
|
20803
|
+
return Requests.processRoute(AdsRoute.routes.getGoogleLocationTargets, undefined, { customer_id: customer_id, campaign_id: campaign_id }, params);
|
|
20804
|
+
};
|
|
20805
|
+
/**
|
|
20806
|
+
* DELETE /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
|
|
20807
|
+
*/
|
|
20808
|
+
Ads.removeGoogleLocationTargets = function (customer_id, campaign_id, data) {
|
|
20809
|
+
return Requests.processRoute(AdsRoute.routes.removeGoogleLocationTargets, data, { customer_id: customer_id, campaign_id: campaign_id });
|
|
20810
|
+
};
|
|
20811
|
+
/**
|
|
20812
|
+
* POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity
|
|
20813
|
+
*/
|
|
20814
|
+
Ads.addGoogleProximityTarget = function (customer_id, campaign_id, data) {
|
|
20815
|
+
return Requests.processRoute(AdsRoute.routes.addGoogleProximityTarget, data, { customer_id: customer_id, campaign_id: campaign_id });
|
|
20816
|
+
};
|
|
20817
|
+
/**
|
|
20818
|
+
* PUT /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
|
|
20819
|
+
*/
|
|
20820
|
+
Ads.updateGoogleTargetingSettings = function (resource_type, customer_id, resource_id, data) {
|
|
20821
|
+
return Requests.processRoute(AdsRoute.routes.updateGoogleTargetingSettings, data, { resource_type: resource_type, customer_id: customer_id, resource_id: resource_id });
|
|
20822
|
+
};
|
|
20823
|
+
/**
|
|
20824
|
+
* GET /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
|
|
20825
|
+
*/
|
|
20826
|
+
Ads.getGoogleTargetingSettings = function (resource_type, customer_id, resource_id, params) {
|
|
20827
|
+
return Requests.processRoute(AdsRoute.routes.getGoogleTargetingSettings, undefined, { resource_type: resource_type, customer_id: customer_id, resource_id: resource_id }, params);
|
|
20828
|
+
};
|
|
20829
|
+
/** GET /ads/posts/google */
|
|
20830
|
+
Ads.listGoogleAdPosts = function (params) {
|
|
20831
|
+
return Requests.processRoute(AdsRoute.routes.getGoogleAdPosts, undefined, undefined, params);
|
|
20832
|
+
};
|
|
20833
|
+
/** POST /ads/posts/google */
|
|
20834
|
+
Ads.createGoogleAdPost = function (data, params) {
|
|
20835
|
+
return Requests.processRoute(AdsRoute.routes.createGoogleAdPost, data, {}, params);
|
|
20836
|
+
};
|
|
20837
|
+
/** PUT /ads/posts/google/{post_id} */
|
|
20838
|
+
Ads.updateGoogleAdPost = function (post_id, data, params) {
|
|
20839
|
+
return Requests.processRoute(AdsRoute.routes.updateGoogleAdPost, data, { post_id: post_id }, params);
|
|
20840
|
+
};
|
|
20841
|
+
/** DELETE /ads/posts/google/{post_id} */
|
|
20842
|
+
Ads.deleteGoogleAdPost = function (post_id, params) {
|
|
20843
|
+
return Requests.processRoute(AdsRoute.routes.deleteGoogleAdPost, {}, { post_id: post_id }, params);
|
|
20844
|
+
};
|
|
20845
|
+
/** POST /ads/posts/google/{post_id}/pause */
|
|
20846
|
+
Ads.pauseGoogleAdPost = function (post_id, params) {
|
|
20847
|
+
return Requests.processRoute(AdsRoute.routes.pauseGoogleAdPost, {}, { post_id: post_id }, params);
|
|
20848
|
+
};
|
|
20849
|
+
/** POST /ads/posts/google/{post_id}/enable */
|
|
20850
|
+
Ads.enableGoogleAdPost = function (post_id, params) {
|
|
20851
|
+
return Requests.processRoute(AdsRoute.routes.enableGoogleAdPost, {}, { post_id: post_id }, params);
|
|
20852
|
+
};
|
|
20735
20853
|
return Ads;
|
|
20736
20854
|
}());
|
|
20737
20855
|
|