@getlatedev/node 0.2.1119 → 0.2.1121

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.
@@ -39947,6 +39947,75 @@ export type UpdateBidStrategyResponse = ({
39947
39947
 
39948
39948
  export type UpdateBidStrategyError = (ErrorResponse | unknown);
39949
39949
 
39950
+ export type ListSharedBudgetsData = {
39951
+ query: {
39952
+ /**
39953
+ * Google ads SocialAccount id.
39954
+ */
39955
+ accountId: string;
39956
+ /**
39957
+ * Platform ad account ID (Google customer ID, digits only). Defaults to the account's connected customer.
39958
+ */
39959
+ adAccountId?: string;
39960
+ };
39961
+ };
39962
+
39963
+ export type ListSharedBudgetsResponse = ({
39964
+ customerId?: string;
39965
+ budgets?: Array<{
39966
+ /**
39967
+ * Numeric budget id; pass as sharedBudgetId.
39968
+ */
39969
+ id?: string;
39970
+ name?: string;
39971
+ /**
39972
+ * In the account's currency units.
39973
+ */
39974
+ amount?: (number) | null;
39975
+ type?: ('daily' | 'lifetime') | null;
39976
+ deliveryMethod?: (string) | null;
39977
+ status?: (string) | null;
39978
+ /**
39979
+ * campaign_budget.reference_count
39980
+ */
39981
+ campaignCount?: number;
39982
+ }>;
39983
+ });
39984
+
39985
+ export type ListSharedBudgetsError = (ErrorResponse | unknown);
39986
+
39987
+ export type CreateSharedBudgetData = {
39988
+ body: {
39989
+ /**
39990
+ * Google ads SocialAccount id.
39991
+ */
39992
+ accountId: string;
39993
+ /**
39994
+ * Platform ad account ID (Google customer ID, digits only). Defaults to the account's connected customer.
39995
+ */
39996
+ adAccountId?: string;
39997
+ name: string;
39998
+ /**
39999
+ * Daily amount in the account's currency units.
40000
+ */
40001
+ amount: number;
40002
+ /**
40003
+ * Only daily is accepted (lifetime returns 422).
40004
+ */
40005
+ type?: 'daily' | 'lifetime';
40006
+ };
40007
+ };
40008
+
40009
+ export type CreateSharedBudgetResponse = ({
40010
+ budget?: {
40011
+ customerId?: string;
40012
+ id?: string;
40013
+ resourceName?: string;
40014
+ };
40015
+ });
40016
+
40017
+ export type CreateSharedBudgetError = (ErrorResponse | unknown);
40018
+
39950
40019
  export type ListLocalServicesLeadsData = {
39951
40020
  query: {
39952
40021
  /**
@@ -40656,7 +40725,7 @@ export type UpdateAdCampaignData = {
40656
40725
  */
40657
40726
  portfolioBidStrategyId?: string;
40658
40727
  /**
40659
- * Google only. Explicitly allow changing a shared campaign budget, affecting every campaign that uses it. Does not bypass an unknown sharing state.
40728
+ * Google only. Explicitly allow changing a shared campaign budget, affecting every campaign that uses it. Does not bypass an unknown sharing state. Also required to move a campaign onto a shared budget with sharedBudgetId.
40660
40729
  */
40661
40730
  allowSharedBudgetUpdate?: boolean;
40662
40731
  /**
@@ -40673,6 +40742,10 @@ export type UpdateAdCampaignData = {
40673
40742
  * **Google only.** campaign.final_url_suffix; an empty string clears it.
40674
40743
  */
40675
40744
  finalUrlSuffix?: string;
40745
+ /**
40746
+ * **Google only.** Move the campaign onto this shared budget (id from GET /v1/ads/shared-budgets), or null to move it back onto a budget of its own sized by `budget`.
40747
+ */
40748
+ sharedBudgetId?: (string) | null;
40676
40749
  /**
40677
40750
  * Meta CBO, Google daily, or OpenAI Ads daily or lifetime campaign budget, in whole currency units.
40678
40751
  */
@@ -40724,6 +40797,10 @@ export type UpdateAdCampaignResponse = ({
40724
40797
  networkSettings?: GoogleNetworkSettings;
40725
40798
  trackingUrlTemplate?: string;
40726
40799
  finalUrlSuffix?: string;
40800
+ /**
40801
+ * Google only. Echoed back when the campaign moved budgets; `budget` is then the budget it now uses.
40802
+ */
40803
+ sharedBudgetId?: (string) | null;
40727
40804
  platformSpecificData?: {
40728
40805
  [key: string]: unknown;
40729
40806
  };
@@ -50438,6 +50515,30 @@ export type CreateConversionActionData = {
50438
50515
  * When true, always use defaultValue and ignore any value sent with the event. Defaults to true when defaultValue is set.
50439
50516
  */
50440
50517
  alwaysUseDefaultValue?: boolean;
50518
+ /**
50519
+ * conversion_action.category. Defaults to DEFAULT on create.
50520
+ */
50521
+ category?: 'DEFAULT' | 'PAGE_VIEW' | 'PURCHASE' | 'SIGNUP' | 'DOWNLOAD' | 'ADD_TO_CART' | 'BEGIN_CHECKOUT' | 'SUBSCRIBE_PAID' | 'PHONE_CALL_LEAD' | 'IMPORTED_LEAD' | 'SUBMIT_LEAD_FORM' | 'BOOK_APPOINTMENT' | 'REQUEST_QUOTE' | 'GET_DIRECTIONS' | 'OUTBOUND_CLICK' | 'CONTACT' | 'ENGAGEMENT' | 'STORE_VISIT' | 'STORE_SALE' | 'QUALIFIED_LEAD' | 'CONVERTED_LEAD';
50522
+ /**
50523
+ * ONE_PER_CLICK counts one conversion per ad click (leads); MANY_PER_CLICK counts every one (purchases).
50524
+ */
50525
+ countingType?: 'ONE_PER_CLICK' | 'MANY_PER_CLICK';
50526
+ /**
50527
+ * ISO 4217 currency of defaultValue (value_settings.default_currency_code).
50528
+ */
50529
+ defaultCurrency?: string;
50530
+ /**
50531
+ * Days after an ad click a conversion still counts.
50532
+ */
50533
+ clickThroughLookbackWindowDays?: number;
50534
+ /**
50535
+ * Days after an ad view a view-through conversion still counts.
50536
+ */
50537
+ viewThroughLookbackWindowDays?: number;
50538
+ /**
50539
+ * true = primary (counts toward bidding when its goal is biddable), false = secondary.
50540
+ */
50541
+ primaryForGoal?: boolean;
50441
50542
  };
50442
50543
  };
50443
50544
 
@@ -50515,10 +50616,37 @@ export type UpdateConversionActionData = {
50515
50616
  * @deprecated
50516
50617
  */
50517
50618
  customerId?: string;
50619
+ name?: string;
50518
50620
  /**
50519
- * true = primary, false = secondary
50621
+ * REMOVED removes the action and must be sent alone; ENABLED restores a removed one.
50622
+ */
50623
+ status?: 'ENABLED' | 'REMOVED';
50624
+ defaultValue?: number;
50625
+ alwaysUseDefaultValue?: boolean;
50626
+ /**
50627
+ * conversion_action.category. Defaults to DEFAULT on create.
50628
+ */
50629
+ category?: 'DEFAULT' | 'PAGE_VIEW' | 'PURCHASE' | 'SIGNUP' | 'DOWNLOAD' | 'ADD_TO_CART' | 'BEGIN_CHECKOUT' | 'SUBSCRIBE_PAID' | 'PHONE_CALL_LEAD' | 'IMPORTED_LEAD' | 'SUBMIT_LEAD_FORM' | 'BOOK_APPOINTMENT' | 'REQUEST_QUOTE' | 'GET_DIRECTIONS' | 'OUTBOUND_CLICK' | 'CONTACT' | 'ENGAGEMENT' | 'STORE_VISIT' | 'STORE_SALE' | 'QUALIFIED_LEAD' | 'CONVERTED_LEAD';
50630
+ /**
50631
+ * ONE_PER_CLICK counts one conversion per ad click (leads); MANY_PER_CLICK counts every one (purchases).
50632
+ */
50633
+ countingType?: 'ONE_PER_CLICK' | 'MANY_PER_CLICK';
50634
+ /**
50635
+ * ISO 4217 currency of defaultValue (value_settings.default_currency_code).
50520
50636
  */
50521
- primaryForGoal: boolean;
50637
+ defaultCurrency?: string;
50638
+ /**
50639
+ * Days after an ad click a conversion still counts.
50640
+ */
50641
+ clickThroughLookbackWindowDays?: number;
50642
+ /**
50643
+ * Days after an ad view a view-through conversion still counts.
50644
+ */
50645
+ viewThroughLookbackWindowDays?: number;
50646
+ /**
50647
+ * true = primary (counts toward bidding when its goal is biddable), false = secondary.
50648
+ */
50649
+ primaryForGoal?: boolean;
50522
50650
  };
50523
50651
  path: {
50524
50652
  /**
@@ -50530,9 +50658,21 @@ export type UpdateConversionActionData = {
50530
50658
 
50531
50659
  export type UpdateConversionActionResponse = ({
50532
50660
  customerId?: string;
50661
+ /**
50662
+ * The action id with the fields written, echoed back.
50663
+ */
50533
50664
  action?: {
50534
50665
  id?: string;
50666
+ name?: string;
50667
+ status?: string;
50535
50668
  primaryForGoal?: boolean;
50669
+ category?: string;
50670
+ countingType?: string;
50671
+ defaultValue?: number;
50672
+ defaultCurrency?: string;
50673
+ alwaysUseDefaultValue?: boolean;
50674
+ clickThroughLookbackWindowDays?: number;
50675
+ viewThroughLookbackWindowDays?: number;
50536
50676
  };
50537
50677
  });
50538
50678