@getlatedev/node 0.2.1239 → 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.
@@ -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:
@@ -7350,6 +7513,36 @@ export type GoogleTargetImpressionShare = {
7350
7513
 
7351
7514
  export type location = 'ANYWHERE_ON_PAGE' | 'TOP_OF_PAGE' | 'ABSOLUTE_TOP_OF_PAGE';
7352
7515
 
7516
+ export type HubSpotSettings = {
7517
+ /**
7518
+ * Zernio account ID of the HubSpot connection.
7519
+ */
7520
+ _id: string;
7521
+ platform: 'hubspot';
7522
+ /**
7523
+ * HubSpot portal (hub) ID.
7524
+ */
7525
+ hubId: string;
7526
+ /**
7527
+ * HubSpot portal domain, when HubSpot reports one.
7528
+ */
7529
+ hubDomain: (string) | null;
7530
+ /**
7531
+ * OAuth scopes the portal granted.
7532
+ */
7533
+ scopes: Array<(string)>;
7534
+ /**
7535
+ * Whether Zernio creates or updates HubSpot contacts for inbox contacts.
7536
+ */
7537
+ syncContacts: boolean;
7538
+ /**
7539
+ * Whether Zernio logs inbox messages on HubSpot contact timelines.
7540
+ */
7541
+ logMessages: boolean;
7542
+ };
7543
+
7544
+ export type platform7 = 'hubspot';
7545
+
7353
7546
  export type ImessageAudienceContact = {
7354
7547
  conversationId?: string;
7355
7548
  accountId?: string;
@@ -7428,7 +7621,7 @@ export type ImessageSender = {
7428
7621
  isActive?: boolean;
7429
7622
  };
7430
7623
 
7431
- export type platform6 = 'imessage';
7624
+ export type platform8 = 'imessage';
7432
7625
 
7433
7626
  /**
7434
7627
  * A provisioned iMessage sender order and its lifecycle. Activation is asynchronous: poll GET /v1/imessage/senders/{senderId} or subscribe to account.connected.
@@ -7581,7 +7774,7 @@ export type InboxWebhookConversationDetail = {
7581
7774
  contactId?: string;
7582
7775
  };
7583
7776
 
7584
- export type platform7 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'rcs' | 'slack' | 'tiktok' | 'imessage';
7777
+ export type platform9 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'rcs' | 'slack' | 'tiktok' | 'imessage';
7585
7778
 
7586
7779
  /**
7587
7780
  * The message object included in inbox webhook payloads.
@@ -7700,7 +7893,7 @@ export type InboxWebhookMessage = {
7700
7893
  isRead: boolean;
7701
7894
  };
7702
7895
 
7703
- export type platform8 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'sms';
7896
+ export type platform10 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'sms';
7704
7897
 
7705
7898
  export type direction2 = 'incoming' | 'outgoing';
7706
7899
 
@@ -7828,7 +8021,7 @@ export type InstagramAccountInsightsResponse = {
7828
8021
  /**
7829
8022
  * Platform that served this response.
7830
8023
  */
7831
- export type platform9 = 'facebook' | 'instagram' | 'youtube' | 'linkedin' | 'tiktok';
8024
+ export type platform11 = 'facebook' | 'instagram' | 'youtube' | 'linkedin' | 'tiktok';
7832
8025
 
7833
8026
  export type metricType = 'time_series' | 'total_value';
7834
8027
 
@@ -10817,7 +11010,7 @@ export type ReviewWebhookReview = {
10817
11010
  /**
10818
11011
  * Platform the review originated on. Currently Google Business Profile only.
10819
11012
  */
10820
- export type platform10 = 'googlebusiness';
11013
+ export type platform12 = 'googlebusiness';
10821
11014
 
10822
11015
  /**
10823
11016
  * A Meta Reach & Frequency prediction. Money values in whole units of the ad account currency.
@@ -10941,7 +11134,7 @@ export type contentType3 = 'story' | 'saved_story' | 'spotlight';
10941
11134
 
10942
11135
  export type SocialAccount = {
10943
11136
  _id: string;
10944
- platform: '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';
11137
+ platform: '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';
10945
11138
  profileId: (string | Profile);
10946
11139
  username?: string;
10947
11140
  displayName?: string;
@@ -11051,7 +11244,7 @@ export type SocialAccount = {
11051
11244
  };
11052
11245
  };
11053
11246
 
11054
- export type platform11 = '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';
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';
11055
11248
 
11056
11249
  /**
11057
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.
@@ -11131,7 +11324,7 @@ export type StorePixelInstall = {
11131
11324
  /**
11132
11325
  * The store platform.
11133
11326
  */
11134
- export type platform12 = 'shopify' | 'wordpress';
11327
+ export type platform14 = 'shopify' | 'wordpress';
11135
11328
 
11136
11329
  /**
11137
11330
  * WordPress only.
@@ -11812,7 +12005,7 @@ export type TrackingTag = {
11812
12005
  autoTagging?: boolean;
11813
12006
  };
11814
12007
 
11815
- export type platform13 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads';
12008
+ export type platform15 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads';
11816
12009
 
11817
12010
  /**
11818
12011
  * Platform-native flavor of the tag (Meta: `pixel`).
@@ -13728,7 +13921,7 @@ export type WebhookPayloadComment = {
13728
13921
 
13729
13922
  export type event14 = 'comment.received';
13730
13923
 
13731
- export type platform14 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
13924
+ export type platform16 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
13732
13925
 
13733
13926
  export type WebhookPayloadCommerceOrder = {
13734
13927
  /**
@@ -14090,7 +14283,7 @@ export type WebhookPayloadLead = {
14090
14283
 
14091
14284
  export type event22 = 'lead.received';
14092
14285
 
14093
- export type platform15 = 'facebook';
14286
+ export type platform17 = 'facebook';
14094
14287
 
14095
14288
  /**
14096
14289
  * Webhook payload for message received events
@@ -15107,7 +15300,7 @@ export type event27 = 'message.sent';
15107
15300
  /**
15108
15301
  * Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
15109
15302
  */
15110
- export type platform16 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok' | 'imessage';
15303
+ export type platform18 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok' | 'imessage';
15111
15304
 
15112
15305
  /**
15113
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.
@@ -15682,7 +15875,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
15682
15875
 
15683
15876
  export type event38 = 'whatsapp.account.alert_received';
15684
15877
 
15685
- export type platform17 = 'whatsapp';
15878
+ export type platform19 = 'whatsapp';
15686
15879
 
15687
15880
  /**
15688
15881
  * Webhook payload for the `whatsapp.account.name_status_updated` event.
@@ -20081,9 +20274,9 @@ export type DeleteProfileError = (unknown | ErrorResponse | {
20081
20274
  export type ListAccountsData = {
20082
20275
  query?: {
20083
20276
  /**
20084
- * Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit), communication = WhatsApp, Telegram, Discord, Slack and iMessage, blogs = Shopify and WordPress, social = every other platform.
20277
+ * Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit), communication = WhatsApp, Telegram, Discord, Slack and iMessage, blogs = Shopify and WordPress, crm = HubSpot, social = every other platform.
20085
20278
  */
20086
- category?: 'social' | 'ads' | 'communication' | 'blogs';
20279
+ category?: 'social' | 'ads' | 'communication' | 'blogs' | 'crm';
20087
20280
  /**
20088
20281
  * When true, leaves out accounts the dashboard does not show as connections: posting
20089
20282
  * accounts with `enabled: false` (ads accounts are always kept, whatever their `enabled`
@@ -20289,7 +20482,7 @@ export type GetAllAccountsHealthData = {
20289
20482
  /**
20290
20483
  * Filter by platform
20291
20484
  */
20292
- platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'whopads';
20485
+ platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'whopads' | 'hubspot';
20293
20486
  /**
20294
20487
  * Filter by profile ID
20295
20488
  */
@@ -21870,6 +22063,87 @@ export type ConnectShopifyWithTokenError = (unknown | ErrorResponse | {
21870
22063
  };
21871
22064
  });
21872
22065
 
22066
+ export type GetHubSpotConnectUrlData = {
22067
+ query: {
22068
+ /**
22069
+ * Your Zernio profile ID (get from /v1/profiles).
22070
+ */
22071
+ profileId: string;
22072
+ /**
22073
+ * 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.
22074
+ */
22075
+ redirect_url?: string;
22076
+ };
22077
+ };
22078
+
22079
+ export type GetHubSpotConnectUrlResponse = ({
22080
+ /**
22081
+ * HubSpot URL to open in the user agent.
22082
+ */
22083
+ authUrl: string;
22084
+ /**
22085
+ * Authenticated, expiring OAuth state handled by the callback.
22086
+ */
22087
+ state: string;
22088
+ });
22089
+
22090
+ export type GetHubSpotConnectUrlError = (ErrorResponse | {
22091
+ /**
22092
+ * Human-readable error message suitable for end-user display.
22093
+ */
22094
+ error: string;
22095
+ /**
22096
+ * Machine-readable error code. Stable across versions.
22097
+ */
22098
+ code: 'PAYMENT_REQUIRED';
22099
+ /**
22100
+ * Discriminator for which gate fired.
22101
+ */
22102
+ reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required' | 'card_verification_required';
22103
+ /**
22104
+ * Link to the relevant documentation page.
22105
+ */
22106
+ documentation_url?: string;
22107
+ /**
22108
+ * Deep-link to send the end-user to. For
22109
+ * `free_tier_exceeded` and `twitter_passthrough` this opens
22110
+ * the add-payment-method drawer on the Zernio billing page.
22111
+ * For `enterprise_required` this is the Zernio enterprise
22112
+ * contact page.
22113
+ *
22114
+ */
22115
+ dashboard_url?: string;
22116
+ /**
22117
+ * Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
22118
+ */
22119
+ details?: {
22120
+ /**
22121
+ * How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
22122
+ */
22123
+ free_tier_account_limit?: number;
22124
+ /**
22125
+ * How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
22126
+ */
22127
+ current_account_count?: number;
22128
+ /**
22129
+ * Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
22130
+ */
22131
+ has_payment_method?: boolean;
22132
+ /**
22133
+ * One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
22134
+ */
22135
+ verification_amount_cents?: number;
22136
+ /**
22137
+ * The negotiated connected-account cap from the
22138
+ * team's enterprise contract. Self-service teams
22139
+ * have no cap and never receive this reason. Only
22140
+ * set when reason=enterprise_required.
22141
+ *
22142
+ */
22143
+ effective_account_limit?: number;
22144
+ };
22145
+ } | unknown);
22146
+
21873
22147
  export type GetWordPressAuthUrlData = {
21874
22148
  query: {
21875
22149
  /**
@@ -26452,6 +26726,41 @@ export type SetRedditPostFlairResponse = ({
26452
26726
 
26453
26727
  export type SetRedditPostFlairError = (unknown | ErrorResponse);
26454
26728
 
26729
+ export type GetHubSpotSettingsData = {
26730
+ path: {
26731
+ accountId: string;
26732
+ };
26733
+ };
26734
+
26735
+ export type GetHubSpotSettingsResponse = ({
26736
+ account?: HubSpotSettings;
26737
+ });
26738
+
26739
+ export type GetHubSpotSettingsError = (ErrorResponse | unknown);
26740
+
26741
+ export type UpdateHubSpotSettingsData = {
26742
+ body: {
26743
+ /**
26744
+ * Create or update a HubSpot contact for each inbox contact.
26745
+ */
26746
+ syncContacts?: boolean;
26747
+ /**
26748
+ * Log inbound and outbound inbox messages on the contact's HubSpot timeline.
26749
+ */
26750
+ logMessages?: boolean;
26751
+ };
26752
+ path: {
26753
+ accountId: string;
26754
+ };
26755
+ };
26756
+
26757
+ export type UpdateHubSpotSettingsResponse = ({
26758
+ message?: string;
26759
+ account?: HubSpotSettings;
26760
+ });
26761
+
26762
+ export type UpdateHubSpotSettingsError = (ErrorResponse | unknown);
26763
+
26455
26764
  export type GetSlackSettingsData = {
26456
26765
  path: {
26457
26766
  accountId: string;
@@ -47667,100 +47976,17 @@ export type GetAdAccountLiveEntitiesResponse = ({
47667
47976
  export type GetAdAccountLiveEntitiesError = (ErrorResponse | unknown);
47668
47977
 
47669
47978
  export type CreateAdAccountData = {
47670
- body: {
47671
- /**
47672
- * Zernio metaads SocialAccount ID.
47673
- */
47674
- accountId: string;
47675
- /**
47676
- * Business portfolio that will own the account.
47677
- */
47678
- businessId: string;
47679
- /**
47680
- * Ad account name. Whitespace is trimmed.
47681
- */
47682
- name: string;
47683
- /**
47684
- * Uppercase ISO 4217 currency supported by Meta.
47685
- */
47686
- currency: string;
47687
- /**
47688
- * Numeric Meta timezone ID from the linked timezone list. For example 1 is America/Los_Angeles.
47689
- */
47690
- timezoneId: number;
47691
- /**
47692
- * End advertiser business or page ID. NONE uses the owning business.
47693
- */
47694
- endAdvertiser?: string;
47695
- /**
47696
- * Media agency business or page ID. NONE for self-serve customers.
47697
- */
47698
- mediaAgency?: string;
47699
- /**
47700
- * Partner business or page ID. NONE for self-serve customers.
47701
- */
47702
- partner?: string;
47703
- /**
47704
- * Request Meta invoicing. Eligibility is determined by Meta.
47705
- */
47706
- invoice?: boolean;
47707
- /**
47708
- * Existing Meta invoice group ID.
47709
- */
47710
- invoiceGroupId?: string;
47711
- /**
47712
- * Addresses for Meta invoices.
47713
- */
47714
- invoicingEmails?: Array<(string)>;
47715
- /**
47716
- * Meta insertion-order invoicing option.
47717
- */
47718
- io?: boolean;
47719
- /**
47720
- * Purchase order number.
47721
- */
47722
- poNumber?: string;
47723
- /**
47724
- * Existing Meta funding reference. Does not add a payment method.
47725
- */
47726
- fundingId?: string;
47727
- /**
47728
- * Meta Business Manager creation flag.
47729
- */
47730
- adAccountCreatedFromBmFlag?: boolean;
47731
- };
47979
+ body: (CreateMetaAdAccountRequest | CreateGoogleAdAccountRequest);
47732
47980
  };
47733
47981
 
47734
47982
  export type CreateAdAccountResponse = ({
47983
+ platform: 'google';
47984
+ managerCustomerId: string;
47735
47985
  /**
47736
- * New Meta ad account ID for subsequent ads calls.
47737
- */
47738
- adAccountId: string;
47739
- /**
47740
- * Owning business portfolio ID.
47741
- */
47742
- businessId: string;
47743
- /**
47744
- * Whether the connection scope and discovery schedule were updated.
47745
- */
47746
- connectionUpdated: boolean;
47747
- /**
47748
- * Always true as a delivery prerequisite. This is not a live funding-source check. Confirm payment or invoicing in Ads Manager.
47749
- */
47750
- paymentMethodRequired: boolean;
47751
- /**
47752
- * Open the created account in Ads Manager.
47753
- */
47754
- adsManagerUrl: string;
47755
- /**
47756
- * Payment setup instructions for the user.
47986
+ * Always true on a 200.
47757
47987
  */
47758
- nextSteps: string;
47759
- /**
47760
- * Recovery instructions if the account could not be attached to the connection.
47761
- */
47762
- warnings: Array<(string)>;
47763
- });
47988
+ validateOnly: boolean;
47989
+ } | (CreatedMetaAdAccount | CreatedGoogleAdAccount));
47764
47990
 
47765
47991
  export type CreateAdAccountError = (ErrorResponse);
47766
47992