@zernio/node 0.2.1848 → 0.2.1850
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +14 -2
- package/src/generated/types.gen.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -77494,7 +77494,7 @@ type CreateStandaloneAdData = {
|
|
|
77494
77494
|
*/
|
|
77495
77495
|
adSetId?: string;
|
|
77496
77496
|
/**
|
|
77497
|
-
* Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and
|
|
77497
|
+
* 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
77498
|
*
|
|
77499
77499
|
* - 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
77500
|
* - 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
|
@@ -77494,7 +77494,7 @@ type CreateStandaloneAdData = {
|
|
|
77494
77494
|
*/
|
|
77495
77495
|
adSetId?: string;
|
|
77496
77496
|
/**
|
|
77497
|
-
* Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and
|
|
77497
|
+
* 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
77498
|
*
|
|
77499
77499
|
* - 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
77500
|
* - 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.1850",
|
|
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.1850",
|
|
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
|
@@ -20145,16 +20145,28 @@ export const replaceGoogleListingGroupFilters = <ThrowOnError extends boolean =
|
|
|
20145
20145
|
*
|
|
20146
20146
|
* ### Microsoft Ads
|
|
20147
20147
|
*
|
|
20148
|
-
* Use the `accountId` of a `microsoftads` connection and its numeric `adAccountId`. Zernio creates a Search campaign carrying the daily budget, the
|
|
20148
|
+
* Use the `accountId` of a `microsoftads` connection and its numeric `adAccountId`. Zernio creates a Search campaign carrying the daily budget, the locations, the languages and the `campaignNegativeKeywords`, an ad group carrying the schedule and the `negativeKeywords`, a responsive search ad and the `keywords`.
|
|
20149
20149
|
*
|
|
20150
20150
|
* - `goal` is `traffic`; `budgetType` must be `daily`.
|
|
20151
20151
|
* - `headline`, `body` and `linkUrl` are required. `additionalHeadlines` and `additionalDescriptions` complete the ad to 3 to 15 headlines (30 characters) and 2 to 4 descriptions (90 characters); missing ones are filled from `name` and the link's host.
|
|
20152
|
-
* - `countries` (
|
|
20152
|
+
* - At least one location is required: `countries` (ISO codes), `regions`, `cities` or `metros`.
|
|
20153
|
+
* - `regions`, `cities` and `metros` take Google geo target ids, as on Google creates (look them up with GET /v1/ads/targeting/search on a Google account). Zernio maps each to its Microsoft location; one Microsoft cannot target returns 422 naming it.
|
|
20154
|
+
* - City radius, postal codes and other targeting fields are not available.
|
|
20155
|
+
* - `languages` (ISO codes) sets the campaign languages. Without it the campaign targets every language.
|
|
20156
|
+
* - Accepted language codes: sq, bg, hr, cs, da, nl, en, et, fi, fr, de, el, hu, it, ja, lv, lt, mt, no, nb, pl, pt, ro, sk, sl, es, sv, zh-TW and zh-Hant.
|
|
20157
|
+
* - `excludedLocations` returns 422.
|
|
20153
20158
|
* - Negative keywords match `exact` or `phrase` (a bare string is `phrase`); `broad` returns 422.
|
|
20154
20159
|
* - Bid fields, sitelinks, callouts, structured snippets, `businessName`, `longHeadline` and a `campaignType` other than `search` return 422.
|
|
20155
20160
|
*
|
|
20156
20161
|
* 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.
|
|
20157
20162
|
*
|
|
20163
|
+
* `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).
|
|
20164
|
+
*
|
|
20165
|
+
* - The campaign keeps its own budget, locations, languages and campaign negatives: those fields return 422.
|
|
20166
|
+
* - `startDate` and `endDate` set the new ad group's dates.
|
|
20167
|
+
* - `status: PAUSED` pauses only the new ad group, and a failed step deletes only that ad group.
|
|
20168
|
+
* - `adSetId` is not available.
|
|
20169
|
+
*
|
|
20158
20170
|
* ### Snapchat Ads
|
|
20159
20171
|
*
|
|
20160
20172
|
* 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.
|
|
@@ -79330,7 +79330,7 @@ export type CreateStandaloneAdData = {
|
|
|
79330
79330
|
*/
|
|
79331
79331
|
adSetId?: string;
|
|
79332
79332
|
/**
|
|
79333
|
-
* Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and
|
|
79333
|
+
* 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
79334
|
*
|
|
79335
79335
|
* - 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
79336
|
* - 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).
|