@redonvn/zalo-ads-sdk 0.2.13 → 0.2.14
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/index.d.mts +651 -19
- package/dist/index.d.ts +651 -19
- package/dist/index.js +2468 -1543
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2442 -1543
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -688,6 +688,50 @@ type ZaloInstantPagesListInstantPageSharesResponse = {
|
|
|
688
688
|
oaPermission: number;
|
|
689
689
|
}>;
|
|
690
690
|
};
|
|
691
|
+
/**
|
|
692
|
+
* Danh mục mã phân quyền người dùng được chia sẻ trên Instant Page (POST /api/instant-pages/{instantPageId}/shares):
|
|
693
|
+
* - ADMIN (1): Quản trị viên (Toàn quyền quản trị, phân quyền thành viên, gắn quảng cáo, xuất bản trang).
|
|
694
|
+
* - UPDATE_PAGE (2): Chỉnh sửa trang (Quyền chỉnh sửa nội dung giao diện trang).
|
|
695
|
+
* - DOWNLOAD_INFO (3): Tải thông tin khách hàng (Quyền tải file lead/đơn hàng).
|
|
696
|
+
* - READ_ONLY (4): Chỉ xem (Chỉ xem trước trang và báo cáo).
|
|
697
|
+
*/
|
|
698
|
+
declare const ZaloInstantPageSharePermission: {
|
|
699
|
+
/** Quản trị viên: Toàn quyền quản trị, chỉnh sửa, phân quyền và gắn quảng cáo. */
|
|
700
|
+
readonly ADMIN: 1;
|
|
701
|
+
/** Biên tập viên: Quyền chỉnh sửa nội dung trang. */
|
|
702
|
+
readonly UPDATE_PAGE: 2;
|
|
703
|
+
/** Tải dữ liệu: Quyền tải thông tin khách hàng / Leads. */
|
|
704
|
+
readonly DOWNLOAD_INFO: 3;
|
|
705
|
+
/** Chỉ xem: Quyền xem trước và thống kê. */
|
|
706
|
+
readonly READ_ONLY: 4;
|
|
707
|
+
};
|
|
708
|
+
type ZaloInstantPageSharePermissionValue = typeof ZaloInstantPageSharePermission[keyof typeof ZaloInstantPageSharePermission];
|
|
709
|
+
/** Thông tin phân quyền cho một thành viên trên Instant Page. */
|
|
710
|
+
type ZaloInstantPagesShareMemberDto = {
|
|
711
|
+
/** ID người dùng được phân quyền (ví dụ: 2394323333639486). */
|
|
712
|
+
userId: number;
|
|
713
|
+
/** Mã phân quyền: 1 (ADMIN), 2 (UPDATE_PAGE), 3 (DOWNLOAD_INFO), 4 (READ_ONLY). */
|
|
714
|
+
permission: ZaloInstantPageSharePermissionValue | number;
|
|
715
|
+
};
|
|
716
|
+
/** Cập nhật danh sách người dùng được phân quyền / chia sẻ trên Instant Page (`POST /api/instant-pages/{instantPageId}/shares`). */
|
|
717
|
+
type ZaloInstantPagesUpdateInstantPageSharesRequest = {
|
|
718
|
+
/** ID Instant Page cần phân quyền chia sẻ. */
|
|
719
|
+
instantPageId: number;
|
|
720
|
+
/** Danh sách thành viên và mã quyền tương ứng. Body HTTP là JSON Array: `[{ userId, permission }]`. */
|
|
721
|
+
shares: Array<ZaloInstantPagesShareMemberDto>;
|
|
722
|
+
};
|
|
723
|
+
type ZaloInstantPagesUpdateInstantPageSharesResponse = {
|
|
724
|
+
/** Danh sách thành viên được chia sẻ sau khi cập nhật. */
|
|
725
|
+
data?: Array<{
|
|
726
|
+
userId: number;
|
|
727
|
+
permission: number;
|
|
728
|
+
name?: string;
|
|
729
|
+
avatar?: string;
|
|
730
|
+
oaPermission?: number;
|
|
731
|
+
}>;
|
|
732
|
+
code?: number;
|
|
733
|
+
msg?: string;
|
|
734
|
+
};
|
|
691
735
|
/** Lấy các danh sách người dùng có thể dùng trong Instant Page, gồm chủ sở hữu, người tạo và người được chia sẻ. Đây là entry tool thuộc lane zalo-ads-content; dùng để chọn hoặc đối chiếu người dùng trước khi lọc, chia sẻ hay kiểm tra quyền trên Instant Page cụ thể. Khác với tool shares của một trang, kết quả này là danh mục người dùng theo vai trò trên phạm vi Instant Page. */
|
|
692
736
|
type ZaloInstantPagesListInstantPageUsersRequest = Record<string, never>;
|
|
693
737
|
type ZaloInstantPagesListInstantPageUsersResponse = {
|
|
@@ -951,6 +995,43 @@ type ZaloInstantPagesUpsertInstantPageFormResponse = {
|
|
|
951
995
|
}>;
|
|
952
996
|
[key: string]: unknown;
|
|
953
997
|
};
|
|
998
|
+
/**
|
|
999
|
+
* Khởi tạo một Instant Page mới từ Template mẫu trên domain page.ads.zalo.me.
|
|
1000
|
+
*
|
|
1001
|
+
* Bẫy kỹ thuật & nghiệp vụ:
|
|
1002
|
+
* - templateId = 4: Kịch bản giới thiệu thương hiệu / Tin nhắn (bắt buộc dùng cho Quảng cáo Tin nhắn Type 30).
|
|
1003
|
+
* - oaId: Bắt buộc là chuỗi ID 64-bit của Official Account (ví dụ: '4411301888544366414' từ GET /api/official-accounts), KHÔNG dùng ID số nguyên ngắn.
|
|
1004
|
+
* - Sau khi tạo, Instant Page ở trạng thái nháp (status: 0). Cần gọi updateInstantPage với status: 1 (truyền đồng thời cả draft và content) để xuất bản Live.
|
|
1005
|
+
*/
|
|
1006
|
+
type ZaloInstantPagesCreateInstantPageRequest = {
|
|
1007
|
+
/** Mã mẫu giao diện: 1 (Trang bán sản phẩm form trực tiếp), 3 (Trang bán sản phẩm form popup), 4 (Kịch bản tin nhắn), 5 (Trang đệm mua sắm). */
|
|
1008
|
+
templateId: 1 | 3 | 4 | 5 | number;
|
|
1009
|
+
/** Mã định danh 64-bit của Official Account liên kết (Lấy từ GET /api/official-accounts). */
|
|
1010
|
+
oaId?: string;
|
|
1011
|
+
};
|
|
1012
|
+
type ZaloInstantPagesCreateInstantPageResponse = {
|
|
1013
|
+
/** Bản ghi Instant Page mới được khởi tạo từ template. */
|
|
1014
|
+
data: {
|
|
1015
|
+
/** Mã số định danh nội bộ của Instant Page mới được cấp phát. */
|
|
1016
|
+
id: number;
|
|
1017
|
+
/** Mã public dùng cho URL người dùng cuối (https://page.zalo.me/p/{publicId}). */
|
|
1018
|
+
publicId: string;
|
|
1019
|
+
/** Tên mặc định của Instant Page theo template. */
|
|
1020
|
+
name: string;
|
|
1021
|
+
/** Cờ hoạt động: 0 = Tắt, 1 = Bật. */
|
|
1022
|
+
active: ZaloInstantPageActive | number;
|
|
1023
|
+
/** Mã trạng thái: 0 = Nháp mới tạo, 1 = Đã xuất bản Live. */
|
|
1024
|
+
status: ZaloInstantPageStatus | number;
|
|
1025
|
+
/** Phiên bản cấu trúc trang. */
|
|
1026
|
+
version: number;
|
|
1027
|
+
/** Mã mẫu giao diện đã dùng để khởi tạo. */
|
|
1028
|
+
templateId: number;
|
|
1029
|
+
/** Mã định danh 64-bit của Official Account liên kết. */
|
|
1030
|
+
oaId?: string;
|
|
1031
|
+
[key: string]: unknown;
|
|
1032
|
+
};
|
|
1033
|
+
[key: string]: unknown;
|
|
1034
|
+
};
|
|
954
1035
|
|
|
955
1036
|
type BodyType = "json" | "urlencoded" | "multipart" | "none";
|
|
956
1037
|
interface OperationDefinition {
|
|
@@ -1064,10 +1145,35 @@ type ZaloAdsUpdateFlowResponse = {
|
|
|
1064
1145
|
};
|
|
1065
1146
|
};
|
|
1066
1147
|
interface ZaloAdsAdPriceSettingsDto {
|
|
1148
|
+
/**
|
|
1149
|
+
* Mức giá đặt thầu (VNĐ).
|
|
1150
|
+
* - Đặt 0 khi chọn đấu thầu tự động hoặc khi Price.Type = 5 (CPA - Lượt liên hệ).
|
|
1151
|
+
* - Bắt buộc > 0 khi chọn đấu thầu thủ công (CPC).
|
|
1152
|
+
*/
|
|
1067
1153
|
Bid: number;
|
|
1154
|
+
/**
|
|
1155
|
+
* Phương thức tính tiền:
|
|
1156
|
+
* - 1: Lượt hiển thị (CPM) - Website Ads legacy.
|
|
1157
|
+
* - 2: Lượt nhấn (CPC) - Website, Form, Message, OA, Video, Commerce, Article.
|
|
1158
|
+
* - 5: Lượt liên hệ (CPA) - Dành riêng cho Quảng cáo Tin nhắn (Type 30) khi tối ưu theo lượt khách nhắn tin liên hệ.
|
|
1159
|
+
*/
|
|
1068
1160
|
Type: number;
|
|
1161
|
+
/**
|
|
1162
|
+
* Hạn mức chi tiêu (VNĐ).
|
|
1163
|
+
* - Quảng cáo Tin nhắn yêu cầu ngân sách tối thiểu 600,000 VNĐ.
|
|
1164
|
+
*/
|
|
1069
1165
|
Limit: number;
|
|
1166
|
+
/**
|
|
1167
|
+
* Phạm vi áp dụng ngân sách (ZaloAdsPriceLimitType):
|
|
1168
|
+
* - 1: Toàn lịch chạy (LIFE_TIME - áp dụng ngân sách tổng cho toàn bộ thời gian chạy).
|
|
1169
|
+
* - 2: Mỗi ngày (DAILY - hạn mức ngân sách phân bổ theo từng ngày).
|
|
1170
|
+
*/
|
|
1070
1171
|
LimitType: number;
|
|
1172
|
+
/**
|
|
1173
|
+
* Phương thức chi tiêu / tối ưu hóa:
|
|
1174
|
+
* - 0: Đặt giá thầu thủ công (Manual Bid).
|
|
1175
|
+
* - 1: Tự động tối ưu chi phí theo ngân sách (Total budget / Auto optimize, bắt buộc khi Type = 5 CPA).
|
|
1176
|
+
*/
|
|
1071
1177
|
SpendingMethod: number;
|
|
1072
1178
|
}
|
|
1073
1179
|
interface ZaloAdsAdMultiImageItemDto {
|
|
@@ -1089,31 +1195,124 @@ interface ZaloAdsAdInfoSettingsDto {
|
|
|
1089
1195
|
Title?: string;
|
|
1090
1196
|
Description?: string;
|
|
1091
1197
|
Caption?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Chú thích mở rộng (không bắt buộc).
|
|
1200
|
+
* - Quy chuẩn độ dài: Tối thiểu 90 ký tự, tối đa 2000 ký tự (90 - 2,000 ký tự).
|
|
1201
|
+
* - Nếu để trống "" hoặc không truyền: Hợp lệ.
|
|
1202
|
+
* - Nếu đã nhập: Bắt buộc từ 90 đến 2,000 ký tự.
|
|
1203
|
+
* - Tự động kích hoạt mã bố cục mở rộng XTemplates = 49 (LONG_CAPTION).
|
|
1204
|
+
*/
|
|
1205
|
+
LongCaption?: string;
|
|
1092
1206
|
Action?: number;
|
|
1093
1207
|
ButtonText?: string;
|
|
1094
1208
|
MoreInfo?: string;
|
|
1095
|
-
TargetUrl?: string
|
|
1209
|
+
TargetUrl?: string | {
|
|
1210
|
+
Url?: string;
|
|
1211
|
+
DisplayText?: string;
|
|
1212
|
+
};
|
|
1096
1213
|
Phone?: string;
|
|
1214
|
+
SupportPhone?: string;
|
|
1097
1215
|
Address?: string;
|
|
1216
|
+
XTemplates?: Array<number>;
|
|
1217
|
+
Template?: number;
|
|
1218
|
+
WebsiteCategories?: Array<number>;
|
|
1219
|
+
AdtimaAdCategories?: Array<number>;
|
|
1220
|
+
Files?: Array<unknown>;
|
|
1098
1221
|
}
|
|
1099
1222
|
interface ZaloAdsAdAppInfoSettingsDto {
|
|
1100
1223
|
AppType?: number;
|
|
1101
1224
|
OsType?: number;
|
|
1102
1225
|
StoreUrl?: string;
|
|
1103
1226
|
}
|
|
1227
|
+
interface ZaloAdsAdTargetingProvinceItemDto {
|
|
1228
|
+
/**
|
|
1229
|
+
* Mã định danh Tỉnh/Thành phố theo danh mục 34 Cụm Tỉnh mới sau sáp nhập 2026 (`newProvinces` trên Zalo Ads).
|
|
1230
|
+
*
|
|
1231
|
+
* QUAN TRỌNG: Giao diện Zalo Ads Angular Web chỉ phân giải cây Xã/Phường theo 34 mã cụm này.
|
|
1232
|
+
* Nếu truyền mã tỉnh lẻ đã bị sáp nhập (ví dụ: 'VN75' - Bình Dương, 'VN45' - Vũng Tàu, 'VN76' - Bình Phước),
|
|
1233
|
+
* giao diện web sẽ bị lỗi ngoại lệ popup: 'Invalid wards params'.
|
|
1234
|
+
*
|
|
1235
|
+
* Quy tắc ánh xạ mã cụm tỉnh:
|
|
1236
|
+
* - Cụm 'VN20' (Hồ Chí Minh): Bao gồm TP.HCM, Bình Dương ('VN75'), Bà Rịa - Vũng Tàu ('VN45').
|
|
1237
|
+
* - Cụm 'VN43' (Đồng Nai): Bao gồm Đồng Nai, Bình Phước ('VN76').
|
|
1238
|
+
* - Cụm 'VN44' (Hà Nội): Giữ nguyên không sáp nhập.
|
|
1239
|
+
* - Cụm 'VN33' (Tây Ninh): Bao gồm Tây Ninh, Long An ('VN24').
|
|
1240
|
+
* - Cụm 'VN01' (An Giang): Bao gồm An Giang, Kiên Giang ('VN21').
|
|
1241
|
+
* - Cụm 'VN87' (Cần Thơ): Bao gồm Cần Thơ, Sóc Trăng ('VN65'), Hậu Giang ('VN93').
|
|
1242
|
+
* - Cụm 'VN77' (Cà Mau): Bao gồm Cà Mau, Bạc Liêu ('VN73').
|
|
1243
|
+
* - Cụm 'VN09' (Đồng Tháp): Bao gồm Đồng Tháp, Tiền Giang ('VN37').
|
|
1244
|
+
* - Cụm 'VN69' (Vĩnh Long): Bao gồm Vĩnh Long, Bến Tre ('VN03'), Trà Vinh ('VN67').
|
|
1245
|
+
*/
|
|
1246
|
+
Id: string;
|
|
1247
|
+
/** Danh sách mã xã/phường mục tiêu (mảng rỗng [] biểu thị chọn toàn bộ tỉnh/thành). */
|
|
1248
|
+
Districts: Array<number | string>;
|
|
1249
|
+
}
|
|
1250
|
+
interface ZaloAdsAdTargetingRegionItemDto {
|
|
1251
|
+
/**
|
|
1252
|
+
* Mã vùng miền:
|
|
1253
|
+
* - 1: Miền Bắc (18 cụm tỉnh mới / 28 tỉnh cũ)
|
|
1254
|
+
* - 2: Miền Trung (8 cụm tỉnh mới / 16 tỉnh cũ)
|
|
1255
|
+
* - 3: Miền Nam (8 cụm tỉnh mới / 19 tỉnh cũ)
|
|
1256
|
+
*/
|
|
1257
|
+
Id: number;
|
|
1258
|
+
/**
|
|
1259
|
+
* Danh sách tỉnh/thành phố được chọn trong vùng.
|
|
1260
|
+
* Theo cơ chế compressAdData của Zalo Ads Client Engine:
|
|
1261
|
+
* Nếu mảng Provinces là rỗng ([]), hệ thống hiểu là CHỌN TOÀN BỘ VÙNG MIỀN ĐÓ.
|
|
1262
|
+
*/
|
|
1263
|
+
Provinces: Array<ZaloAdsAdTargetingProvinceItemDto>;
|
|
1264
|
+
}
|
|
1265
|
+
interface ZaloAdsAdTargetingLocationContainerDto {
|
|
1266
|
+
Includes: Array<ZaloAdsAdTargetingRegionItemDto>;
|
|
1267
|
+
Excludes: Array<ZaloAdsAdTargetingRegionItemDto>;
|
|
1268
|
+
}
|
|
1269
|
+
interface ZaloAdsAdLocationSettingsDto {
|
|
1270
|
+
Cities?: Array<unknown>;
|
|
1271
|
+
Addresses?: Array<unknown>;
|
|
1272
|
+
/** Nhắm chọn cấp Tỉnh/Thành theo cấu trúc phân cấp Vùng miền. */
|
|
1273
|
+
DistrictTargeting?: ZaloAdsAdTargetingLocationContainerDto;
|
|
1274
|
+
/** Nhắm chọn chi tiết cấp Phường/Xã mới theo quy chuẩn 2026. */
|
|
1275
|
+
WardTargeting?: ZaloAdsAdTargetingLocationContainerDto;
|
|
1276
|
+
/** Cờ đánh dấu đã chuyển đổi sang cấp xã/phường. */
|
|
1277
|
+
IsConvertedToWard?: boolean;
|
|
1278
|
+
}
|
|
1104
1279
|
interface ZaloAdsAdTargetingSettingsDto {
|
|
1105
1280
|
Gender?: number;
|
|
1106
1281
|
AgeRanges?: Array<number>;
|
|
1282
|
+
NewAgeRanges?: Array<number>;
|
|
1283
|
+
Location?: ZaloAdsAdLocationSettingsDto;
|
|
1107
1284
|
Locations?: string;
|
|
1108
1285
|
Provinces?: Array<number>;
|
|
1109
1286
|
DistrictsTargeting?: string;
|
|
1110
1287
|
WardsTargeting?: string;
|
|
1111
1288
|
Platforms?: Array<number>;
|
|
1112
1289
|
NetworkTypes?: Array<number>;
|
|
1290
|
+
Os?: Array<number>;
|
|
1113
1291
|
OsTypes?: Array<number>;
|
|
1292
|
+
AdvanceTargeting?: {
|
|
1293
|
+
Includes?: Array<number>;
|
|
1294
|
+
Excludes?: Array<number>;
|
|
1295
|
+
};
|
|
1114
1296
|
AdvanceTargetings?: Array<number>;
|
|
1297
|
+
CustomAudienceId?: number;
|
|
1298
|
+
ExcludedAudienceId?: number;
|
|
1299
|
+
Retargeting?: string;
|
|
1300
|
+
DmpAudience?: string;
|
|
1301
|
+
PhoneList?: Array<unknown>;
|
|
1115
1302
|
CustomAudiences?: Array<number>;
|
|
1116
1303
|
ExcludeCustomAudiences?: Array<number>;
|
|
1304
|
+
IncludedAudiences?: {
|
|
1305
|
+
Phones?: Array<unknown>;
|
|
1306
|
+
LeadSignal?: Array<unknown>;
|
|
1307
|
+
};
|
|
1308
|
+
ExcludedAudiences?: {
|
|
1309
|
+
Phones?: Array<unknown>;
|
|
1310
|
+
Forms?: Array<unknown>;
|
|
1311
|
+
Messages?: Array<unknown>;
|
|
1312
|
+
FormEvents?: Array<unknown>;
|
|
1313
|
+
MessageOAs?: Array<unknown>;
|
|
1314
|
+
MessageNonOAEvents?: Array<unknown>;
|
|
1315
|
+
} | null;
|
|
1117
1316
|
}
|
|
1118
1317
|
interface ZaloAdsAdZVideoSettingsDto {
|
|
1119
1318
|
Url: string;
|
|
@@ -1137,6 +1336,11 @@ interface ZaloAdsAdSettingsDto {
|
|
|
1137
1336
|
Rating?: number;
|
|
1138
1337
|
NewFeatures?: Array<number>;
|
|
1139
1338
|
CreatedClientVersion?: number;
|
|
1339
|
+
/**
|
|
1340
|
+
* Phương thức phân phối quảng cáo (0: Tiêu chuẩn - Standard, 1: Tăng tốc - SpeedUp).
|
|
1341
|
+
* Chỉ có hiệu lực khi Price.LimitType = 1 (Toàn lịch chạy).
|
|
1342
|
+
*/
|
|
1343
|
+
DeliveryType?: ZaloAdsDeliveryType | number;
|
|
1140
1344
|
}
|
|
1141
1345
|
interface ZaloAdsAdUpdatePayloadDto {
|
|
1142
1346
|
AdId: number;
|
|
@@ -1155,7 +1359,7 @@ interface ZaloAdsAdUpdatePayloadDto {
|
|
|
1155
1359
|
ZaloFeedId?: string | number;
|
|
1156
1360
|
ZaloVideoId?: number;
|
|
1157
1361
|
MiniPageId?: number;
|
|
1158
|
-
UseConversion?:
|
|
1362
|
+
UseConversion?: ZaloAdsUseConversionValue | number;
|
|
1159
1363
|
ConversionId?: number;
|
|
1160
1364
|
Report?: Record<string, number>;
|
|
1161
1365
|
}
|
|
@@ -1166,12 +1370,30 @@ declare const ZaloAdsActionType: {
|
|
|
1166
1370
|
readonly THU_NGAY: 3;
|
|
1167
1371
|
readonly TAI_NGAY: 4;
|
|
1168
1372
|
readonly XEM_THEM: 5;
|
|
1373
|
+
readonly NGHE_NGAY: 6;
|
|
1374
|
+
readonly CHOI_NGAY: 7;
|
|
1375
|
+
readonly DANG_KY: 8;
|
|
1376
|
+
readonly GOI_DIEN: 9;
|
|
1377
|
+
/** Dành riêng cho Quảng cáo Official Account (Type 2) */
|
|
1169
1378
|
readonly QUAN_TAM_OA: 6;
|
|
1170
|
-
readonly NGHE_NGAY: 7;
|
|
1171
|
-
readonly CHOI_NGAY: 8;
|
|
1172
|
-
readonly DANG_KY: 9;
|
|
1173
|
-
readonly GOI_DIEN: 10;
|
|
1174
1379
|
};
|
|
1380
|
+
/** Danh mục mã nguồn video trên Zalo Ads (Settings.ZVideo.Src) */
|
|
1381
|
+
declare const ZaloAdsVideoSrc: {
|
|
1382
|
+
readonly UNUSED: -1;
|
|
1383
|
+
/** Sử dụng mã Zalo Video được cấp từ kênh */
|
|
1384
|
+
readonly VIDEO_CODE: 1;
|
|
1385
|
+
/** Tự tải video lên hoặc chọn từ Thư viện Media */
|
|
1386
|
+
readonly SELF_UPLOAD: 2;
|
|
1387
|
+
};
|
|
1388
|
+
type ZaloAdsVideoSrcValue = typeof ZaloAdsVideoSrc[keyof typeof ZaloAdsVideoSrc];
|
|
1389
|
+
/** Danh mục chu kỳ áp dụng ngân sách trên Zalo Ads (Settings.Price.LimitType) - Alias của ZaloAdsPriceLimitType */
|
|
1390
|
+
declare const ZaloAdsBudgetScheduleType: {
|
|
1391
|
+
/** Toàn lịch chạy */
|
|
1392
|
+
readonly TOTAL_SCHEDULE: 1;
|
|
1393
|
+
/** Mỗi ngày */
|
|
1394
|
+
readonly DAILY: 2;
|
|
1395
|
+
};
|
|
1396
|
+
type ZaloAdsBudgetScheduleTypeValue = typeof ZaloAdsBudgetScheduleType[keyof typeof ZaloAdsBudgetScheduleType];
|
|
1175
1397
|
/** Danh mục mã khoảng tuổi nhắm chọn đối tượng trên Zalo Ads */
|
|
1176
1398
|
declare const ZaloAdsAgeRangeId: {
|
|
1177
1399
|
readonly UNDER_18: 10282;
|
|
@@ -1188,11 +1410,245 @@ declare const ZaloAdsOsId: {
|
|
|
1188
1410
|
readonly IOS: 1;
|
|
1189
1411
|
readonly PC: 3;
|
|
1190
1412
|
};
|
|
1191
|
-
|
|
1413
|
+
type ZaloAdsOsIdValue = typeof ZaloAdsOsId[keyof typeof ZaloAdsOsId];
|
|
1414
|
+
/** Danh mục mã 3 Vùng miền chuẩn trên Zalo Ads Targeting Engine */
|
|
1415
|
+
declare const ZaloAdsRegionId: {
|
|
1416
|
+
/** Miền Bắc (28 tỉnh/thành phố) */
|
|
1417
|
+
readonly NORTH: 1;
|
|
1418
|
+
/** Miền Trung (16 tỉnh/thành phố) */
|
|
1419
|
+
readonly CENTRAL: 2;
|
|
1420
|
+
/** Miền Nam (19 tỉnh/thành phố) */
|
|
1421
|
+
readonly SOUTH: 3;
|
|
1422
|
+
};
|
|
1423
|
+
type ZaloAdsRegionIdValue = typeof ZaloAdsRegionId[keyof typeof ZaloAdsRegionId];
|
|
1424
|
+
/**
|
|
1425
|
+
* Danh mục mã Tỉnh/Thành phố chuẩn trên Zalo Ads Targeting Engine (theo chuẩn ISO 3166-2:VN tiền tố 'VN')
|
|
1426
|
+
*/
|
|
1427
|
+
declare const ZaloAdsProvinceCode: {
|
|
1428
|
+
readonly HANOI: "VN44";
|
|
1429
|
+
readonly HAI_PHONG: "VN13";
|
|
1430
|
+
readonly BAC_NINH: "VN74";
|
|
1431
|
+
readonly QUANG_NINH: "VN30";
|
|
1432
|
+
readonly HAI_DUONG: "VN79";
|
|
1433
|
+
readonly HUNG_YEN: "VN81";
|
|
1434
|
+
readonly VINH_PHUC: "VN86";
|
|
1435
|
+
readonly THAI_NGUYEN: "VN85";
|
|
1436
|
+
readonly BAC_GIANG: "VN71";
|
|
1437
|
+
readonly PHU_THO: "VN83";
|
|
1438
|
+
readonly NAM_DINH: "VN82";
|
|
1439
|
+
readonly THAI_BINH: "VN35";
|
|
1440
|
+
readonly NINH_BINH: "VN59";
|
|
1441
|
+
readonly THANH_HOA: "VN34";
|
|
1442
|
+
readonly NGHE_AN: "VN58";
|
|
1443
|
+
readonly HA_TINH: "VN52";
|
|
1444
|
+
readonly HOA_BINH: "VN53";
|
|
1445
|
+
readonly SON_LA: "VN32";
|
|
1446
|
+
readonly DIEN_BIEN: "VN92";
|
|
1447
|
+
readonly LAI_CHAU: "VN89";
|
|
1448
|
+
readonly LAO_CAI: "VN90";
|
|
1449
|
+
readonly YEN_BAI: "VN70";
|
|
1450
|
+
readonly TUYEN_QUANG: "VN68";
|
|
1451
|
+
readonly HA_GIANG: "VN50";
|
|
1452
|
+
readonly CAO_BANG: "VN05";
|
|
1453
|
+
readonly BAC_KAN: "VN72";
|
|
1454
|
+
readonly LANG_SON: "VN39";
|
|
1455
|
+
readonly HA_NAM: "VN80";
|
|
1456
|
+
readonly DA_NANG: "VN78";
|
|
1457
|
+
readonly THUA_THIEN_HUE: "VN66";
|
|
1458
|
+
readonly QUANG_NAM: "VN84";
|
|
1459
|
+
readonly QUANG_NGAI: "VN63";
|
|
1460
|
+
readonly BINH_DINH: "VN46";
|
|
1461
|
+
readonly PHU_YEN: "VN61";
|
|
1462
|
+
readonly KHANH_HOA: "VN54";
|
|
1463
|
+
readonly NINH_THUAN: "VN60";
|
|
1464
|
+
readonly BINH_THUAN: "VN47";
|
|
1465
|
+
readonly KON_TUM: "VN55";
|
|
1466
|
+
readonly GIA_LAI: "VN49";
|
|
1467
|
+
readonly DAK_LAK: "VN88";
|
|
1468
|
+
readonly DAK_NONG: "VN91";
|
|
1469
|
+
readonly LAM_DONG: "VN23";
|
|
1470
|
+
readonly QUANG_BINH: "VN62";
|
|
1471
|
+
readonly QUANG_TRI: "VN64";
|
|
1472
|
+
readonly HO_CHI_MINH: "VN20";
|
|
1473
|
+
readonly BINH_DUONG: "VN75";
|
|
1474
|
+
readonly DONG_NAI: "VN43";
|
|
1475
|
+
readonly BA_RIA_VUNG_TAU: "VN45";
|
|
1476
|
+
readonly LONG_AN: "VN24";
|
|
1477
|
+
readonly TIEN_GIANG: "VN37";
|
|
1478
|
+
readonly BEN_TRE: "VN03";
|
|
1479
|
+
readonly DONG_THAP: "VN09";
|
|
1480
|
+
readonly VINH_LONG: "VN69";
|
|
1481
|
+
readonly CAN_THO: "VN87";
|
|
1482
|
+
readonly HAU_GIANG: "VN93";
|
|
1483
|
+
readonly AN_GIANG: "VN01";
|
|
1484
|
+
readonly KIEN_GIANG: "VN21";
|
|
1485
|
+
readonly SOC_TRANG: "VN65";
|
|
1486
|
+
readonly BAC_LIEU: "VN73";
|
|
1487
|
+
readonly CA_MAU: "VN77";
|
|
1488
|
+
readonly TAY_NINH: "VN33";
|
|
1489
|
+
readonly BINH_PHUOC: "VN76";
|
|
1490
|
+
readonly TRA_VINH: "VN67";
|
|
1491
|
+
};
|
|
1492
|
+
type ZaloAdsProvinceCodeValue = typeof ZaloAdsProvinceCode[keyof typeof ZaloAdsProvinceCode];
|
|
1493
|
+
/**
|
|
1494
|
+
* Chế độ phân phối ngân sách quảng cáo trên Zalo Ads (Settings.DeliveryType):
|
|
1495
|
+
* - 0: Tiêu chuẩn (Standard) - Phân phối ngân sách đồng đều suốt toàn bộ thời gian chạy quảng cáo.
|
|
1496
|
+
* - 1: Tăng tốc (SpeedUp) - Phân phối quảng cáo nhanh nhất có thể cho tới khi cạn ngân sách.
|
|
1497
|
+
*
|
|
1498
|
+
* Lưu ý: Chỉ xuất hiện và có hiệu lực khi Price.LimitType = 1 (Toàn lịch chạy).
|
|
1499
|
+
*/
|
|
1500
|
+
type ZaloAdsDeliveryType = 0 | 1;
|
|
1501
|
+
/**
|
|
1502
|
+
* Danh mục kiểu phân phối ngân sách quảng cáo ("Cách phân phối" trên giao diện Zalo Ads):
|
|
1503
|
+
* Trường dữ liệu lưu trữ tại: `Settings.DeliveryType` (kiểu số nguyên 0 hoặc 1).
|
|
1504
|
+
*
|
|
1505
|
+
* - STANDARD (0): Tiêu chuẩn (Paced Delivery)
|
|
1506
|
+
* Thuật toán Zalo Ads rải đều ngân sách xuyên suốt các khung giờ trong ngày/toàn lịch chạy
|
|
1507
|
+
* dựa theo lưu lượng thị trường và tỷ lệ giờ cao điểm. Tự động điều tiết hãm tốc độ cắn tiền
|
|
1508
|
+
* nếu phát hiện ngân sách tiêu xài quá nhanh. Phù hợp duy trì thương hiệu, ổn định chi phí CPA.
|
|
1509
|
+
*
|
|
1510
|
+
* - SPEED_UP / ACCELERATED (1): Tăng tốc (Uncapped Pacing)
|
|
1511
|
+
* Gỡ bỏ hoàn toàn bộ điều tiết tốc độ. Miễn là có phiên đấu giá (auction) phù hợp với giá thầu
|
|
1512
|
+
* và tệp đối tượng nhắm chọn, hệ thống sẽ phân phối tối đa ngay lập tức cho đến khi cạn kiệt ngân sách.
|
|
1513
|
+
* Phù hợp cho chiến dịch Flash Sale, sự kiện ngắn, hoặc cần tối đa hóa tiếp cận trong thời gian ngắn.
|
|
1514
|
+
*
|
|
1515
|
+
* ĐIỀU KIỆN NGẦM ĐỂ HIỂN THỊ TRÊN UI (hàm `shouldHaveDeliveryType` trong mã nguồn Angular):
|
|
1516
|
+
* 1. `Price.Type in [CPC (2), CPA (5)]`: Hình thức tính tiền phải là CPC hoặc CPA.
|
|
1517
|
+
* 2. `Price.LimitType === LIFE_TIME (1)`: Bắt buộc chọn ngân sách "Toàn lịch chạy" (không áp dụng cho ngân sách mỗi ngày).
|
|
1518
|
+
* 3. `validDaysRun(StartDate, EndDate) >= 2`: Thời gian chạy chiến dịch tối thiểu từ 2 ngày trở lên.
|
|
1519
|
+
*/
|
|
1192
1520
|
declare const ZaloAdsDeliveryType: {
|
|
1193
|
-
|
|
1194
|
-
readonly
|
|
1521
|
+
/** Tiêu chuẩn (0): Phân phối đồng đều nhất có thể theo giờ cao điểm (Standard). */
|
|
1522
|
+
readonly STANDARD: 0;
|
|
1523
|
+
/** Tăng tốc (1): Phân phối nhanh nhất có thể để tối đa hóa tiếp cận (SpeedUp). */
|
|
1524
|
+
readonly SPEED_UP: 1;
|
|
1525
|
+
/** Alias tương thích ngược cho SPEED_UP (1). */
|
|
1526
|
+
readonly ACCELERATED: 1;
|
|
1527
|
+
};
|
|
1528
|
+
type ZaloAdsDeliveryTypeValue = typeof ZaloAdsDeliveryType[keyof typeof ZaloAdsDeliveryType];
|
|
1529
|
+
/**
|
|
1530
|
+
* Danh mục phương thức phân phối ngân sách chi tiêu (`Settings.Price.SpendingMethod`):
|
|
1531
|
+
* - STANDARD (0): Tiêu chuẩn (rải đều ngân sách).
|
|
1532
|
+
* - FAST / ACCELERATED (1): Nhanh / Tăng tốc (ưu tiên thắng thầu và phân phối tối đa ngay lập tức).
|
|
1533
|
+
*/
|
|
1534
|
+
declare const ZaloAdsSpendingMethod: {
|
|
1535
|
+
/** Tiêu chuẩn (0): Rải đều ngân sách xuyên suốt ngày. */
|
|
1536
|
+
readonly STANDARD: 0;
|
|
1537
|
+
/** Tăng tốc (1): Phân phối nhanh, ưu tiên thắng thầu ngay khi có phiên đấu giá. */
|
|
1538
|
+
readonly FAST: 1;
|
|
1539
|
+
/** Alias cho FAST (1). */
|
|
1540
|
+
readonly ACCELERATED: 1;
|
|
1541
|
+
};
|
|
1542
|
+
type ZaloAdsSpendingMethodValue = typeof ZaloAdsSpendingMethod[keyof typeof ZaloAdsSpendingMethod];
|
|
1543
|
+
/**
|
|
1544
|
+
* Danh mục phương thức tính tiền quảng cáo (`Settings.Price.Type`):
|
|
1545
|
+
* - CPM (1): Lượt hiển thị (áp dụng cho Display Ads hoặc tối ưu hiển thị).
|
|
1546
|
+
* - CPC (2): Lượt nhấn (Click) - Chuẩn cho Website Ads, Commerce Ads.
|
|
1547
|
+
* - CPI (3): Lượt cài đặt ứng dụng (App Install).
|
|
1548
|
+
* - CPF (4): Lượt quan tâm Official Account (Follow).
|
|
1549
|
+
* - CPA (5): Lượt liên hệ / chuyển đổi mục tiêu (Lead / Message).
|
|
1550
|
+
* - CPO (6): Lượt đặt hàng (Order).
|
|
1551
|
+
* - CPV (7): Lượt xem video hoàn tất (Complete View).
|
|
1552
|
+
* - CPD (8): Chi phí cố định theo ngày.
|
|
1553
|
+
* - CPV1S (9): Lượt xem video từ 1 giây.
|
|
1554
|
+
*/
|
|
1555
|
+
declare const ZaloAdsPriceType: {
|
|
1556
|
+
readonly CPM: 1;
|
|
1557
|
+
readonly CPC: 2;
|
|
1558
|
+
readonly CPI: 3;
|
|
1559
|
+
readonly CPF: 4;
|
|
1560
|
+
readonly CPA: 5;
|
|
1561
|
+
readonly CPO: 6;
|
|
1562
|
+
readonly CPV: 7;
|
|
1563
|
+
readonly CPD: 8;
|
|
1564
|
+
readonly CPV1S: 9;
|
|
1565
|
+
};
|
|
1566
|
+
type ZaloAdsPriceTypeValue = typeof ZaloAdsPriceType[keyof typeof ZaloAdsPriceType];
|
|
1567
|
+
/**
|
|
1568
|
+
* Danh mục kiểu áp dụng ngân sách (`Settings.Price.LimitType`):
|
|
1569
|
+
* - LIFE_TIME (1): Toàn lịch chạy (ngân sách tổng cho toàn bộ thời gian chiến dịch, tối thiểu 600.000 VNĐ).
|
|
1570
|
+
* - DAILY (2): Mỗi ngày (ngân sách giới hạn theo từng ngày).
|
|
1571
|
+
*/
|
|
1572
|
+
declare const ZaloAdsPriceLimitType: {
|
|
1573
|
+
/** Áp dụng ngân sách cho toàn lịch chạy (Life time budget). */
|
|
1574
|
+
readonly LIFE_TIME: 1;
|
|
1575
|
+
/** Áp dụng ngân sách cho mỗi ngày (Daily budget). */
|
|
1576
|
+
readonly DAILY: 2;
|
|
1195
1577
|
};
|
|
1578
|
+
type ZaloAdsPriceLimitTypeValue = typeof ZaloAdsPriceLimitType[keyof typeof ZaloAdsPriceLimitType];
|
|
1579
|
+
/**
|
|
1580
|
+
* Danh mục mã giao diện bố cục hiển thị mở rộng (`Settings.AdInfo.XTemplates`):
|
|
1581
|
+
* Checkbox "Hiển thị nhiều hình ảnh" trên UI Zalo Ads chỉ được bật khi mảng XTemplates
|
|
1582
|
+
* chứa đồng thời cả 42 (Carousel) và 43 (Album): [42, 43].
|
|
1583
|
+
*/
|
|
1584
|
+
declare const ZaloAdsXTemplates: {
|
|
1585
|
+
/** Định dạng thẻ quay vòng lướt ngang nhiều hình ảnh. */
|
|
1586
|
+
readonly CAROUSEL: 42;
|
|
1587
|
+
/** Định dạng bộ sưu tập album ảnh (lưới 4 ảnh). */
|
|
1588
|
+
readonly ALBUM: 43;
|
|
1589
|
+
/** Định dạng video tự động phát trên Feed. */
|
|
1590
|
+
readonly ZALO_VIDEO: 44;
|
|
1591
|
+
/** Định dạng ảnh dọc toàn màn hình. */
|
|
1592
|
+
readonly PORTRAIT_IMAGE: 45;
|
|
1593
|
+
/** Định dạng ảnh đơn truyền thống (1024x533). */
|
|
1594
|
+
readonly SINGLE_IMAGE: 46;
|
|
1595
|
+
/** Định dạng ảnh bìa cho quảng cáo video. */
|
|
1596
|
+
readonly COVER_IMAGE_FOR_VIDEO_AD: 47;
|
|
1597
|
+
/** Định dạng ảnh vuông. */
|
|
1598
|
+
readonly SQUARE_IMAGE: 48;
|
|
1599
|
+
/** Định dạng chú thích nội dung dài (tối đa 2.000 ký tự). */
|
|
1600
|
+
readonly LONG_CAPTION: 49;
|
|
1601
|
+
};
|
|
1602
|
+
type ZaloAdsXTemplatesValue = typeof ZaloAdsXTemplates[keyof typeof ZaloAdsXTemplates];
|
|
1603
|
+
/**
|
|
1604
|
+
* Danh mục mã tỉ lệ cắt ảnh chuẩn (`Settings.Image.ExtraImgs[i].Crops[j].Ratio`):
|
|
1605
|
+
* Ma trận 8 lát cắt bắt buộc cho bộ 4 ảnh Album + Carousel:
|
|
1606
|
+
* - Ảnh 0 (Ảnh bìa): Bắt buộc đủ 3 lát cắt: RATIO_4_3 (1), RATIO_2_1 (2 - Bìa Album), RATIO_1_1 (4).
|
|
1607
|
+
* (Nếu thiếu RATIO_2_1, UI sẽ báo lỗi: "Thiếu ảnh cắt tỉ lệ album").
|
|
1608
|
+
* - Ảnh 1: Bắt buộc 2 lát cắt: RATIO_4_3 (1), RATIO_1_1 (4).
|
|
1609
|
+
* - Ảnh 2: Bắt buộc 2 lát cắt: RATIO_4_3 (1), RATIO_1_1 (4).
|
|
1610
|
+
* - Ảnh 3: Bắt buộc 1 lát cắt: RATIO_1_1 (4).
|
|
1611
|
+
*/
|
|
1612
|
+
declare const ZaloAdsImageRatio: {
|
|
1613
|
+
/** Tỉ lệ 16:9 (1024x576 px - Video / Banner phong cảnh). */
|
|
1614
|
+
readonly RATIO_16_9: 0;
|
|
1615
|
+
/** Tỉ lệ 4:3 (1024x768 px - Ảnh phụ Album / Carousel). */
|
|
1616
|
+
readonly RATIO_4_3: 1;
|
|
1617
|
+
/** Tỉ lệ 2:1 (1024x512 px - ẢNH BÌA NGANG BẮT BUỘC CỦA ALBUM). */
|
|
1618
|
+
readonly RATIO_2_1: 2;
|
|
1619
|
+
/** Tỉ lệ 3:2. */
|
|
1620
|
+
readonly RATIO_3_2: 3;
|
|
1621
|
+
/** Tỉ lệ 1:1 (1024x1024 px - Ảnh vuông). */
|
|
1622
|
+
readonly RATIO_1_1: 4;
|
|
1623
|
+
};
|
|
1624
|
+
type ZaloAdsImageRatioValue = typeof ZaloAdsImageRatio[keyof typeof ZaloAdsImageRatio];
|
|
1625
|
+
/**
|
|
1626
|
+
* Danh mục cờ và nguồn dữ liệu tối ưu hóa chuyển đổi (`UseConversion`):
|
|
1627
|
+
* - NOT_USE (0): Không chọn pixel - Tắt tối ưu hóa chuyển đổi. Hệ thống chỉ phân phối theo giá thầu lượt click (CPC) hoặc hiển thị (CPM) mà không quan tâm hành vi người dùng trên website.
|
|
1628
|
+
* - USE (1): Pixel của tôi - Nguồn dữ liệu từ Zalo Pixel cá nhân do nhà quảng cáo tự chèn mã JavaScript (window.za(...)) vào mã nguồn website (ví dụ: https://redai.vn). Bắt buộc đi kèm `ConversionId` từ GET /api/conversion/all.
|
|
1629
|
+
* - LADI_PAGE (2): Pixel liên kết Ladipage - Dành cho Landing Page dựng bằng nền tảng LadiPage đã tích hợp Zalo Pixel sẵn. Hệ thống tự động nhận diện sự kiện chuẩn mà không cần tạo conversion thủ công.
|
|
1630
|
+
* - MINI_APP (3): Zalo Mini App - Dành cho các chiến dịch hướng người dùng vào ứng dụng Zalo Mini App.
|
|
1631
|
+
* - USE_OFF (-1): Cờ lưu nháp khi tạm thời tắt hoặc hủy chọn Pixel cá nhân.
|
|
1632
|
+
* - LADI_PAGE_OFF (-2): Cờ lưu nháp khi tắt liên kết Pixel Ladipage.
|
|
1633
|
+
* - MINI_APP_OFF (-3): Cờ lưu nháp khi tắt liên kết Zalo Mini App.
|
|
1634
|
+
*/
|
|
1635
|
+
declare const ZaloAdsUseConversion: {
|
|
1636
|
+
/** Không chọn pixel (0): Tắt tối ưu hóa chuyển đổi. */
|
|
1637
|
+
readonly NOT_USE: 0;
|
|
1638
|
+
/** Pixel của tôi (1): Zalo Pixel tự host chèn script, cần kèm ConversionId. */
|
|
1639
|
+
readonly USE: 1;
|
|
1640
|
+
/** Pixel liên kết Ladipage (2): Landing Page đối tác LadiPage. */
|
|
1641
|
+
readonly LADI_PAGE: 2;
|
|
1642
|
+
/** Zalo Mini App (3): Ứng dụng Zalo Mini App. */
|
|
1643
|
+
readonly MINI_APP: 3;
|
|
1644
|
+
/** Tạm thời tắt Pixel của tôi (-1): Cờ lưu nháp. */
|
|
1645
|
+
readonly USE_OFF: -1;
|
|
1646
|
+
/** Tạm thời tắt Pixel Ladipage (-2): Cờ lưu nháp. */
|
|
1647
|
+
readonly LADI_PAGE_OFF: -2;
|
|
1648
|
+
/** Tạm thời tắt Pixel Mini App (-3): Cờ lưu nháp. */
|
|
1649
|
+
readonly MINI_APP_OFF: -3;
|
|
1650
|
+
};
|
|
1651
|
+
type ZaloAdsUseConversionValue = typeof ZaloAdsUseConversion[keyof typeof ZaloAdsUseConversion];
|
|
1196
1652
|
interface ZaloAdsAdMutationResultDto {
|
|
1197
1653
|
AdId?: number;
|
|
1198
1654
|
CampaignId?: number;
|
|
@@ -1352,18 +1808,34 @@ type ZaloAdsListFlowsByOfficialAccountResponse = {
|
|
|
1352
1808
|
index?: number;
|
|
1353
1809
|
};
|
|
1354
1810
|
};
|
|
1355
|
-
/**
|
|
1811
|
+
/**
|
|
1812
|
+
* Danh mục mã trạng thái chiến dịch trên Zalo Ads (POST /api/campaign/change-status):
|
|
1813
|
+
* - OFF (0): Tắt / Dừng chiến dịch (Inactive).
|
|
1814
|
+
* - ACTIVE (1): Bật / Tiếp tục / Kích hoạt lại chiến dịch (Active).
|
|
1815
|
+
* - PAUSED (2): Tạm dừng chiến dịch (Lưu ý: Nếu chiến dịch nháp chưa có QC hoạt động sẽ ném HTTP 500).
|
|
1816
|
+
* - DELETED (-2): Xóa vĩnh viễn chiến dịch.
|
|
1817
|
+
*/
|
|
1818
|
+
declare const ZaloAdsCampaignStatus: {
|
|
1819
|
+
readonly OFF: 0;
|
|
1820
|
+
readonly ACTIVE: 1;
|
|
1821
|
+
readonly PAUSED: 2;
|
|
1822
|
+
readonly DELETED: -2;
|
|
1823
|
+
};
|
|
1824
|
+
type ZaloAdsCampaignStatusValue = typeof ZaloAdsCampaignStatus[keyof typeof ZaloAdsCampaignStatus];
|
|
1825
|
+
/** Thay đổi trạng thái của một chiến dịch Zalo Ads (Bật / Tắt / Tạm dừng / Xóa) theo mã trạng thái được chỉ định (`POST /api/campaign/change-status`). */
|
|
1356
1826
|
type ZaloAdsChangeCampaignStatusRequest = {
|
|
1357
|
-
/** Mã trạng thái cần áp dụng
|
|
1358
|
-
status: number;
|
|
1827
|
+
/** Mã trạng thái cần áp dụng: 1 = Bật lại, 0 = Tắt, 2 = Tạm dừng, -2 = Xóa chiến dịch. */
|
|
1828
|
+
status: 0 | 1 | 2 | -2 | number;
|
|
1359
1829
|
/** ID chiến dịch cần đổi trạng thái. */
|
|
1360
1830
|
campaignId: number;
|
|
1361
1831
|
};
|
|
1362
1832
|
type ZaloAdsChangeCampaignStatusResponse = {
|
|
1363
|
-
/** Thông điệp kết
|
|
1833
|
+
/** Thông điệp kết quả từ Zalo Ads (ví dụ: 'Thành công', 'Xóa chiến dịch thành công.'). */
|
|
1364
1834
|
msg: string;
|
|
1365
1835
|
/** Mã kết quả; 0 biểu thị thao tác thành công. */
|
|
1366
1836
|
code: number;
|
|
1837
|
+
/** Trạng thái mới của chiến dịch sau khi thay đổi (1: Đã bật, 0: Đã tắt). */
|
|
1838
|
+
data?: number;
|
|
1367
1839
|
};
|
|
1368
1840
|
/** Tạo audience tùy chỉnh từ điều kiện targeting, tệp nguồn hoặc audience loại trừ/bao gồm đã chọn. Đây là mutation tool thuộc lane zalo-ads-audience; dùng khi cấu trúc targeting và quyền xử lý dữ liệu đã được xác nhận. Targeting được gửi dưới dạng chuỗi JSON theo contentSchema. */
|
|
1369
1841
|
type ZaloAdsCreateCustomAudienceRequest = {
|
|
@@ -1621,7 +2093,7 @@ type ZaloAdsGetAdByIdResponse = {
|
|
|
1621
2093
|
ZaloFormId?: string;
|
|
1622
2094
|
ZaloFeedId?: string | number;
|
|
1623
2095
|
MiniPageId?: number;
|
|
1624
|
-
UseConversion?:
|
|
2096
|
+
UseConversion?: ZaloAdsUseConversionValue | number;
|
|
1625
2097
|
ConversionId?: number;
|
|
1626
2098
|
Report?: Record<string, number>;
|
|
1627
2099
|
};
|
|
@@ -2825,6 +3297,7 @@ declare class ZaloAdsMessageAdUpdateDataDto {
|
|
|
2825
3297
|
ZaloFlowId: number;
|
|
2826
3298
|
ZaloPageId?: number;
|
|
2827
3299
|
ZaloFormId?: string;
|
|
3300
|
+
UseConversion?: ZaloAdsUseConversionValue | number;
|
|
2828
3301
|
ConversionId?: number;
|
|
2829
3302
|
Report?: Record<string, number>;
|
|
2830
3303
|
}
|
|
@@ -3049,15 +3522,23 @@ type ZaloAdsCreateAutomatedRuleResponse = {
|
|
|
3049
3522
|
/** ID quy tắc tự động vừa tạo hoặc cờ kết quả trả về từ hệ thống (ví dụ: 1). */
|
|
3050
3523
|
data?: number;
|
|
3051
3524
|
};
|
|
3052
|
-
|
|
3525
|
+
interface ZaloAdsAutomatedRuleAppliedItemDto {
|
|
3526
|
+
appliedId: number;
|
|
3527
|
+
mode: number;
|
|
3528
|
+
}
|
|
3529
|
+
/** Cập nhật quy tắc tự động (Automated Rule) trên Zalo Ads (`POST /api/ad/automatedrules/update`). */
|
|
3053
3530
|
type ZaloAdsUpdateAutomatedRuleRequest = {
|
|
3054
3531
|
automatedRuleId: number;
|
|
3055
|
-
|
|
3056
|
-
appliedTo: number;
|
|
3532
|
+
scope?: number;
|
|
3057
3533
|
ruleName: string;
|
|
3058
3534
|
action: ZaloAdsAutomatedRuleActionDto;
|
|
3059
3535
|
conditions: Array<ZaloAdsAutomatedRuleConditionDto>;
|
|
3060
|
-
|
|
3536
|
+
frequency?: number;
|
|
3537
|
+
appliedItems?: Array<ZaloAdsAutomatedRuleAppliedItemDto>;
|
|
3538
|
+
appliedIds?: number[];
|
|
3539
|
+
rowVersion?: number;
|
|
3540
|
+
appliedTo?: number;
|
|
3541
|
+
schedule?: ZaloAdsAutomatedRuleScheduleDto;
|
|
3061
3542
|
campaignIds?: number[];
|
|
3062
3543
|
adIds?: number[];
|
|
3063
3544
|
};
|
|
@@ -3066,6 +3547,31 @@ type ZaloAdsUpdateAutomatedRuleResponse = {
|
|
|
3066
3547
|
msg?: string;
|
|
3067
3548
|
data?: number | boolean;
|
|
3068
3549
|
};
|
|
3550
|
+
/** Tra cứu chi tiết một quy tắc tự động (Automated Rule) theo ID (`GET /api/automatedrules/{automatedRuleId}`). */
|
|
3551
|
+
type ZaloAdsGetAutomatedRuleDetailRequest = {
|
|
3552
|
+
automatedRuleId: number;
|
|
3553
|
+
};
|
|
3554
|
+
type ZaloAdsGetAutomatedRuleDetailResponse = {
|
|
3555
|
+
code: number;
|
|
3556
|
+
msg?: string;
|
|
3557
|
+
data?: {
|
|
3558
|
+
automatedRule: {
|
|
3559
|
+
automatedRuleId: number;
|
|
3560
|
+
rowVersion?: number;
|
|
3561
|
+
memberId?: number;
|
|
3562
|
+
createdBy?: number;
|
|
3563
|
+
ruleName: string;
|
|
3564
|
+
action: ZaloAdsAutomatedRuleActionDto;
|
|
3565
|
+
conditions: Array<ZaloAdsAutomatedRuleConditionDto>;
|
|
3566
|
+
scope: number;
|
|
3567
|
+
appliedIds?: number[];
|
|
3568
|
+
frequency?: number;
|
|
3569
|
+
created?: number;
|
|
3570
|
+
modified?: number;
|
|
3571
|
+
};
|
|
3572
|
+
status: number;
|
|
3573
|
+
};
|
|
3574
|
+
};
|
|
3069
3575
|
/** Thay đổi trạng thái bật hoặc tắt (active/inactive) của một quy tắc tự động (Automated Rule) trên Zalo Ads theo ID quy tắc (`POST /api/automatedrules/change-status`). Dùng khi đã có `automatedRuleId` và cần tạm dừng (`status = 0`) hoặc kích hoạt lại (`status = 1`) quy tắc tự động. */
|
|
3070
3576
|
type ZaloAdsChangeAutomatedRuleStatusRequest = {
|
|
3071
3577
|
/** ID định danh duy nhất của quy tắc tự động cần thay đổi trạng thái (lấy từ `listAutomatedRules`). */
|
|
@@ -3857,6 +4363,7 @@ declare class ZaloAutomatedRulesService {
|
|
|
3857
4363
|
protected readonly client: ZaloSdkHttpClient;
|
|
3858
4364
|
constructor(client: ZaloSdkHttpClient);
|
|
3859
4365
|
listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
|
|
4366
|
+
getAutomatedRuleDetail(request: ZaloAdsGetAutomatedRuleDetailRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleDetailResponse>;
|
|
3860
4367
|
createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
|
|
3861
4368
|
updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
|
|
3862
4369
|
changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
|
|
@@ -4067,6 +4574,7 @@ declare class ZaloAdsService extends ZaloCampaignsService {
|
|
|
4067
4574
|
/** Alias cho `listConversionNames` (`GET /api/conversion/names`). */
|
|
4068
4575
|
getApiConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
|
|
4069
4576
|
listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
|
|
4577
|
+
getAutomatedRuleDetail(request: ZaloAdsGetAutomatedRuleDetailRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleDetailResponse>;
|
|
4070
4578
|
createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
|
|
4071
4579
|
updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
|
|
4072
4580
|
changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
|
|
@@ -4541,6 +5049,7 @@ interface ValidationResult<T = unknown> {
|
|
|
4541
5049
|
/** Dữ liệu sau khi làm sạch và ép kiểu chuẩn (nếu hợp lệ). */
|
|
4542
5050
|
data?: T;
|
|
4543
5051
|
}
|
|
5052
|
+
declare function validateCreateInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesCreateInstantPageRequest>;
|
|
4544
5053
|
declare function validateCloneInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesCloneInstantPageRequest>;
|
|
4545
5054
|
declare function validateGetInstantPageDetailRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageDetailRequest>;
|
|
4546
5055
|
declare function validateGetInstantPageSharedUserRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageSharedUserRequest>;
|
|
@@ -4555,6 +5064,7 @@ declare function validateListInstantPageLeadsRequest(input: unknown): Validation
|
|
|
4555
5064
|
declare function validateListOfficialAccountsRequest(input?: unknown): ValidationResult<ZaloInstantPagesListOfficialAccountsRequest>;
|
|
4556
5065
|
declare function validateUpsertInstantPageFormRequest(input: unknown): ValidationResult<ZaloInstantPagesUpsertInstantPageFormRequest>;
|
|
4557
5066
|
declare const ZaloInstantPagesValidator: {
|
|
5067
|
+
validateCreateInstantPage: typeof validateCreateInstantPageRequest;
|
|
4558
5068
|
validateCloneInstantPage: typeof validateCloneInstantPageRequest;
|
|
4559
5069
|
validateGetInstantPageDetail: typeof validateGetInstantPageDetailRequest;
|
|
4560
5070
|
validateGetInstantPageSharedUser: typeof validateGetInstantPageSharedUserRequest;
|
|
@@ -4722,6 +5232,7 @@ declare class ZaloInstantPagesService {
|
|
|
4722
5232
|
* Dùng ở backend (NestJS/Express/Fastify), middleware hoặc AI Agent để verify payload trước khi gọi SDK.
|
|
4723
5233
|
*/
|
|
4724
5234
|
static readonly validator: {
|
|
5235
|
+
validateCreateInstantPage: typeof validateCreateInstantPageRequest;
|
|
4725
5236
|
validateCloneInstantPage: typeof validateCloneInstantPageRequest;
|
|
4726
5237
|
validateGetInstantPageDetail: typeof validateGetInstantPageDetailRequest;
|
|
4727
5238
|
validateGetInstantPageSharedUser: typeof validateGetInstantPageSharedUserRequest;
|
|
@@ -4737,12 +5248,14 @@ declare class ZaloInstantPagesService {
|
|
|
4737
5248
|
validateUpsertInstantPageForm: typeof validateUpsertInstantPageFormRequest;
|
|
4738
5249
|
};
|
|
4739
5250
|
constructor(client: ZaloSdkHttpClient);
|
|
5251
|
+
createInstantPage(request: ZaloInstantPagesCreateInstantPageRequest, options?: RequestOptions): Promise<ZaloInstantPagesCreateInstantPageResponse>;
|
|
4740
5252
|
cloneInstantPage(request: ZaloInstantPagesCloneInstantPageRequest, options?: RequestOptions): Promise<ZaloInstantPagesCloneInstantPageResponse>;
|
|
4741
5253
|
getInstantPageDetail(request: ZaloInstantPagesGetInstantPageDetailRequest, options?: RequestOptions): Promise<ZaloInstantPagesGetInstantPageDetailResponse>;
|
|
4742
5254
|
getInstantPageSharedUser(request: ZaloInstantPagesGetInstantPageSharedUserRequest, options?: RequestOptions): Promise<ZaloInstantPagesGetInstantPageSharedUserResponse>;
|
|
4743
5255
|
listInstantPageEditHistory(request: ZaloInstantPagesListInstantPageEditHistoryRequest, options?: RequestOptions): Promise<ZaloInstantPagesListInstantPageEditHistoryResponse>;
|
|
4744
5256
|
listInstantPageFormRecords(request: ZaloInstantPagesListInstantPageFormRecordsRequest, options?: RequestOptions): Promise<ZaloInstantPagesListInstantPageFormRecordsResponse>;
|
|
4745
5257
|
listInstantPageShares(request: ZaloInstantPagesListInstantPageSharesRequest, options?: RequestOptions): Promise<ZaloInstantPagesListInstantPageSharesResponse>;
|
|
5258
|
+
updateInstantPageShares(request: ZaloInstantPagesUpdateInstantPageSharesRequest, options?: RequestOptions): Promise<ZaloInstantPagesUpdateInstantPageSharesResponse>;
|
|
4746
5259
|
listInstantPageUsers(request?: ZaloInstantPagesListInstantPageUsersRequest, options?: RequestOptions): Promise<ZaloInstantPagesListInstantPageUsersResponse>;
|
|
4747
5260
|
listMiniPageTemplates(request?: ZaloInstantPagesListMiniPageTemplatesRequest, options?: RequestOptions): Promise<ZaloInstantPagesListMiniPageTemplatesResponse>;
|
|
4748
5261
|
searchInstantPages(request?: ZaloInstantPagesSearchInstantPagesRequest, options?: RequestOptions): Promise<ZaloInstantPagesSearchInstantPagesResponse>;
|
|
@@ -5273,6 +5786,23 @@ declare const ZaloFlowsValidator: {
|
|
|
5273
5786
|
* 12. deleteCustomAudience (DELETE /api/ad/audience/{customAudienceId})
|
|
5274
5787
|
*/
|
|
5275
5788
|
|
|
5789
|
+
/**
|
|
5790
|
+
* Danh mục mã 63 Tỉnh/Thành phố chuẩn theo 3 Vùng miền trên Zalo Ads Targeting Engine (Danh mục cũ):
|
|
5791
|
+
*/
|
|
5792
|
+
declare const ZALO_REGION_PROVINCE_CODES: Record<number, string[]>;
|
|
5793
|
+
/**
|
|
5794
|
+
* Danh mục 34 Cụm Tỉnh/Thành phố mới sau sáp nhập trên Zalo Ads (newProvinces).
|
|
5795
|
+
* Khi cấu hình WardTargeting (từ cải cách hành chính 2026), Zalo Ads Angular UI
|
|
5796
|
+
* BẮT BUỘC tra cứu theo 34 mã mới này. Nếu truyền mã tỉnh đã bị gộp (như VN75 - Bình Dương),
|
|
5797
|
+
* giao diện Zalo Ads sẽ bị lỗi đỏ: 'Invalid wards params'.
|
|
5798
|
+
*/
|
|
5799
|
+
declare const ZALO_NEW_REGION_PROVINCE_CODES: Record<number, string[]>;
|
|
5800
|
+
/** Bảng tra cứu ánh xạ mã tỉnh cũ sang cụm tỉnh mới sau sáp nhập */
|
|
5801
|
+
declare const ZALO_PROVINCE_MERGE_MAPPING: Record<string, {
|
|
5802
|
+
newCode: string;
|
|
5803
|
+
regionId: number;
|
|
5804
|
+
name: string;
|
|
5805
|
+
}>;
|
|
5276
5806
|
/**
|
|
5277
5807
|
* 1. Kiểm tra request Tạo Nhóm đối tượng đã lưu (Saved Audience - caType = 1)
|
|
5278
5808
|
*/
|
|
@@ -5434,4 +5964,106 @@ declare const ZaloCampaignsValidator: {
|
|
|
5434
5964
|
duplicateAd: typeof validateDuplicateAdParams;
|
|
5435
5965
|
};
|
|
5436
5966
|
|
|
5437
|
-
export { ALLOWED_CTAS_PER_AD_TYPE, ALL_ZALO_ADS_DOMAINS, type BodyType, type CampaignValidationResult, type FileDownloadResponse, type FileInput, type HttpMethod, type MediaValidationResult, MemoryZaloSessionStore, type MemoryZaloSessionStoreOptions, type OperationDefinition, RedisZaloSessionStore, type RedisZaloSessionStoreOptions, type RequestOptions, TieredZaloSessionStore, type TieredZaloSessionStoreOptions, VALID_AD_TYPES, VALID_CAMPAIGN_TYPES, type ValidateAdOptions, type ValidateCampaignOptions, type ValidateImageInput, type ValidateVideoInput, type ValidationResult, ZaloAccountService, type ZaloAdsAccessorItemDto, type ZaloAdsAccountAgencyInfoDto, ZaloAdsIntegrationManager as ZaloAdsAccountPool, ZaloAdsActionType, type ZaloAdsAdAppInfoSettingsDto, type ZaloAdsAdImageSettingsDto, type ZaloAdsAdInfoSettingsDto, type ZaloAdsAdMultiImageItemDto, type ZaloAdsAdMutationResultDto, type ZaloAdsAdPriceSettingsDto, type ZaloAdsAdReportItemDto, type ZaloAdsAdSettingsDto, type ZaloAdsAdTargetingSettingsDto, type ZaloAdsAdUpdatePayloadDto, type ZaloAdsAdZVideoSettingsDto, ZaloAdsAgeRangeId, type ZaloAdsAutomatedRuleActionDto, type ZaloAdsAutomatedRuleConditionDto, type ZaloAdsAutomatedRuleScheduleDto, type ZaloAdsCampaignCreatePayloadDto, type ZaloAdsCampaignDetailExtendDto, type ZaloAdsCampaignReportItemDto, type ZaloAdsChangeAutomatedRuleStatusRequest, type ZaloAdsChangeAutomatedRuleStatusResponse, type ZaloAdsChangeCampaignStatusRequest, type ZaloAdsChangeCampaignStatusResponse, type ZaloAdsClientRequest, type ZaloAdsCommerceFormAudienceTargetingDto, type ZaloAdsConversionElementSelectorDto, type ZaloAdsConversionItemDto, type ZaloAdsConversionNameItemDto, type ZaloAdsCreateArticleCampaignRequest, type ZaloAdsCreateArticleCampaignResponse, type ZaloAdsCreateAutomatedRuleRequest, type ZaloAdsCreateAutomatedRuleResponse, type ZaloAdsCreateCommerceCampaignRequest, type ZaloAdsCreateCommerceCampaignResponse, type ZaloAdsCreateCommerceFormAudienceRequest, type ZaloAdsCreateCommerceFormAudienceResponse, type ZaloAdsCreateConversionRequest, type ZaloAdsCreateConversionResponse, type ZaloAdsCreateCustomAudienceRequest, type ZaloAdsCreateCustomAudienceResponse, type ZaloAdsCreateDisplayCampaignRequest, type ZaloAdsCreateDisplayCampaignResponse, type ZaloAdsCreateEcommerceCampaignRequest, type ZaloAdsCreateEcommerceCampaignResponse, ZaloAdsCreateFlowRequest, ZaloAdsCreateFlowResponse, type ZaloAdsCreateFormCampaignRequest, type ZaloAdsCreateFormCampaignResponse, type ZaloAdsCreateFormEventAudienceRequest, type ZaloAdsCreateFormEventAudienceResponse, type ZaloAdsCreateFormLeadAudienceRequest, type ZaloAdsCreateFormLeadAudienceResponse, type ZaloAdsCreateFormPayloadDto, type ZaloAdsCreateFormRequest, type ZaloAdsCreateFormResponse, type ZaloAdsCreateLeadSignalAudienceRequest, type ZaloAdsCreateLeadSignalAudienceResponse, type ZaloAdsCreateLookalikeAudienceRequest, type ZaloAdsCreateLookalikeAudienceResponse, type ZaloAdsCreateMessageCampaignRequest, type ZaloAdsCreateMessageCampaignResponse, type ZaloAdsCreateMessageOaEventAudienceRequest, type ZaloAdsCreateMessageOaEventAudienceResponse, type ZaloAdsCreateMessageOaLeadAudienceRequest, type ZaloAdsCreateMessageOaLeadAudienceResponse, type ZaloAdsCreateMessagePersonalEventAudienceRequest, type ZaloAdsCreateMessagePersonalEventAudienceResponse, type ZaloAdsCreateOaCampaignRequest, type ZaloAdsCreateOaCampaignResponse, type ZaloAdsCreateOfficialAccountCampaignRequest, type ZaloAdsCreateOfficialAccountCampaignResponse, type ZaloAdsCreatePhoneAudienceRequest, type ZaloAdsCreatePhoneAudienceResponse, ZaloAdsCreatePostCampaignRequest, ZaloAdsCreatePostCampaignResponse, type ZaloAdsCreateSavedAudienceRequest, type ZaloAdsCreateSavedAudienceResponse, type ZaloAdsCreateSpellCheckV3JobRequest, type ZaloAdsCreateSpellCheckV3JobResponse, type ZaloAdsCreateVideoCampaignRequest, type ZaloAdsCreateVideoCampaignResponse, type ZaloAdsCreateWebsiteCampaignRequest, type ZaloAdsCreateWebsiteCampaignResponse, type ZaloAdsDeleteAutomatedRuleRequest, type ZaloAdsDeleteAutomatedRuleResponse, type ZaloAdsDeleteCampaignRequest, type ZaloAdsDeleteCampaignResponse, type ZaloAdsDeleteConversionRequest, type ZaloAdsDeleteConversionResponse, type ZaloAdsDeleteCustomAudienceRequest, type ZaloAdsDeleteCustomAudienceResponse, type ZaloAdsDeleteCustomReportRequest, type ZaloAdsDeleteCustomReportResponse, ZaloAdsDeliveryType, type ZaloAdsDomain, type ZaloAdsDownloadReportRequest, type ZaloAdsDownloadReportResponse, type ZaloAdsDuplicateAdRequest, type ZaloAdsDuplicateAdResponse, type ZaloAdsFileGroupItemDto, ZaloAdsFlowButtonDto, ZaloAdsFlowChildMessageDto, ZaloAdsFlowMessageDto, type ZaloAdsFormAnswerDto, type ZaloAdsFormEventAudienceTargetingDto, type ZaloAdsFormLeadAudienceTargetingDto, type ZaloAdsFormQuestionDto, type ZaloAdsFormQuestionUiDto, type ZaloAdsFormSectionContentDto, type ZaloAdsFormSectionDto, type ZaloAdsFormSectionImageItemDto, type ZaloAdsFormSectionTableItemDto, type ZaloAdsGetAdByIdRequest, type ZaloAdsGetAdByIdResponse, type ZaloAdsGetAdChangeLogRequest, type ZaloAdsGetAdChangeLogResponse, type ZaloAdsGetApiAdGetlistadadvancetargetingRequest, type ZaloAdsGetApiAdGetlistadadvancetargetingResponse, type ZaloAdsGetApiBaAccountAllaccessorsRequest, type ZaloAdsGetApiBaAccountAllaccessorsResponse, type ZaloAdsGetApiBaAccountAllgrantedmembersRequest, type ZaloAdsGetApiBaAccountAllgrantedmembersResponse, type ZaloAdsGetApiConversionAllRequest, type ZaloAdsGetApiConversionAllResponse, type ZaloAdsGetApiConversionStandardEventsRequest, type ZaloAdsGetApiConversionStandardEventsResponse, type ZaloAdsGetApiCustomAudienceAllRequest, type ZaloAdsGetApiCustomAudienceAllResponse, type ZaloAdsGetApiFilegroupsRequest, type ZaloAdsGetApiFilegroupsResponse, type ZaloAdsGetApiLpNewsRequest, type ZaloAdsGetApiLpNewsResponse, type ZaloAdsGetApiMediaItemsRequest, type ZaloAdsGetApiMediaItemsResponse, type ZaloAdsGetApiMemberFilesRequest, type ZaloAdsGetApiMemberFilesResponse, type ZaloAdsGetApiNotifiesHeaderRequest, type ZaloAdsGetApiNotifiesHeaderResponse, type ZaloAdsGetApiPaymentTransactionHistoryRequest, type ZaloAdsGetApiPaymentTransactionHistoryResponse, type ZaloAdsGetApiPlaceGetalldistrictsRequest, type ZaloAdsGetApiPlaceGetalldistrictsResponse, type ZaloAdsGetApiSpellCheckV2Request, type ZaloAdsGetApiSpellCheckV2Response, type ZaloAdsGetApiWhoamiRequest, type ZaloAdsGetApiWhoamiResponse, type ZaloAdsGetAutomatedRuleHistoryRequest, type ZaloAdsGetAutomatedRuleHistoryResponse, type ZaloAdsGetDemographicsReportRequest, type ZaloAdsGetDemographicsReportResponse, type ZaloAdsGetReportOverviewRequest, type ZaloAdsGetReportOverviewResponse, type ZaloAdsGetReportapiV2AdsRequest, type ZaloAdsGetReportapiV2AdsResponse, type ZaloAdsGetReportapiV2CampaignsRequest, type ZaloAdsGetReportapiV2CampaignsResponse, type ZaloAdsGetReportapiV2UniqueUserRequest, type ZaloAdsGetReportapiV2UniqueUserResponse, type ZaloAdsGetReportapiV3CampaignsRequest, type ZaloAdsGetReportapiV3CampaignsResponse, type ZaloAdsGetSpellCheckV3JobRequest, type ZaloAdsGetSpellCheckV3JobResponse, type ZaloAdsGetZaapiCampaignReportcampaignRequest, type ZaloAdsGetZaapiCampaignReportcampaignResponse, type ZaloAdsGetZaapiCheckcamphasmanyadsRequest, type ZaloAdsGetZaapiCheckcamphasmanyadsResponse, type ZaloAdsGetZaapiGetadsfromcampaignidRequest, type ZaloAdsGetZaapiGetadsfromcampaignidResponse, type ZaloAdsGetZaapiGetallpagesRequest, type ZaloAdsGetZaapiGetallpagesResponse, type ZaloAdsGetZaapiGetownedarticlesRequest, type ZaloAdsGetZaapiGetownedarticlesResponse, type ZaloAdsGetZaapiGetownedpagesRequest, type ZaloAdsGetZaapiGetownedpagesResponse, type ZaloAdsGrantedMemberItemDto, ZaloAdsIntegrationManager, type ZaloAdsIntegrationManagerOptions, type ZaloAdsLeadSignalAudienceTargetingDto, type ZaloAdsLeadSignalOaItem, type ZaloAdsListAgencyCustomersWithBudgetRequest, type ZaloAdsListAgencyCustomersWithBudgetResponse, type ZaloAdsListAutomatedRulesRequest, type ZaloAdsListAutomatedRulesResponse, type ZaloAdsListConversionNamesRequest, type ZaloAdsListConversionNamesResponse, type ZaloAdsListCustomReportsRequest, type ZaloAdsListCustomReportsResponse, type ZaloAdsListFlowsByOfficialAccountRequest, type ZaloAdsListFlowsByOfficialAccountResponse, type ZaloAdsListFormsByOfficialAccountRequest, type ZaloAdsListFormsByOfficialAccountResponse, type ZaloAdsListLeadSignalOasResponse, type ZaloAdsListMiniPagesByTemplateRequest, type ZaloAdsListMiniPagesByTemplateResponse, type ZaloAdsListPersonalPixelLabelsRequest, type ZaloAdsListPersonalPixelLabelsResponse, type ZaloAdsListReportFiltersRequest, type ZaloAdsListReportFiltersResponse, type ZaloAdsLookalikeAudienceTargetingDto, type ZaloAdsLpNewsButtonDto, type ZaloAdsLpNewsItemDto, type ZaloAdsMediaSavePayloadDto, type ZaloAdsMediaSaveSettingsDto, type ZaloAdsMemberFileItemDto, ZaloAdsMessageAdUpdateDataDto, type ZaloAdsMessageOaEventAudienceTargetingDto, type ZaloAdsMessageOaLeadAudienceTargetingDto, type ZaloAdsMessagePersonalEventAudienceTargetingDto, type ZaloAdsNotifyHeaderItemDto, ZaloAdsOsId, type ZaloAdsOwnedArticleItemDto, type ZaloAdsOwnedPageExtraInfoDto, type ZaloAdsOwnedPageItemDto, type ZaloAdsOwnedPageLocationDto, type ZaloAdsPageConfigDto, type ZaloAdsPaymentTransactionItemDto, type ZaloAdsPhoneAudienceTargetingDto, type ZaloAdsPostApiAdEstimateaudienceRequest, type ZaloAdsPostApiAdEstimateaudienceResponse, type ZaloAdsPostApiMediaSaveRequest, type ZaloAdsPostApiMediaSaveResponse, type ZaloAdsPostApiMemberUploadImageRequest, type ZaloAdsPostApiMemberUploadImageResponse, type ZaloAdsPostZaapiDeleteadRequest, type ZaloAdsPostZaapiDeleteadResponse, type ZaloAdsRenameCampaignRequest, type ZaloAdsRenameCampaignResponse, ZaloAdsSdk, type ZaloAdsSdkOptions, ZaloAdsService, type ZaloAdsSpellCheckIssueDto, type ZaloAdsSpellCheckViolationDto, type ZaloAdsStandardEventItemDto, type ZaloAdsUniqueUserReportDataDto, type ZaloAdsUpdateArticleAdRequest, type ZaloAdsUpdateArticleAdResponse, type ZaloAdsUpdateAutomatedRuleRequest, type ZaloAdsUpdateAutomatedRuleResponse, type ZaloAdsUpdateCommerceAdRequest, type ZaloAdsUpdateCommerceAdResponse, type ZaloAdsUpdateDisplayAdRequest, type ZaloAdsUpdateDisplayAdResponse, type ZaloAdsUpdateEcommerceAdRequest, type ZaloAdsUpdateEcommerceAdResponse, type ZaloAdsUpdateFlowRequest, type ZaloAdsUpdateFlowResponse, type ZaloAdsUpdateFormAdRequest, type ZaloAdsUpdateFormAdResponse, ZaloAdsUpdateMessageAdRequest, ZaloAdsUpdateMessageAdResponse, type ZaloAdsUpdateNewAdsRequest, type ZaloAdsUpdateNewAdsResponse, type ZaloAdsUpdateOaAdRequest, type ZaloAdsUpdateOaAdResponse, type ZaloAdsUpdateOfficialAccountAdRequest, type ZaloAdsUpdateOfficialAccountAdResponse, type ZaloAdsUpdatePostAdRequest, type ZaloAdsUpdatePostAdResponse, ZaloAdsUpdateVideoAdRequest, ZaloAdsUpdateVideoAdResponse, type ZaloAdsUpdateWebsiteAdRequest, type ZaloAdsUpdateWebsiteAdResponse, type ZaloAdsUploadCustomAudiencePhoneListRequest, type ZaloAdsUploadCustomAudiencePhoneListResponse, type ZaloAdsUploadVideoRequest, type ZaloAdsUploadVideoResponse, type ZaloAdsUpsertCustomReportRequest, type ZaloAdsUpsertCustomReportResponse, type ZaloAdsWhoamiProfile, type ZaloAdsZaapiCampaignReportItemDto, ZaloAudiencesService, ZaloAudiencesValidator, type ZaloAuthDomain, ZaloAuthManager, ZaloAutomatedRulesService, ZaloCampaignsService, ZaloCampaignsValidator, type ZaloChatWidgetGetChatWidgetLoginConfigRequest, type ZaloChatWidgetGetChatWidgetLoginConfigResponse, type ZaloChatWidgetGetLoginConfigRequest, type ZaloChatWidgetGetLoginConfigResponse, ZaloChatWidgetService, ZaloConversionsService, type ZaloCreateFormCleanPayload, type ZaloCreateFormRequestInput, type ZaloDomainSession, ZaloFlowsService, ZaloFlowsValidator, type ZaloFormQuestionAnswerInput, type ZaloFormQuestionInput, type ZaloFormSectionInput, type ZaloFormSessionProfile, type ZaloFormsAudienceExclusionTargetingItem, type ZaloFormsAuthSessionOaItem, type ZaloFormsConversationLeadItem, type ZaloFormsDisableFormLeadNotificationRequest, type ZaloFormsDisableFormLeadNotificationResponse, type ZaloFormsEnableFormLeadNotificationRequest, type ZaloFormsEnableFormLeadNotificationResponse, type ZaloFormsExportFormLeadReportRequest, type ZaloFormsExportFormLeadReportResponse, type ZaloFormsGetAuthSessionResponse, type ZaloFormsLeadAnswerItem, type ZaloFormsLeadItem, type ZaloFormsListAudienceExclusionTargetingRequest, type ZaloFormsListAudienceExclusionTargetingResponse, type ZaloFormsListConversationLeadsRequest, type ZaloFormsListConversationLeadsResponse, type ZaloFormsListFormLeadsRequest, type ZaloFormsListFormLeadsResponse, type ZaloFormsListManagedFormsByOfficialAccountRequest, type ZaloFormsListManagedFormsByOfficialAccountResponse, type ZaloFormsListScenariosByOfficialAccountRequest, type ZaloFormsListScenariosByOfficialAccountResponse, type ZaloFormsListSimpleFormsByOfficialAccountRequest, type ZaloFormsListSimpleFormsByOfficialAccountResponse, type ZaloFormsScenarioItem, ZaloFormsService, type ZaloFormsTrackManageFormEventRequest, type ZaloFormsTrackManageFormEventResponse, type ZaloFormsUpdateFormLeadNotificationIntervalRequest, type ZaloFormsUpdateFormLeadNotificationIntervalResponse, ZaloFormsValidator, type ZaloInstantPageActive, ZaloInstantPageBlockType, type ZaloInstantPageStatus, type ZaloInstantPagesCloneInstantPageRequest, type ZaloInstantPagesCloneInstantPageResponse, type ZaloInstantPagesFormRecordItem, type ZaloInstantPagesGetInstantPageDetailRequest, type ZaloInstantPagesGetInstantPageDetailResponse, type ZaloInstantPagesGetInstantPageSharedUserRequest, type ZaloInstantPagesGetInstantPageSharedUserResponse, type ZaloInstantPagesListInstantPageEditHistoryRequest, type ZaloInstantPagesListInstantPageEditHistoryResponse, type ZaloInstantPagesListInstantPageFormRecordsRequest, type ZaloInstantPagesListInstantPageFormRecordsResponse, type ZaloInstantPagesListInstantPageLeadsRequest, type ZaloInstantPagesListInstantPageLeadsResponse, type ZaloInstantPagesListInstantPageSharesRequest, type ZaloInstantPagesListInstantPageSharesResponse, type ZaloInstantPagesListInstantPageUsersRequest, type ZaloInstantPagesListInstantPageUsersResponse, type ZaloInstantPagesListMiniPageTemplatesRequest, type ZaloInstantPagesListMiniPageTemplatesResponse, type ZaloInstantPagesListOfficialAccountsRequest, type ZaloInstantPagesListOfficialAccountsResponse, type ZaloInstantPagesOfficialAccountItem, type ZaloInstantPagesSearchInstantPagesRequest, type ZaloInstantPagesSearchInstantPagesResponse, ZaloInstantPagesService, type ZaloInstantPagesUpdateInstantPageRequest, type ZaloInstantPagesUpdateInstantPageResponse, type ZaloInstantPagesUpsertInstantPageFormRequest, type ZaloInstantPagesUpsertInstantPageFormResponse, ZaloInstantPagesValidator, type ZaloIntegrationCredentials, type ZaloIntegrationVerificationResult, ZaloMediaService, type ZaloPlaySessionPayload, type ZaloProfileAdsAdministrativeItem, type ZaloProfileAdsCreateOaPageRequest, type ZaloProfileAdsCreateOaPageResponse, type ZaloProfileAdsGetDistrictsRequest, type ZaloProfileAdsGetDistrictsResponse, type ZaloProfileAdsGetProvincesResponse, type ZaloProfileAdsProvinceId, ZaloProfileAdsService, type ZaloProfileAdsSubCategoryId, type ZaloProfileAdsUploadOaAvatarRequest, type ZaloProfileAdsUploadOaAvatarResponse, type ZaloProfileAdsUploadOaCoverRequest, type ZaloProfileAdsUploadOaCoverResponse, type ZaloRedisLikeClient, ZaloReportsService, type ZaloSdkAuth, type ZaloSdkAuthContext, ZaloSdkError, ZaloSdkHttpClient, type ZaloSessionStore, type ZaloSsoAuthOptions, type ZaloUploadAndSaveImageRequest, type ZaloUploadAndSaveImageResult, type ZaloUploadAndSaveVideoRequest, type ZaloUploadAndSaveVideoResult, type ZaloWidgetAPIGetOfficialAccountInfoRequest, type ZaloWidgetAPIGetOfficialAccountInfoResponse, type ZaloWidgetAPIGetWidgetUserProfileRequest, type ZaloWidgetAPIGetWidgetUserProfileResponse, type ZaloWidgetAPIListStickerCategoriesRequest, type ZaloWidgetAPIListStickerCategoriesResponse, type ZaloWidgetAPIListStickersByCategoryRequest, type ZaloWidgetAPIListStickersByCategoryResponse, ZaloWidgetApiService, computeZpsidFingerprint, createZaloSsoAuth, decodePlaySessionJwt, ZaloAdsSdk as default, defaultSharedMemorySessionStore, deriveAccountKeyFromZpsid, parseZaloCookieInput, validateChangeCampaignStatusParams, validateCloneInstantPageRequest, validateCreateCampaignPayload, validateCreateFlowRequest, validateCreateFormEventAudienceRequest, validateCreateFormRequest, validateCreateLookalikeAudienceRequest, validateCreateMessageOaEventAudienceRequest, validateCreateMessagePersonalEventAudienceRequest, validateCreatePhoneAudienceRequest, validateCreateSavedAudienceRequest, validateDuplicateAdParams, validateEstimateAudienceRequest, validateGetInstantPageDetailRequest, validateGetInstantPageSharedUserRequest, validateListFlowsByOfficialAccountRequest, validateListFormLeadsRequest, validateListFormsByOfficialAccountRequest, validateListInstantPageEditHistoryRequest, validateListInstantPageFormRecordsRequest, validateListInstantPageLeadsRequest, validateListInstantPageSharesRequest, validateListInstantPageUsersRequest, validateListMiniPageTemplatesRequest, validateListOfficialAccountsRequest, validateRenameCampaignParams, validateSearchInstantPagesRequest, validateUpdateAdPayload, validateUpdateFlowRequest, validateUpdateInstantPageRequest, validateUpsertInstantPageFormRequest };
|
|
5967
|
+
/**
|
|
5968
|
+
* Bộ kiểm tra tính hợp lệ và chuẩn hóa tham số Quy tắc tự động (Automated Rules Validator) cho Zalo Ads.
|
|
5969
|
+
* Reverse-engineered và kiểm chứng trực tiếp từ Zalo Ads Web Frontend (chunk 183) & Backend API.
|
|
5970
|
+
*/
|
|
5971
|
+
declare enum AutomatedRuleScopeEnum {
|
|
5972
|
+
Ads = 1
|
|
5973
|
+
}
|
|
5974
|
+
declare enum AutomatedRuleActionTypeEnum {
|
|
5975
|
+
Resume = 1,// Tiếp tục chạy quảng cáo (Bật)
|
|
5976
|
+
Pause = 2,// Tạm dừng quảng cáo (Tắt)
|
|
5977
|
+
IncreaseByAmount = 3,// Tăng giá đấu thầu theo số tiền cố định (VNĐ)
|
|
5978
|
+
DecreaseByAmount = 4,// Giảm giá đấu thầu theo số tiền cố định (VNĐ)
|
|
5979
|
+
IncreaseByPercentage = 5,// Tăng giá đấu thầu theo %
|
|
5980
|
+
DecreaseByPercentage = 6
|
|
5981
|
+
}
|
|
5982
|
+
declare enum AutomatedRuleFrequencyEnum {
|
|
5983
|
+
OneHour = 1,// Mỗi tiếng / lần sau lần thực thi trước (1 giờ)
|
|
5984
|
+
HalfDay = 12,// 12 giờ / lần sau lần thực thi trước (12 giờ)
|
|
5985
|
+
OneDay = 24,// Mỗi ngày / lần sau lần thực thi trước (24 giờ)
|
|
5986
|
+
OneWeek = 168
|
|
5987
|
+
}
|
|
5988
|
+
declare enum AutomatedRuleConditionFieldEnum {
|
|
5989
|
+
Status = 1,// Trạng thái quảng cáo (Đang chạy / Tạm dừng)
|
|
5990
|
+
Impression = 11,// Lượt hiển thị (tối thiểu 500)
|
|
5991
|
+
Click = 16,// Lượt nhấn (tối thiểu 10)
|
|
5992
|
+
CTR = 9999,// CTR (%)
|
|
5993
|
+
Cost = 100001
|
|
5994
|
+
}
|
|
5995
|
+
declare enum AutomatedRuleOperatorEnum {
|
|
5996
|
+
GreaterThan = 1,// Lớn hơn (>)
|
|
5997
|
+
LessThan = 2,// Nhỏ hơn (<)
|
|
5998
|
+
Between = 3,// Trong khoảng
|
|
5999
|
+
NotBetween = 4,// Không trong khoảng
|
|
6000
|
+
Include = 5,// Bao gồm
|
|
6001
|
+
Exclude = 6
|
|
6002
|
+
}
|
|
6003
|
+
declare enum AutomatedRuleTimeRangeEnum {
|
|
6004
|
+
AllTime = 1,// Từ lúc bắt đầu tới hiện tại (Lifetime)
|
|
6005
|
+
AllTimeExcludeToday = 2,// Từ lúc bắt đầu tới hết hôm qua
|
|
6006
|
+
Today = 3,// Trong ngày hôm nay
|
|
6007
|
+
Yesterday = 4,// Trong ngày hôm qua
|
|
6008
|
+
Previous2Day = 1002,// 2 ngày trước tới hiện tại
|
|
6009
|
+
Previous3Day = 1003,// 3 ngày trước tới hiện tại
|
|
6010
|
+
Previous4Day = 1004,// 4 ngày trước tới hiện tại
|
|
6011
|
+
Previous5Day = 1005,// 5 ngày trước tới hiện tại
|
|
6012
|
+
Previous6Day = 1006,// 6 ngày trước tới hiện tại
|
|
6013
|
+
Previous7Day = 1007,// 7 ngày trước tới hiện tại
|
|
6014
|
+
Previous14Day = 1014,// 14 ngày trước tới hiện tại
|
|
6015
|
+
Previous21Day = 1021,// 21 ngày trước tới hiện tại
|
|
6016
|
+
Previous30Day = 1030
|
|
6017
|
+
}
|
|
6018
|
+
interface AutomatedRuleValidationResult<T = any> {
|
|
6019
|
+
isValid: boolean;
|
|
6020
|
+
errors: string[];
|
|
6021
|
+
warnings: string[];
|
|
6022
|
+
sanitizedData?: T;
|
|
6023
|
+
}
|
|
6024
|
+
declare class ZaloAutomatedRulesValidator {
|
|
6025
|
+
/**
|
|
6026
|
+
* Kiểm tra và chuẩn hóa payload tạo mới quy tắc tự động (`POST /api/automatedrules/create`)
|
|
6027
|
+
*/
|
|
6028
|
+
static validateCreateRule(payload: any): AutomatedRuleValidationResult;
|
|
6029
|
+
/**
|
|
6030
|
+
* Kiểm tra và chuẩn hóa payload cập nhật quy tắc tự động (`POST /api/ad/automatedrules/update`)
|
|
6031
|
+
*/
|
|
6032
|
+
static validateUpdateRule(payload: any): AutomatedRuleValidationResult;
|
|
6033
|
+
}
|
|
6034
|
+
|
|
6035
|
+
/**
|
|
6036
|
+
* Bộ kiểm tra tính hợp lệ và chuẩn hóa tham số Sự kiện chuyển đổi & Zalo Pixel (Conversions Validator) cho Zalo Ads.
|
|
6037
|
+
* Reverse-engineered và kiểm chứng trực tiếp từ Zalo Ads Web Frontend (chunk 602, chunk 804) & Backend API.
|
|
6038
|
+
*/
|
|
6039
|
+
declare enum ConversionLabelEnum {
|
|
6040
|
+
AddToCart = 2,// Thêm vào giỏ hàng
|
|
6041
|
+
CompleteRegistration = 4,// Hoàn tất đăng ký
|
|
6042
|
+
Contact = 5,// Liên hệ
|
|
6043
|
+
InitiateCheckout = 9,// Bắt đầu thanh toán
|
|
6044
|
+
Lead = 10,// Trở thành khách hàng tiềm năng
|
|
6045
|
+
Purchase = 11,// Hoàn tất mua hàng
|
|
6046
|
+
Other = 19
|
|
6047
|
+
}
|
|
6048
|
+
declare enum ConversionUrlTypeEnum {
|
|
6049
|
+
Exact = 0,// URL chính xác
|
|
6050
|
+
Contains = 1
|
|
6051
|
+
}
|
|
6052
|
+
interface ConversionValidationResult<T = any> {
|
|
6053
|
+
isValid: boolean;
|
|
6054
|
+
errors: string[];
|
|
6055
|
+
warnings: string[];
|
|
6056
|
+
sanitizedData?: T;
|
|
6057
|
+
}
|
|
6058
|
+
declare class ZaloConversionsValidator {
|
|
6059
|
+
/**
|
|
6060
|
+
* Danh mục 7 nhãn chuẩn được Zalo Ads hỗ trợ chính thức
|
|
6061
|
+
*/
|
|
6062
|
+
static readonly SUPPORTED_LABELS: Record<number, string>;
|
|
6063
|
+
/**
|
|
6064
|
+
* Kiểm tra và chuẩn hóa payload tạo mới Conversion (`POST /api/conversion/add`)
|
|
6065
|
+
*/
|
|
6066
|
+
static validateCreateConversion(payload: any): ConversionValidationResult;
|
|
6067
|
+
}
|
|
6068
|
+
|
|
6069
|
+
export { ALLOWED_CTAS_PER_AD_TYPE, ALL_ZALO_ADS_DOMAINS, AutomatedRuleActionTypeEnum, AutomatedRuleConditionFieldEnum, AutomatedRuleFrequencyEnum, AutomatedRuleOperatorEnum, AutomatedRuleScopeEnum, AutomatedRuleTimeRangeEnum, type AutomatedRuleValidationResult, type BodyType, type CampaignValidationResult, ConversionLabelEnum, ConversionUrlTypeEnum, type ConversionValidationResult, type FileDownloadResponse, type FileInput, type HttpMethod, type MediaValidationResult, MemoryZaloSessionStore, type MemoryZaloSessionStoreOptions, type OperationDefinition, RedisZaloSessionStore, type RedisZaloSessionStoreOptions, type RequestOptions, TieredZaloSessionStore, type TieredZaloSessionStoreOptions, VALID_AD_TYPES, VALID_CAMPAIGN_TYPES, type ValidateAdOptions, type ValidateCampaignOptions, type ValidateImageInput, type ValidateVideoInput, type ValidationResult, ZALO_NEW_REGION_PROVINCE_CODES, ZALO_PROVINCE_MERGE_MAPPING, ZALO_REGION_PROVINCE_CODES, ZaloAccountService, type ZaloAdsAccessorItemDto, type ZaloAdsAccountAgencyInfoDto, ZaloAdsIntegrationManager as ZaloAdsAccountPool, ZaloAdsActionType, type ZaloAdsAdAppInfoSettingsDto, type ZaloAdsAdImageSettingsDto, type ZaloAdsAdInfoSettingsDto, type ZaloAdsAdLocationSettingsDto, type ZaloAdsAdMultiImageItemDto, type ZaloAdsAdMutationResultDto, type ZaloAdsAdPriceSettingsDto, type ZaloAdsAdReportItemDto, type ZaloAdsAdSettingsDto, type ZaloAdsAdTargetingLocationContainerDto, type ZaloAdsAdTargetingProvinceItemDto, type ZaloAdsAdTargetingRegionItemDto, type ZaloAdsAdTargetingSettingsDto, type ZaloAdsAdUpdatePayloadDto, type ZaloAdsAdZVideoSettingsDto, ZaloAdsAgeRangeId, type ZaloAdsAutomatedRuleActionDto, type ZaloAdsAutomatedRuleAppliedItemDto, type ZaloAdsAutomatedRuleConditionDto, type ZaloAdsAutomatedRuleScheduleDto, ZaloAdsBudgetScheduleType, type ZaloAdsBudgetScheduleTypeValue, type ZaloAdsCampaignCreatePayloadDto, type ZaloAdsCampaignDetailExtendDto, type ZaloAdsCampaignReportItemDto, ZaloAdsCampaignStatus, type ZaloAdsCampaignStatusValue, type ZaloAdsChangeAutomatedRuleStatusRequest, type ZaloAdsChangeAutomatedRuleStatusResponse, type ZaloAdsChangeCampaignStatusRequest, type ZaloAdsChangeCampaignStatusResponse, type ZaloAdsClientRequest, type ZaloAdsCommerceFormAudienceTargetingDto, type ZaloAdsConversionElementSelectorDto, type ZaloAdsConversionItemDto, type ZaloAdsConversionNameItemDto, type ZaloAdsCreateArticleCampaignRequest, type ZaloAdsCreateArticleCampaignResponse, type ZaloAdsCreateAutomatedRuleRequest, type ZaloAdsCreateAutomatedRuleResponse, type ZaloAdsCreateCommerceCampaignRequest, type ZaloAdsCreateCommerceCampaignResponse, type ZaloAdsCreateCommerceFormAudienceRequest, type ZaloAdsCreateCommerceFormAudienceResponse, type ZaloAdsCreateConversionRequest, type ZaloAdsCreateConversionResponse, type ZaloAdsCreateCustomAudienceRequest, type ZaloAdsCreateCustomAudienceResponse, type ZaloAdsCreateDisplayCampaignRequest, type ZaloAdsCreateDisplayCampaignResponse, type ZaloAdsCreateEcommerceCampaignRequest, type ZaloAdsCreateEcommerceCampaignResponse, ZaloAdsCreateFlowRequest, ZaloAdsCreateFlowResponse, type ZaloAdsCreateFormCampaignRequest, type ZaloAdsCreateFormCampaignResponse, type ZaloAdsCreateFormEventAudienceRequest, type ZaloAdsCreateFormEventAudienceResponse, type ZaloAdsCreateFormLeadAudienceRequest, type ZaloAdsCreateFormLeadAudienceResponse, type ZaloAdsCreateFormPayloadDto, type ZaloAdsCreateFormRequest, type ZaloAdsCreateFormResponse, type ZaloAdsCreateLeadSignalAudienceRequest, type ZaloAdsCreateLeadSignalAudienceResponse, type ZaloAdsCreateLookalikeAudienceRequest, type ZaloAdsCreateLookalikeAudienceResponse, type ZaloAdsCreateMessageCampaignRequest, type ZaloAdsCreateMessageCampaignResponse, type ZaloAdsCreateMessageOaEventAudienceRequest, type ZaloAdsCreateMessageOaEventAudienceResponse, type ZaloAdsCreateMessageOaLeadAudienceRequest, type ZaloAdsCreateMessageOaLeadAudienceResponse, type ZaloAdsCreateMessagePersonalEventAudienceRequest, type ZaloAdsCreateMessagePersonalEventAudienceResponse, type ZaloAdsCreateOaCampaignRequest, type ZaloAdsCreateOaCampaignResponse, type ZaloAdsCreateOfficialAccountCampaignRequest, type ZaloAdsCreateOfficialAccountCampaignResponse, type ZaloAdsCreatePhoneAudienceRequest, type ZaloAdsCreatePhoneAudienceResponse, ZaloAdsCreatePostCampaignRequest, ZaloAdsCreatePostCampaignResponse, type ZaloAdsCreateSavedAudienceRequest, type ZaloAdsCreateSavedAudienceResponse, type ZaloAdsCreateSpellCheckV3JobRequest, type ZaloAdsCreateSpellCheckV3JobResponse, type ZaloAdsCreateVideoCampaignRequest, type ZaloAdsCreateVideoCampaignResponse, type ZaloAdsCreateWebsiteCampaignRequest, type ZaloAdsCreateWebsiteCampaignResponse, type ZaloAdsDeleteAutomatedRuleRequest, type ZaloAdsDeleteAutomatedRuleResponse, type ZaloAdsDeleteCampaignRequest, type ZaloAdsDeleteCampaignResponse, type ZaloAdsDeleteConversionRequest, type ZaloAdsDeleteConversionResponse, type ZaloAdsDeleteCustomAudienceRequest, type ZaloAdsDeleteCustomAudienceResponse, type ZaloAdsDeleteCustomReportRequest, type ZaloAdsDeleteCustomReportResponse, ZaloAdsDeliveryType, type ZaloAdsDeliveryTypeValue, type ZaloAdsDomain, type ZaloAdsDownloadReportRequest, type ZaloAdsDownloadReportResponse, type ZaloAdsDuplicateAdRequest, type ZaloAdsDuplicateAdResponse, type ZaloAdsFileGroupItemDto, ZaloAdsFlowButtonDto, ZaloAdsFlowChildMessageDto, ZaloAdsFlowMessageDto, type ZaloAdsFormAnswerDto, type ZaloAdsFormEventAudienceTargetingDto, type ZaloAdsFormLeadAudienceTargetingDto, type ZaloAdsFormQuestionDto, type ZaloAdsFormQuestionUiDto, type ZaloAdsFormSectionContentDto, type ZaloAdsFormSectionDto, type ZaloAdsFormSectionImageItemDto, type ZaloAdsFormSectionTableItemDto, type ZaloAdsGetAdByIdRequest, type ZaloAdsGetAdByIdResponse, type ZaloAdsGetAdChangeLogRequest, type ZaloAdsGetAdChangeLogResponse, type ZaloAdsGetApiAdGetlistadadvancetargetingRequest, type ZaloAdsGetApiAdGetlistadadvancetargetingResponse, type ZaloAdsGetApiBaAccountAllaccessorsRequest, type ZaloAdsGetApiBaAccountAllaccessorsResponse, type ZaloAdsGetApiBaAccountAllgrantedmembersRequest, type ZaloAdsGetApiBaAccountAllgrantedmembersResponse, type ZaloAdsGetApiConversionAllRequest, type ZaloAdsGetApiConversionAllResponse, type ZaloAdsGetApiConversionStandardEventsRequest, type ZaloAdsGetApiConversionStandardEventsResponse, type ZaloAdsGetApiCustomAudienceAllRequest, type ZaloAdsGetApiCustomAudienceAllResponse, type ZaloAdsGetApiFilegroupsRequest, type ZaloAdsGetApiFilegroupsResponse, type ZaloAdsGetApiLpNewsRequest, type ZaloAdsGetApiLpNewsResponse, type ZaloAdsGetApiMediaItemsRequest, type ZaloAdsGetApiMediaItemsResponse, type ZaloAdsGetApiMemberFilesRequest, type ZaloAdsGetApiMemberFilesResponse, type ZaloAdsGetApiNotifiesHeaderRequest, type ZaloAdsGetApiNotifiesHeaderResponse, type ZaloAdsGetApiPaymentTransactionHistoryRequest, type ZaloAdsGetApiPaymentTransactionHistoryResponse, type ZaloAdsGetApiPlaceGetalldistrictsRequest, type ZaloAdsGetApiPlaceGetalldistrictsResponse, type ZaloAdsGetApiSpellCheckV2Request, type ZaloAdsGetApiSpellCheckV2Response, type ZaloAdsGetApiWhoamiRequest, type ZaloAdsGetApiWhoamiResponse, type ZaloAdsGetAutomatedRuleDetailRequest, type ZaloAdsGetAutomatedRuleDetailResponse, type ZaloAdsGetAutomatedRuleHistoryRequest, type ZaloAdsGetAutomatedRuleHistoryResponse, type ZaloAdsGetDemographicsReportRequest, type ZaloAdsGetDemographicsReportResponse, type ZaloAdsGetReportOverviewRequest, type ZaloAdsGetReportOverviewResponse, type ZaloAdsGetReportapiV2AdsRequest, type ZaloAdsGetReportapiV2AdsResponse, type ZaloAdsGetReportapiV2CampaignsRequest, type ZaloAdsGetReportapiV2CampaignsResponse, type ZaloAdsGetReportapiV2UniqueUserRequest, type ZaloAdsGetReportapiV2UniqueUserResponse, type ZaloAdsGetReportapiV3CampaignsRequest, type ZaloAdsGetReportapiV3CampaignsResponse, type ZaloAdsGetSpellCheckV3JobRequest, type ZaloAdsGetSpellCheckV3JobResponse, type ZaloAdsGetZaapiCampaignReportcampaignRequest, type ZaloAdsGetZaapiCampaignReportcampaignResponse, type ZaloAdsGetZaapiCheckcamphasmanyadsRequest, type ZaloAdsGetZaapiCheckcamphasmanyadsResponse, type ZaloAdsGetZaapiGetadsfromcampaignidRequest, type ZaloAdsGetZaapiGetadsfromcampaignidResponse, type ZaloAdsGetZaapiGetallpagesRequest, type ZaloAdsGetZaapiGetallpagesResponse, type ZaloAdsGetZaapiGetownedarticlesRequest, type ZaloAdsGetZaapiGetownedarticlesResponse, type ZaloAdsGetZaapiGetownedpagesRequest, type ZaloAdsGetZaapiGetownedpagesResponse, type ZaloAdsGrantedMemberItemDto, ZaloAdsImageRatio, type ZaloAdsImageRatioValue, ZaloAdsIntegrationManager, type ZaloAdsIntegrationManagerOptions, type ZaloAdsLeadSignalAudienceTargetingDto, type ZaloAdsLeadSignalOaItem, type ZaloAdsListAgencyCustomersWithBudgetRequest, type ZaloAdsListAgencyCustomersWithBudgetResponse, type ZaloAdsListAutomatedRulesRequest, type ZaloAdsListAutomatedRulesResponse, type ZaloAdsListConversionNamesRequest, type ZaloAdsListConversionNamesResponse, type ZaloAdsListCustomReportsRequest, type ZaloAdsListCustomReportsResponse, type ZaloAdsListFlowsByOfficialAccountRequest, type ZaloAdsListFlowsByOfficialAccountResponse, type ZaloAdsListFormsByOfficialAccountRequest, type ZaloAdsListFormsByOfficialAccountResponse, type ZaloAdsListLeadSignalOasResponse, type ZaloAdsListMiniPagesByTemplateRequest, type ZaloAdsListMiniPagesByTemplateResponse, type ZaloAdsListPersonalPixelLabelsRequest, type ZaloAdsListPersonalPixelLabelsResponse, type ZaloAdsListReportFiltersRequest, type ZaloAdsListReportFiltersResponse, type ZaloAdsLookalikeAudienceTargetingDto, type ZaloAdsLpNewsButtonDto, type ZaloAdsLpNewsItemDto, type ZaloAdsMediaSavePayloadDto, type ZaloAdsMediaSaveSettingsDto, type ZaloAdsMemberFileItemDto, ZaloAdsMessageAdUpdateDataDto, type ZaloAdsMessageOaEventAudienceTargetingDto, type ZaloAdsMessageOaLeadAudienceTargetingDto, type ZaloAdsMessagePersonalEventAudienceTargetingDto, type ZaloAdsNotifyHeaderItemDto, ZaloAdsOsId, type ZaloAdsOsIdValue, type ZaloAdsOwnedArticleItemDto, type ZaloAdsOwnedPageExtraInfoDto, type ZaloAdsOwnedPageItemDto, type ZaloAdsOwnedPageLocationDto, type ZaloAdsPageConfigDto, type ZaloAdsPaymentTransactionItemDto, type ZaloAdsPhoneAudienceTargetingDto, type ZaloAdsPostApiAdEstimateaudienceRequest, type ZaloAdsPostApiAdEstimateaudienceResponse, type ZaloAdsPostApiMediaSaveRequest, type ZaloAdsPostApiMediaSaveResponse, type ZaloAdsPostApiMemberUploadImageRequest, type ZaloAdsPostApiMemberUploadImageResponse, type ZaloAdsPostZaapiDeleteadRequest, type ZaloAdsPostZaapiDeleteadResponse, ZaloAdsPriceLimitType, type ZaloAdsPriceLimitTypeValue, ZaloAdsPriceType, type ZaloAdsPriceTypeValue, ZaloAdsProvinceCode, type ZaloAdsProvinceCodeValue, ZaloAdsRegionId, type ZaloAdsRegionIdValue, type ZaloAdsRenameCampaignRequest, type ZaloAdsRenameCampaignResponse, ZaloAdsSdk, type ZaloAdsSdkOptions, ZaloAdsService, type ZaloAdsSpellCheckIssueDto, type ZaloAdsSpellCheckViolationDto, ZaloAdsSpendingMethod, type ZaloAdsSpendingMethodValue, type ZaloAdsStandardEventItemDto, type ZaloAdsUniqueUserReportDataDto, type ZaloAdsUpdateArticleAdRequest, type ZaloAdsUpdateArticleAdResponse, type ZaloAdsUpdateAutomatedRuleRequest, type ZaloAdsUpdateAutomatedRuleResponse, type ZaloAdsUpdateCommerceAdRequest, type ZaloAdsUpdateCommerceAdResponse, type ZaloAdsUpdateDisplayAdRequest, type ZaloAdsUpdateDisplayAdResponse, type ZaloAdsUpdateEcommerceAdRequest, type ZaloAdsUpdateEcommerceAdResponse, type ZaloAdsUpdateFlowRequest, type ZaloAdsUpdateFlowResponse, type ZaloAdsUpdateFormAdRequest, type ZaloAdsUpdateFormAdResponse, ZaloAdsUpdateMessageAdRequest, ZaloAdsUpdateMessageAdResponse, type ZaloAdsUpdateNewAdsRequest, type ZaloAdsUpdateNewAdsResponse, type ZaloAdsUpdateOaAdRequest, type ZaloAdsUpdateOaAdResponse, type ZaloAdsUpdateOfficialAccountAdRequest, type ZaloAdsUpdateOfficialAccountAdResponse, type ZaloAdsUpdatePostAdRequest, type ZaloAdsUpdatePostAdResponse, ZaloAdsUpdateVideoAdRequest, ZaloAdsUpdateVideoAdResponse, type ZaloAdsUpdateWebsiteAdRequest, type ZaloAdsUpdateWebsiteAdResponse, type ZaloAdsUploadCustomAudiencePhoneListRequest, type ZaloAdsUploadCustomAudiencePhoneListResponse, type ZaloAdsUploadVideoRequest, type ZaloAdsUploadVideoResponse, type ZaloAdsUpsertCustomReportRequest, type ZaloAdsUpsertCustomReportResponse, ZaloAdsUseConversion, type ZaloAdsUseConversionValue, ZaloAdsVideoSrc, type ZaloAdsVideoSrcValue, type ZaloAdsWhoamiProfile, ZaloAdsXTemplates, type ZaloAdsXTemplatesValue, type ZaloAdsZaapiCampaignReportItemDto, ZaloAudiencesService, ZaloAudiencesValidator, type ZaloAuthDomain, ZaloAuthManager, ZaloAutomatedRulesService, ZaloAutomatedRulesValidator, ZaloCampaignsService, ZaloCampaignsValidator, type ZaloChatWidgetGetChatWidgetLoginConfigRequest, type ZaloChatWidgetGetChatWidgetLoginConfigResponse, type ZaloChatWidgetGetLoginConfigRequest, type ZaloChatWidgetGetLoginConfigResponse, ZaloChatWidgetService, ZaloConversionsService, ZaloConversionsValidator, type ZaloCreateFormCleanPayload, type ZaloCreateFormRequestInput, type ZaloDomainSession, ZaloFlowsService, ZaloFlowsValidator, type ZaloFormQuestionAnswerInput, type ZaloFormQuestionInput, type ZaloFormSectionInput, type ZaloFormSessionProfile, type ZaloFormsAudienceExclusionTargetingItem, type ZaloFormsAuthSessionOaItem, type ZaloFormsConversationLeadItem, type ZaloFormsDisableFormLeadNotificationRequest, type ZaloFormsDisableFormLeadNotificationResponse, type ZaloFormsEnableFormLeadNotificationRequest, type ZaloFormsEnableFormLeadNotificationResponse, type ZaloFormsExportFormLeadReportRequest, type ZaloFormsExportFormLeadReportResponse, type ZaloFormsGetAuthSessionResponse, type ZaloFormsLeadAnswerItem, type ZaloFormsLeadItem, type ZaloFormsListAudienceExclusionTargetingRequest, type ZaloFormsListAudienceExclusionTargetingResponse, type ZaloFormsListConversationLeadsRequest, type ZaloFormsListConversationLeadsResponse, type ZaloFormsListFormLeadsRequest, type ZaloFormsListFormLeadsResponse, type ZaloFormsListManagedFormsByOfficialAccountRequest, type ZaloFormsListManagedFormsByOfficialAccountResponse, type ZaloFormsListScenariosByOfficialAccountRequest, type ZaloFormsListScenariosByOfficialAccountResponse, type ZaloFormsListSimpleFormsByOfficialAccountRequest, type ZaloFormsListSimpleFormsByOfficialAccountResponse, type ZaloFormsScenarioItem, ZaloFormsService, type ZaloFormsTrackManageFormEventRequest, type ZaloFormsTrackManageFormEventResponse, type ZaloFormsUpdateFormLeadNotificationIntervalRequest, type ZaloFormsUpdateFormLeadNotificationIntervalResponse, ZaloFormsValidator, type ZaloInstantPageActive, ZaloInstantPageBlockType, ZaloInstantPageSharePermission, type ZaloInstantPageSharePermissionValue, type ZaloInstantPageStatus, type ZaloInstantPagesCloneInstantPageRequest, type ZaloInstantPagesCloneInstantPageResponse, type ZaloInstantPagesCreateInstantPageRequest, type ZaloInstantPagesCreateInstantPageResponse, type ZaloInstantPagesFormRecordItem, type ZaloInstantPagesGetInstantPageDetailRequest, type ZaloInstantPagesGetInstantPageDetailResponse, type ZaloInstantPagesGetInstantPageSharedUserRequest, type ZaloInstantPagesGetInstantPageSharedUserResponse, type ZaloInstantPagesListInstantPageEditHistoryRequest, type ZaloInstantPagesListInstantPageEditHistoryResponse, type ZaloInstantPagesListInstantPageFormRecordsRequest, type ZaloInstantPagesListInstantPageFormRecordsResponse, type ZaloInstantPagesListInstantPageLeadsRequest, type ZaloInstantPagesListInstantPageLeadsResponse, type ZaloInstantPagesListInstantPageSharesRequest, type ZaloInstantPagesListInstantPageSharesResponse, type ZaloInstantPagesListInstantPageUsersRequest, type ZaloInstantPagesListInstantPageUsersResponse, type ZaloInstantPagesListMiniPageTemplatesRequest, type ZaloInstantPagesListMiniPageTemplatesResponse, type ZaloInstantPagesListOfficialAccountsRequest, type ZaloInstantPagesListOfficialAccountsResponse, type ZaloInstantPagesOfficialAccountItem, type ZaloInstantPagesSearchInstantPagesRequest, type ZaloInstantPagesSearchInstantPagesResponse, ZaloInstantPagesService, type ZaloInstantPagesShareMemberDto, type ZaloInstantPagesUpdateInstantPageRequest, type ZaloInstantPagesUpdateInstantPageResponse, type ZaloInstantPagesUpdateInstantPageSharesRequest, type ZaloInstantPagesUpdateInstantPageSharesResponse, type ZaloInstantPagesUpsertInstantPageFormRequest, type ZaloInstantPagesUpsertInstantPageFormResponse, ZaloInstantPagesValidator, type ZaloIntegrationCredentials, type ZaloIntegrationVerificationResult, ZaloMediaService, type ZaloPlaySessionPayload, type ZaloProfileAdsAdministrativeItem, type ZaloProfileAdsCreateOaPageRequest, type ZaloProfileAdsCreateOaPageResponse, type ZaloProfileAdsGetDistrictsRequest, type ZaloProfileAdsGetDistrictsResponse, type ZaloProfileAdsGetProvincesResponse, type ZaloProfileAdsProvinceId, ZaloProfileAdsService, type ZaloProfileAdsSubCategoryId, type ZaloProfileAdsUploadOaAvatarRequest, type ZaloProfileAdsUploadOaAvatarResponse, type ZaloProfileAdsUploadOaCoverRequest, type ZaloProfileAdsUploadOaCoverResponse, type ZaloRedisLikeClient, ZaloReportsService, type ZaloSdkAuth, type ZaloSdkAuthContext, ZaloSdkError, ZaloSdkHttpClient, type ZaloSessionStore, type ZaloSsoAuthOptions, type ZaloUploadAndSaveImageRequest, type ZaloUploadAndSaveImageResult, type ZaloUploadAndSaveVideoRequest, type ZaloUploadAndSaveVideoResult, type ZaloWidgetAPIGetOfficialAccountInfoRequest, type ZaloWidgetAPIGetOfficialAccountInfoResponse, type ZaloWidgetAPIGetWidgetUserProfileRequest, type ZaloWidgetAPIGetWidgetUserProfileResponse, type ZaloWidgetAPIListStickerCategoriesRequest, type ZaloWidgetAPIListStickerCategoriesResponse, type ZaloWidgetAPIListStickersByCategoryRequest, type ZaloWidgetAPIListStickersByCategoryResponse, ZaloWidgetApiService, computeZpsidFingerprint, createZaloSsoAuth, decodePlaySessionJwt, ZaloAdsSdk as default, defaultSharedMemorySessionStore, deriveAccountKeyFromZpsid, parseZaloCookieInput, validateChangeCampaignStatusParams, validateCloneInstantPageRequest, validateCreateCampaignPayload, validateCreateFlowRequest, validateCreateFormEventAudienceRequest, validateCreateFormRequest, validateCreateInstantPageRequest, validateCreateLookalikeAudienceRequest, validateCreateMessageOaEventAudienceRequest, validateCreateMessagePersonalEventAudienceRequest, validateCreatePhoneAudienceRequest, validateCreateSavedAudienceRequest, validateDuplicateAdParams, validateEstimateAudienceRequest, validateGetInstantPageDetailRequest, validateGetInstantPageSharedUserRequest, validateListFlowsByOfficialAccountRequest, validateListFormLeadsRequest, validateListFormsByOfficialAccountRequest, validateListInstantPageEditHistoryRequest, validateListInstantPageFormRecordsRequest, validateListInstantPageLeadsRequest, validateListInstantPageSharesRequest, validateListInstantPageUsersRequest, validateListMiniPageTemplatesRequest, validateListOfficialAccountsRequest, validateRenameCampaignParams, validateSearchInstantPagesRequest, validateUpdateAdPayload, validateUpdateFlowRequest, validateUpdateInstantPageRequest, validateUpsertInstantPageFormRequest };
|