@getlatedev/node 0.2.941 → 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.
@@ -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.
@@ -4737,6 +4745,69 @@ export type GoogleAdLabelAssignments = {
4737
4745
  keywordIds?: Array<(string)>;
4738
4746
  };
4739
4747
 
4748
+ /**
4749
+ * A Google Ads account inside a manager tree.
4750
+ */
4751
+ export type GoogleAdsHierarchyClient = {
4752
+ /**
4753
+ * Native Google Ads customer id, digits only.
4754
+ */
4755
+ customerId?: string;
4756
+ /**
4757
+ * Null for a pending invitation.
4758
+ */
4759
+ name?: (string) | null;
4760
+ currency?: (string) | null;
4761
+ timeZone?: (string) | null;
4762
+ /**
4763
+ * True for a sub-manager account.
4764
+ */
4765
+ manager?: boolean;
4766
+ testAccount?: boolean;
4767
+ /**
4768
+ * Hidden in the manager's Google Ads UI.
4769
+ */
4770
+ hidden?: boolean;
4771
+ /**
4772
+ * Distance from the root (1 = direct client of the root).
4773
+ */
4774
+ level?: number;
4775
+ /**
4776
+ * Google customer status: ENABLED, CANCELED, SUSPENDED or CLOSED. Null for a pending invitation.
4777
+ */
4778
+ status?: (string) | null;
4779
+ /**
4780
+ * Direct manager of this account. Null only when more than 50 managers under the root were skipped.
4781
+ */
4782
+ parentCustomerId?: (string) | null;
4783
+ /**
4784
+ * Id of the link to the parent, used by PATCH /v1/ads/accounts/manager-links.
4785
+ */
4786
+ managerLinkId?: (string) | null;
4787
+ linkStatus?: ('ACTIVE' | 'PENDING') | null;
4788
+ };
4789
+
4790
+ export type linkStatus = 'ACTIVE' | 'PENDING';
4791
+
4792
+ export type GoogleAdsManagerLink = {
4793
+ managerCustomerId?: string;
4794
+ clientCustomerId?: string;
4795
+ /**
4796
+ * Null on a validateOnly invitation, where Google creates nothing.
4797
+ */
4798
+ managerLinkId?: (string) | null;
4799
+ /**
4800
+ * Status the link has after this call.
4801
+ */
4802
+ status?: 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
4803
+ validateOnly?: boolean;
4804
+ };
4805
+
4806
+ /**
4807
+ * Status the link has after this call.
4808
+ */
4809
+ export type status12 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
4810
+
4740
4811
  /**
4741
4812
  * 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
4813
  */
@@ -4795,6 +4866,18 @@ export type GoogleAssetUpdate = {
4795
4866
  structuredSnippetAsset?: GoogleStructuredSnippet;
4796
4867
  };
4797
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
+
4798
4881
  /**
4799
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.
4800
4883
  */
