@getlatedev/node 0.2.1746 → 0.2.1748
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 -1
- package/dist/index.d.mts +198 -21
- package/dist/index.d.ts +198 -21
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +8 -4
- package/src/generated/types.gen.ts +205 -20
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1748",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1748",
|
|
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
|
@@ -4959,14 +4959,18 @@ export const connectOpenAiAdsCredentials = <ThrowOnError extends boolean = false
|
|
|
4959
4959
|
};
|
|
4960
4960
|
|
|
4961
4961
|
/**
|
|
4962
|
-
* Connect an AppLovin
|
|
4963
|
-
* Connect AppLovin Axon with the Conversion API key and Event Key from the Keys page of Axon Ads Manager.
|
|
4962
|
+
* Connect an AppLovin account
|
|
4963
|
+
* Connect an AppLovin account (Axon ads) with the Conversion API key and Event Key from the Keys page of AppLovin Axon Ads Manager, the Campaign Management API key with its account id, or all of them.
|
|
4964
4964
|
*
|
|
4965
|
-
* Zernio checks
|
|
4965
|
+
* Zernio checks each key set with AppLovin before saving it.
|
|
4966
|
+
*
|
|
4967
|
+
* - With the conversion keys, the account receives the conversion events you forward to it (`POST /v1/events`, forwarding rules), and its Event Key works as a site tag on tracking sites.
|
|
4968
|
+
* - With the Campaign Management keys, Zernio reads, creates and manages the account's campaigns and creative sets (`/v1/ads`).
|
|
4969
|
+
* - Connecting the Campaign Management keys to a profile that already has the conversion keys adds them to the same connection. A connection made with the Campaign Management keys only cannot take the conversion keys later: connect all keys together instead.
|
|
4966
4970
|
*
|
|
4967
4971
|
* Add the optional Report Key to sync AppLovin spend. Every few hours Zernio reads spend, impressions and clicks per campaign and creative set for the last 7 days, so AppLovin campaigns show in the ads campaign listings and in campaign results.
|
|
4968
4972
|
*
|
|
4969
|
-
*
|
|
4973
|
+
* Connecting again without a key keeps the one already saved.
|
|
4970
4974
|
*
|
|
4971
4975
|
* Requires the Ads add-on.
|
|
4972
4976
|
*
|
|
@@ -4321,6 +4321,131 @@ export type scope = 'full' | 'profiles';
|
|
|
4321
4321
|
*/
|
|
4322
4322
|
export type permission = 'read-write' | 'read';
|
|
4323
4323
|
|
|
4324
|
+
/**
|
|
4325
|
+
* AppLovin options in platformSpecificData. Campaign fields apply to a new campaign; assets, languages and brandInfo to the creative set (the ad).
|
|
4326
|
+
*/
|
|
4327
|
+
export type AppLovinAdsPlatformData = {
|
|
4328
|
+
/**
|
|
4329
|
+
* Required for a new campaign.
|
|
4330
|
+
*/
|
|
4331
|
+
campaignType?: 'APP' | 'WEB';
|
|
4332
|
+
/**
|
|
4333
|
+
* APP campaigns. Required.
|
|
4334
|
+
*/
|
|
4335
|
+
os?: 'IOS' | 'ANDROID';
|
|
4336
|
+
/**
|
|
4337
|
+
* APP campaigns. Required.
|
|
4338
|
+
*/
|
|
4339
|
+
packageName?: string;
|
|
4340
|
+
/**
|
|
4341
|
+
* iOS APP campaigns. Required.
|
|
4342
|
+
*/
|
|
4343
|
+
itunesId?: number;
|
|
4344
|
+
/**
|
|
4345
|
+
* WEB campaigns. Required unless linkUrl is sent.
|
|
4346
|
+
*/
|
|
4347
|
+
websiteUrl?: string;
|
|
4348
|
+
/**
|
|
4349
|
+
* Defaults to CPI billing for a CPI goal, CPM billing otherwise. TARGET_GOAL_WITH_CPI_BILLING takes an APP campaign with a CPI goal only. Set at creation only.
|
|
4350
|
+
*/
|
|
4351
|
+
biddingStrategy?: 'TARGET_GOAL_WITH_CPI_BILLING' | 'AUTO_BIDDING_WITH_CPM_BILLING';
|
|
4352
|
+
/**
|
|
4353
|
+
* APP takes all, WEB takes CPE, CPP and CHK_ROAS. Defaults from goal: app_promotion is CPI, conversions CPP, lead_generation CPE. Set at creation only.
|
|
4354
|
+
*/
|
|
4355
|
+
goalType?: 'CPI' | 'CPE' | 'CPP' | 'AD_ROAS' | 'CHK_ROAS' | 'BLD_ROAS';
|
|
4356
|
+
/**
|
|
4357
|
+
* The goal for every country (a cost, or a ROAS ratio). APP limits: CPI below 200, CPE and CPP below 500, AD_ROAS at least 0.1, CHK_ROAS at least 0.01, BLD_ROAS at least 0.05. Send this or countryGoalValues.
|
|
4358
|
+
*/
|
|
4359
|
+
goalValue?: number;
|
|
4360
|
+
/**
|
|
4361
|
+
* Per-country goal values for targeted countries.
|
|
4362
|
+
*/
|
|
4363
|
+
countryGoalValues?: {
|
|
4364
|
+
[key: string]: (number);
|
|
4365
|
+
};
|
|
4366
|
+
/**
|
|
4367
|
+
* Required for ROAS goals (and WEB CPP). APP takes DAY7 or DAY28, WEB DAY0 or DAY7.
|
|
4368
|
+
*/
|
|
4369
|
+
roasDayTarget?: 'DAY0' | 'DAY7' | 'DAY28';
|
|
4370
|
+
/**
|
|
4371
|
+
* Required for a CPE goal.
|
|
4372
|
+
*/
|
|
4373
|
+
eventTarget?: string;
|
|
4374
|
+
/**
|
|
4375
|
+
* Per-country daily budgets, instead of budgetAmount. AppLovin budgets are daily only.
|
|
4376
|
+
*/
|
|
4377
|
+
countryBudgets?: {
|
|
4378
|
+
[key: string]: (number);
|
|
4379
|
+
};
|
|
4380
|
+
/**
|
|
4381
|
+
* APP campaigns. Required.
|
|
4382
|
+
*/
|
|
4383
|
+
tracking?: {
|
|
4384
|
+
method: 'ADJUST' | 'APPSFLYER' | 'APSALAR' | 'BRANCH' | 'KOCHAVA' | 'TENJIN';
|
|
4385
|
+
impressionUrl: string;
|
|
4386
|
+
clickUrl: string;
|
|
4387
|
+
};
|
|
4388
|
+
/**
|
|
4389
|
+
* WEB campaigns.
|
|
4390
|
+
*/
|
|
4391
|
+
audienceStrategy?: 'UNIVERSAL' | 'PROSPECTING' | 'DISCOVERY';
|
|
4392
|
+
/**
|
|
4393
|
+
* The creative set media: URLs Zernio uploads to AppLovin, or ids of assets already there. Needs a HOSTED_HTML asset, or an IMG_INTER_P image plus a VID_LONG_P or VID_SHORT_P video.
|
|
4394
|
+
*/
|
|
4395
|
+
assets?: Array<({
|
|
4396
|
+
type: 'HOSTED_HTML' | 'VID_LONG_P' | 'VID_SHORT_P' | 'IMG_BANNER' | 'IMG_INTER_P';
|
|
4397
|
+
url: string;
|
|
4398
|
+
} | {
|
|
4399
|
+
id: string;
|
|
4400
|
+
})>;
|
|
4401
|
+
/**
|
|
4402
|
+
* Creative set languages as AppLovin names them. All languages by default.
|
|
4403
|
+
*/
|
|
4404
|
+
languages?: Array<(string)>;
|
|
4405
|
+
/**
|
|
4406
|
+
* WEB creative sets. Omitted means the account-level brand info.
|
|
4407
|
+
*/
|
|
4408
|
+
brandInfo?: {
|
|
4409
|
+
title: string;
|
|
4410
|
+
description: string;
|
|
4411
|
+
buttonLabel: string;
|
|
4412
|
+
buttonColor: string;
|
|
4413
|
+
iconUrl: string;
|
|
4414
|
+
};
|
|
4415
|
+
};
|
|
4416
|
+
|
|
4417
|
+
/**
|
|
4418
|
+
* Required for a new campaign.
|
|
4419
|
+
*/
|
|
4420
|
+
export type campaignType = 'APP' | 'WEB';
|
|
4421
|
+
|
|
4422
|
+
/**
|
|
4423
|
+
* APP campaigns. Required.
|
|
4424
|
+
*/
|
|
4425
|
+
export type os = 'IOS' | 'ANDROID';
|
|
4426
|
+
|
|
4427
|
+
/**
|
|
4428
|
+
* Defaults to CPI billing for a CPI goal, CPM billing otherwise. TARGET_GOAL_WITH_CPI_BILLING takes an APP campaign with a CPI goal only. Set at creation only.
|
|
4429
|
+
*/
|
|
4430
|
+
export type biddingStrategy2 = 'TARGET_GOAL_WITH_CPI_BILLING' | 'AUTO_BIDDING_WITH_CPM_BILLING';
|
|
4431
|
+
|
|
4432
|
+
/**
|
|
4433
|
+
* APP takes all, WEB takes CPE, CPP and CHK_ROAS. Defaults from goal: app_promotion is CPI, conversions CPP, lead_generation CPE. Set at creation only.
|
|
4434
|
+
*/
|
|
4435
|
+
export type goalType = 'CPI' | 'CPE' | 'CPP' | 'AD_ROAS' | 'CHK_ROAS' | 'BLD_ROAS';
|
|
4436
|
+
|
|
4437
|
+
/**
|
|
4438
|
+
* Required for ROAS goals (and WEB CPP). APP takes DAY7 or DAY28, WEB DAY0 or DAY7.
|
|
4439
|
+
*/
|
|
4440
|
+
export type roasDayTarget = 'DAY0' | 'DAY7' | 'DAY28';
|
|
4441
|
+
|
|
4442
|
+
export type method = 'ADJUST' | 'APPSFLYER' | 'APSALAR' | 'BRANCH' | 'KOCHAVA' | 'TENJIN';
|
|
4443
|
+
|
|
4444
|
+
/**
|
|
4445
|
+
* WEB campaigns.
|
|
4446
|
+
*/
|
|
4447
|
+
export type audienceStrategy = 'UNIVERSAL' | 'PROSPECTING' | 'DISCOVERY';
|
|
4448
|
+
|
|
4324
4449
|
/**
|
|
4325
4450
|
* One person. Each key is plaintext or its SHA-256 hash (64 hex characters). At least one key is required; see the endpoint description for which keys each platform uses.
|
|
4326
4451
|
*/
|
|
@@ -8275,7 +8400,7 @@ export type CommerceDiscount = {
|
|
|
8275
8400
|
|
|
8276
8401
|
export type platform7 = 'shopify';
|
|
8277
8402
|
|
|
8278
|
-
export type
|
|
8403
|
+
export type method2 = 'code' | 'automatic';
|
|
8279
8404
|
|
|
8280
8405
|
export type type14 = 'percentage' | 'fixed_amount' | 'free_shipping' | 'buy_x_get_y' | 'app';
|
|
8281
8406
|
|
|
@@ -19094,7 +19219,7 @@ export type PayoutBatch = {
|
|
|
19094
19219
|
*/
|
|
19095
19220
|
export type status49 = 'awaiting_payment' | 'paying' | 'paid' | 'partially_failed' | 'failed' | 'expired';
|
|
19096
19221
|
|
|
19097
|
-
export type
|
|
19222
|
+
export type method3 = 'card';
|
|
19098
19223
|
|
|
19099
19224
|
export type PayoutBatchItem = {
|
|
19100
19225
|
id: string;
|
|
@@ -21899,7 +22024,7 @@ export type StorePixelInstall = {
|
|
|
21899
22024
|
/**
|
|
21900
22025
|
* WordPress only.
|
|
21901
22026
|
*/
|
|
21902
|
-
export type
|
|
22027
|
+
export type method4 = 'wordpress_widget';
|
|
21903
22028
|
|
|
21904
22029
|
export type StripeSettings = {
|
|
21905
22030
|
/**
|
|
@@ -22952,7 +23077,7 @@ export type status59 = 'active' | 'paused' | 'removing';
|
|
|
22952
23077
|
/**
|
|
22953
23078
|
* How the tag is installed. `snippet` means you paste it.
|
|
22954
23079
|
*/
|
|
22955
|
-
export type
|
|
23080
|
+
export type method5 = 'shopify' | 'wordpress' | 'wix' | 'webflow' | 'snippet';
|
|
22956
23081
|
|
|
22957
23082
|
export type type32 = 'CNAME';
|
|
22958
23083
|
|
|
@@ -23350,7 +23475,7 @@ export type TreasuryTopup = {
|
|
|
23350
23475
|
bonusCents?: (number) | null;
|
|
23351
23476
|
};
|
|
23352
23477
|
|
|
23353
|
-
export type
|
|
23478
|
+
export type method6 = 'card' | 'bank_transfer';
|
|
23354
23479
|
|
|
23355
23480
|
/**
|
|
23356
23481
|
* `balance` funds your balance; `payout_batch` is the card payment of one payout batch, which pays its creators directly.
|
|
@@ -44558,13 +44683,25 @@ export type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown | {
|
|
|
44558
44683
|
export type ConnectAppLovinAdsCredentialsData = {
|
|
44559
44684
|
body: {
|
|
44560
44685
|
/**
|
|
44561
|
-
* Conversion API key from the Keys page of Axon Ads Manager.
|
|
44686
|
+
* Conversion API key from the Keys page of AppLovin Axon Ads Manager. Sent with eventKey.
|
|
44562
44687
|
*/
|
|
44563
|
-
apiKey
|
|
44688
|
+
apiKey?: string;
|
|
44564
44689
|
/**
|
|
44565
|
-
* Event Key from the Keys page of Axon Ads Manager: 8 to 128 letters, digits, dots, dashes or underscores.
|
|
44690
|
+
* Event Key from the Keys page of AppLovin Axon Ads Manager: 8 to 128 letters, digits, dots, dashes or underscores. Sent with apiKey.
|
|
44566
44691
|
*/
|
|
44567
|
-
eventKey
|
|
44692
|
+
eventKey?: string;
|
|
44693
|
+
/**
|
|
44694
|
+
* Campaign Management API key from the Keys page of ads.axon.ai (visible to account Admins only). Sent with accountId. Lets Zernio read, create and manage campaigns and creative sets.
|
|
44695
|
+
*/
|
|
44696
|
+
campaignApiKey?: string;
|
|
44697
|
+
/**
|
|
44698
|
+
* Numeric AppLovin account id (Account menu, then Go to settings, in ads.axon.ai). Sent with campaignApiKey.
|
|
44699
|
+
*/
|
|
44700
|
+
accountId?: string;
|
|
44701
|
+
/**
|
|
44702
|
+
* The Zernio id of the AppLovin connection being reconnected (a connection on this profile). The keys sent update that connection, which keeps its identity, instead of creating one: send it to add or replace keys on an existing connection.
|
|
44703
|
+
*/
|
|
44704
|
+
reconnectAccountId?: string;
|
|
44568
44705
|
/**
|
|
44569
44706
|
* Optional Report Key from the Keys page of your AppLovin account. With it, Zernio syncs AppLovin spend per campaign.
|
|
44570
44707
|
*/
|
|
@@ -44590,7 +44727,14 @@ export type ConnectAppLovinAdsCredentialsData = {
|
|
|
44590
44727
|
|
|
44591
44728
|
export type ConnectAppLovinAdsCredentialsResponse = ({
|
|
44592
44729
|
accountId?: string;
|
|
44730
|
+
/**
|
|
44731
|
+
* Present when the request sent the conversion keys.
|
|
44732
|
+
*/
|
|
44593
44733
|
eventKey?: string;
|
|
44734
|
+
/**
|
|
44735
|
+
* The AppLovin account id. Present when the request sent the Campaign Management keys.
|
|
44736
|
+
*/
|
|
44737
|
+
axonAccountId?: string;
|
|
44594
44738
|
accountName?: string;
|
|
44595
44739
|
redirectUrl?: string;
|
|
44596
44740
|
});
|
|
@@ -68199,17 +68343,33 @@ export type CreateAdCampaignData = {
|
|
|
68199
68343
|
budgetType?: 'daily' | 'lifetime';
|
|
68200
68344
|
status?: 'ACTIVE' | 'PAUSED';
|
|
68201
68345
|
/**
|
|
68202
|
-
* Reddit and
|
|
68346
|
+
* Reddit, Amazon and AppLovin only (400 elsewhere). Campaign start (ISO 8601); a value without an offset is read in the ad account time zone. Requires a campaign budget (`budgetAmount` + `budgetType`, 400 otherwise). AppLovin reads it in UTC and refuses a start before today. Defaults to now.
|
|
68203
68347
|
*/
|
|
68204
68348
|
startDate?: string;
|
|
68205
68349
|
/**
|
|
68206
|
-
* Reddit and
|
|
68350
|
+
* Reddit, Amazon and AppLovin only (400 elsewhere). Campaign end (ISO 8601); a value without an offset is read in the ad account time zone. Requires a campaign budget (400 otherwise), and is required for `budgetType: lifetime`. On AppLovin no endDate means continuous delivery.
|
|
68207
68351
|
*/
|
|
68208
68352
|
endDate?: string;
|
|
68209
68353
|
/**
|
|
68210
|
-
*
|
|
68354
|
+
* AppLovin only (400 elsewhere), where the campaign carries the targeting: the countries it serves, at least one.
|
|
68355
|
+
*/
|
|
68356
|
+
countries?: Array<(string)>;
|
|
68357
|
+
/**
|
|
68358
|
+
* AppLovin only (400 elsewhere). US state codes (`CA` or `US-CA`), with `US` in countries. Never together with metros.
|
|
68359
|
+
*/
|
|
68360
|
+
regions?: Array<{
|
|
68361
|
+
key: string;
|
|
68362
|
+
}>;
|
|
68363
|
+
/**
|
|
68364
|
+
* AppLovin only (400 elsewhere). AppLovin metro names, with `US` in countries. Never together with regions.
|
|
68365
|
+
*/
|
|
68366
|
+
metros?: Array<{
|
|
68367
|
+
key: string;
|
|
68368
|
+
}>;
|
|
68369
|
+
/**
|
|
68370
|
+
* Amazon Ads (required there: the ad product and its campaign settings) and AppLovin (the campaign type, app or website, goal, bidding and tracking; its creative set fields do not apply here) only, 400 elsewhere.
|
|
68211
68371
|
*/
|
|
68212
|
-
platformSpecificData?: (AmazonAdsCampaignPlatformData);
|
|
68372
|
+
platformSpecificData?: (AmazonAdsCampaignPlatformData | AppLovinAdsPlatformData);
|
|
68213
68373
|
/**
|
|
68214
68374
|
* Google only (400 elsewhere). Written on the new campaign.
|
|
68215
68375
|
*/
|
|
@@ -68553,20 +68713,23 @@ export type UpdateAdCampaignData = {
|
|
|
68553
68713
|
*/
|
|
68554
68714
|
accountId?: string;
|
|
68555
68715
|
/**
|
|
68556
|
-
* **Meta
|
|
68716
|
+
* **Meta, Google and AppLovin.**
|
|
68557
68717
|
*
|
|
68558
68718
|
* - Meta: the campaign default that ad sets inherit unless they override it.
|
|
68559
68719
|
* - Google: the campaign's own bidding strategy. LOWEST_COST_WITHOUT_CAP = Maximize Conversions, COST_CAP + bidAmount = Target CPA, LOWEST_COST_WITH_MIN_ROAS + roasAverageFloor = Target ROAS, LOWEST_COST_WITH_BID_CAP + bidAmount = Maximize Clicks with a CPC ceiling.
|
|
68560
68720
|
* - Google: portfolioBidStrategyId attaches a portfolio strategy instead.
|
|
68721
|
+
* - AppLovin: sets the campaign goal value; the goal type itself cannot change. COST_CAP + bidAmount for a CPI, CPE or CPP goal, LOWEST_COST_WITH_MIN_ROAS + roasAverageFloor for a ROAS goal.
|
|
68722
|
+
* - AppLovin app limits, checked before AppLovin is called: CPI below 200, CPE and CPP below 500, AD_ROAS at least 0.1, CHK_ROAS at least 0.01, BLD_ROAS at least 0.05.
|
|
68723
|
+
* - AppLovin: a goal set per country, or the other goal family, is a 422.
|
|
68561
68724
|
*
|
|
68562
68725
|
*/
|
|
68563
68726
|
bidStrategy?: (BidStrategy);
|
|
68564
68727
|
/**
|
|
68565
|
-
* **Google
|
|
68728
|
+
* **Google and AppLovin.** Whole currency units (USD: 12 = $12.00). Google: max CPC for LOWEST_COST_WITH_BID_CAP, CPA target for COST_CAP; required for both. AppLovin: the CPI, CPE or CPP goal value, with COST_CAP.
|
|
68566
68729
|
*/
|
|
68567
68730
|
bidAmount?: number;
|
|
68568
68731
|
/**
|
|
68569
|
-
* **Google
|
|
68732
|
+
* **Google and AppLovin.** Decimal ROAS multiplier (2.0 = 2.0x), required for LOWEST_COST_WITH_MIN_ROAS. AppLovin: the ROAS goal value.
|
|
68570
68733
|
*/
|
|
68571
68734
|
roasAverageFloor?: number;
|
|
68572
68735
|
/**
|
|
@@ -68606,7 +68769,7 @@ export type UpdateAdCampaignData = {
|
|
|
68606
68769
|
type: 'daily' | 'lifetime';
|
|
68607
68770
|
};
|
|
68608
68771
|
/**
|
|
68609
|
-
* **Meta and
|
|
68772
|
+
* **Meta, Reddit and AppLovin.** Rename the campaign.
|
|
68610
68773
|
*/
|
|
68611
68774
|
name?: string;
|
|
68612
68775
|
/**
|
|
@@ -70364,7 +70527,7 @@ export type ListAdsByPerformanceData = {
|
|
|
70364
70527
|
/**
|
|
70365
70528
|
* Restrict to one platform.
|
|
70366
70529
|
*/
|
|
70367
|
-
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
|
|
70530
|
+
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'applovin';
|
|
70368
70531
|
/**
|
|
70369
70532
|
* Metric the ads are ranked by, highest first.
|
|
70370
70533
|
*/
|
|
@@ -78053,10 +78216,15 @@ export type CreateStandaloneAdData = {
|
|
|
78053
78216
|
*/
|
|
78054
78217
|
valueRulesApplied?: boolean;
|
|
78055
78218
|
/**
|
|
78056
|
-
* Platform-specific options. The platform is derived from `accountId`; options for a different platform return a 400. LinkedIn (campaign bidding and delivery controls), Meta (the bid trio)
|
|
78219
|
+
* Platform-specific options. The platform is derived from `accountId`; options for a different platform return a 400. LinkedIn (campaign bidding and delivery controls), Meta (the bid trio) Amazon Ads (required: the ad product, products, creative and targeting) and AppLovin (the campaign and creative set) have options today.
|
|
78057
78220
|
*
|
|
78058
78221
|
* **Amazon Ads**: see `AmazonAdsPlatformData`. Amazon has no dry run, so `validateOnly` returns a 501.
|
|
78059
78222
|
*
|
|
78223
|
+
* **AppLovin**
|
|
78224
|
+
*
|
|
78225
|
+
* - A new campaign needs `campaignType` (`APP` or `WEB`), the goal and, for an app, `os`, `packageName` and `tracking`. With `existingCampaignId`, only the creative set fields (`assets`, `languages`, `brandInfo`) apply.
|
|
78226
|
+
* - Zernio checks every documented AppLovin rule (goal value limits, ROAS day targets, US-only regions and metros, the asset combination, brand info lengths) before calling AppLovin, because 100 refused calls in five minutes lock the AppLovin account for a day. `validateOnly` runs those checks and calls nothing.
|
|
78227
|
+
*
|
|
78060
78228
|
* **Meta**
|
|
78061
78229
|
*
|
|
78062
78230
|
* - `bidStrategy`, `bidAmount` and `roasAverageFloor` may be sent here instead of at the root (the preferred home going forward). Sending them in BOTH places returns a 400 (`mutually_exclusive_fields`).
|
|
@@ -78064,7 +78232,7 @@ export type CreateStandaloneAdData = {
|
|
|
78064
78232
|
* - `dailyMinSpendTarget` / `lifetimeMinSpendTarget` set the new ad set's minimum spend and live here only; also rejected in `adSetId` attach mode.
|
|
78065
78233
|
*
|
|
78066
78234
|
*/
|
|
78067
|
-
platformSpecificData?: (LinkedInAdsPlatformData | MetaAdsPlatformData | AmazonAdsPlatformData);
|
|
78235
|
+
platformSpecificData?: (LinkedInAdsPlatformData | MetaAdsPlatformData | AmazonAdsPlatformData | AppLovinAdsPlatformData);
|
|
78068
78236
|
/**
|
|
78069
78237
|
* Legal entity that benefits from the ad. Required when targeting EU users
|
|
78070
78238
|
* (EU DSA, Article 26). Optional if the ad account has a default beneficiary:
|
|
@@ -81551,6 +81719,23 @@ export type GetEventsAccuracyResponse = ({
|
|
|
81551
81719
|
* `match.identified / match.events`. `null` with nothing sent.
|
|
81552
81720
|
*/
|
|
81553
81721
|
matchRate?: (number) | null;
|
|
81722
|
+
/**
|
|
81723
|
+
* Why the destination refused events in the period, by refusal code, most events first (at most 5). Empty when it refused none.
|
|
81724
|
+
*/
|
|
81725
|
+
failureReasons?: Array<{
|
|
81726
|
+
/**
|
|
81727
|
+
* The refusal code: the platform's own, or Zernio's (such as `INVALID_EVENT` or `INVALID_EVENT_TIME`).
|
|
81728
|
+
*/
|
|
81729
|
+
code?: string;
|
|
81730
|
+
/**
|
|
81731
|
+
* One refusal message of this code, as the platform worded it.
|
|
81732
|
+
*/
|
|
81733
|
+
example?: string;
|
|
81734
|
+
/**
|
|
81735
|
+
* Events refused with this code.
|
|
81736
|
+
*/
|
|
81737
|
+
events?: number;
|
|
81738
|
+
}>;
|
|
81554
81739
|
}>;
|
|
81555
81740
|
});
|
|
81556
81741
|
|