@zernio/node 0.2.1849 → 0.2.1851
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +15 -0
- package/src/generated/types.gen.ts +7 -1
package/dist/index.d.mts
CHANGED
|
@@ -70387,6 +70387,12 @@ type UpdateAdSetData = {
|
|
|
70387
70387
|
*
|
|
70388
70388
|
*/
|
|
70389
70389
|
endDate?: (string) | null;
|
|
70390
|
+
/**
|
|
70391
|
+
* Meta only. Meta-native targeting keys (snake_case, as GET /v1/ads/{adId} returns them) layered over the ad set's live targeting before `targeting` is applied. Each key replaces its live counterpart and `null` removes it.
|
|
70392
|
+
*/
|
|
70393
|
+
rawTargeting?: {
|
|
70394
|
+
[key: string]: unknown;
|
|
70395
|
+
};
|
|
70390
70396
|
/**
|
|
70391
70397
|
* Targeting fields to change. Meta and Reddit (400 elsewhere).
|
|
70392
70398
|
*
|
|
@@ -77494,7 +77500,7 @@ type CreateStandaloneAdData = {
|
|
|
77494
77500
|
*/
|
|
77495
77501
|
adSetId?: string;
|
|
77496
77502
|
/**
|
|
77497
|
-
* Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and
|
|
77503
|
+
* Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok, Reddit Ads and Microsoft Ads. Mutually exclusive with `adSetId`.
|
|
77498
77504
|
*
|
|
77499
77505
|
* - TikTok: creates the ad group and the ad under this campaign. The campaign is neither created nor activated, and its objective must fit `goal`. Not with `smartPlus`.
|
|
77500
77506
|
* - Meta: adds the new ad set under this campaign (multi-ad-set audience testing). Its budget matches the campaign's mode: for a CBO campaign (campaign-level budget) omit `budgetAmount`/`budgetType`, since the campaign owns the budget; for an ABO campaign pass them (they go on the new ad set).
|
package/dist/index.d.ts
CHANGED
|
@@ -70387,6 +70387,12 @@ type UpdateAdSetData = {
|
|
|
70387
70387
|
*
|
|
70388
70388
|
*/
|
|
70389
70389
|
endDate?: (string) | null;
|
|
70390
|
+
/**
|
|
70391
|
+
* Meta only. Meta-native targeting keys (snake_case, as GET /v1/ads/{adId} returns them) layered over the ad set's live targeting before `targeting` is applied. Each key replaces its live counterpart and `null` removes it.
|
|
70392
|
+
*/
|
|
70393
|
+
rawTargeting?: {
|
|
70394
|
+
[key: string]: unknown;
|
|
70395
|
+
};
|
|
70390
70396
|
/**
|
|
70391
70397
|
* Targeting fields to change. Meta and Reddit (400 elsewhere).
|
|
70392
70398
|
*
|
|
@@ -77494,7 +77500,7 @@ type CreateStandaloneAdData = {
|
|
|
77494
77500
|
*/
|
|
77495
77501
|
adSetId?: string;
|
|
77496
77502
|
/**
|
|
77497
|
-
* Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and
|
|
77503
|
+
* Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok, Reddit Ads and Microsoft Ads. Mutually exclusive with `adSetId`.
|
|
77498
77504
|
*
|
|
77499
77505
|
* - TikTok: creates the ad group and the ad under this campaign. The campaign is neither created nor activated, and its objective must fit `goal`. Not with `smartPlus`.
|
|
77500
77506
|
* - Meta: adds the new ad set under this campaign (multi-ad-set audience testing). Its budget matches the campaign's mode: for a CBO campaign (campaign-level budget) omit `budgetAmount`/`budgetType`, since the campaign owns the budget; for an ABO campaign pass them (they go on the new ad set).
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1851",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1851",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -16791,6 +16791,14 @@ export const getAdSetDetails = <ThrowOnError extends boolean = false>(options: O
|
|
|
16791
16791
|
*
|
|
16792
16792
|
* Other platforms return 400 for either field before anything in the request is written (use PUT /v1/ads/{adId} with `targeting` where that platform supports it).
|
|
16793
16793
|
*
|
|
16794
|
+
* `rawTargeting` (Meta only) takes Meta's own snake_case keys, as on create, for what `targeting` cannot express: one `flexible_spec` group ORing several kinds, `exclusions`, and similar.
|
|
16795
|
+
*
|
|
16796
|
+
* - Each raw key replaces the live key of the same name; `null` removes it. Keys you don't send are kept.
|
|
16797
|
+
* - A raw `geo_locations` that sends any location list replaces every live location list, as above.
|
|
16798
|
+
* - `targeting` and `placements` in the same request are applied on top and win on the same key.
|
|
16799
|
+
* - Raw `flexible_spec` with a structured detailed-targeting field (interests, behaviors, work fields, incomeTier), or raw `excluded_geo_locations` with `excludedLocations`, returns 400: send that targeting in one of them.
|
|
16800
|
+
* - Other networks, an empty object and the retired `video_feeds` Facebook position return 400.
|
|
16801
|
+
*
|
|
16794
16802
|
* The live read and the `incomeTier` lookup run before any other field is written, so a 502 or 422 from them leaves the ad set unchanged.
|
|
16795
16803
|
*
|
|
16796
16804
|
* ### Reddit Ads: budget, name and bidding
|
|
@@ -20160,6 +20168,13 @@ export const replaceGoogleListingGroupFilters = <ThrowOnError extends boolean =
|
|
|
20160
20168
|
*
|
|
20161
20169
|
* Without `status`, every level is switched on and the campaign spends once Microsoft approves the ad: send `status: PAUSED` to create it paused. A failed step deletes the campaign the call created.
|
|
20162
20170
|
*
|
|
20171
|
+
* `existingCampaignId` adds a new ad group, with its ad, `keywords` and `negativeKeywords`, to an existing Microsoft Search campaign in the ad account (404 when it is not there).
|
|
20172
|
+
*
|
|
20173
|
+
* - The campaign keeps its own budget, locations, languages and campaign negatives: those fields return 422.
|
|
20174
|
+
* - `startDate` and `endDate` set the new ad group's dates.
|
|
20175
|
+
* - `status: PAUSED` pauses only the new ad group, and a failed step deletes only that ad group.
|
|
20176
|
+
* - `adSetId` is not available.
|
|
20177
|
+
*
|
|
20163
20178
|
* ### Snapchat Ads
|
|
20164
20179
|
*
|
|
20165
20180
|
* Use the `accountId` of a `snapchatads` connection signed in through GET /v1/connect/snapchatads/ads and an ad account UUID as `adAccountId`. A connection that only holds a pasted Snap Pixel token returns 422 `ads_connection_required`. Zernio creates a campaign, an ad squad carrying the budget, schedule, bid and targeting, and a Snap Ad.
|
|
@@ -71842,6 +71842,12 @@ export type UpdateAdSetData = {
|
|
|
71842
71842
|
*
|
|
71843
71843
|
*/
|
|
71844
71844
|
endDate?: (string) | null;
|
|
71845
|
+
/**
|
|
71846
|
+
* Meta only. Meta-native targeting keys (snake_case, as GET /v1/ads/{adId} returns them) layered over the ad set's live targeting before `targeting` is applied. Each key replaces its live counterpart and `null` removes it.
|
|
71847
|
+
*/
|
|
71848
|
+
rawTargeting?: {
|
|
71849
|
+
[key: string]: unknown;
|
|
71850
|
+
};
|
|
71845
71851
|
/**
|
|
71846
71852
|
* Targeting fields to change. Meta and Reddit (400 elsewhere).
|
|
71847
71853
|
*
|
|
@@ -79330,7 +79336,7 @@ export type CreateStandaloneAdData = {
|
|
|
79330
79336
|
*/
|
|
79331
79337
|
adSetId?: string;
|
|
79332
79338
|
/**
|
|
79333
|
-
* Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and
|
|
79339
|
+
* Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok, Reddit Ads and Microsoft Ads. Mutually exclusive with `adSetId`.
|
|
79334
79340
|
*
|
|
79335
79341
|
* - TikTok: creates the ad group and the ad under this campaign. The campaign is neither created nor activated, and its objective must fit `goal`. Not with `smartPlus`.
|
|
79336
79342
|
* - Meta: adds the new ad set under this campaign (multi-ad-set audience testing). Its budget matches the campaign's mode: for a CBO campaign (campaign-level budget) omit `budgetAmount`/`budgetType`, since the campaign owns the budget; for an ABO campaign pass them (they go on the new ad set).
|