@@ -4952,6 +5035,50 @@ export type GoogleBusinessReview = {
4952
5035
  */
4953
5036
  export type starRating = 'ONE' | 'TWO' | 'THREE' | 'FOUR' | 'FIVE';
4954
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
+
4955
5082
  /**
4956
5083
  * Exactly one key. Omit the value (for example { productBrand: {} }) for the everything-else node of that level.
4957
5084
  */
@@ -5190,62 +5317,6 @@ export type GooglePmaxAssetGroupUpdate = {
5190
5317
  youtubeVideoIds?: Array<(string)>;
5191
5318
  };
5192
5319
 
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
-
5249
5320
  export type GoogleRsaDescription = {
5250
5321
  text: string;
5251
5322
  /**
@@ -35347,103 +35418,6 @@ export type GetAdsSearchTermsError = (ErrorResponse | {
35347
35418
  error?: string;
35348
35419
  } | unknown);
35349
35420
 
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
-
35447
35421
  export type ListBidStrategiesData = {
35448
35422
  query: {
35449
35423
  /**
@@ -40731,6 +40705,137 @@ export type RemoveAccountStructuredSnippetError = (ErrorResponse | {
40731
40705
  error?: string;
40732
40706
  } | unknown);
40733
40707
 
40708
+ export type GetAdAccountHierarchyData = {
40709
+ query: {
40710
+ /**
40711
+ * Google ads SocialAccount id.
40712
+ */
40713
+ accountId: string;
40714
+ /**
40715
+ * 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.
40716
+ */
40717
+ adAccountId?: string;
40718
+ /**
40719
+ * Alias of adAccountId, kept for consistency with the other Google Ads account endpoints.
40720
+ * @deprecated
40721
+ */
40722
+ customerId?: string;
40723
+ };
40724
+ };
40725
+
40726
+ export type GetAdAccountHierarchyResponse = ({
40727
+ accountId?: string;
40728
+ roots?: Array<{
40729
+ /**
40730
+ * Native Google Ads customer id, digits only.
40731
+ */
40732
+ customerId?: string;
40733
+ name?: (string) | null;
40734
+ /**
40735
+ * ISO 4217 code.
40736
+ */
40737
+ currency?: (string) | null;
40738
+ /**
40739
+ * IANA time zone, e.g. Europe/Madrid.
40740
+ */
40741
+ timeZone?: (string) | null;
40742
+ /**
40743
+ * True for a manager (MCC) account.
40744
+ */
40745
+ manager?: boolean;
40746
+ testAccount?: boolean;
40747
+ /**
40748
+ * Google customer status: ENABLED, CANCELED, SUSPENDED or CLOSED.
40749
+ */
40750
+ status?: (string) | null;
40751
+ /**
40752
+ * Managers linked to this account, ACTIVE or PENDING.
40753
+ */
40754
+ managerLinks?: Array<{
40755
+ managerCustomerId?: string;
40756
+ managerLinkId?: string;
40757
+ status?: 'ACTIVE' | 'PENDING';
40758
+ }>;
40759
+ /**
40760
+ * Every account under this root at any depth, in Google's order, followed by pending invitations.
40761
+ */
40762
+ clients?: Array<GoogleAdsHierarchyClient>;
40763
+ }>;
40764
+ unavailable?: Array<{
40765
+ customerId?: string;
40766
+ /**
40767
+ * Google's error message and code.
40768
+ */
40769
+ reason?: string;
40770
+ }>;
40771
+ truncated?: boolean;
40772
+ /**
40773
+ * When this data was fetched from Google. Null on a live read.
40774
+ */
40775
+ cachedAt?: (string) | null;
40776
+ /**
40777
+ * True when Google's quota was exhausted and this is the last successful fetch.
40778
+ */
40779
+ stale?: boolean;
40780
+ });
40781
+
40782
+ export type GetAdAccountHierarchyError = (ErrorResponse | {
40783
+ error?: string;
40784
+ } | unknown);
40785
+
40786
+ export type InviteAdAccountToManagerData = {
40787
+ body: {
40788
+ /**
40789
+ * Google ads SocialAccount id.
40790
+ */
40791
+ accountId: string;
40792
+ /**
40793
+ * Manager customer id, digits only.
40794
+ */
40795
+ managerCustomerId: string;
40796
+ /**
40797
+ * Client customer id to invite, digits only.
40798
+ */
40799
+ clientCustomerId: string;
40800
+ validateOnly?: boolean;
40801
+ };
40802
+ };
40803
+
40804
+ export type InviteAdAccountToManagerResponse = (GoogleAdsManagerLink);
40805
+
40806
+ export type InviteAdAccountToManagerError = (ErrorResponse | {
40807
+ error?: string;
40808
+ } | unknown);
40809
+
40810
+ export type UpdateAdAccountManagerLinkData = {
40811
+ body: {
40812
+ /**
40813
+ * Google ads SocialAccount id.
40814
+ */
40815
+ accountId: string;
40816
+ /**
40817
+ * Manager customer id, digits only.
40818
+ */
40819
+ managerCustomerId: string;
40820
+ /**
40821
+ * Client customer id, digits only.
40822
+ */
40823
+ clientCustomerId: string;
40824
+ /**
40825
+ * Numeric link id from GET /v1/ads/accounts/hierarchy.
40826
+ */
40827
+ managerLinkId: string;
40828
+ action: 'accept' | 'decline' | 'cancel' | 'unlink';
40829
+ validateOnly?: boolean;
40830
+ };
40831
+ };
40832
+
40833
+ export type UpdateAdAccountManagerLinkResponse = (GoogleAdsManagerLink);
40834
+
40835
+ export type UpdateAdAccountManagerLinkError = (ErrorResponse | {
40836
+ error?: string;
40837
+ } | unknown);
40838
+
40734
40839
  export type GetAdAccountFinanceData = {
40735
40840
  query: {
40736
40841
  /**
@@ -45122,6 +45227,281 @@ export type CreateConversionActionError = (ErrorResponse | {
45122
45227
  error?: string;
45123
45228
  } | unknown);
45124
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
+
45125
45505
  export type ListConversionDestinationsData = {
45126
45506
  path: {
45127
45507
  /**