@getlatedev/node 0.2.1747 → 0.2.1749
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 +213 -21
- package/dist/index.d.ts +213 -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 +220 -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.1749",
|
|
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.1749",
|
|
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.
|
|
@@ -41221,6 +41346,10 @@ export type GetHubSpotConnectUrlData = {
|
|
|
41221
41346
|
* Your Zernio profile ID (get from /v1/profiles).
|
|
41222
41347
|
*/
|
|
41223
41348
|
profileId: string;
|
|
41349
|
+
/**
|
|
41350
|
+
* The HubSpot portal connection being reconnected. In a workspace with no billing set up, the connect is allowed only when it returns to that same portal.
|
|
41351
|
+
*/
|
|
41352
|
+
reconnectAccountId?: string;
|
|
41224
41353
|
/**
|
|
41225
41354
|
* Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as `myapp://callback`; relative and unsafe URLs return 400.
|
|
41226
41355
|
*/
|
|
@@ -41302,6 +41431,10 @@ export type GetGohighlevelConnectUrlData = {
|
|
|
41302
41431
|
* Your Zernio profile ID (get from /v1/profiles).
|
|
41303
41432
|
*/
|
|
41304
41433
|
profileId: string;
|
|
41434
|
+
/**
|
|
41435
|
+
* The GoHighLevel location connection being reconnected. In a workspace with no billing set up, the connect is allowed only when it returns to that same location.
|
|
41436
|
+
*/
|
|
41437
|
+
reconnectAccountId?: string;
|
|
41305
41438
|
/**
|
|
41306
41439
|
* Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as `myapp://callback`; relative and unsafe URLs return 400.
|
|
41307
41440
|
*/
|
|
@@ -41332,6 +41465,10 @@ export type GetSalesforceConnectUrlData = {
|
|
|
41332
41465
|
* Your Zernio profile ID (get from /v1/profiles).
|
|
41333
41466
|
*/
|
|
41334
41467
|
profileId: string;
|
|
41468
|
+
/**
|
|
41469
|
+
* The Salesforce org connection being reconnected. In a workspace with no billing set up, the connect is allowed only when it returns to that same org.
|
|
41470
|
+
*/
|
|
41471
|
+
reconnectAccountId?: string;
|
|
41335
41472
|
/**
|
|
41336
41473
|
* Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as `myapp://callback`; relative and unsafe URLs return 400.
|
|
41337
41474
|
*/
|
|
@@ -41498,6 +41635,10 @@ export type GetWordPressAuthUrlData = {
|
|
|
41498
41635
|
* Your Zernio profile ID (get from /v1/profiles).
|
|
41499
41636
|
*/
|
|
41500
41637
|
profileId: string;
|
|
41638
|
+
/**
|
|
41639
|
+
* The WordPress site connection being reconnected. In a workspace with no billing set up, the connect is allowed only when it returns to that same site.
|
|
41640
|
+
*/
|
|
41641
|
+
reconnectAccountId?: string;
|
|
41501
41642
|
/**
|
|
41502
41643
|
* Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as `myapp://callback`; relative and unsafe URLs return 400.
|
|
41503
41644
|
*/
|
|
@@ -41579,6 +41720,10 @@ export type GetWixConnectUrlData = {
|
|
|
41579
41720
|
* Your Zernio profile ID (get from /v1/profiles).
|
|
41580
41721
|
*/
|
|
41581
41722
|
profileId: string;
|
|
41723
|
+
/**
|
|
41724
|
+
* The Wix site connection being reconnected. In a workspace with no billing set up, the connect is allowed only when it returns to that same site.
|
|
41725
|
+
*/
|
|
41726
|
+
reconnectAccountId?: string;
|
|
41582
41727
|
/**
|
|
41583
41728
|
* Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as `myapp://callback`; relative and unsafe URLs return 400.
|
|
41584
41729
|
*/
|
|
@@ -41660,6 +41805,10 @@ export type GetWebflowConnectUrlData = {
|
|
|
41660
41805
|
* Your Zernio profile ID (get from /v1/profiles).
|
|
41661
41806
|
*/
|
|
41662
41807
|
profileId: string;
|
|
41808
|
+
/**
|
|
41809
|
+
* The Webflow site connection being reconnected. In a workspace with no billing set up, the connect is allowed only when it returns to that same site.
|
|
41810
|
+
*/
|
|
41811
|
+
reconnectAccountId?: string;
|
|
41663
41812
|
/**
|
|
41664
41813
|
* Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as `myapp://callback`; relative and unsafe URLs return 400.
|
|
41665
41814
|
*/
|
|
@@ -41745,6 +41894,10 @@ export type ConnectWebflowWithSiteTokenData = {
|
|
|
41745
41894
|
* Webflow site API token with Sites read and CMS read and write access.
|
|
41746
41895
|
*/
|
|
41747
41896
|
siteToken: string;
|
|
41897
|
+
/**
|
|
41898
|
+
* The Webflow site connection being reconnected. In a workspace with no billing set up, the connect is allowed only when it returns to that same site.
|
|
41899
|
+
*/
|
|
41900
|
+
reconnectAccountId?: string;
|
|
41748
41901
|
};
|
|
41749
41902
|
};
|
|
41750
41903
|
|
|
@@ -41868,6 +42021,10 @@ export type ConnectWordPressWithApplicationPasswordData = {
|
|
|
41868
42021
|
* Application password created for the WordPress user. Spaces in WordPress display formatting are accepted.
|
|
41869
42022
|
*/
|
|
41870
42023
|
applicationPassword: string;
|
|
42024
|
+
/**
|
|
42025
|
+
* The WordPress site connection being reconnected. In a workspace with no billing set up, the connect is allowed only when it returns to that same site.
|
|
42026
|
+
*/
|
|
42027
|
+
reconnectAccountId?: string;
|
|
41871
42028
|
};
|
|
41872
42029
|
};
|
|
41873
42030
|
|
|
@@ -44558,13 +44715,25 @@ export type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown | {
|
|
|
44558
44715
|
export type ConnectAppLovinAdsCredentialsData = {
|
|
44559
44716
|
body: {
|
|
44560
44717
|
/**
|
|
44561
|
-
* Conversion API key from the Keys page of Axon Ads Manager.
|
|
44718
|
+
* Conversion API key from the Keys page of AppLovin Axon Ads Manager. Sent with eventKey.
|
|
44562
44719
|
*/
|
|
44563
|
-
apiKey
|
|
44720
|
+
apiKey?: string;
|
|
44721
|
+
/**
|
|
44722
|
+
* Event Key from the Keys page of AppLovin Axon Ads Manager: 8 to 128 letters, digits, dots, dashes or underscores. Sent with apiKey.
|
|
44723
|
+
*/
|
|
44724
|
+
eventKey?: string;
|
|
44725
|
+
/**
|
|
44726
|
+
* 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.
|
|
44727
|
+
*/
|
|
44728
|
+
campaignApiKey?: string;
|
|
44564
44729
|
/**
|
|
44565
|
-
*
|
|
44730
|
+
* Numeric AppLovin account id (Account menu, then Go to settings, in ads.axon.ai). Sent with campaignApiKey.
|
|
44566
44731
|
*/
|
|
44567
|
-
|
|
44732
|
+
accountId?: string;
|
|
44733
|
+
/**
|
|
44734
|
+
* 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.
|
|
44735
|
+
*/
|
|
44736
|
+
reconnectAccountId?: string;
|
|
44568
44737
|
/**
|
|
44569
44738
|
* Optional Report Key from the Keys page of your AppLovin account. With it, Zernio syncs AppLovin spend per campaign.
|
|
44570
44739
|
*/
|
|
@@ -44590,7 +44759,14 @@ export type ConnectAppLovinAdsCredentialsData = {
|
|
|
44590
44759
|
|
|
44591
44760
|
export type ConnectAppLovinAdsCredentialsResponse = ({
|
|
44592
44761
|
accountId?: string;
|
|
44762
|
+
/**
|
|
44763
|
+
* Present when the request sent the conversion keys.
|
|
44764
|
+
*/
|
|
44593
44765
|
eventKey?: string;
|
|
44766
|
+
/**
|
|
44767
|
+
* The AppLovin account id. Present when the request sent the Campaign Management keys.
|
|
44768
|
+
*/
|
|
44769
|
+
axonAccountId?: string;
|
|
44594
44770
|
accountName?: string;
|
|
44595
44771
|
redirectUrl?: string;
|
|
44596
44772
|
});
|
|
@@ -68199,17 +68375,33 @@ export type CreateAdCampaignData = {
|
|
|
68199
68375
|
budgetType?: 'daily' | 'lifetime';
|
|
68200
68376
|
status?: 'ACTIVE' | 'PAUSED';
|
|
68201
68377
|
/**
|
|
68202
|
-
* Reddit and
|
|
68378
|
+
* 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
68379
|
*/
|
|
68204
68380
|
startDate?: string;
|
|
68205
68381
|
/**
|
|
68206
|
-
* Reddit and
|
|
68382
|
+
* 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
68383
|
*/
|
|
68208
68384
|
endDate?: string;
|
|
68209
68385
|
/**
|
|
68210
|
-
*
|
|
68386
|
+
* AppLovin only (400 elsewhere), where the campaign carries the targeting: the countries it serves, at least one.
|
|
68211
68387
|
*/
|
|
68212
|
-
|
|
68388
|
+
countries?: Array<(string)>;
|
|
68389
|
+
/**
|
|
68390
|
+
* AppLovin only (400 elsewhere). US state codes (`CA` or `US-CA`), with `US` in countries. Never together with metros.
|
|
68391
|
+
*/
|
|
68392
|
+
regions?: Array<{
|
|
68393
|
+
key: string;
|
|
68394
|
+
}>;
|
|
68395
|
+
/**
|
|
68396
|
+
* AppLovin only (400 elsewhere). AppLovin metro names, with `US` in countries. Never together with regions.
|
|
68397
|
+
*/
|
|
68398
|
+
metros?: Array<{
|
|
68399
|
+
key: string;
|
|
68400
|
+
}>;
|
|
68401
|
+
/**
|
|
68402
|
+
* 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.
|
|
68403
|
+
*/
|
|
68404
|
+
platformSpecificData?: (AmazonAdsCampaignPlatformData | AppLovinAdsPlatformData);
|
|
68213
68405
|
/**
|
|
68214
68406
|
* Google only (400 elsewhere). Written on the new campaign.
|
|
68215
68407
|
*/
|
|
@@ -68553,20 +68745,23 @@ export type UpdateAdCampaignData = {
|
|
|
68553
68745
|
*/
|
|
68554
68746
|
accountId?: string;
|
|
68555
68747
|
/**
|
|
68556
|
-
* **Meta
|
|
68748
|
+
* **Meta, Google and AppLovin.**
|
|
68557
68749
|
*
|
|
68558
68750
|
* - Meta: the campaign default that ad sets inherit unless they override it.
|
|
68559
68751
|
* - 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
68752
|
* - Google: portfolioBidStrategyId attaches a portfolio strategy instead.
|
|
68753
|
+
* - 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.
|
|
68754
|
+
* - 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.
|
|
68755
|
+
* - AppLovin: a goal set per country, or the other goal family, is a 422.
|
|
68561
68756
|
*
|
|
68562
68757
|
*/
|
|
68563
68758
|
bidStrategy?: (BidStrategy);
|
|
68564
68759
|
/**
|
|
68565
|
-
* **Google
|
|
68760
|
+
* **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
68761
|
*/
|
|
68567
68762
|
bidAmount?: number;
|
|
68568
68763
|
/**
|
|
68569
|
-
* **Google
|
|
68764
|
+
* **Google and AppLovin.** Decimal ROAS multiplier (2.0 = 2.0x), required for LOWEST_COST_WITH_MIN_ROAS. AppLovin: the ROAS goal value.
|
|
68570
68765
|
*/
|
|
68571
68766
|
roasAverageFloor?: number;
|
|
68572
68767
|
/**
|
|
@@ -68606,7 +68801,7 @@ export type UpdateAdCampaignData = {
|
|
|
68606
68801
|
type: 'daily' | 'lifetime';
|
|
68607
68802
|
};
|
|
68608
68803
|
/**
|
|
68609
|
-
* **Meta and
|
|
68804
|
+
* **Meta, Reddit and AppLovin.** Rename the campaign.
|
|
68610
68805
|
*/
|
|
68611
68806
|
name?: string;
|
|
68612
68807
|
/**
|
|
@@ -70364,7 +70559,7 @@ export type ListAdsByPerformanceData = {
|
|
|
70364
70559
|
/**
|
|
70365
70560
|
* Restrict to one platform.
|
|
70366
70561
|
*/
|
|
70367
|
-
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
|
|
70562
|
+
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'applovin';
|
|
70368
70563
|
/**
|
|
70369
70564
|
* Metric the ads are ranked by, highest first.
|
|
70370
70565
|
*/
|
|
@@ -78053,10 +78248,15 @@ export type CreateStandaloneAdData = {
|
|
|
78053
78248
|
*/
|
|
78054
78249
|
valueRulesApplied?: boolean;
|
|
78055
78250
|
/**
|
|
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)
|
|
78251
|
+
* 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
78252
|
*
|
|
78058
78253
|
* **Amazon Ads**: see `AmazonAdsPlatformData`. Amazon has no dry run, so `validateOnly` returns a 501.
|
|
78059
78254
|
*
|
|
78255
|
+
* **AppLovin**
|
|
78256
|
+
*
|
|
78257
|
+
* - 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.
|
|
78258
|
+
* - 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.
|
|
78259
|
+
*
|
|
78060
78260
|
* **Meta**
|
|
78061
78261
|
*
|
|
78062
78262
|
* - `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 +78264,7 @@ export type CreateStandaloneAdData = {
|
|
|
78064
78264
|
* - `dailyMinSpendTarget` / `lifetimeMinSpendTarget` set the new ad set's minimum spend and live here only; also rejected in `adSetId` attach mode.
|
|
78065
78265
|
*
|
|
78066
78266
|
*/
|
|
78067
|
-
platformSpecificData?: (LinkedInAdsPlatformData | MetaAdsPlatformData | AmazonAdsPlatformData);
|
|
78267
|
+
platformSpecificData?: (LinkedInAdsPlatformData | MetaAdsPlatformData | AmazonAdsPlatformData | AppLovinAdsPlatformData);
|
|
78068
78268
|
/**
|
|
78069
78269
|
* Legal entity that benefits from the ad. Required when targeting EU users
|
|
78070
78270
|
* (EU DSA, Article 26). Optional if the ad account has a default beneficiary:
|