@getlatedev/node 0.2.942 → 0.2.943
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 +9 -3
- package/dist/index.d.mts +349 -164
- package/dist/index.d.ts +349 -164
- package/dist/index.js +83 -29
- package/dist/index.mjs +83 -29
- package/package.json +1 -1
- package/src/client.ts +36 -12
- package/src/generated/sdk.gen.ts +116 -34
- package/src/generated/types.gen.ts +353 -167
|
@@ -2949,6 +2949,14 @@ export type ConversionAction = {
|
|
|
2949
2949
|
* Google's ConversionActionCategory, e.g. DEFAULT, PURCHASE, LEAD.
|
|
2950
2950
|
*/
|
|
2951
2951
|
category: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* Google's ConversionOrigin, e.g. WEBSITE, APP. Together with category it names the goal the action belongs to (see GET /v1/ads/conversions/goals).
|
|
2954
|
+
*/
|
|
2955
|
+
origin?: string;
|
|
2956
|
+
/**
|
|
2957
|
+
* true = primary (counts toward bidding when its goal is biddable), false = secondary. Change it with PATCH /v1/ads/conversions/actions/{actionId}.
|
|
2958
|
+
*/
|
|
2959
|
+
primaryForGoal?: boolean;
|
|
2952
2960
|
/**
|
|
2953
2961
|
* The code a customer pastes onto their site. Present for types
|
|
2954
2962
|
* Google generates a snippet for (e.g. WEBPAGE); empty otherwise.
|
|
@@ -4858,6 +4866,18 @@ export type GoogleAssetUpdate = {
|
|
|
4858
4866
|
structuredSnippetAsset?: GoogleStructuredSnippet;
|
|
4859
4867
|
};
|
|
4860
4868
|
|
|
4869
|
+
export type GoogleBiddableGoalInput = {
|
|
4870
|
+
/**
|
|
4871
|
+
* Google ConversionActionCategory, e.g. PURCHASE, SIGNUP, SUBMIT_LEAD_FORM
|
|
4872
|
+
*/
|
|
4873
|
+
category: string;
|
|
4874
|
+
/**
|
|
4875
|
+
* Google ConversionOrigin, e.g. WEBSITE, APP, CALL_FROM_ADS, STORE, GOOGLE_HOSTED
|
|
4876
|
+
*/
|
|
4877
|
+
origin: string;
|
|
4878
|
+
biddable: boolean;
|
|
4879
|
+
};
|
|
4880
|
+
|
|
4861
4881
|
/**
|
|
4862
4882
|
* Text and single image only (no videos). Supports STANDARD, EVENT, OFFER, and ALERT post types. Posts appear on Google Business Profile, Google Search, and Maps. Use locationId for multi-location posting. Schedule dates accept both ISO 8601 strings (e.g. '2026-04-15T09:00:00Z') and Google's native {year, month, day} objects.
|
|
4863
4883
|
*/
|
|
@@ -5015,6 +5035,50 @@ export type GoogleBusinessReview = {
|
|
|
5015
5035
|
*/
|
|
5016
5036
|
export type starRating = 'ONE' | 'TWO' | 'THREE' | 'FOUR' | 'FIVE';
|
|
5017
5037
|
|
|
5038
|
+
export type GoogleCampaignConversionGoals = {
|
|
5039
|
+
campaignId?: string;
|
|
5040
|
+
goalConfigLevel?: 'CUSTOMER' | 'CAMPAIGN' | 'UNSPECIFIED' | 'UNKNOWN';
|
|
5041
|
+
customConversionGoalId?: (string) | null;
|
|
5042
|
+
goals?: Array<{
|
|
5043
|
+
category?: string;
|
|
5044
|
+
origin?: string;
|
|
5045
|
+
biddable?: boolean;
|
|
5046
|
+
resourceName?: string;
|
|
5047
|
+
}>;
|
|
5048
|
+
};
|
|
5049
|
+
|
|
5050
|
+
export type goalConfigLevel = 'CUSTOMER' | 'CAMPAIGN' | 'UNSPECIFIED' | 'UNKNOWN';
|
|
5051
|
+
|
|
5052
|
+
export type GoogleCustomConversionGoal = {
|
|
5053
|
+
id?: string;
|
|
5054
|
+
resourceName?: string;
|
|
5055
|
+
name?: string;
|
|
5056
|
+
status?: string;
|
|
5057
|
+
conversionActionIds?: Array<(string)>;
|
|
5058
|
+
};
|
|
5059
|
+
|
|
5060
|
+
export type GoogleCustomerConversionGoal = {
|
|
5061
|
+
category?: string;
|
|
5062
|
+
origin?: string;
|
|
5063
|
+
/**
|
|
5064
|
+
* Used for bidding and counted in the Conversions column.
|
|
5065
|
+
*/
|
|
5066
|
+
biddable?: boolean;
|
|
5067
|
+
resourceName?: string;
|
|
5068
|
+
/**
|
|
5069
|
+
* Non-removed conversion actions in this category and origin.
|
|
5070
|
+
*/
|
|
5071
|
+
conversionActions?: Array<{
|
|
5072
|
+
id?: string;
|
|
5073
|
+
name?: string;
|
|
5074
|
+
status?: string;
|
|
5075
|
+
/**
|
|
5076
|
+
* true = primary, false = secondary
|
|
5077
|
+
*/
|
|
5078
|
+
primaryForGoal?: boolean;
|
|
5079
|
+
}>;
|
|
5080
|
+
};
|
|
5081
|
+
|
|
5018
5082
|
/**
|
|
5019
5083
|
* Exactly one key. Omit the value (for example { productBrand: {} }) for the everything-else node of that level.
|
|
5020
5084
|
*/
|
|
@@ -5253,62 +5317,6 @@ export type GooglePmaxAssetGroupUpdate = {
|
|
|
5253
5317
|
youtubeVideoIds?: Array<(string)>;
|
|
5254
5318
|
};
|
|
5255
5319
|
|
|
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
|
-
|
|
5312
5320
|
export type GoogleRsaDescription = {
|
|
5313
5321
|
text: string;
|
|
5314
5322
|
/**
|
|
@@ -5439,7 +5447,7 @@ export type kind = 'phone' | 'email';
|
|
|
5439
5447
|
|
|
5440
5448
|
export type region = 'US' | 'GB';
|
|
5441
5449
|
|
|
5442
|
-
export type
|
|
5450
|
+
export type status13 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
5443
5451
|
|
|
5444
5452
|
/**
|
|
5445
5453
|
* Attachment snapshot inside an edit-history entry.
|
|
@@ -5511,7 +5519,7 @@ export type InboxWebhookConversation = {
|
|
|
5511
5519
|
contactId?: string;
|
|
5512
5520
|
};
|
|
5513
5521
|
|
|
5514
|
-
export type
|
|
5522
|
+
export type status14 = 'active' | 'archived';
|
|
5515
5523
|
|
|
5516
5524
|
/**
|
|
5517
5525
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -7098,7 +7106,7 @@ export type OwnedPhoneNumber = {
|
|
|
7098
7106
|
}>;
|
|
7099
7107
|
};
|
|
7100
7108
|
|
|
7101
|
-
export type
|
|
7109
|
+
export type status15 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
7102
7110
|
|
|
7103
7111
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
7104
7112
|
|
|
@@ -7223,7 +7231,7 @@ export type PlatformAnalytics = {
|
|
|
7223
7231
|
errorMessage?: (string) | null;
|
|
7224
7232
|
};
|
|
7225
7233
|
|
|
7226
|
-
export type
|
|
7234
|
+
export type status16 = 'published' | 'failed';
|
|
7227
7235
|
|
|
7228
7236
|
/**
|
|
7229
7237
|
* Sync state of analytics for this platform
|
|
@@ -7625,7 +7633,7 @@ export type Product = {
|
|
|
7625
7633
|
|
|
7626
7634
|
export type platform8 = 'shopify';
|
|
7627
7635
|
|
|
7628
|
-
export type
|
|
7636
|
+
export type status17 = 'active' | 'draft' | 'archived';
|
|
7629
7637
|
|
|
7630
7638
|
export type ProductImage = {
|
|
7631
7639
|
url?: string;
|
|
@@ -8901,7 +8909,7 @@ export type UploadTokenResponse = {
|
|
|
8901
8909
|
status?: 'pending' | 'completed' | 'expired';
|
|
8902
8910
|
};
|
|
8903
8911
|
|
|
8904
|
-
export type
|
|
8912
|
+
export type status18 = 'pending' | 'completed' | 'expired';
|
|
8905
8913
|
|
|
8906
8914
|
export type UploadTokenStatusResponse = {
|
|
8907
8915
|
token?: string;
|
|
@@ -9400,7 +9408,7 @@ export type Verification = {
|
|
|
9400
9408
|
resend?: boolean;
|
|
9401
9409
|
};
|
|
9402
9410
|
|
|
9403
|
-
export type
|
|
9411
|
+
export type status19 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
9404
9412
|
|
|
9405
9413
|
export type channel4 = 'sms';
|
|
9406
9414
|
|
|
@@ -9527,7 +9535,7 @@ export type WebhookLog = {
|
|
|
9527
9535
|
/**
|
|
9528
9536
|
* Delivery outcome
|
|
9529
9537
|
*/
|
|
9530
|
-
export type
|
|
9538
|
+
export type status20 = 'success' | 'failed';
|
|
9531
9539
|
|
|
9532
9540
|
/**
|
|
9533
9541
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -9639,7 +9647,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
9639
9647
|
/**
|
|
9640
9648
|
* Overall outcome of the initial sync.
|
|
9641
9649
|
*/
|
|
9642
|
-
export type
|
|
9650
|
+
export type status21 = 'success' | 'failure';
|
|
9643
9651
|
|
|
9644
9652
|
/**
|
|
9645
9653
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -11592,7 +11600,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
11592
11600
|
/**
|
|
11593
11601
|
* Terminal status this event fires on. Matches the event suffix.
|
|
11594
11602
|
*/
|
|
11595
|
-
export type
|
|
11603
|
+
export type status22 = 'published' | 'failed' | 'deleted';
|
|
11596
11604
|
|
|
11597
11605
|
/**
|
|
11598
11606
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -11858,7 +11866,7 @@ export type platform15 = 'whatsapp';
|
|
|
11858
11866
|
/**
|
|
11859
11867
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
11860
11868
|
*/
|
|
11861
|
-
export type
|
|
11869
|
+
export type status23 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
11862
11870
|
|
|
11863
11871
|
/**
|
|
11864
11872
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -12007,7 +12015,7 @@ export type event30 = 'whatsapp.template.status_updated';
|
|
|
12007
12015
|
* request before the template is actually removed.
|
|
12008
12016
|
*
|
|
12009
12017
|
*/
|
|
12010
|
-
export type
|
|
12018
|
+
export type status24 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
12011
12019
|
|
|
12012
12020
|
export type WhatsAppBodyComponent = {
|
|
12013
12021
|
type: 'body';
|
|
@@ -12161,7 +12169,7 @@ export type WhatsAppSandboxSession = {
|
|
|
12161
12169
|
* list responses.
|
|
12162
12170
|
*
|
|
12163
12171
|
*/
|
|
12164
|
-
export type
|
|
12172
|
+
export type status25 = 'pending' | 'active';
|
|
12165
12173
|
|
|
12166
12174
|
export type WhatsAppTemplateButton = {
|
|
12167
12175
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -12319,7 +12327,7 @@ export type WorkflowExecutionEvent = {
|
|
|
12319
12327
|
|
|
12320
12328
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
12321
12329
|
|
|
12322
|
-
export type
|
|
12330
|
+
export type status26 = 'success' | 'failed' | 'pending';
|
|
12323
12331
|
|
|
12324
12332
|
/**
|
|
12325
12333
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -35410,103 +35418,6 @@ export type GetAdsSearchTermsError = (ErrorResponse | {
|
|
|
35410
35418
|
error?: string;
|
|
35411
35419
|
} | unknown);
|
|
35412
35420
|
|
|
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
|
-
|
|
35510
35421
|
export type ListBidStrategiesData = {
|
|
35511
35422
|
query: {
|
|
35512
35423
|
/**
|
|
@@ -45316,6 +45227,281 @@ export type CreateConversionActionError = (ErrorResponse | {
|
|
|
45316
45227
|
error?: string;
|
|
45317
45228
|
} | unknown);
|
|
45318
45229
|
|
|
45230
|
+
export type ListAdConversionGoalsData = {
|
|
45231
|
+
query: {
|
|
45232
|
+
/**
|
|
45233
|
+
* Zernio SocialAccount id (Google Ads)
|
|
45234
|
+
*/
|
|
45235
|
+
accountId: string;
|
|
45236
|
+
/**
|
|
45237
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
45238
|
+
*/
|
|
45239
|
+
adAccountId?: string;
|
|
45240
|
+
/**
|
|
45241
|
+
* Alias of adAccountId
|
|
45242
|
+
* @deprecated
|
|
45243
|
+
*/
|
|
45244
|
+
customerId?: string;
|
|
45245
|
+
};
|
|
45246
|
+
};
|
|
45247
|
+
|
|
45248
|
+
export type ListAdConversionGoalsResponse = ({
|
|
45249
|
+
customerId?: string;
|
|
45250
|
+
goals?: Array<GoogleCustomerConversionGoal>;
|
|
45251
|
+
cachedAt?: (string) | null;
|
|
45252
|
+
stale?: boolean;
|
|
45253
|
+
});
|
|
45254
|
+
|
|
45255
|
+
export type ListAdConversionGoalsError = (ErrorResponse | {
|
|
45256
|
+
error?: string;
|
|
45257
|
+
} | unknown);
|
|
45258
|
+
|
|
45259
|
+
export type UpdateAdConversionGoalsData = {
|
|
45260
|
+
body: {
|
|
45261
|
+
/**
|
|
45262
|
+
* Zernio SocialAccount id (Google Ads)
|
|
45263
|
+
*/
|
|
45264
|
+
accountId: string;
|
|
45265
|
+
/**
|
|
45266
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
45267
|
+
*/
|
|
45268
|
+
adAccountId?: string;
|
|
45269
|
+
/**
|
|
45270
|
+
* Alias of adAccountId
|
|
45271
|
+
* @deprecated
|
|
45272
|
+
*/
|
|
45273
|
+
customerId?: string;
|
|
45274
|
+
goals: Array<GoogleBiddableGoalInput>;
|
|
45275
|
+
};
|
|
45276
|
+
};
|
|
45277
|
+
|
|
45278
|
+
export type UpdateAdConversionGoalsResponse = ({
|
|
45279
|
+
customerId?: string;
|
|
45280
|
+
goals?: Array<GoogleCustomerConversionGoal>;
|
|
45281
|
+
});
|
|
45282
|
+
|
|
45283
|
+
export type UpdateAdConversionGoalsError = (ErrorResponse | {
|
|
45284
|
+
error?: string;
|
|
45285
|
+
} | unknown);
|
|
45286
|
+
|
|
45287
|
+
export type UpdateConversionActionData = {
|
|
45288
|
+
body: {
|
|
45289
|
+
/**
|
|
45290
|
+
* Zernio SocialAccount id (Google Ads)
|
|
45291
|
+
*/
|
|
45292
|
+
accountId: string;
|
|
45293
|
+
/**
|
|
45294
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
45295
|
+
*/
|
|
45296
|
+
adAccountId?: string;
|
|
45297
|
+
/**
|
|
45298
|
+
* Alias of adAccountId
|
|
45299
|
+
* @deprecated
|
|
45300
|
+
*/
|
|
45301
|
+
customerId?: string;
|
|
45302
|
+
/**
|
|
45303
|
+
* true = primary, false = secondary
|
|
45304
|
+
*/
|
|
45305
|
+
primaryForGoal: boolean;
|
|
45306
|
+
};
|
|
45307
|
+
path: {
|
|
45308
|
+
/**
|
|
45309
|
+
* Google conversion action id
|
|
45310
|
+
*/
|
|
45311
|
+
actionId: string;
|
|
45312
|
+
};
|
|
45313
|
+
};
|
|
45314
|
+
|
|
45315
|
+
export type UpdateConversionActionResponse = ({
|
|
45316
|
+
customerId?: string;
|
|
45317
|
+
action?: {
|
|
45318
|
+
id?: string;
|
|
45319
|
+
primaryForGoal?: boolean;
|
|
45320
|
+
};
|
|
45321
|
+
});
|
|
45322
|
+
|
|
45323
|
+
export type UpdateConversionActionError = (ErrorResponse | {
|
|
45324
|
+
error?: string;
|
|
45325
|
+
} | unknown);
|
|
45326
|
+
|
|
45327
|
+
export type ListCustomConversionGoalsData = {
|
|
45328
|
+
query: {
|
|
45329
|
+
/**
|
|
45330
|
+
* Zernio SocialAccount id (Google Ads)
|
|
45331
|
+
*/
|
|
45332
|
+
accountId: string;
|
|
45333
|
+
/**
|
|
45334
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
45335
|
+
*/
|
|
45336
|
+
adAccountId?: string;
|
|
45337
|
+
/**
|
|
45338
|
+
* Alias of adAccountId
|
|
45339
|
+
* @deprecated
|
|
45340
|
+
*/
|
|
45341
|
+
customerId?: string;
|
|
45342
|
+
};
|
|
45343
|
+
};
|
|
45344
|
+
|
|
45345
|
+
export type ListCustomConversionGoalsResponse = ({
|
|
45346
|
+
customerId?: string;
|
|
45347
|
+
goals?: Array<GoogleCustomConversionGoal>;
|
|
45348
|
+
cachedAt?: (string) | null;
|
|
45349
|
+
stale?: boolean;
|
|
45350
|
+
});
|
|
45351
|
+
|
|
45352
|
+
export type ListCustomConversionGoalsError = (ErrorResponse | {
|
|
45353
|
+
error?: string;
|
|
45354
|
+
} | unknown);
|
|
45355
|
+
|
|
45356
|
+
export type CreateCustomConversionGoalData = {
|
|
45357
|
+
body: {
|
|
45358
|
+
/**
|
|
45359
|
+
* Zernio SocialAccount id (Google Ads)
|
|
45360
|
+
*/
|
|
45361
|
+
accountId: string;
|
|
45362
|
+
/**
|
|
45363
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
45364
|
+
*/
|
|
45365
|
+
adAccountId?: string;
|
|
45366
|
+
/**
|
|
45367
|
+
* Alias of adAccountId
|
|
45368
|
+
* @deprecated
|
|
45369
|
+
*/
|
|
45370
|
+
customerId?: string;
|
|
45371
|
+
name: string;
|
|
45372
|
+
conversionActionIds: Array<(string)>;
|
|
45373
|
+
};
|
|
45374
|
+
};
|
|
45375
|
+
|
|
45376
|
+
export type CreateCustomConversionGoalResponse = ({
|
|
45377
|
+
customerId?: string;
|
|
45378
|
+
id?: string;
|
|
45379
|
+
resourceName?: string;
|
|
45380
|
+
});
|
|
45381
|
+
|
|
45382
|
+
export type CreateCustomConversionGoalError = (ErrorResponse | {
|
|
45383
|
+
error?: string;
|
|
45384
|
+
} | unknown);
|
|
45385
|
+
|
|
45386
|
+
export type UpdateCustomConversionGoalData = {
|
|
45387
|
+
body: {
|
|
45388
|
+
/**
|
|
45389
|
+
* Zernio SocialAccount id (Google Ads)
|
|
45390
|
+
*/
|
|
45391
|
+
accountId: string;
|
|
45392
|
+
/**
|
|
45393
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
45394
|
+
*/
|
|
45395
|
+
adAccountId?: string;
|
|
45396
|
+
/**
|
|
45397
|
+
* Alias of adAccountId
|
|
45398
|
+
* @deprecated
|
|
45399
|
+
*/
|
|
45400
|
+
customerId?: string;
|
|
45401
|
+
name?: string;
|
|
45402
|
+
/**
|
|
45403
|
+
* Replaces the whole set.
|
|
45404
|
+
*/
|
|
45405
|
+
conversionActionIds?: Array<(string)>;
|
|
45406
|
+
};
|
|
45407
|
+
path: {
|
|
45408
|
+
/**
|
|
45409
|
+
* Google custom conversion goal id
|
|
45410
|
+
*/
|
|
45411
|
+
goalId: string;
|
|
45412
|
+
};
|
|
45413
|
+
};
|
|
45414
|
+
|
|
45415
|
+
export type UpdateCustomConversionGoalResponse = ({
|
|
45416
|
+
customerId?: string;
|
|
45417
|
+
goal?: GoogleCustomConversionGoal;
|
|
45418
|
+
});
|
|
45419
|
+
|
|
45420
|
+
export type UpdateCustomConversionGoalError = (ErrorResponse | {
|
|
45421
|
+
error?: string;
|
|
45422
|
+
} | unknown);
|
|
45423
|
+
|
|
45424
|
+
export type RemoveCustomConversionGoalData = {
|
|
45425
|
+
path: {
|
|
45426
|
+
/**
|
|
45427
|
+
* Google custom conversion goal id
|
|
45428
|
+
*/
|
|
45429
|
+
goalId: string;
|
|
45430
|
+
};
|
|
45431
|
+
query: {
|
|
45432
|
+
/**
|
|
45433
|
+
* Zernio SocialAccount id (Google Ads)
|
|
45434
|
+
*/
|
|
45435
|
+
accountId: string;
|
|
45436
|
+
/**
|
|
45437
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
45438
|
+
*/
|
|
45439
|
+
adAccountId?: string;
|
|
45440
|
+
/**
|
|
45441
|
+
* Alias of adAccountId
|
|
45442
|
+
* @deprecated
|
|
45443
|
+
*/
|
|
45444
|
+
customerId?: string;
|
|
45445
|
+
};
|
|
45446
|
+
};
|
|
45447
|
+
|
|
45448
|
+
export type RemoveCustomConversionGoalResponse = ({
|
|
45449
|
+
customerId?: string;
|
|
45450
|
+
goalId?: string;
|
|
45451
|
+
/**
|
|
45452
|
+
* Always true on success
|
|
45453
|
+
*/
|
|
45454
|
+
removed?: boolean;
|
|
45455
|
+
});
|
|
45456
|
+
|
|
45457
|
+
export type RemoveCustomConversionGoalError = (ErrorResponse | {
|
|
45458
|
+
error?: string;
|
|
45459
|
+
} | unknown);
|
|
45460
|
+
|
|
45461
|
+
export type GetCampaignConversionGoalsData = {
|
|
45462
|
+
path: {
|
|
45463
|
+
/**
|
|
45464
|
+
* Google campaign id
|
|
45465
|
+
*/
|
|
45466
|
+
campaignId: string;
|
|
45467
|
+
};
|
|
45468
|
+
};
|
|
45469
|
+
|
|
45470
|
+
export type GetCampaignConversionGoalsResponse = ((GoogleCampaignConversionGoals & {
|
|
45471
|
+
customerId?: string;
|
|
45472
|
+
cachedAt?: (string) | null;
|
|
45473
|
+
stale?: boolean;
|
|
45474
|
+
}));
|
|
45475
|
+
|
|
45476
|
+
export type GetCampaignConversionGoalsError = (ErrorResponse | {
|
|
45477
|
+
error?: string;
|
|
45478
|
+
} | unknown);
|
|
45479
|
+
|
|
45480
|
+
export type UpdateCampaignConversionGoalsData = {
|
|
45481
|
+
body: {
|
|
45482
|
+
goals?: Array<GoogleBiddableGoalInput>;
|
|
45483
|
+
goalConfigLevel?: 'CUSTOMER' | 'CAMPAIGN';
|
|
45484
|
+
/**
|
|
45485
|
+
* Custom goal to bid on, or null to clear
|
|
45486
|
+
*/
|
|
45487
|
+
customConversionGoalId?: (string) | null;
|
|
45488
|
+
};
|
|
45489
|
+
path: {
|
|
45490
|
+
/**
|
|
45491
|
+
* Google campaign id
|
|
45492
|
+
*/
|
|
45493
|
+
campaignId: string;
|
|
45494
|
+
};
|
|
45495
|
+
};
|
|
45496
|
+
|
|
45497
|
+
export type UpdateCampaignConversionGoalsResponse = ((GoogleCampaignConversionGoals & {
|
|
45498
|
+
customerId?: string;
|
|
45499
|
+
}));
|
|
45500
|
+
|
|
45501
|
+
export type UpdateCampaignConversionGoalsError = (ErrorResponse | {
|
|
45502
|
+
error?: string;
|
|
45503
|
+
} | unknown);
|
|
45504
|
+
|
|
45319
45505
|
export type ListConversionDestinationsData = {
|
|
45320
45506
|
path: {
|
|
45321
45507
|
/**
|