@zernio/node 0.2.82 → 0.2.83
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 +14 -1
- package/dist/index.d.ts +14 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +14 -1
package/dist/index.d.mts
CHANGED
|
@@ -12199,9 +12199,22 @@ type CreateStandaloneAdData = {
|
|
|
12199
12199
|
*/
|
|
12200
12200
|
linkUrl?: string;
|
|
12201
12201
|
/**
|
|
12202
|
-
* Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter.
|
|
12202
|
+
* Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected.
|
|
12203
12203
|
*/
|
|
12204
12204
|
imageUrl?: string;
|
|
12205
|
+
/**
|
|
12206
|
+
* Google Display (Responsive Display Ads) only. Google RDA requires both a landscape (1.91:1) and a square (1:1) marketing image; sending only one is rejected upstream as 'Too few.' (NOT_ENOUGH_*_MARKETING_IMAGE_ASSET). Supply both URLs here. Either this field or the legacy `imageUrl` can provide the landscape, but `square` has no legacy counterpart so it must be set here for Display.
|
|
12207
|
+
*/
|
|
12208
|
+
images?: {
|
|
12209
|
+
/**
|
|
12210
|
+
* Landscape 1.91:1 marketing image URL (e.g. 1200x628). Also accepted via the top-level `imageUrl` for backward compatibility.
|
|
12211
|
+
*/
|
|
12212
|
+
landscape?: string;
|
|
12213
|
+
/**
|
|
12214
|
+
* Square 1:1 marketing image URL (e.g. 1080x1080). Required for Google Display.
|
|
12215
|
+
*/
|
|
12216
|
+
square?: string;
|
|
12217
|
+
};
|
|
12205
12218
|
/**
|
|
12206
12219
|
* Meta only (facebook, instagram). When set, creates a VIDEO ad on the legacy or attach shape. Mutually exclusive with `imageUrl`. For multi-creative, set `video` per entry inside `creatives[]` instead.
|
|
12207
12220
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -12199,9 +12199,22 @@ type CreateStandaloneAdData = {
|
|
|
12199
12199
|
*/
|
|
12200
12200
|
linkUrl?: string;
|
|
12201
12201
|
/**
|
|
12202
|
-
* Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter.
|
|
12202
|
+
* Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected.
|
|
12203
12203
|
*/
|
|
12204
12204
|
imageUrl?: string;
|
|
12205
|
+
/**
|
|
12206
|
+
* Google Display (Responsive Display Ads) only. Google RDA requires both a landscape (1.91:1) and a square (1:1) marketing image; sending only one is rejected upstream as 'Too few.' (NOT_ENOUGH_*_MARKETING_IMAGE_ASSET). Supply both URLs here. Either this field or the legacy `imageUrl` can provide the landscape, but `square` has no legacy counterpart so it must be set here for Display.
|
|
12207
|
+
*/
|
|
12208
|
+
images?: {
|
|
12209
|
+
/**
|
|
12210
|
+
* Landscape 1.91:1 marketing image URL (e.g. 1200x628). Also accepted via the top-level `imageUrl` for backward compatibility.
|
|
12211
|
+
*/
|
|
12212
|
+
landscape?: string;
|
|
12213
|
+
/**
|
|
12214
|
+
* Square 1:1 marketing image URL (e.g. 1080x1080). Required for Google Display.
|
|
12215
|
+
*/
|
|
12216
|
+
square?: string;
|
|
12217
|
+
};
|
|
12205
12218
|
/**
|
|
12206
12219
|
* Meta only (facebook, instagram). When set, creates a VIDEO ad on the legacy or attach shape. Mutually exclusive with `imageUrl`. For multi-creative, set `video` per entry inside `creatives[]` instead.
|
|
12207
12220
|
*/
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -3190,7 +3190,7 @@ export const boostPost = <ThrowOnError extends boolean = false>(options: Options
|
|
|
3190
3190
|
*
|
|
3191
3191
|
* **Per-platform required fields** (the platform is inferred from `accountId`):
|
|
3192
3192
|
* - **Meta (facebook, instagram)**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `imageUrl`, `linkUrl`, `callToAction`.
|
|
3193
|
-
* - **Google Ads (Display)**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `linkUrl`, `
|
|
3193
|
+
* - **Google Ads (Display)**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `linkUrl`, `images.landscape` (1.91:1) + `images.square` (1:1), `businessName`. Google's Responsive Display Ads require BOTH a landscape and a square marketing image; supplying only one is rejected by Google as "Too few.". The legacy top-level `imageUrl` is accepted as an alias for `images.landscape` for back-compat. `longHeadline` defaults to `headline` if omitted (max 90 chars).
|
|
3194
3194
|
* - **Google Ads (Search)**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `linkUrl`, `businessName`. `imageUrl` is NOT required for Search. Set `campaignType: "search"`.
|
|
3195
3195
|
* - **TikTok**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `body`, `linkUrl`, `imageUrl` (this field **carries the VIDEO URL** for TikTok; the TikTok ads endpoint is video-only and the field is named `imageUrl` for cross-platform consistency).
|
|
3196
3196
|
* - **Pinterest**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `imageUrl`, `linkUrl`. Optional `boardId` (auto-creates "Zernio Ads" board if omitted).
|
|
@@ -12509,9 +12509,22 @@ export type CreateStandaloneAdData = {
|
|
|
12509
12509
|
*/
|
|
12510
12510
|
linkUrl?: string;
|
|
12511
12511
|
/**
|
|
12512
|
-
* Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter.
|
|
12512
|
+
* Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected.
|
|
12513
12513
|
*/
|
|
12514
12514
|
imageUrl?: string;
|
|
12515
|
+
/**
|
|
12516
|
+
* Google Display (Responsive Display Ads) only. Google RDA requires both a landscape (1.91:1) and a square (1:1) marketing image; sending only one is rejected upstream as 'Too few.' (NOT_ENOUGH_*_MARKETING_IMAGE_ASSET). Supply both URLs here. Either this field or the legacy `imageUrl` can provide the landscape, but `square` has no legacy counterpart so it must be set here for Display.
|
|
12517
|
+
*/
|
|
12518
|
+
images?: {
|
|
12519
|
+
/**
|
|
12520
|
+
* Landscape 1.91:1 marketing image URL (e.g. 1200x628). Also accepted via the top-level `imageUrl` for backward compatibility.
|
|
12521
|
+
*/
|
|
12522
|
+
landscape?: string;
|
|
12523
|
+
/**
|
|
12524
|
+
* Square 1:1 marketing image URL (e.g. 1080x1080). Required for Google Display.
|
|
12525
|
+
*/
|
|
12526
|
+
square?: string;
|
|
12527
|
+
};
|
|
12515
12528
|
/**
|
|
12516
12529
|
* Meta only (facebook, instagram). When set, creates a VIDEO ad on the legacy or attach shape. Mutually exclusive with `imageUrl`. For multi-creative, set `video` per entry inside `creatives[]` instead.
|
|
12517
12530
|
*/
|