@zernio/node 0.2.1066 → 0.2.1068
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/README.md +1 -0
- package/dist/index.d.mts +82 -1
- package/dist/index.d.ts +82 -1
- package/dist/index.js +10 -1
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +25 -1
- package/src/generated/types.gen.ts +81 -0
|
@@ -516,6 +516,16 @@ export type AdCampaign = {
|
|
|
516
516
|
* Only on GET /v1/ads/campaigns with `live=true`. When `platformCampaignStatus` was read from the platform; null when this campaign could not be read live.
|
|
517
517
|
*/
|
|
518
518
|
statusReadAt?: (string) | null;
|
|
519
|
+
/**
|
|
520
|
+
* TikTok only, only on GET /v1/ads/campaigns with `live=true` and only on campaigns read live. TikTok's campaign/get record verbatim: operation_status, objective_type, budget_mode (BUDGET_MODE_INFINITE means no campaign budget, so budget lives on the ad groups), budget, and budget_optimize_on when TikTok returns it. Plus advertiser_currency and advertiser_timezone from TikTok's advertiser/info.
|
|
521
|
+
*/
|
|
522
|
+
nativeSettings?: {
|
|
523
|
+
[key: string]: unknown;
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Only on GET /v1/ads/campaigns with `live=true`. When `nativeSettings` was read from the platform. Null whenever native settings were not read now.
|
|
527
|
+
*/
|
|
528
|
+
configReadAt?: (string) | null;
|
|
519
529
|
/**
|
|
520
530
|
* Platform-reported campaign issues (Meta `issues_info[]`).
|
|
521
531
|
*/
|
|
@@ -39860,6 +39870,16 @@ export type ListAdSetsResponse = ({
|
|
|
39860
39870
|
* TikTok only, only with `live=true` and only on rows read live. The ad group's `billing_event` exactly as TikTok's adgroup/get returns it now (for example CPV, CPC, OCPM).
|
|
39861
39871
|
*/
|
|
39862
39872
|
billingEvent?: (string) | null;
|
|
39873
|
+
/**
|
|
39874
|
+
* TikTok only, only with `live=true` and only on rows read live. TikTok's adgroup/get record verbatim (snake_case, TikTok's own names and enums): operation_status, optimization_goal, optimization_event, billing_event, bid_type, bid_price, budget, budget_mode, pacing, schedule_type, schedule_start_time, schedule_end_time, dayparting, placement_type, placements, location_ids, age_groups, gender, languages, interest_category_ids, interest_keyword_ids, actions, audience_ids, excluded_audience_ids, operating_systems, frequency, frequency_schedule, smart_audience_enabled, smart_interest_behavior_enabled. Plus advertiser_currency and advertiser_timezone from TikTok's advertiser/info. A field TikTok does not return is absent.
|
|
39875
|
+
*/
|
|
39876
|
+
nativeSettings?: {
|
|
39877
|
+
[key: string]: unknown;
|
|
39878
|
+
};
|
|
39879
|
+
/**
|
|
39880
|
+
* Only with `live=true`. When `nativeSettings` was read from the platform. Null on every row whose native settings were not read now (row past the cap, failed read, or a platform without a native read).
|
|
39881
|
+
*/
|
|
39882
|
+
configReadAt?: (string) | null;
|
|
39863
39883
|
}>;
|
|
39864
39884
|
});
|
|
39865
39885
|
|
|
@@ -41109,6 +41129,67 @@ export type GetAdPreviewsResponse = ({
|
|
|
41109
41129
|
|
|
41110
41130
|
export type GetAdPreviewsError = (unknown | ErrorResponse);
|
|
41111
41131
|
|
|
41132
|
+
export type GetAdReviewData = {
|
|
41133
|
+
path: {
|
|
41134
|
+
/**
|
|
41135
|
+
* Zernio ad id (24-char hex) or the platform ad id.
|
|
41136
|
+
*/
|
|
41137
|
+
adId: string;
|
|
41138
|
+
};
|
|
41139
|
+
};
|
|
41140
|
+
|
|
41141
|
+
export type GetAdReviewResponse = ({
|
|
41142
|
+
adId?: string;
|
|
41143
|
+
platform?: string;
|
|
41144
|
+
platformAdId?: string;
|
|
41145
|
+
review?: {
|
|
41146
|
+
/**
|
|
41147
|
+
* TikTok `is_approved`.
|
|
41148
|
+
*/
|
|
41149
|
+
approved?: (boolean) | null;
|
|
41150
|
+
/**
|
|
41151
|
+
* TikTok `review_status`, verbatim: ALL_AVAILABLE (approved everywhere), PART_AVAILABLE (approved for part of the targeting), UNAVAILABLE (rejected).
|
|
41152
|
+
*/
|
|
41153
|
+
reviewStatus?: (string) | null;
|
|
41154
|
+
forbiddenPlacements?: Array<(string)>;
|
|
41155
|
+
forbiddenAges?: Array<(string)>;
|
|
41156
|
+
forbiddenLocations?: Array<(string)>;
|
|
41157
|
+
forbiddenOperatingSystems?: Array<(string)>;
|
|
41158
|
+
/**
|
|
41159
|
+
* One entry per rejected piece of content (TikTok `reject_info`). Empty when the ad was approved.
|
|
41160
|
+
*/
|
|
41161
|
+
rejections?: Array<{
|
|
41162
|
+
reasons?: Array<(string)>;
|
|
41163
|
+
/**
|
|
41164
|
+
* TikTok's advice for fixing the rejection.
|
|
41165
|
+
*/
|
|
41166
|
+
suggestion?: (string) | null;
|
|
41167
|
+
forbiddenPlacements?: Array<(string)>;
|
|
41168
|
+
forbiddenAges?: Array<(string)>;
|
|
41169
|
+
forbiddenLocations?: Array<(string)>;
|
|
41170
|
+
/**
|
|
41171
|
+
* The content TikTok reviewed.
|
|
41172
|
+
*/
|
|
41173
|
+
content?: {
|
|
41174
|
+
/**
|
|
41175
|
+
* MODE_STRING, MODE_IMAGE, MODE_VIDEO or MODE_CAROUSEL_MUSIC.
|
|
41176
|
+
*/
|
|
41177
|
+
type?: (string) | null;
|
|
41178
|
+
text?: (string) | null;
|
|
41179
|
+
imageId?: (string) | null;
|
|
41180
|
+
videoId?: (string) | null;
|
|
41181
|
+
musicId?: (string) | null;
|
|
41182
|
+
} | null;
|
|
41183
|
+
}>;
|
|
41184
|
+
/**
|
|
41185
|
+
* When the verdict was read from TikTok.
|
|
41186
|
+
*/
|
|
41187
|
+
readAt?: string;
|
|
41188
|
+
};
|
|
41189
|
+
});
|
|
41190
|
+
|
|
41191
|
+
export type GetAdReviewError = (ErrorResponse | unknown);
|
|
41192
|
+
|
|
41112
41193
|
export type GetAdMediaData = {
|
|
41113
41194
|
path: {
|
|
41114
41195
|
/**
|