glitch-javascript-sdk 1.9.6 → 1.9.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 +199 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +40 -0
- package/dist/esm/api/Campaigns.d.ts +57 -0
- package/dist/esm/index.js +199 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +97 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +183 -0
- package/src/api/Campaigns.ts +80 -0
- package/src/routes/AdsRoute.ts +60 -1
- package/src/routes/CampaignsRoute.ts +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -1059,6 +1059,46 @@ declare class Ads {
|
|
|
1059
1059
|
community_id?: string;
|
|
1060
1060
|
platform?: string;
|
|
1061
1061
|
}): AxiosPromise<Response<T>>;
|
|
1062
|
+
/**
|
|
1063
|
+
* GET /ads/google/targeting/geo/suggest
|
|
1064
|
+
*/
|
|
1065
|
+
static listGoogleGeoSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1066
|
+
/**
|
|
1067
|
+
* POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
|
|
1068
|
+
*/
|
|
1069
|
+
static addGoogleLocationTargets<T>(customer_id: number, campaign_id: number, data: object): AxiosPromise<Response<T>>;
|
|
1070
|
+
/**
|
|
1071
|
+
* GET /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
|
|
1072
|
+
*/
|
|
1073
|
+
static getGoogleLocationTargets<T>(customer_id: number, campaign_id: number, params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1074
|
+
/**
|
|
1075
|
+
* DELETE /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
|
|
1076
|
+
*/
|
|
1077
|
+
static removeGoogleLocationTargets<T>(customer_id: number, campaign_id: number, data: object): AxiosPromise<Response<T>>;
|
|
1078
|
+
/**
|
|
1079
|
+
* POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity
|
|
1080
|
+
*/
|
|
1081
|
+
static addGoogleProximityTarget<T>(customer_id: number, campaign_id: number, data: object): AxiosPromise<Response<T>>;
|
|
1082
|
+
/**
|
|
1083
|
+
* PUT /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
|
|
1084
|
+
*/
|
|
1085
|
+
static updateGoogleTargetingSettings<T>(resource_type: 'campaign' | 'ad_group', customer_id: number, resource_id: number, data: object): AxiosPromise<Response<T>>;
|
|
1086
|
+
/**
|
|
1087
|
+
* GET /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
|
|
1088
|
+
*/
|
|
1089
|
+
static getGoogleTargetingSettings<T>(resource_type: 'campaign' | 'ad_group', customer_id: number, resource_id: number, params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1090
|
+
/** GET /ads/posts/google */
|
|
1091
|
+
static listGoogleAdPosts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1092
|
+
/** POST /ads/posts/google */
|
|
1093
|
+
static createGoogleAdPost<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1094
|
+
/** PUT /ads/posts/google/{post_id} */
|
|
1095
|
+
static updateGoogleAdPost<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1096
|
+
/** DELETE /ads/posts/google/{post_id} */
|
|
1097
|
+
static deleteGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1098
|
+
/** POST /ads/posts/google/{post_id}/pause */
|
|
1099
|
+
static pauseGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1100
|
+
/** POST /ads/posts/google/{post_id}/enable */
|
|
1101
|
+
static enableGoogleAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1062
1102
|
}
|
|
1063
1103
|
|
|
1064
1104
|
declare class Communities {
|
|
@@ -4165,6 +4205,63 @@ declare class Campaigns {
|
|
|
4165
4205
|
* @returns promise
|
|
4166
4206
|
*/
|
|
4167
4207
|
static sendCampaignContractWithDocusign<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4208
|
+
/**
|
|
4209
|
+
* Search IGDB for the campaign's game.
|
|
4210
|
+
* @param campaign_id The UUID of the campaign.
|
|
4211
|
+
* @param params Query parameters (e.g., search_query, limit).
|
|
4212
|
+
* @returns promise
|
|
4213
|
+
*/
|
|
4214
|
+
static sourcingSearchIgdbForCampaignGame<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4215
|
+
/**
|
|
4216
|
+
* Find popular similar games from IGDB.
|
|
4217
|
+
* @param campaign_id The UUID of the campaign.
|
|
4218
|
+
* @param params Query parameters (e.g., igdb_id, limit).
|
|
4219
|
+
* @returns promise
|
|
4220
|
+
*/
|
|
4221
|
+
static sourcingGetSimilarIgdbGames<T>(campaign_id: string, params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4222
|
+
/**
|
|
4223
|
+
* Find content creators for selected games. This does not save them to the database.
|
|
4224
|
+
* @param campaign_id The UUID of the campaign.
|
|
4225
|
+
* @param data The search criteria (source, igdb_ids, etc.).
|
|
4226
|
+
* @returns promise
|
|
4227
|
+
*/
|
|
4228
|
+
static sourcingFindCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4229
|
+
/**
|
|
4230
|
+
* Update campaign sourcing settings.
|
|
4231
|
+
* @param campaign_id The UUID of the campaign.
|
|
4232
|
+
* @param data The settings to update (igdb_id, similar_game_igdb_ids, etc.).
|
|
4233
|
+
* @returns promise
|
|
4234
|
+
*/
|
|
4235
|
+
static updateSourcingSettings<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4236
|
+
/**
|
|
4237
|
+
* Find and save content creators for selected games to the database.
|
|
4238
|
+
* @param campaign_id The UUID of the campaign.
|
|
4239
|
+
* @param data The search criteria (source, igdb_ids, etc.).
|
|
4240
|
+
* @returns promise
|
|
4241
|
+
*/
|
|
4242
|
+
static sourcingFindAndSaveCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4243
|
+
/**
|
|
4244
|
+
* Get sourced creators for a campaign from the database.
|
|
4245
|
+
* @param campaign_id The UUID of the campaign.
|
|
4246
|
+
* @param params Query parameters for filtering, sorting, and pagination.
|
|
4247
|
+
* @returns promise
|
|
4248
|
+
*/
|
|
4249
|
+
static getSourcedCreators<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4250
|
+
/**
|
|
4251
|
+
* Get a single sourced creator.
|
|
4252
|
+
* @param campaign_id The UUID of the campaign.
|
|
4253
|
+
* @param sourced_creator_id The UUID of the sourced creator.
|
|
4254
|
+
* @returns promise
|
|
4255
|
+
*/
|
|
4256
|
+
static getSourcedCreator<T>(campaign_id: string, sourced_creator_id: string): AxiosPromise<Response<T>>;
|
|
4257
|
+
/**
|
|
4258
|
+
* Update a sourced creator (e.g., approve or reject).
|
|
4259
|
+
* @param campaign_id The UUID of the campaign.
|
|
4260
|
+
* @param sourced_creator_id The UUID of the sourced creator to update.
|
|
4261
|
+
* @param data The update data (e.g., is_approved, is_rejected).
|
|
4262
|
+
* @returns promise
|
|
4263
|
+
*/
|
|
4264
|
+
static updateSourcedCreator<T>(campaign_id: string, sourced_creator_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4168
4265
|
}
|
|
4169
4266
|
|
|
4170
4267
|
declare class Subscriptions {
|
package/package.json
CHANGED
package/src/api/Ads.ts
CHANGED
|
@@ -1090,6 +1090,189 @@ class Ads {
|
|
|
1090
1090
|
return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
|
+
/**
|
|
1094
|
+
* GET /ads/google/targeting/geo/suggest
|
|
1095
|
+
*/
|
|
1096
|
+
public static listGoogleGeoSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
|
|
1097
|
+
return Requests.processRoute(
|
|
1098
|
+
AdsRoute.routes.getGoogleGeoSuggestions,
|
|
1099
|
+
undefined,
|
|
1100
|
+
undefined,
|
|
1101
|
+
params
|
|
1102
|
+
);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
|
|
1107
|
+
*/
|
|
1108
|
+
public static addGoogleLocationTargets<T>(
|
|
1109
|
+
customer_id: number,
|
|
1110
|
+
campaign_id: number,
|
|
1111
|
+
data: object
|
|
1112
|
+
): AxiosPromise<Response<T>> {
|
|
1113
|
+
return Requests.processRoute(
|
|
1114
|
+
AdsRoute.routes.addGoogleLocationTargets,
|
|
1115
|
+
data,
|
|
1116
|
+
{ customer_id, campaign_id }
|
|
1117
|
+
);
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* GET /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
|
|
1122
|
+
*/
|
|
1123
|
+
public static getGoogleLocationTargets<T>(
|
|
1124
|
+
customer_id: number,
|
|
1125
|
+
campaign_id: number,
|
|
1126
|
+
params: Record<string, any>
|
|
1127
|
+
): AxiosPromise<Response<T>> {
|
|
1128
|
+
return Requests.processRoute(
|
|
1129
|
+
AdsRoute.routes.getGoogleLocationTargets,
|
|
1130
|
+
undefined,
|
|
1131
|
+
{ customer_id, campaign_id },
|
|
1132
|
+
params
|
|
1133
|
+
);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* DELETE /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
|
|
1138
|
+
*/
|
|
1139
|
+
public static removeGoogleLocationTargets<T>(
|
|
1140
|
+
customer_id: number,
|
|
1141
|
+
campaign_id: number,
|
|
1142
|
+
data: object
|
|
1143
|
+
): AxiosPromise<Response<T>> {
|
|
1144
|
+
return Requests.processRoute(
|
|
1145
|
+
AdsRoute.routes.removeGoogleLocationTargets,
|
|
1146
|
+
data,
|
|
1147
|
+
{ customer_id, campaign_id }
|
|
1148
|
+
);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity
|
|
1153
|
+
*/
|
|
1154
|
+
public static addGoogleProximityTarget<T>(
|
|
1155
|
+
customer_id: number,
|
|
1156
|
+
campaign_id: number,
|
|
1157
|
+
data: object
|
|
1158
|
+
): AxiosPromise<Response<T>> {
|
|
1159
|
+
return Requests.processRoute(
|
|
1160
|
+
AdsRoute.routes.addGoogleProximityTarget,
|
|
1161
|
+
data,
|
|
1162
|
+
{ customer_id, campaign_id }
|
|
1163
|
+
);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* PUT /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
|
|
1168
|
+
*/
|
|
1169
|
+
public static updateGoogleTargetingSettings<T>(
|
|
1170
|
+
resource_type: 'campaign' | 'ad_group',
|
|
1171
|
+
customer_id: number,
|
|
1172
|
+
resource_id: number,
|
|
1173
|
+
data: object
|
|
1174
|
+
): AxiosPromise<Response<T>> {
|
|
1175
|
+
return Requests.processRoute(
|
|
1176
|
+
AdsRoute.routes.updateGoogleTargetingSettings,
|
|
1177
|
+
data,
|
|
1178
|
+
{ resource_type, customer_id, resource_id }
|
|
1179
|
+
);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* GET /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
|
|
1184
|
+
*/
|
|
1185
|
+
public static getGoogleTargetingSettings<T>(
|
|
1186
|
+
resource_type: 'campaign' | 'ad_group',
|
|
1187
|
+
customer_id: number,
|
|
1188
|
+
resource_id: number,
|
|
1189
|
+
params: Record<string, any>
|
|
1190
|
+
): AxiosPromise<Response<T>> {
|
|
1191
|
+
return Requests.processRoute(
|
|
1192
|
+
AdsRoute.routes.getGoogleTargetingSettings,
|
|
1193
|
+
undefined,
|
|
1194
|
+
{ resource_type, customer_id, resource_id },
|
|
1195
|
+
params
|
|
1196
|
+
);
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/** GET /ads/posts/google */
|
|
1200
|
+
public static listGoogleAdPosts<T>(
|
|
1201
|
+
params?: Record<string, any>
|
|
1202
|
+
): AxiosPromise<Response<T>> {
|
|
1203
|
+
return Requests.processRoute(
|
|
1204
|
+
AdsRoute.routes.getGoogleAdPosts,
|
|
1205
|
+
undefined,
|
|
1206
|
+
undefined,
|
|
1207
|
+
params
|
|
1208
|
+
);
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
/** POST /ads/posts/google */
|
|
1212
|
+
public static createGoogleAdPost<T>(
|
|
1213
|
+
data?: object,
|
|
1214
|
+
params?: Record<string, any>
|
|
1215
|
+
): AxiosPromise<Response<T>> {
|
|
1216
|
+
return Requests.processRoute(
|
|
1217
|
+
AdsRoute.routes.createGoogleAdPost,
|
|
1218
|
+
data,
|
|
1219
|
+
{},
|
|
1220
|
+
params
|
|
1221
|
+
);
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
/** PUT /ads/posts/google/{post_id} */
|
|
1225
|
+
public static updateGoogleAdPost<T>(
|
|
1226
|
+
post_id: string,
|
|
1227
|
+
data?: object,
|
|
1228
|
+
params?: Record<string, any>
|
|
1229
|
+
): AxiosPromise<Response<T>> {
|
|
1230
|
+
return Requests.processRoute(
|
|
1231
|
+
AdsRoute.routes.updateGoogleAdPost,
|
|
1232
|
+
data,
|
|
1233
|
+
{ post_id },
|
|
1234
|
+
params
|
|
1235
|
+
);
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
/** DELETE /ads/posts/google/{post_id} */
|
|
1239
|
+
public static deleteGoogleAdPost<T>(
|
|
1240
|
+
post_id: string,
|
|
1241
|
+
params?: Record<string, any>
|
|
1242
|
+
): AxiosPromise<Response<T>> {
|
|
1243
|
+
return Requests.processRoute(
|
|
1244
|
+
AdsRoute.routes.deleteGoogleAdPost,
|
|
1245
|
+
{},
|
|
1246
|
+
{ post_id },
|
|
1247
|
+
params
|
|
1248
|
+
);
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
/** POST /ads/posts/google/{post_id}/pause */
|
|
1252
|
+
public static pauseGoogleAdPost<T>(
|
|
1253
|
+
post_id: string,
|
|
1254
|
+
params?: Record<string, any>
|
|
1255
|
+
): AxiosPromise<Response<T>> {
|
|
1256
|
+
return Requests.processRoute(
|
|
1257
|
+
AdsRoute.routes.pauseGoogleAdPost,
|
|
1258
|
+
{},
|
|
1259
|
+
{ post_id },
|
|
1260
|
+
params
|
|
1261
|
+
);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
/** POST /ads/posts/google/{post_id}/enable */
|
|
1265
|
+
public static enableGoogleAdPost<T>(
|
|
1266
|
+
post_id: string,
|
|
1267
|
+
params?: Record<string, any>
|
|
1268
|
+
): AxiosPromise<Response<T>> {
|
|
1269
|
+
return Requests.processRoute(
|
|
1270
|
+
AdsRoute.routes.enableGoogleAdPost,
|
|
1271
|
+
{},
|
|
1272
|
+
{ post_id },
|
|
1273
|
+
params
|
|
1274
|
+
);
|
|
1275
|
+
}
|
|
1093
1276
|
|
|
1094
1277
|
|
|
1095
1278
|
}
|
package/src/api/Campaigns.ts
CHANGED
|
@@ -766,6 +766,86 @@ class Campaigns {
|
|
|
766
766
|
}
|
|
767
767
|
|
|
768
768
|
|
|
769
|
+
/**
|
|
770
|
+
* Search IGDB for the campaign's game.
|
|
771
|
+
* @param campaign_id The UUID of the campaign.
|
|
772
|
+
* @param params Query parameters (e.g., search_query, limit).
|
|
773
|
+
* @returns promise
|
|
774
|
+
*/
|
|
775
|
+
public static sourcingSearchIgdbForCampaignGame<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
776
|
+
return Requests.processRoute(CampaignsRoute.routes.sourcingSearchIgdbForCampaignGame, undefined, { campaign_id }, params);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Find popular similar games from IGDB.
|
|
781
|
+
* @param campaign_id The UUID of the campaign.
|
|
782
|
+
* @param params Query parameters (e.g., igdb_id, limit).
|
|
783
|
+
* @returns promise
|
|
784
|
+
*/
|
|
785
|
+
public static sourcingGetSimilarIgdbGames<T>(campaign_id: string, params: Record<string, any>): AxiosPromise<Response<T>> {
|
|
786
|
+
return Requests.processRoute(CampaignsRoute.routes.sourcingGetSimilarIgdbGames, undefined, { campaign_id }, params);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Find content creators for selected games. This does not save them to the database.
|
|
791
|
+
* @param campaign_id The UUID of the campaign.
|
|
792
|
+
* @param data The search criteria (source, igdb_ids, etc.).
|
|
793
|
+
* @returns promise
|
|
794
|
+
*/
|
|
795
|
+
public static sourcingFindCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>> {
|
|
796
|
+
return Requests.processRoute(CampaignsRoute.routes.sourcingFindCreators, data, { campaign_id });
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Update campaign sourcing settings.
|
|
801
|
+
* @param campaign_id The UUID of the campaign.
|
|
802
|
+
* @param data The settings to update (igdb_id, similar_game_igdb_ids, etc.).
|
|
803
|
+
* @returns promise
|
|
804
|
+
*/
|
|
805
|
+
public static updateSourcingSettings<T>(campaign_id: string, data: object): AxiosPromise<Response<T>> {
|
|
806
|
+
return Requests.processRoute(CampaignsRoute.routes.updateSourcingSettings, data, { campaign_id });
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Find and save content creators for selected games to the database.
|
|
811
|
+
* @param campaign_id The UUID of the campaign.
|
|
812
|
+
* @param data The search criteria (source, igdb_ids, etc.).
|
|
813
|
+
* @returns promise
|
|
814
|
+
*/
|
|
815
|
+
public static sourcingFindAndSaveCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>> {
|
|
816
|
+
return Requests.processRoute(CampaignsRoute.routes.sourcingFindAndSaveCreators, data, { campaign_id });
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Get sourced creators for a campaign from the database.
|
|
821
|
+
* @param campaign_id The UUID of the campaign.
|
|
822
|
+
* @param params Query parameters for filtering, sorting, and pagination.
|
|
823
|
+
* @returns promise
|
|
824
|
+
*/
|
|
825
|
+
public static getSourcedCreators<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
826
|
+
return Requests.processRoute(CampaignsRoute.routes.getSourcedCreators, undefined, { campaign_id }, params);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Get a single sourced creator.
|
|
831
|
+
* @param campaign_id The UUID of the campaign.
|
|
832
|
+
* @param sourced_creator_id The UUID of the sourced creator.
|
|
833
|
+
* @returns promise
|
|
834
|
+
*/
|
|
835
|
+
public static getSourcedCreator<T>(campaign_id: string, sourced_creator_id: string): AxiosPromise<Response<T>> {
|
|
836
|
+
return Requests.processRoute(CampaignsRoute.routes.getSourcedCreator, undefined, { campaign_id, sourced_creator_id });
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Update a sourced creator (e.g., approve or reject).
|
|
841
|
+
* @param campaign_id The UUID of the campaign.
|
|
842
|
+
* @param sourced_creator_id The UUID of the sourced creator to update.
|
|
843
|
+
* @param data The update data (e.g., is_approved, is_rejected).
|
|
844
|
+
* @returns promise
|
|
845
|
+
*/
|
|
846
|
+
public static updateSourcedCreator<T>(campaign_id: string, sourced_creator_id: string, data: object): AxiosPromise<Response<T>> {
|
|
847
|
+
return Requests.processRoute(CampaignsRoute.routes.updateSourcedCreator, data, { campaign_id, sourced_creator_id });
|
|
848
|
+
}
|
|
769
849
|
}
|
|
770
850
|
|
|
771
851
|
export default Campaigns;
|
package/src/routes/AdsRoute.ts
CHANGED
|
@@ -401,7 +401,66 @@ class AdsRoute {
|
|
|
401
401
|
url: "/ads/reports/time-performance",
|
|
402
402
|
method: HTTP_METHODS.GET,
|
|
403
403
|
},
|
|
404
|
-
|
|
404
|
+
|
|
405
|
+
getGoogleGeoSuggestions: {
|
|
406
|
+
url: "/ads/google/targeting/geo/suggest",
|
|
407
|
+
method: HTTP_METHODS.GET,
|
|
408
|
+
},
|
|
409
|
+
|
|
410
|
+
addGoogleLocationTargets: {
|
|
411
|
+
url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
|
|
412
|
+
method: HTTP_METHODS.POST,
|
|
413
|
+
},
|
|
414
|
+
|
|
415
|
+
getGoogleLocationTargets: {
|
|
416
|
+
url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
|
|
417
|
+
method: HTTP_METHODS.GET,
|
|
418
|
+
},
|
|
419
|
+
|
|
420
|
+
removeGoogleLocationTargets: {
|
|
421
|
+
url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
|
|
422
|
+
method: HTTP_METHODS.DELETE,
|
|
423
|
+
},
|
|
424
|
+
|
|
425
|
+
addGoogleProximityTarget: {
|
|
426
|
+
url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity",
|
|
427
|
+
method: HTTP_METHODS.POST,
|
|
428
|
+
},
|
|
429
|
+
|
|
430
|
+
updateGoogleTargetingSettings: {
|
|
431
|
+
url: "/ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings",
|
|
432
|
+
method: HTTP_METHODS.PUT,
|
|
433
|
+
},
|
|
434
|
+
|
|
435
|
+
getGoogleTargetingSettings: {
|
|
436
|
+
url: "/ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings",
|
|
437
|
+
method: HTTP_METHODS.GET,
|
|
438
|
+
},
|
|
439
|
+
getGoogleAdPosts: {
|
|
440
|
+
url: "/ads/posts/google",
|
|
441
|
+
method: HTTP_METHODS.GET,
|
|
442
|
+
},
|
|
443
|
+
createGoogleAdPost: {
|
|
444
|
+
url: "/ads/posts/google",
|
|
445
|
+
method: HTTP_METHODS.POST,
|
|
446
|
+
},
|
|
447
|
+
updateGoogleAdPost: {
|
|
448
|
+
url: "/ads/posts/google/{post_id}",
|
|
449
|
+
method: HTTP_METHODS.PUT,
|
|
450
|
+
},
|
|
451
|
+
deleteGoogleAdPost: {
|
|
452
|
+
url: "/ads/posts/google/{post_id}",
|
|
453
|
+
method: HTTP_METHODS.DELETE,
|
|
454
|
+
},
|
|
455
|
+
pauseGoogleAdPost: {
|
|
456
|
+
url: "/ads/posts/google/{post_id}/pause",
|
|
457
|
+
method: HTTP_METHODS.POST,
|
|
458
|
+
},
|
|
459
|
+
enableGoogleAdPost: {
|
|
460
|
+
url: "/ads/posts/google/{post_id}/enable",
|
|
461
|
+
method: HTTP_METHODS.POST,
|
|
462
|
+
},
|
|
463
|
+
|
|
405
464
|
};
|
|
406
465
|
}
|
|
407
466
|
|
|
@@ -61,6 +61,14 @@ class CampaignsRoute {
|
|
|
61
61
|
listPayouts :{ url: '/campaigns/{campaign_id}/payouts', method: HTTP_METHODS.GET },
|
|
62
62
|
generateCampaignContract : { url: '/campaigns/{campaign_id}/influencers/{user_id}/contract', method: HTTP_METHODS.POST },
|
|
63
63
|
sendCampaignContractWithDocusign : { url: '/campaigns/{campaign_id}/influencers/{user_id}/docusign', method: HTTP_METHODS.POST },
|
|
64
|
+
sourcingSearchIgdbForCampaignGame: { url: '/campaigns/{campaign_id}/sourcing/search-game', method: HTTP_METHODS.GET },
|
|
65
|
+
sourcingGetSimilarIgdbGames: { url: '/campaigns/{campaign_id}/sourcing/similar-games', method: HTTP_METHODS.GET },
|
|
66
|
+
sourcingFindCreators: { url: '/campaigns/{campaign_id}/sourcing/find-creators', method: HTTP_METHODS.POST },
|
|
67
|
+
updateSourcingSettings: { url: '/campaigns/{campaign_id}/sourcing/settings', method: HTTP_METHODS.PUT },
|
|
68
|
+
sourcingFindAndSaveCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-creators', method: HTTP_METHODS.POST },
|
|
69
|
+
getSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators', method: HTTP_METHODS.GET },
|
|
70
|
+
getSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.GET },
|
|
71
|
+
updateSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.PUT },
|
|
64
72
|
|
|
65
73
|
|
|
66
74
|
};
|