@getlatedev/node 0.2.1240 → 0.2.1241
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 +178 -103
- package/dist/index.d.ts +178 -103
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +24 -3
- package/src/generated/types.gen.ts +182 -102
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.1241",
|
|
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.1241",
|
|
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
|
@@ -12620,8 +12620,10 @@ export const getAdAccountLiveEntities = <ThrowOnError extends boolean = false>(o
|
|
|
12620
12620
|
};
|
|
12621
12621
|
|
|
12622
12622
|
/**
|
|
12623
|
-
* Create
|
|
12624
|
-
* Creates a new Meta ad account in the user's own business portfolio
|
|
12623
|
+
* Create ad account
|
|
12624
|
+
* Creates a new Meta ad account in the user's own business portfolio, or a Google Ads client account under a manager (MCC) account the connection reaches. Billing must then be set up on the platform.
|
|
12625
|
+
*
|
|
12626
|
+
* **Meta** (omit `platform` or send `meta`).
|
|
12625
12627
|
*
|
|
12626
12628
|
* Creates a durable Meta ad account in the end user's own business portfolio using
|
|
12627
12629
|
* their connected Meta Ads token. Requires an active metaads accountId, Ads access,
|
|
@@ -12646,12 +12648,31 @@ export const getAdAccountLiveEntities = <ThrowOnError extends boolean = false>(o
|
|
|
12646
12648
|
* immediately. Use the returned adAccountId with the existing ads endpoints.
|
|
12647
12649
|
*
|
|
12648
12650
|
* This operation is not idempotent and Zernio never automatically retries it.
|
|
12649
|
-
* Unknown body fields are rejected.
|
|
12651
|
+
* Unknown body fields are rejected. The Meta flow has no validateOnly or dry-run option.
|
|
12650
12652
|
* After a timeout or a 502 with details.creationStatus=unknown, check the business
|
|
12651
12653
|
* in Ads Manager before attempting another creation. A 201 with connectionUpdated=false
|
|
12652
12654
|
* means the account exists but needs reconnecting with adAccountIds containing the returned ID and the previous
|
|
12653
12655
|
* scoped IDs via GET /v1/connect/facebook/ads. Do not repeat the create call.
|
|
12654
12656
|
*
|
|
12657
|
+
* **Google** (send `platform: google`).
|
|
12658
|
+
*
|
|
12659
|
+
* Google only creates accounts through a manager account, so the new client account
|
|
12660
|
+
* is created under `managerCustomerId`, which must be a manager the Google user behind
|
|
12661
|
+
* the googleads `accountId` reaches (directly or as a sub-manager). List them with
|
|
12662
|
+
* GET /v1/ads/accounts/hierarchy. Whose manager it is (the integrator's or the end
|
|
12663
|
+
* user's) is the caller's choice: pass the connection that reaches it.
|
|
12664
|
+
*
|
|
12665
|
+
* `currency` (ISO 4217) and `timeZone` (IANA name, for example Europe/Madrid) cannot be
|
|
12666
|
+
* changed after creation. The account starts without billing: set it up in Google Ads
|
|
12667
|
+
* before ads can serve. Google caps how many accounts a manager can create and how
|
|
12668
|
+
* many active client accounts it can hold.
|
|
12669
|
+
*
|
|
12670
|
+
* The new customer is added to the connection (and to a scoped connection's allowlist),
|
|
12671
|
+
* discovery is nudged immediately, and the returned adAccountId works with every other
|
|
12672
|
+
* ads endpoint. `validateOnly: true` asks Google to validate the request without creating
|
|
12673
|
+
* anything and returns 200. A real create is not idempotent: after a 502 with
|
|
12674
|
+
* details.creationStatus=unknown, check the manager in Google Ads before trying again.
|
|
12675
|
+
*
|
|
12655
12676
|
*/
|
|
12656
12677
|
export const createAdAccount = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateAdAccountData, ThrowOnError>) => {
|
|
12657
12678
|
return (options?.client ?? client).post<CreateAdAccountResponse, CreateAdAccountError, ThrowOnError>({
|
|
@@ -4666,6 +4666,169 @@ export type ConversionEvent = {
|
|
|
4666
4666
|
*/
|
|
4667
4667
|
export type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
4668
4668
|
|
|
4669
|
+
export type CreatedGoogleAdAccount = {
|
|
4670
|
+
platform: 'google';
|
|
4671
|
+
/**
|
|
4672
|
+
* New Google Ads customer id for subsequent ads calls.
|
|
4673
|
+
*/
|
|
4674
|
+
adAccountId: string;
|
|
4675
|
+
/**
|
|
4676
|
+
* Manager the account was created under.
|
|
4677
|
+
*/
|
|
4678
|
+
managerCustomerId: string;
|
|
4679
|
+
/**
|
|
4680
|
+
* Whether the customer was added to the connection and discovery was scheduled. When false the account exists: reconnect Google Ads instead of creating it again.
|
|
4681
|
+
*/
|
|
4682
|
+
connectionUpdated: boolean;
|
|
4683
|
+
/**
|
|
4684
|
+
* Recovery instructions if the account could not be attached to the connection.
|
|
4685
|
+
*/
|
|
4686
|
+
warnings: Array<(string)>;
|
|
4687
|
+
/**
|
|
4688
|
+
* Always true. The account has no billing until it is set up in Google Ads.
|
|
4689
|
+
*/
|
|
4690
|
+
paymentMethodRequired: boolean;
|
|
4691
|
+
/**
|
|
4692
|
+
* Billing setup instructions for the user.
|
|
4693
|
+
*/
|
|
4694
|
+
nextSteps: string;
|
|
4695
|
+
/**
|
|
4696
|
+
* Always false on a 201.
|
|
4697
|
+
*/
|
|
4698
|
+
validateOnly: boolean;
|
|
4699
|
+
};
|
|
4700
|
+
|
|
4701
|
+
export type CreatedMetaAdAccount = {
|
|
4702
|
+
/**
|
|
4703
|
+
* New Meta ad account ID for subsequent ads calls.
|
|
4704
|
+
*/
|
|
4705
|
+
adAccountId: string;
|
|
4706
|
+
/**
|
|
4707
|
+
* Owning business portfolio ID.
|
|
4708
|
+
*/
|
|
4709
|
+
businessId: string;
|
|
4710
|
+
/**
|
|
4711
|
+
* Whether the connection scope and discovery schedule were updated.
|
|
4712
|
+
*/
|
|
4713
|
+
connectionUpdated: boolean;
|
|
4714
|
+
/**
|
|
4715
|
+
* Always true as a delivery prerequisite. This is not a live funding-source check. Confirm payment or invoicing in Ads Manager.
|
|
4716
|
+
*/
|
|
4717
|
+
paymentMethodRequired: boolean;
|
|
4718
|
+
/**
|
|
4719
|
+
* Open the created account in Ads Manager.
|
|
4720
|
+
*/
|
|
4721
|
+
adsManagerUrl: string;
|
|
4722
|
+
/**
|
|
4723
|
+
* Payment setup instructions for the user.
|
|
4724
|
+
*/
|
|
4725
|
+
nextSteps: string;
|
|
4726
|
+
/**
|
|
4727
|
+
* Recovery instructions if the account could not be attached to the connection.
|
|
4728
|
+
*/
|
|
4729
|
+
warnings: Array<(string)>;
|
|
4730
|
+
};
|
|
4731
|
+
|
|
4732
|
+
export type CreateGoogleAdAccountRequest = {
|
|
4733
|
+
platform: 'google';
|
|
4734
|
+
/**
|
|
4735
|
+
* Zernio googleads SocialAccount ID whose Google user reaches the manager.
|
|
4736
|
+
*/
|
|
4737
|
+
accountId: string;
|
|
4738
|
+
/**
|
|
4739
|
+
* Manager (MCC) customer id without dashes. The new account is created under it. List reachable managers with GET /v1/ads/accounts/hierarchy.
|
|
4740
|
+
*/
|
|
4741
|
+
managerCustomerId: string;
|
|
4742
|
+
/**
|
|
4743
|
+
* Account name. Whitespace is trimmed.
|
|
4744
|
+
*/
|
|
4745
|
+
name: string;
|
|
4746
|
+
/**
|
|
4747
|
+
* Uppercase ISO 4217 currency. Cannot be changed after creation.
|
|
4748
|
+
*/
|
|
4749
|
+
currency: string;
|
|
4750
|
+
/**
|
|
4751
|
+
* IANA time zone name, for example Europe/Madrid. Cannot be changed after creation.
|
|
4752
|
+
*/
|
|
4753
|
+
timeZone: string;
|
|
4754
|
+
/**
|
|
4755
|
+
* Ask Google to validate the request without creating the account.
|
|
4756
|
+
*/
|
|
4757
|
+
validateOnly?: boolean;
|
|
4758
|
+
};
|
|
4759
|
+
|
|
4760
|
+
export type CreateMetaAdAccountRequest = {
|
|
4761
|
+
/**
|
|
4762
|
+
* Optional. Omit it or send meta for a Meta ad account.
|
|
4763
|
+
*/
|
|
4764
|
+
platform?: 'meta';
|
|
4765
|
+
/**
|
|
4766
|
+
* Zernio metaads SocialAccount ID.
|
|
4767
|
+
*/
|
|
4768
|
+
accountId: string;
|
|
4769
|
+
/**
|
|
4770
|
+
* Business portfolio that will own the account.
|
|
4771
|
+
*/
|
|
4772
|
+
businessId: string;
|
|
4773
|
+
/**
|
|
4774
|
+
* Ad account name. Whitespace is trimmed.
|
|
4775
|
+
*/
|
|
4776
|
+
name: string;
|
|
4777
|
+
/**
|
|
4778
|
+
* Uppercase ISO 4217 currency supported by Meta.
|
|
4779
|
+
*/
|
|
4780
|
+
currency: string;
|
|
4781
|
+
/**
|
|
4782
|
+
* Numeric Meta timezone ID from the linked timezone list. For example 1 is America/Los_Angeles.
|
|
4783
|
+
*/
|
|
4784
|
+
timezoneId: number;
|
|
4785
|
+
/**
|
|
4786
|
+
* End advertiser business or page ID. NONE uses the owning business.
|
|
4787
|
+
*/
|
|
4788
|
+
endAdvertiser?: string;
|
|
4789
|
+
/**
|
|
4790
|
+
* Media agency business or page ID. NONE for self-serve customers.
|
|
4791
|
+
*/
|
|
4792
|
+
mediaAgency?: string;
|
|
4793
|
+
/**
|
|
4794
|
+
* Partner business or page ID. NONE for self-serve customers.
|
|
4795
|
+
*/
|
|
4796
|
+
partner?: string;
|
|
4797
|
+
/**
|
|
4798
|
+
* Request Meta invoicing. Eligibility is determined by Meta.
|
|
4799
|
+
*/
|
|
4800
|
+
invoice?: boolean;
|
|
4801
|
+
/**
|
|
4802
|
+
* Existing Meta invoice group ID.
|
|
4803
|
+
*/
|
|
4804
|
+
invoiceGroupId?: string;
|
|
4805
|
+
/**
|
|
4806
|
+
* Addresses for Meta invoices.
|
|
4807
|
+
*/
|
|
4808
|
+
invoicingEmails?: Array<(string)>;
|
|
4809
|
+
/**
|
|
4810
|
+
* Meta insertion-order invoicing option.
|
|
4811
|
+
*/
|
|
4812
|
+
io?: boolean;
|
|
4813
|
+
/**
|
|
4814
|
+
* Purchase order number.
|
|
4815
|
+
*/
|
|
4816
|
+
poNumber?: string;
|
|
4817
|
+
/**
|
|
4818
|
+
* Existing Meta funding reference. Does not add a payment method.
|
|
4819
|
+
*/
|
|
4820
|
+
fundingId?: string;
|
|
4821
|
+
/**
|
|
4822
|
+
* Meta Business Manager creation flag.
|
|
4823
|
+
*/
|
|
4824
|
+
adAccountCreatedFromBmFlag?: boolean;
|
|
4825
|
+
};
|
|
4826
|
+
|
|
4827
|
+
/**
|
|
4828
|
+
* Optional. Omit it or send meta for a Meta ad account.
|
|
4829
|
+
*/
|
|
4830
|
+
export type platform6 = 'meta';
|
|
4831
|
+
|
|
4669
4832
|
/**
|
|
4670
4833
|
* In addition to the `required` list, the request must use
|
|
4671
4834
|
* EXACTLY ONE of the two shapes:
|
|
@@ -7378,7 +7541,7 @@ export type HubSpotSettings = {
|
|
|
7378
7541
|
logMessages: boolean;
|
|
7379
7542
|
};
|
|
7380
7543
|
|
|
7381
|
-
export type
|
|
7544
|
+
export type platform7 = 'hubspot';
|
|
7382
7545
|
|
|
7383
7546
|
export type ImessageAudienceContact = {
|
|
7384
7547
|
conversationId?: string;
|
|
@@ -7458,7 +7621,7 @@ export type ImessageSender = {
|
|
|
7458
7621
|
isActive?: boolean;
|
|
7459
7622
|
};
|
|
7460
7623
|
|
|
7461
|
-
export type
|
|
7624
|
+
export type platform8 = 'imessage';
|
|
7462
7625
|
|
|
7463
7626
|
/**
|
|
7464
7627
|
* A provisioned iMessage sender order and its lifecycle. Activation is asynchronous: poll GET /v1/imessage/senders/{senderId} or subscribe to account.connected.
|
|
@@ -7611,7 +7774,7 @@ export type InboxWebhookConversationDetail = {
|
|
|
7611
7774
|
contactId?: string;
|
|
7612
7775
|
};
|
|
7613
7776
|
|
|
7614
|
-
export type
|
|
7777
|
+
export type platform9 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'rcs' | 'slack' | 'tiktok' | 'imessage';
|
|
7615
7778
|
|
|
7616
7779
|
/**
|
|
7617
7780
|
* The message object included in inbox webhook payloads.
|
|
@@ -7730,7 +7893,7 @@ export type InboxWebhookMessage = {
|
|
|
7730
7893
|
isRead: boolean;
|
|
7731
7894
|
};
|
|
7732
7895
|
|
|
7733
|
-
export type
|
|
7896
|
+
export type platform10 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'sms';
|
|
7734
7897
|
|
|
7735
7898
|
export type direction2 = 'incoming' | 'outgoing';
|
|
7736
7899
|
|
|
@@ -7858,7 +8021,7 @@ export type InstagramAccountInsightsResponse = {
|
|
|
7858
8021
|
/**
|
|
7859
8022
|
* Platform that served this response.
|
|
7860
8023
|
*/
|
|
7861
|
-
export type
|
|
8024
|
+
export type platform11 = 'facebook' | 'instagram' | 'youtube' | 'linkedin' | 'tiktok';
|
|
7862
8025
|
|
|
7863
8026
|
export type metricType = 'time_series' | 'total_value';
|
|
7864
8027
|
|
|
@@ -10847,7 +11010,7 @@ export type ReviewWebhookReview = {
|
|
|
10847
11010
|
/**
|
|
10848
11011
|
* Platform the review originated on. Currently Google Business Profile only.
|
|
10849
11012
|
*/
|
|
10850
|
-
export type
|
|
11013
|
+
export type platform12 = 'googlebusiness';
|
|
10851
11014
|
|
|
10852
11015
|
/**
|
|
10853
11016
|
* A Meta Reach & Frequency prediction. Money values in whole units of the ad account currency.
|
|
@@ -11081,7 +11244,7 @@ export type SocialAccount = {
|
|
|
11081
11244
|
};
|
|
11082
11245
|
};
|
|
11083
11246
|
|
|
11084
|
-
export type
|
|
11247
|
+
export type platform13 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'sms' | 'phone' | 'rcs' | 'whopads' | 'hubspot';
|
|
11085
11248
|
|
|
11086
11249
|
/**
|
|
11087
11250
|
* TikTok accounts only. The account type TikTok reported when the account was connected. `personal` accounts cannot use TikTok direct messages through the API (TikTok limits Business Messaging to Business Accounts): skip the inbox for them and tell the user to switch to a Business Account in the TikTok app, then reconnect. `business` is the prerequisite, not a guarantee; messaging also needs the messaging scopes granted and TikTok's regional availability. `unknown` on accounts connected before this was captured or whose grant left out the account-type scope.
|
|
@@ -11161,7 +11324,7 @@ export type StorePixelInstall = {
|
|
|
11161
11324
|
/**
|
|
11162
11325
|
* The store platform.
|
|
11163
11326
|
*/
|
|
11164
|
-
export type
|
|
11327
|
+
export type platform14 = 'shopify' | 'wordpress';
|
|
11165
11328
|
|
|
11166
11329
|
/**
|
|
11167
11330
|
* WordPress only.
|
|
@@ -11842,7 +12005,7 @@ export type TrackingTag = {
|
|
|
11842
12005
|
autoTagging?: boolean;
|
|
11843
12006
|
};
|
|
11844
12007
|
|
|
11845
|
-
export type
|
|
12008
|
+
export type platform15 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads';
|
|
11846
12009
|
|
|
11847
12010
|
/**
|
|
11848
12011
|
* Platform-native flavor of the tag (Meta: `pixel`).
|
|
@@ -13758,7 +13921,7 @@ export type WebhookPayloadComment = {
|
|
|
13758
13921
|
|
|
13759
13922
|
export type event14 = 'comment.received';
|
|
13760
13923
|
|
|
13761
|
-
export type
|
|
13924
|
+
export type platform16 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
|
|
13762
13925
|
|
|
13763
13926
|
export type WebhookPayloadCommerceOrder = {
|
|
13764
13927
|
/**
|
|
@@ -14120,7 +14283,7 @@ export type WebhookPayloadLead = {
|
|
|
14120
14283
|
|
|
14121
14284
|
export type event22 = 'lead.received';
|
|
14122
14285
|
|
|
14123
|
-
export type
|
|
14286
|
+
export type platform17 = 'facebook';
|
|
14124
14287
|
|
|
14125
14288
|
/**
|
|
14126
14289
|
* Webhook payload for message received events
|
|
@@ -15137,7 +15300,7 @@ export type event27 = 'message.sent';
|
|
|
15137
15300
|
/**
|
|
15138
15301
|
* Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
|
|
15139
15302
|
*/
|
|
15140
|
-
export type
|
|
15303
|
+
export type platform18 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok' | 'imessage';
|
|
15141
15304
|
|
|
15142
15305
|
/**
|
|
15143
15306
|
* WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts); meta_business_agent when Meta Business Agent answered on the number. Absent on non-WhatsApp platforms. Says where WhatsApp saw the send come from, not which Zernio surface produced it: read sentVia for that.
|
|
@@ -15712,7 +15875,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
|
|
|
15712
15875
|
|
|
15713
15876
|
export type event38 = 'whatsapp.account.alert_received';
|
|
15714
15877
|
|
|
15715
|
-
export type
|
|
15878
|
+
export type platform19 = 'whatsapp';
|
|
15716
15879
|
|
|
15717
15880
|
/**
|
|
15718
15881
|
* Webhook payload for the `whatsapp.account.name_status_updated` event.
|
|
@@ -47813,100 +47976,17 @@ export type GetAdAccountLiveEntitiesResponse = ({
|
|
|
47813
47976
|
export type GetAdAccountLiveEntitiesError = (ErrorResponse | unknown);
|
|
47814
47977
|
|
|
47815
47978
|
export type CreateAdAccountData = {
|
|
47816
|
-
body:
|
|
47817
|
-
/**
|
|
47818
|
-
* Zernio metaads SocialAccount ID.
|
|
47819
|
-
*/
|
|
47820
|
-
accountId: string;
|
|
47821
|
-
/**
|
|
47822
|
-
* Business portfolio that will own the account.
|
|
47823
|
-
*/
|
|
47824
|
-
businessId: string;
|
|
47825
|
-
/**
|
|
47826
|
-
* Ad account name. Whitespace is trimmed.
|
|
47827
|
-
*/
|
|
47828
|
-
name: string;
|
|
47829
|
-
/**
|
|
47830
|
-
* Uppercase ISO 4217 currency supported by Meta.
|
|
47831
|
-
*/
|
|
47832
|
-
currency: string;
|
|
47833
|
-
/**
|
|
47834
|
-
* Numeric Meta timezone ID from the linked timezone list. For example 1 is America/Los_Angeles.
|
|
47835
|
-
*/
|
|
47836
|
-
timezoneId: number;
|
|
47837
|
-
/**
|
|
47838
|
-
* End advertiser business or page ID. NONE uses the owning business.
|
|
47839
|
-
*/
|
|
47840
|
-
endAdvertiser?: string;
|
|
47841
|
-
/**
|
|
47842
|
-
* Media agency business or page ID. NONE for self-serve customers.
|
|
47843
|
-
*/
|
|
47844
|
-
mediaAgency?: string;
|
|
47845
|
-
/**
|
|
47846
|
-
* Partner business or page ID. NONE for self-serve customers.
|
|
47847
|
-
*/
|
|
47848
|
-
partner?: string;
|
|
47849
|
-
/**
|
|
47850
|
-
* Request Meta invoicing. Eligibility is determined by Meta.
|
|
47851
|
-
*/
|
|
47852
|
-
invoice?: boolean;
|
|
47853
|
-
/**
|
|
47854
|
-
* Existing Meta invoice group ID.
|
|
47855
|
-
*/
|
|
47856
|
-
invoiceGroupId?: string;
|
|
47857
|
-
/**
|
|
47858
|
-
* Addresses for Meta invoices.
|
|
47859
|
-
*/
|
|
47860
|
-
invoicingEmails?: Array<(string)>;
|
|
47861
|
-
/**
|
|
47862
|
-
* Meta insertion-order invoicing option.
|
|
47863
|
-
*/
|
|
47864
|
-
io?: boolean;
|
|
47865
|
-
/**
|
|
47866
|
-
* Purchase order number.
|
|
47867
|
-
*/
|
|
47868
|
-
poNumber?: string;
|
|
47869
|
-
/**
|
|
47870
|
-
* Existing Meta funding reference. Does not add a payment method.
|
|
47871
|
-
*/
|
|
47872
|
-
fundingId?: string;
|
|
47873
|
-
/**
|
|
47874
|
-
* Meta Business Manager creation flag.
|
|
47875
|
-
*/
|
|
47876
|
-
adAccountCreatedFromBmFlag?: boolean;
|
|
47877
|
-
};
|
|
47979
|
+
body: (CreateMetaAdAccountRequest | CreateGoogleAdAccountRequest);
|
|
47878
47980
|
};
|
|
47879
47981
|
|
|
47880
47982
|
export type CreateAdAccountResponse = ({
|
|
47983
|
+
platform: 'google';
|
|
47984
|
+
managerCustomerId: string;
|
|
47881
47985
|
/**
|
|
47882
|
-
*
|
|
47986
|
+
* Always true on a 200.
|
|
47883
47987
|
*/
|
|
47884
|
-
|
|
47885
|
-
|
|
47886
|
-
* Owning business portfolio ID.
|
|
47887
|
-
*/
|
|
47888
|
-
businessId: string;
|
|
47889
|
-
/**
|
|
47890
|
-
* Whether the connection scope and discovery schedule were updated.
|
|
47891
|
-
*/
|
|
47892
|
-
connectionUpdated: boolean;
|
|
47893
|
-
/**
|
|
47894
|
-
* Always true as a delivery prerequisite. This is not a live funding-source check. Confirm payment or invoicing in Ads Manager.
|
|
47895
|
-
*/
|
|
47896
|
-
paymentMethodRequired: boolean;
|
|
47897
|
-
/**
|
|
47898
|
-
* Open the created account in Ads Manager.
|
|
47899
|
-
*/
|
|
47900
|
-
adsManagerUrl: string;
|
|
47901
|
-
/**
|
|
47902
|
-
* Payment setup instructions for the user.
|
|
47903
|
-
*/
|
|
47904
|
-
nextSteps: string;
|
|
47905
|
-
/**
|
|
47906
|
-
* Recovery instructions if the account could not be attached to the connection.
|
|
47907
|
-
*/
|
|
47908
|
-
warnings: Array<(string)>;
|
|
47909
|
-
});
|
|
47988
|
+
validateOnly: boolean;
|
|
47989
|
+
} | (CreatedMetaAdAccount | CreatedGoogleAdAccount));
|
|
47910
47990
|
|
|
47911
47991
|
export type CreateAdAccountError = (ErrorResponse);
|
|
47912
47992
|
|