@getlatedev/node 0.2.939 → 0.2.941
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 -1
- package/dist/index.d.mts +415 -25
- package/dist/index.d.ts +415 -25
- package/dist/index.js +73 -1
- package/dist/index.mjs +73 -1
- package/package.json +1 -1
- package/src/client.ts +32 -0
- package/src/generated/sdk.gen.ts +105 -4
- package/src/generated/types.gen.ts +422 -25
|
@@ -4682,6 +4682,61 @@ export type GeoRestriction = {
|
|
|
4682
4682
|
countries: Array<(string)>;
|
|
4683
4683
|
};
|
|
4684
4684
|
|
|
4685
|
+
export type GoogleAdLabel = {
|
|
4686
|
+
/**
|
|
4687
|
+
* Google label id
|
|
4688
|
+
*/
|
|
4689
|
+
id?: string;
|
|
4690
|
+
resourceName?: string;
|
|
4691
|
+
name?: string;
|
|
4692
|
+
status?: 'ENABLED' | 'REMOVED' | 'UNKNOWN';
|
|
4693
|
+
/**
|
|
4694
|
+
* #RRGGBB
|
|
4695
|
+
*/
|
|
4696
|
+
backgroundColor?: (string) | null;
|
|
4697
|
+
/**
|
|
4698
|
+
* Null when empty.
|
|
4699
|
+
*/
|
|
4700
|
+
description?: (string) | null;
|
|
4701
|
+
};
|
|
4702
|
+
|
|
4703
|
+
export type status11 = 'ENABLED' | 'REMOVED' | 'UNKNOWN';
|
|
4704
|
+
|
|
4705
|
+
/**
|
|
4706
|
+
* At least one id across the four target lists. Up to 1000 ids per list.
|
|
4707
|
+
*/
|
|
4708
|
+
export type GoogleAdLabelAssignments = {
|
|
4709
|
+
/**
|
|
4710
|
+
* Zernio SocialAccount id (Google Ads)
|
|
4711
|
+
*/
|
|
4712
|
+
accountId: string;
|
|
4713
|
+
/**
|
|
4714
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
4715
|
+
*/
|
|
4716
|
+
adAccountId?: string;
|
|
4717
|
+
/**
|
|
4718
|
+
* Alias of adAccountId
|
|
4719
|
+
* @deprecated
|
|
4720
|
+
*/
|
|
4721
|
+
customerId?: string;
|
|
4722
|
+
/**
|
|
4723
|
+
* Google campaign ids
|
|
4724
|
+
*/
|
|
4725
|
+
campaignIds?: Array<(string)>;
|
|
4726
|
+
/**
|
|
4727
|
+
* Google ad group ids
|
|
4728
|
+
*/
|
|
4729
|
+
adSetIds?: Array<(string)>;
|
|
4730
|
+
/**
|
|
4731
|
+
* Google ad group ad ids, {adGroupId}~{adId}
|
|
4732
|
+
*/
|
|
4733
|
+
adIds?: Array<(string)>;
|
|
4734
|
+
/**
|
|
4735
|
+
* Google keyword criterion ids, {adGroupId}~{criterionId}
|
|
4736
|
+
*/
|
|
4737
|
+
keywordIds?: Array<(string)>;
|
|
4738
|
+
};
|
|
4739
|
+
|
|
4685
4740
|
/**
|
|
4686
4741
|
* 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).
|
|
4687
4742
|
*/
|
|
@@ -5135,6 +5190,62 @@ export type GooglePmaxAssetGroupUpdate = {
|
|
|
5135
5190
|
youtubeVideoIds?: Array<(string)>;
|
|
5136
5191
|
};
|
|
5137
5192
|
|
|
5193
|
+
export type GoogleRecommendation = {
|
|
5194
|
+
/**
|
|
5195
|
+
* customers/{customerId}/recommendations/{id}. Pass it to apply or dismiss.
|
|
5196
|
+
*/
|
|
5197
|
+
resourceName: string;
|
|
5198
|
+
id: string;
|
|
5199
|
+
/**
|
|
5200
|
+
* Google RecommendationType, such as CAMPAIGN_BUDGET, KEYWORD or SET_TARGET_CPA.
|
|
5201
|
+
*/
|
|
5202
|
+
type: string;
|
|
5203
|
+
dismissed: boolean;
|
|
5204
|
+
campaignId: (string) | null;
|
|
5205
|
+
/**
|
|
5206
|
+
* Every campaign the recommendation targets (several for account-level types).
|
|
5207
|
+
*/
|
|
5208
|
+
campaignIds: Array<(string)>;
|
|
5209
|
+
adGroupId: (string) | null;
|
|
5210
|
+
campaignBudgetId: (string) | null;
|
|
5211
|
+
/**
|
|
5212
|
+
* Google's estimate over its own window. Null when Google gives none for the type.
|
|
5213
|
+
*/
|
|
5214
|
+
impact: {
|
|
5215
|
+
base?: GoogleRecommendationMetrics;
|
|
5216
|
+
potential?: GoogleRecommendationMetrics;
|
|
5217
|
+
} | null;
|
|
5218
|
+
/**
|
|
5219
|
+
* The type-specific recommendation payload exactly as Google returns it (camelCase, amounts in micros), for example recommendedTargetCpaMicros or budgetOptions.
|
|
5220
|
+
*/
|
|
5221
|
+
details: {
|
|
5222
|
+
[key: string]: unknown;
|
|
5223
|
+
} | null;
|
|
5224
|
+
};
|
|
5225
|
+
|
|
5226
|
+
export type GoogleRecommendationMetrics = {
|
|
5227
|
+
impressions?: number;
|
|
5228
|
+
clicks?: number;
|
|
5229
|
+
/**
|
|
5230
|
+
* Account currency units.
|
|
5231
|
+
*/
|
|
5232
|
+
cost?: number;
|
|
5233
|
+
conversions?: number;
|
|
5234
|
+
conversionsValue?: number;
|
|
5235
|
+
videoViews?: number;
|
|
5236
|
+
};
|
|
5237
|
+
|
|
5238
|
+
export type GoogleRecommendationResult = {
|
|
5239
|
+
resourceName: string;
|
|
5240
|
+
status: 'applied' | 'dismissed' | 'failed';
|
|
5241
|
+
/**
|
|
5242
|
+
* Google's message when status is failed.
|
|
5243
|
+
*/
|
|
5244
|
+
error?: string;
|
|
5245
|
+
};
|
|
5246
|
+
|
|
5247
|
+
export type status12 = 'applied' | 'dismissed' | 'failed';
|
|
5248
|
+
|
|
5138
5249
|
export type GoogleRsaDescription = {
|
|
5139
5250
|
text: string;
|
|
5140
5251
|
/**
|
|
@@ -5265,7 +5376,7 @@ export type kind = 'phone' | 'email';
|
|
|
5265
5376
|
|
|
5266
5377
|
export type region = 'US' | 'GB';
|
|
5267
5378
|
|
|
5268
|
-
export type
|
|
5379
|
+
export type status13 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
5269
5380
|
|
|
5270
5381
|
/**
|
|
5271
5382
|
* Attachment snapshot inside an edit-history entry.
|
|
@@ -5337,7 +5448,7 @@ export type InboxWebhookConversation = {
|
|
|
5337
5448
|
contactId?: string;
|
|
5338
5449
|
};
|
|
5339
5450
|
|
|
5340
|
-
export type
|
|
5451
|
+
export type status14 = 'active' | 'archived';
|
|
5341
5452
|
|
|
5342
5453
|
/**
|
|
5343
5454
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -6924,7 +7035,7 @@ export type OwnedPhoneNumber = {
|
|
|
6924
7035
|
}>;
|
|
6925
7036
|
};
|
|
6926
7037
|
|
|
6927
|
-
export type
|
|
7038
|
+
export type status15 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
6928
7039
|
|
|
6929
7040
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
6930
7041
|
|
|
@@ -7049,7 +7160,7 @@ export type PlatformAnalytics = {
|
|
|
7049
7160
|
errorMessage?: (string) | null;
|
|
7050
7161
|
};
|
|
7051
7162
|
|
|
7052
|
-
export type
|
|
7163
|
+
export type status16 = 'published' | 'failed';
|
|
7053
7164
|
|
|
7054
7165
|
/**
|
|
7055
7166
|
* Sync state of analytics for this platform
|
|
@@ -7451,7 +7562,7 @@ export type Product = {
|
|
|
7451
7562
|
|
|
7452
7563
|
export type platform8 = 'shopify';
|
|
7453
7564
|
|
|
7454
|
-
export type
|
|
7565
|
+
export type status17 = 'active' | 'draft' | 'archived';
|
|
7455
7566
|
|
|
7456
7567
|
export type ProductImage = {
|
|
7457
7568
|
url?: string;
|
|
@@ -8727,7 +8838,7 @@ export type UploadTokenResponse = {
|
|
|
8727
8838
|
status?: 'pending' | 'completed' | 'expired';
|
|
8728
8839
|
};
|
|
8729
8840
|
|
|
8730
|
-
export type
|
|
8841
|
+
export type status18 = 'pending' | 'completed' | 'expired';
|
|
8731
8842
|
|
|
8732
8843
|
export type UploadTokenStatusResponse = {
|
|
8733
8844
|
token?: string;
|
|
@@ -9226,7 +9337,7 @@ export type Verification = {
|
|
|
9226
9337
|
resend?: boolean;
|
|
9227
9338
|
};
|
|
9228
9339
|
|
|
9229
|
-
export type
|
|
9340
|
+
export type status19 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
9230
9341
|
|
|
9231
9342
|
export type channel4 = 'sms';
|
|
9232
9343
|
|
|
@@ -9353,7 +9464,7 @@ export type WebhookLog = {
|
|
|
9353
9464
|
/**
|
|
9354
9465
|
* Delivery outcome
|
|
9355
9466
|
*/
|
|
9356
|
-
export type
|
|
9467
|
+
export type status20 = 'success' | 'failed';
|
|
9357
9468
|
|
|
9358
9469
|
/**
|
|
9359
9470
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -9465,7 +9576,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
9465
9576
|
/**
|
|
9466
9577
|
* Overall outcome of the initial sync.
|
|
9467
9578
|
*/
|
|
9468
|
-
export type
|
|
9579
|
+
export type status21 = 'success' | 'failure';
|
|
9469
9580
|
|
|
9470
9581
|
/**
|
|
9471
9582
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -11418,7 +11529,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
11418
11529
|
/**
|
|
11419
11530
|
* Terminal status this event fires on. Matches the event suffix.
|
|
11420
11531
|
*/
|
|
11421
|
-
export type
|
|
11532
|
+
export type status22 = 'published' | 'failed' | 'deleted';
|
|
11422
11533
|
|
|
11423
11534
|
/**
|
|
11424
11535
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -11684,7 +11795,7 @@ export type platform15 = 'whatsapp';
|
|
|
11684
11795
|
/**
|
|
11685
11796
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
11686
11797
|
*/
|
|
11687
|
-
export type
|
|
11798
|
+
export type status23 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
11688
11799
|
|
|
11689
11800
|
/**
|
|
11690
11801
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -11833,7 +11944,7 @@ export type event30 = 'whatsapp.template.status_updated';
|
|
|
11833
11944
|
* request before the template is actually removed.
|
|
11834
11945
|
*
|
|
11835
11946
|
*/
|
|
11836
|
-
export type
|
|
11947
|
+
export type status24 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
11837
11948
|
|
|
11838
11949
|
export type WhatsAppBodyComponent = {
|
|
11839
11950
|
type: 'body';
|
|
@@ -11987,7 +12098,7 @@ export type WhatsAppSandboxSession = {
|
|
|
11987
12098
|
* list responses.
|
|
11988
12099
|
*
|
|
11989
12100
|
*/
|
|
11990
|
-
export type
|
|
12101
|
+
export type status25 = 'pending' | 'active';
|
|
11991
12102
|
|
|
11992
12103
|
export type WhatsAppTemplateButton = {
|
|
11993
12104
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -12145,7 +12256,7 @@ export type WorkflowExecutionEvent = {
|
|
|
12145
12256
|
|
|
12146
12257
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
12147
12258
|
|
|
12148
|
-
export type
|
|
12259
|
+
export type status26 = 'success' | 'failed' | 'pending';
|
|
12149
12260
|
|
|
12150
12261
|
/**
|
|
12151
12262
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -35236,6 +35347,103 @@ export type GetAdsSearchTermsError = (ErrorResponse | {
|
|
|
35236
35347
|
error?: string;
|
|
35237
35348
|
} | unknown);
|
|
35238
35349
|
|
|
35350
|
+
export type ListGoogleRecommendationsData = {
|
|
35351
|
+
query: {
|
|
35352
|
+
/**
|
|
35353
|
+
* Google ads SocialAccount id.
|
|
35354
|
+
*/
|
|
35355
|
+
accountId: string;
|
|
35356
|
+
/**
|
|
35357
|
+
* Google customer id, digits only. Defaults to the connection's only customer.
|
|
35358
|
+
*/
|
|
35359
|
+
adAccountId?: string;
|
|
35360
|
+
/**
|
|
35361
|
+
* Only recommendations targeting this campaign.
|
|
35362
|
+
*/
|
|
35363
|
+
campaignId?: string;
|
|
35364
|
+
/**
|
|
35365
|
+
* Alias of adAccountId, kept for consistency with other Google endpoints.
|
|
35366
|
+
* @deprecated
|
|
35367
|
+
*/
|
|
35368
|
+
customerId?: string;
|
|
35369
|
+
/**
|
|
35370
|
+
* Comma-separated Google RecommendationType values, for example CAMPAIGN_BUDGET,KEYWORD,SET_TARGET_CPA.
|
|
35371
|
+
*/
|
|
35372
|
+
types?: string;
|
|
35373
|
+
};
|
|
35374
|
+
};
|
|
35375
|
+
|
|
35376
|
+
export type ListGoogleRecommendationsResponse = ({
|
|
35377
|
+
adAccountId: string;
|
|
35378
|
+
recommendations: Array<GoogleRecommendation>;
|
|
35379
|
+
cachedAt: (string) | null;
|
|
35380
|
+
stale: boolean;
|
|
35381
|
+
});
|
|
35382
|
+
|
|
35383
|
+
export type ListGoogleRecommendationsError = (ErrorResponse | {
|
|
35384
|
+
error?: string;
|
|
35385
|
+
} | unknown);
|
|
35386
|
+
|
|
35387
|
+
export type ApplyGoogleRecommendationsData = {
|
|
35388
|
+
body: {
|
|
35389
|
+
/**
|
|
35390
|
+
* Google ads SocialAccount id.
|
|
35391
|
+
*/
|
|
35392
|
+
accountId: string;
|
|
35393
|
+
/**
|
|
35394
|
+
* Google customer id, digits only. Required when the connection has several customers.
|
|
35395
|
+
*/
|
|
35396
|
+
adAccountId?: string;
|
|
35397
|
+
recommendations: Array<{
|
|
35398
|
+
/**
|
|
35399
|
+
* Recommendation resource name from the list, or its id.
|
|
35400
|
+
*/
|
|
35401
|
+
resourceName: string;
|
|
35402
|
+
/**
|
|
35403
|
+
* 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.
|
|
35404
|
+
*/
|
|
35405
|
+
parameters?: {
|
|
35406
|
+
[key: string]: unknown;
|
|
35407
|
+
};
|
|
35408
|
+
}>;
|
|
35409
|
+
};
|
|
35410
|
+
};
|
|
35411
|
+
|
|
35412
|
+
export type ApplyGoogleRecommendationsResponse = ({
|
|
35413
|
+
adAccountId: string;
|
|
35414
|
+
results: Array<GoogleRecommendationResult>;
|
|
35415
|
+
});
|
|
35416
|
+
|
|
35417
|
+
export type ApplyGoogleRecommendationsError = (ErrorResponse | {
|
|
35418
|
+
error?: string;
|
|
35419
|
+
} | unknown);
|
|
35420
|
+
|
|
35421
|
+
export type DismissGoogleRecommendationsData = {
|
|
35422
|
+
body: {
|
|
35423
|
+
/**
|
|
35424
|
+
* Google ads SocialAccount id.
|
|
35425
|
+
*/
|
|
35426
|
+
accountId: string;
|
|
35427
|
+
/**
|
|
35428
|
+
* Google customer id, digits only. Required when the connection has several customers.
|
|
35429
|
+
*/
|
|
35430
|
+
adAccountId?: string;
|
|
35431
|
+
/**
|
|
35432
|
+
* Recommendation resource names from the list, or their ids.
|
|
35433
|
+
*/
|
|
35434
|
+
resourceNames: Array<(string)>;
|
|
35435
|
+
};
|
|
35436
|
+
};
|
|
35437
|
+
|
|
35438
|
+
export type DismissGoogleRecommendationsResponse = ({
|
|
35439
|
+
adAccountId: string;
|
|
35440
|
+
results: Array<GoogleRecommendationResult>;
|
|
35441
|
+
});
|
|
35442
|
+
|
|
35443
|
+
export type DismissGoogleRecommendationsError = (ErrorResponse | {
|
|
35444
|
+
error?: string;
|
|
35445
|
+
} | unknown);
|
|
35446
|
+
|
|
35239
35447
|
export type ListBidStrategiesData = {
|
|
35240
35448
|
query: {
|
|
35241
35449
|
/**
|
|
@@ -39162,40 +39370,229 @@ export type ListMetaBusinessesError = (unknown | {
|
|
|
39162
39370
|
export type ListAdLabelsData = {
|
|
39163
39371
|
query: {
|
|
39164
39372
|
/**
|
|
39165
|
-
* Zernio SocialAccount id
|
|
39373
|
+
* Zernio SocialAccount id. For Meta, the posting or ads variant used to resolve the token.
|
|
39166
39374
|
*/
|
|
39167
39375
|
accountId: string;
|
|
39168
39376
|
/**
|
|
39169
|
-
* Meta ad account id (act_<n>).
|
|
39377
|
+
* Meta ad account id (act_<n>), or the Google Ads customer id (digits only).
|
|
39170
39378
|
*/
|
|
39171
|
-
adAccountId
|
|
39379
|
+
adAccountId?: string;
|
|
39172
39380
|
/**
|
|
39173
|
-
* Cursor from paging.after of the previous page.
|
|
39381
|
+
* Meta only. Cursor from paging.after of the previous page.
|
|
39174
39382
|
*/
|
|
39175
39383
|
after?: string;
|
|
39176
39384
|
/**
|
|
39177
|
-
*
|
|
39385
|
+
* Google only. Alias of adAccountId, kept for existing callers.
|
|
39386
|
+
* @deprecated
|
|
39387
|
+
*/
|
|
39388
|
+
customerId?: string;
|
|
39389
|
+
/**
|
|
39390
|
+
* Meta only. Rows per page.
|
|
39178
39391
|
*/
|
|
39179
39392
|
limit?: number;
|
|
39180
39393
|
};
|
|
39181
39394
|
};
|
|
39182
39395
|
|
|
39183
39396
|
export type ListAdLabelsResponse = ({
|
|
39397
|
+
/**
|
|
39398
|
+
* Meta act_<n>, or the resolved Google customer id
|
|
39399
|
+
*/
|
|
39184
39400
|
adAccountId?: string;
|
|
39185
|
-
data?: Array<{
|
|
39186
|
-
|
|
39187
|
-
|
|
39401
|
+
data?: Array<(GoogleAdLabel | {
|
|
39402
|
+
[key: string]: unknown;
|
|
39403
|
+
})>;
|
|
39188
39404
|
paging?: {
|
|
39189
39405
|
/**
|
|
39190
|
-
* Cursor for the next page; null when exhausted.
|
|
39406
|
+
* Cursor for the next page; null when exhausted (always null on Google).
|
|
39191
39407
|
*/
|
|
39192
39408
|
after?: (string) | null;
|
|
39193
39409
|
};
|
|
39410
|
+
/**
|
|
39411
|
+
* Google only. When the served list was fetched from Google.
|
|
39412
|
+
*/
|
|
39413
|
+
cachedAt?: (string) | null;
|
|
39414
|
+
/**
|
|
39415
|
+
* Google only. True when Google quota was exhausted and the last cached list was served.
|
|
39416
|
+
*/
|
|
39417
|
+
stale?: boolean;
|
|
39194
39418
|
});
|
|
39195
39419
|
|
|
39196
|
-
export type ListAdLabelsError = (
|
|
39420
|
+
export type ListAdLabelsError = (ErrorResponse | {
|
|
39197
39421
|
error?: string;
|
|
39198
|
-
} |
|
|
39422
|
+
} | unknown);
|
|
39423
|
+
|
|
39424
|
+
export type CreateAdLabelData = {
|
|
39425
|
+
body: {
|
|
39426
|
+
/**
|
|
39427
|
+
* Zernio SocialAccount id (Google Ads)
|
|
39428
|
+
*/
|
|
39429
|
+
accountId: string;
|
|
39430
|
+
/**
|
|
39431
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
39432
|
+
*/
|
|
39433
|
+
adAccountId?: string;
|
|
39434
|
+
/**
|
|
39435
|
+
* Alias of adAccountId
|
|
39436
|
+
* @deprecated
|
|
39437
|
+
*/
|
|
39438
|
+
customerId?: string;
|
|
39439
|
+
/**
|
|
39440
|
+
* Trimmed before sending.
|
|
39441
|
+
*/
|
|
39442
|
+
name: string;
|
|
39443
|
+
/**
|
|
39444
|
+
* #RRGGBB. Google picks a color when omitted.
|
|
39445
|
+
*/
|
|
39446
|
+
backgroundColor?: string;
|
|
39447
|
+
description?: string;
|
|
39448
|
+
};
|
|
39449
|
+
};
|
|
39450
|
+
|
|
39451
|
+
export type CreateAdLabelResponse = ({
|
|
39452
|
+
customerId?: string;
|
|
39453
|
+
/**
|
|
39454
|
+
* Google label id
|
|
39455
|
+
*/
|
|
39456
|
+
id?: string;
|
|
39457
|
+
/**
|
|
39458
|
+
* customers/{customerId}/labels/{id}
|
|
39459
|
+
*/
|
|
39460
|
+
resourceName?: string;
|
|
39461
|
+
});
|
|
39462
|
+
|
|
39463
|
+
export type CreateAdLabelError = (ErrorResponse | {
|
|
39464
|
+
error?: string;
|
|
39465
|
+
} | unknown);
|
|
39466
|
+
|
|
39467
|
+
export type UpdateAdLabelData = {
|
|
39468
|
+
body: {
|
|
39469
|
+
/**
|
|
39470
|
+
* Zernio SocialAccount id (Google Ads)
|
|
39471
|
+
*/
|
|
39472
|
+
accountId: string;
|
|
39473
|
+
/**
|
|
39474
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
39475
|
+
*/
|
|
39476
|
+
adAccountId?: string;
|
|
39477
|
+
/**
|
|
39478
|
+
* Alias of adAccountId
|
|
39479
|
+
* @deprecated
|
|
39480
|
+
*/
|
|
39481
|
+
customerId?: string;
|
|
39482
|
+
name?: string;
|
|
39483
|
+
backgroundColor?: string;
|
|
39484
|
+
/**
|
|
39485
|
+
* Send "" to clear it.
|
|
39486
|
+
*/
|
|
39487
|
+
description?: string;
|
|
39488
|
+
};
|
|
39489
|
+
path: {
|
|
39490
|
+
/**
|
|
39491
|
+
* Google label id
|
|
39492
|
+
*/
|
|
39493
|
+
labelId: string;
|
|
39494
|
+
};
|
|
39495
|
+
};
|
|
39496
|
+
|
|
39497
|
+
export type UpdateAdLabelResponse = ({
|
|
39498
|
+
customerId?: string;
|
|
39499
|
+
label?: GoogleAdLabel;
|
|
39500
|
+
});
|
|
39501
|
+
|
|
39502
|
+
export type UpdateAdLabelError = (ErrorResponse | {
|
|
39503
|
+
error?: string;
|
|
39504
|
+
} | unknown);
|
|
39505
|
+
|
|
39506
|
+
export type RemoveAdLabelData = {
|
|
39507
|
+
path: {
|
|
39508
|
+
/**
|
|
39509
|
+
* Google label id
|
|
39510
|
+
*/
|
|
39511
|
+
labelId: string;
|
|
39512
|
+
};
|
|
39513
|
+
query: {
|
|
39514
|
+
/**
|
|
39515
|
+
* Zernio SocialAccount id (Google Ads)
|
|
39516
|
+
*/
|
|
39517
|
+
accountId: string;
|
|
39518
|
+
/**
|
|
39519
|
+
* Google customer id. Required when the connection has multiple customers.
|
|
39520
|
+
*/
|
|
39521
|
+
adAccountId?: string;
|
|
39522
|
+
/**
|
|
39523
|
+
* Alias of adAccountId
|
|
39524
|
+
* @deprecated
|
|
39525
|
+
*/
|
|
39526
|
+
customerId?: string;
|
|
39527
|
+
};
|
|
39528
|
+
};
|
|
39529
|
+
|
|
39530
|
+
export type RemoveAdLabelResponse = ({
|
|
39531
|
+
customerId?: string;
|
|
39532
|
+
labelId?: string;
|
|
39533
|
+
/**
|
|
39534
|
+
* Always true on success
|
|
39535
|
+
*/
|
|
39536
|
+
removed?: boolean;
|
|
39537
|
+
});
|
|
39538
|
+
|
|
39539
|
+
export type RemoveAdLabelError = (ErrorResponse | {
|
|
39540
|
+
error?: string;
|
|
39541
|
+
} | unknown);
|
|
39542
|
+
|
|
39543
|
+
export type AttachAdLabelData = {
|
|
39544
|
+
body: GoogleAdLabelAssignments;
|
|
39545
|
+
path: {
|
|
39546
|
+
/**
|
|
39547
|
+
* Google label id
|
|
39548
|
+
*/
|
|
39549
|
+
labelId: string;
|
|
39550
|
+
};
|
|
39551
|
+
};
|
|
39552
|
+
|
|
39553
|
+
export type AttachAdLabelResponse = ({
|
|
39554
|
+
customerId?: string;
|
|
39555
|
+
labelId?: string;
|
|
39556
|
+
/**
|
|
39557
|
+
* Links created by this call
|
|
39558
|
+
*/
|
|
39559
|
+
attached?: number;
|
|
39560
|
+
/**
|
|
39561
|
+
* Targets that already carried the label
|
|
39562
|
+
*/
|
|
39563
|
+
unchanged?: number;
|
|
39564
|
+
});
|
|
39565
|
+
|
|
39566
|
+
export type AttachAdLabelError = (ErrorResponse | {
|
|
39567
|
+
error?: string;
|
|
39568
|
+
} | unknown);
|
|
39569
|
+
|
|
39570
|
+
export type DetachAdLabelData = {
|
|
39571
|
+
body: GoogleAdLabelAssignments;
|
|
39572
|
+
path: {
|
|
39573
|
+
/**
|
|
39574
|
+
* Google label id
|
|
39575
|
+
*/
|
|
39576
|
+
labelId: string;
|
|
39577
|
+
};
|
|
39578
|
+
};
|
|
39579
|
+
|
|
39580
|
+
export type DetachAdLabelResponse = ({
|
|
39581
|
+
customerId?: string;
|
|
39582
|
+
labelId?: string;
|
|
39583
|
+
/**
|
|
39584
|
+
* Links removed by this call
|
|
39585
|
+
*/
|
|
39586
|
+
detached?: number;
|
|
39587
|
+
/**
|
|
39588
|
+
* Targets that did not carry the label
|
|
39589
|
+
*/
|
|
39590
|
+
unchanged?: number;
|
|
39591
|
+
});
|
|
39592
|
+
|
|
39593
|
+
export type DetachAdLabelError = (ErrorResponse | {
|
|
39594
|
+
error?: string;
|
|
39595
|
+
} | unknown);
|
|
39199
39596
|
|
|
39200
39597
|
export type ListHighDemandPeriodsData = {
|
|
39201
39598
|
query: {
|