@getlatedev/node 0.2.940 → 0.2.942
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 +6 -0
- package/dist/index.d.mts +354 -15
- package/dist/index.d.ts +354 -15
- package/dist/index.js +55 -1
- package/dist/index.mjs +55 -1
- package/package.json +1 -1
- package/src/client.ts +24 -0
- package/src/generated/sdk.gen.ts +67 -1
- package/src/generated/types.gen.ts +361 -14
|
@@ -4737,6 +4737,69 @@ export type GoogleAdLabelAssignments = {
|
|
|
4737
4737
|
keywordIds?: Array<(string)>;
|
|
4738
4738
|
};
|
|
4739
4739
|
|
|
4740
|
+
/**
|
|
4741
|
+
* A Google Ads account inside a manager tree.
|
|
4742
|
+
*/
|
|
4743
|
+
export type GoogleAdsHierarchyClient = {
|
|
4744
|
+
/**
|
|
4745
|
+
* Native Google Ads customer id, digits only.
|
|
4746
|
+
*/
|
|
4747
|
+
customerId?: string;
|
|
4748
|
+
/**
|
|
4749
|
+
* Null for a pending invitation.
|
|
4750
|
+
*/
|
|
4751
|
+
name?: (string) | null;
|
|
4752
|
+
currency?: (string) | null;
|
|
4753
|
+
timeZone?: (string) | null;
|
|
4754
|
+
/**
|
|
4755
|
+
* True for a sub-manager account.
|
|
4756
|
+
*/
|
|
4757
|
+
manager?: boolean;
|
|
4758
|
+
testAccount?: boolean;
|
|
4759
|
+
/**
|
|
4760
|
+
* Hidden in the manager's Google Ads UI.
|
|
4761
|
+
*/
|
|
4762
|
+
hidden?: boolean;
|
|
4763
|
+
/**
|
|
4764
|
+
* Distance from the root (1 = direct client of the root).
|
|
4765
|
+
*/
|
|
4766
|
+
level?: number;
|
|
4767
|
+
/**
|
|
4768
|
+
* Google customer status: ENABLED, CANCELED, SUSPENDED or CLOSED. Null for a pending invitation.
|
|
4769
|
+
*/
|
|
4770
|
+
status?: (string) | null;
|
|
4771
|
+
/**
|
|
4772
|
+
* Direct manager of this account. Null only when more than 50 managers under the root were skipped.
|
|
4773
|
+
*/
|
|
4774
|
+
parentCustomerId?: (string) | null;
|
|
4775
|
+
/**
|
|
4776
|
+
* Id of the link to the parent, used by PATCH /v1/ads/accounts/manager-links.
|
|
4777
|
+
*/
|
|
4778
|
+
managerLinkId?: (string) | null;
|
|
4779
|
+
linkStatus?: ('ACTIVE' | 'PENDING') | null;
|
|
4780
|
+
};
|
|
4781
|
+
|
|
4782
|
+
export type linkStatus = 'ACTIVE' | 'PENDING';
|
|
4783
|
+
|
|
4784
|
+
export type GoogleAdsManagerLink = {
|
|
4785
|
+
managerCustomerId?: string;
|
|
4786
|
+
clientCustomerId?: string;
|
|
4787
|
+
/**
|
|
4788
|
+
* Null on a validateOnly invitation, where Google creates nothing.
|
|
4789
|
+
*/
|
|
4790
|
+
managerLinkId?: (string) | null;
|
|
4791
|
+
/**
|
|
4792
|
+
* Status the link has after this call.
|
|
4793
|
+
*/
|
|
4794
|
+
status?: 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
|
|
4795
|
+
validateOnly?: boolean;
|
|
4796
|
+
};
|
|
4797
|
+
|
|
4798
|
+
/**
|
|
4799
|
+
* Status the link has after this call.
|
|
4800
|
+
*/
|
|
4801
|
+
export type status12 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
|
|
4802
|
+
|
|
4740
4803
|
/**
|
|
4741
4804
|
* Link one asset to the asset group. Send exactly one of asset (an existing asset), text, imageUrl or youtubeVideoId (new content, created in the same request).
|
|
4742
4805
|
*/
|
|
@@ -5190,6 +5253,62 @@ export type GooglePmaxAssetGroupUpdate = {
|
|
|
5190
5253
|
youtubeVideoIds?: Array<(string)>;
|
|
5191
5254
|
};
|
|
5192
5255
|
|
|
5256
|
+
export type GoogleRecommendation = {
|
|
5257
|
+
/**
|
|
5258
|
+
* customers/{customerId}/recommendations/{id}. Pass it to apply or dismiss.
|
|
5259
|
+
*/
|
|
5260
|
+
resourceName: string;
|
|
5261
|
+
id: string;
|
|
5262
|
+
/**
|
|
5263
|
+
* Google RecommendationType, such as CAMPAIGN_BUDGET, KEYWORD or SET_TARGET_CPA.
|
|
5264
|
+
*/
|
|
5265
|
+
type: string;
|
|
5266
|
+
dismissed: boolean;
|
|
5267
|
+
campaignId: (string) | null;
|
|
5268
|
+
/**
|
|
5269
|
+
* Every campaign the recommendation targets (several for account-level types).
|
|
5270
|
+
*/
|
|
5271
|
+
campaignIds: Array<(string)>;
|
|
5272
|
+
adGroupId: (string) | null;
|
|
5273
|
+
campaignBudgetId: (string) | null;
|
|
5274
|
+
/**
|
|
5275
|
+
* Google's estimate over its own window. Null when Google gives none for the type.
|
|
5276
|
+
*/
|
|
5277
|
+
impact: {
|
|
5278
|
+
base?: GoogleRecommendationMetrics;
|
|
5279
|
+
potential?: GoogleRecommendationMetrics;
|
|
5280
|
+
} | null;
|
|
5281
|
+
/**
|
|
5282
|
+
* The type-specific recommendation payload exactly as Google returns it (camelCase, amounts in micros), for example recommendedTargetCpaMicros or budgetOptions.
|
|
5283
|
+
*/
|
|
5284
|
+
details: {
|
|
5285
|
+
[key: string]: unknown;
|
|
5286
|
+
} | null;
|
|
5287
|
+
};
|
|
5288
|
+
|
|
5289
|
+
export type GoogleRecommendationMetrics = {
|
|
5290
|
+
impressions?: number;
|
|
5291
|
+
clicks?: number;
|
|
5292
|
+
/**
|
|
5293
|
+
* Account currency units.
|
|
5294
|
+
*/
|
|
5295
|
+
cost?: number;
|
|
5296
|
+
conversions?: number;
|
|
5297
|
+
conversionsValue?: number;
|
|
5298
|
+
videoViews?: number;
|
|
5299
|
+
};
|
|
5300
|
+
|
|
5301
|
+
export type GoogleRecommendationResult = {
|
|
5302
|
+
resourceName: string;
|
|
5303
|
+
status: 'applied' | 'dismissed' | 'failed';
|
|
5304
|
+
/**
|
|
5305
|
+
* Google's message when status is failed.
|
|
5306
|
+
*/
|
|
5307
|
+
error?: string;
|
|
5308
|
+
};
|
|
5309
|
+
|
|
5310
|
+
export type status13 = 'applied' | 'dismissed' | 'failed';
|
|
5311
|
+
|
|
5193
5312
|
export type GoogleRsaDescription = {
|
|
5194
5313
|
text: string;
|
|
5195
5314
|
/**
|
|
@@ -5320,7 +5439,7 @@ export type kind = 'phone' | 'email';
|
|
|
5320
5439
|
|
|
5321
5440
|
export type region = 'US' | 'GB';
|
|
5322
5441
|
|
|
5323
|
-
export type
|
|
5442
|
+
export type status14 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
5324
5443
|
|
|
5325
5444
|
/**
|
|
5326
5445
|
* Attachment snapshot inside an edit-history entry.
|
|
@@ -5392,7 +5511,7 @@ export type InboxWebhookConversation = {
|
|
|
5392
5511
|
contactId?: string;
|
|
5393
5512
|
};
|
|
5394
5513
|
|
|
5395
|
-
export type
|
|
5514
|
+
export type status15 = 'active' | 'archived';
|
|
5396
5515
|
|
|
5397
5516
|
/**
|
|
5398
5517
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -6979,7 +7098,7 @@ export type OwnedPhoneNumber = {
|
|
|
6979
7098
|
}>;
|
|
6980
7099
|
};
|
|
6981
7100
|
|
|
6982
|
-
export type
|
|
7101
|
+
export type status16 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
6983
7102
|
|
|
6984
7103
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
6985
7104
|
|
|
@@ -7104,7 +7223,7 @@ export type PlatformAnalytics = {
|
|
|
7104
7223
|
errorMessage?: (string) | null;
|
|
7105
7224
|
};
|
|
7106
7225
|
|
|
7107
|
-
export type
|
|
7226
|
+
export type status17 = 'published' | 'failed';
|
|
7108
7227
|
|
|
7109
7228
|
/**
|
|
7110
7229
|
* Sync state of analytics for this platform
|
|
@@ -7506,7 +7625,7 @@ export type Product = {
|
|
|
7506
7625
|
|
|
7507
7626
|
export type platform8 = 'shopify';
|
|
7508
7627
|
|
|
7509
|
-
export type
|
|
7628
|
+
export type status18 = 'active' | 'draft' | 'archived';
|
|
7510
7629
|
|
|
7511
7630
|
export type ProductImage = {
|
|
7512
7631
|
url?: string;
|
|
@@ -8782,7 +8901,7 @@ export type UploadTokenResponse = {
|
|
|
8782
8901
|
status?: 'pending' | 'completed' | 'expired';
|
|
8783
8902
|
};
|
|
8784
8903
|
|
|
8785
|
-
export type
|
|
8904
|
+
export type status19 = 'pending' | 'completed' | 'expired';
|
|
8786
8905
|
|
|
8787
8906
|
export type UploadTokenStatusResponse = {
|
|
8788
8907
|
token?: string;
|
|
@@ -9281,7 +9400,7 @@ export type Verification = {
|
|
|
9281
9400
|
resend?: boolean;
|
|
9282
9401
|
};
|
|
9283
9402
|
|
|
9284
|
-
export type
|
|
9403
|
+
export type status20 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
9285
9404
|
|
|
9286
9405
|
export type channel4 = 'sms';
|
|
9287
9406
|
|
|
@@ -9408,7 +9527,7 @@ export type WebhookLog = {
|
|
|
9408
9527
|
/**
|
|
9409
9528
|
* Delivery outcome
|
|
9410
9529
|
*/
|
|
9411
|
-
export type
|
|
9530
|
+
export type status21 = 'success' | 'failed';
|
|
9412
9531
|
|
|
9413
9532
|
/**
|
|
9414
9533
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -9520,7 +9639,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
9520
9639
|
/**
|
|
9521
9640
|
* Overall outcome of the initial sync.
|
|
9522
9641
|
*/
|
|
9523
|
-
export type
|
|
9642
|
+
export type status22 = 'success' | 'failure';
|
|
9524
9643
|
|
|
9525
9644
|
/**
|
|
9526
9645
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -11473,7 +11592,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
11473
11592
|
/**
|
|
11474
11593
|
* Terminal status this event fires on. Matches the event suffix.
|
|
11475
11594
|
*/
|
|
11476
|
-
export type
|
|
11595
|
+
export type status23 = 'published' | 'failed' | 'deleted';
|
|
11477
11596
|
|
|
11478
11597
|
/**
|
|
11479
11598
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -11739,7 +11858,7 @@ export type platform15 = 'whatsapp';
|
|
|
11739
11858
|
/**
|
|
11740
11859
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
11741
11860
|
*/
|
|
11742
|
-
export type
|
|
11861
|
+
export type status24 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
11743
11862
|
|
|
11744
11863
|
/**
|
|
11745
11864
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -11888,7 +12007,7 @@ export type event30 = 'whatsapp.template.status_updated';
|
|
|
11888
12007
|
* request before the template is actually removed.
|
|
11889
12008
|
*
|
|
11890
12009
|
*/
|
|
11891
|
-
export type
|
|
12010
|
+
export type status25 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
11892
12011
|
|
|
11893
12012
|
export type WhatsAppBodyComponent = {
|
|
11894
12013
|
type: 'body';
|
|
@@ -12042,7 +12161,7 @@ export type WhatsAppSandboxSession = {
|
|
|
12042
12161
|
* list responses.
|
|
12043
12162
|
*
|
|
12044
12163
|
*/
|
|
12045
|
-
export type
|
|
12164
|
+
export type status26 = 'pending' | 'active';
|
|
12046
12165
|
|
|
12047
12166
|
export type WhatsAppTemplateButton = {
|
|
12048
12167
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -12200,7 +12319,7 @@ export type WorkflowExecutionEvent = {
|
|
|
12200
12319
|
|
|
12201
12320
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
12202
12321
|
|
|
12203
|
-
export type
|
|
12322
|
+
export type status27 = 'success' | 'failed' | 'pending';
|
|
12204
12323
|
|
|
12205
12324
|
/**
|
|
12206
12325
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -35291,6 +35410,103 @@ export type GetAdsSearchTermsError = (ErrorResponse | {
|
|
|
35291
35410
|
error?: string;
|
|
35292
35411
|
} | unknown);
|
|
35293
35412
|
|
|
35413
|
+
export type ListGoogleRecommendationsData = {
|
|
35414
|
+
query: {
|
|
35415
|
+
/**
|
|
35416
|
+
* Google ads SocialAccount id.
|
|
35417
|
+
*/
|
|
35418
|
+
accountId: string;
|
|
35419
|
+
/**
|
|
35420
|
+
* Google customer id, digits only. Defaults to the connection's only customer.
|
|
35421
|
+
*/
|
|
35422
|
+
adAccountId?: string;
|
|
35423
|
+
/**
|
|
35424
|
+
* Only recommendations targeting this campaign.
|
|
35425
|
+
*/
|
|
35426
|
+
campaignId?: string;
|
|
35427
|
+
/**
|
|
35428
|
+
* Alias of adAccountId, kept for consistency with other Google endpoints.
|
|
35429
|
+
* @deprecated
|
|
35430
|
+
*/
|
|
35431
|
+
customerId?: string;
|
|
35432
|
+
/**
|
|
35433
|
+
* Comma-separated Google RecommendationType values, for example CAMPAIGN_BUDGET,KEYWORD,SET_TARGET_CPA.
|
|
35434
|
+
*/
|
|
35435
|
+
types?: string;
|
|
35436
|
+
};
|
|
35437
|
+
};
|
|
35438
|
+
|
|
35439
|
+
export type ListGoogleRecommendationsResponse = ({
|
|
35440
|
+
adAccountId: string;
|
|
35441
|
+
recommendations: Array<GoogleRecommendation>;
|
|
35442
|
+
cachedAt: (string) | null;
|
|
35443
|
+
stale: boolean;
|
|
35444
|
+
});
|
|
35445
|
+
|
|
35446
|
+
export type ListGoogleRecommendationsError = (ErrorResponse | {
|
|
35447
|
+
error?: string;
|
|
35448
|
+
} | unknown);
|
|
35449
|
+
|
|
35450
|
+
export type ApplyGoogleRecommendationsData = {
|
|
35451
|
+
body: {
|
|
35452
|
+
/**
|
|
35453
|
+
* Google ads SocialAccount id.
|
|
35454
|
+
*/
|
|
35455
|
+
accountId: string;
|
|
35456
|
+
/**
|
|
35457
|
+
* Google customer id, digits only. Required when the connection has several customers.
|
|
35458
|
+
*/
|
|
35459
|
+
adAccountId?: string;
|
|
35460
|
+
recommendations: Array<{
|
|
35461
|
+
/**
|
|
35462
|
+
* Recommendation resource name from the list, or its id.
|
|
35463
|
+
*/
|
|
35464
|
+
resourceName: string;
|
|
35465
|
+
/**
|
|
35466
|
+
* One key, such as campaignBudget, keyword, textAd, targetCpaOptIn, targetRoasOptIn, callAsset, calloutAsset, sitelinkAsset, moveUnusedBudget, responsiveSearchAd, responsiveSearchAdAsset, responsiveSearchAdImproveAdStrength, useBroadMatchKeyword, raiseTargetCpa, lowerTargetRoas, setTargetCpa, setTargetRoas, forecastingSetTargetCpa, forecastingSetTargetRoas, leadFormAsset, raiseTargetCpaBidTooLow, raiseTargetCpaPerformanceBidTooLow, lowerTargetRoasPerformanceBidTooLow, calloutExtension, callExtension or sitelinkExtension.
|
|
35467
|
+
*/
|
|
35468
|
+
parameters?: {
|
|
35469
|
+
[key: string]: unknown;
|
|
35470
|
+
};
|
|
35471
|
+
}>;
|
|
35472
|
+
};
|
|
35473
|
+
};
|
|
35474
|
+
|
|
35475
|
+
export type ApplyGoogleRecommendationsResponse = ({
|
|
35476
|
+
adAccountId: string;
|
|
35477
|
+
results: Array<GoogleRecommendationResult>;
|
|
35478
|
+
});
|
|
35479
|
+
|
|
35480
|
+
export type ApplyGoogleRecommendationsError = (ErrorResponse | {
|
|
35481
|
+
error?: string;
|
|
35482
|
+
} | unknown);
|
|
35483
|
+
|
|
35484
|
+
export type DismissGoogleRecommendationsData = {
|
|
35485
|
+
body: {
|
|
35486
|
+
/**
|
|
35487
|
+
* Google ads SocialAccount id.
|
|
35488
|
+
*/
|
|
35489
|
+
accountId: string;
|
|
35490
|
+
/**
|
|
35491
|
+
* Google customer id, digits only. Required when the connection has several customers.
|
|
35492
|
+
*/
|
|
35493
|
+
adAccountId?: string;
|
|
35494
|
+
/**
|
|
35495
|
+
* Recommendation resource names from the list, or their ids.
|
|
35496
|
+
*/
|
|
35497
|
+
resourceNames: Array<(string)>;
|
|
35498
|
+
};
|
|
35499
|
+
};
|
|
35500
|
+
|
|
35501
|
+
export type DismissGoogleRecommendationsResponse = ({
|
|
35502
|
+
adAccountId: string;
|
|
35503
|
+
results: Array<GoogleRecommendationResult>;
|
|
35504
|
+
});
|
|
35505
|
+
|
|
35506
|
+
export type DismissGoogleRecommendationsError = (ErrorResponse | {
|
|
35507
|
+
error?: string;
|
|
35508
|
+
} | unknown);
|
|
35509
|
+
|
|
35294
35510
|
export type ListBidStrategiesData = {
|
|
35295
35511
|
query: {
|
|
35296
35512
|
/**
|
|
@@ -40578,6 +40794,137 @@ export type RemoveAccountStructuredSnippetError = (ErrorResponse | {
|
|
|
40578
40794
|
error?: string;
|
|
40579
40795
|
} | unknown);
|
|
40580
40796
|
|
|
40797
|
+
export type GetAdAccountHierarchyData = {
|
|
40798
|
+
query: {
|
|
40799
|
+
/**
|
|
40800
|
+
* Google ads SocialAccount id.
|
|
40801
|
+
*/
|
|
40802
|
+
accountId: string;
|
|
40803
|
+
/**
|
|
40804
|
+
* Only return the tree rooted at this customer id (digits only). It must be an account the Google user accesses directly. Omit to list every tree.
|
|
40805
|
+
*/
|
|
40806
|
+
adAccountId?: string;
|
|
40807
|
+
/**
|
|
40808
|
+
* Alias of adAccountId, kept for consistency with the other Google Ads account endpoints.
|
|
40809
|
+
* @deprecated
|
|
40810
|
+
*/
|
|
40811
|
+
customerId?: string;
|
|
40812
|
+
};
|
|
40813
|
+
};
|
|
40814
|
+
|
|
40815
|
+
export type GetAdAccountHierarchyResponse = ({
|
|
40816
|
+
accountId?: string;
|
|
40817
|
+
roots?: Array<{
|
|
40818
|
+
/**
|
|
40819
|
+
* Native Google Ads customer id, digits only.
|
|
40820
|
+
*/
|
|
40821
|
+
customerId?: string;
|
|
40822
|
+
name?: (string) | null;
|
|
40823
|
+
/**
|
|
40824
|
+
* ISO 4217 code.
|
|
40825
|
+
*/
|
|
40826
|
+
currency?: (string) | null;
|
|
40827
|
+
/**
|
|
40828
|
+
* IANA time zone, e.g. Europe/Madrid.
|
|
40829
|
+
*/
|
|
40830
|
+
timeZone?: (string) | null;
|
|
40831
|
+
/**
|
|
40832
|
+
* True for a manager (MCC) account.
|
|
40833
|
+
*/
|
|
40834
|
+
manager?: boolean;
|
|
40835
|
+
testAccount?: boolean;
|
|
40836
|
+
/**
|
|
40837
|
+
* Google customer status: ENABLED, CANCELED, SUSPENDED or CLOSED.
|
|
40838
|
+
*/
|
|
40839
|
+
status?: (string) | null;
|
|
40840
|
+
/**
|
|
40841
|
+
* Managers linked to this account, ACTIVE or PENDING.
|
|
40842
|
+
*/
|
|
40843
|
+
managerLinks?: Array<{
|
|
40844
|
+
managerCustomerId?: string;
|
|
40845
|
+
managerLinkId?: string;
|
|
40846
|
+
status?: 'ACTIVE' | 'PENDING';
|
|
40847
|
+
}>;
|
|
40848
|
+
/**
|
|
40849
|
+
* Every account under this root at any depth, in Google's order, followed by pending invitations.
|
|
40850
|
+
*/
|
|
40851
|
+
clients?: Array<GoogleAdsHierarchyClient>;
|
|
40852
|
+
}>;
|
|
40853
|
+
unavailable?: Array<{
|
|
40854
|
+
customerId?: string;
|
|
40855
|
+
/**
|
|
40856
|
+
* Google's error message and code.
|
|
40857
|
+
*/
|
|
40858
|
+
reason?: string;
|
|
40859
|
+
}>;
|
|
40860
|
+
truncated?: boolean;
|
|
40861
|
+
/**
|
|
40862
|
+
* When this data was fetched from Google. Null on a live read.
|
|
40863
|
+
*/
|
|
40864
|
+
cachedAt?: (string) | null;
|
|
40865
|
+
/**
|
|
40866
|
+
* True when Google's quota was exhausted and this is the last successful fetch.
|
|
40867
|
+
*/
|
|
40868
|
+
stale?: boolean;
|
|
40869
|
+
});
|
|
40870
|
+
|
|
40871
|
+
export type GetAdAccountHierarchyError = (ErrorResponse | {
|
|
40872
|
+
error?: string;
|
|
40873
|
+
} | unknown);
|
|
40874
|
+
|
|
40875
|
+
export type InviteAdAccountToManagerData = {
|
|
40876
|
+
body: {
|
|
40877
|
+
/**
|
|
40878
|
+
* Google ads SocialAccount id.
|
|
40879
|
+
*/
|
|
40880
|
+
accountId: string;
|
|
40881
|
+
/**
|
|
40882
|
+
* Manager customer id, digits only.
|
|
40883
|
+
*/
|
|
40884
|
+
managerCustomerId: string;
|
|
40885
|
+
/**
|
|
40886
|
+
* Client customer id to invite, digits only.
|
|
40887
|
+
*/
|
|
40888
|
+
clientCustomerId: string;
|
|
40889
|
+
validateOnly?: boolean;
|
|
40890
|
+
};
|
|
40891
|
+
};
|
|
40892
|
+
|
|
40893
|
+
export type InviteAdAccountToManagerResponse = (GoogleAdsManagerLink);
|
|
40894
|
+
|
|
40895
|
+
export type InviteAdAccountToManagerError = (ErrorResponse | {
|
|
40896
|
+
error?: string;
|
|
40897
|
+
} | unknown);
|
|
40898
|
+
|
|
40899
|
+
export type UpdateAdAccountManagerLinkData = {
|
|
40900
|
+
body: {
|
|
40901
|
+
/**
|
|
40902
|
+
* Google ads SocialAccount id.
|
|
40903
|
+
*/
|
|
40904
|
+
accountId: string;
|
|
40905
|
+
/**
|
|
40906
|
+
* Manager customer id, digits only.
|
|
40907
|
+
*/
|
|
40908
|
+
managerCustomerId: string;
|
|
40909
|
+
/**
|
|
40910
|
+
* Client customer id, digits only.
|
|
40911
|
+
*/
|
|
40912
|
+
clientCustomerId: string;
|
|
40913
|
+
/**
|
|
40914
|
+
* Numeric link id from GET /v1/ads/accounts/hierarchy.
|
|
40915
|
+
*/
|
|
40916
|
+
managerLinkId: string;
|
|
40917
|
+
action: 'accept' | 'decline' | 'cancel' | 'unlink';
|
|
40918
|
+
validateOnly?: boolean;
|
|
40919
|
+
};
|
|
40920
|
+
};
|
|
40921
|
+
|
|
40922
|
+
export type UpdateAdAccountManagerLinkResponse = (GoogleAdsManagerLink);
|
|
40923
|
+
|
|
40924
|
+
export type UpdateAdAccountManagerLinkError = (ErrorResponse | {
|
|
40925
|
+
error?: string;
|
|
40926
|
+
} | unknown);
|
|
40927
|
+
|
|
40581
40928
|
export type GetAdAccountFinanceData = {
|
|
40582
40929
|
query: {
|
|
40583
40930
|
/**
|