@getlatedev/node 0.2.1119 → 0.2.1120
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 +2 -0
- package/dist/index.d.mts +79 -2
- package/dist/index.d.ts +79 -2
- package/dist/index.js +19 -1
- package/dist/index.mjs +19 -1
- package/package.json +1 -1
- package/src/client.ts +8 -0
- package/src/generated/sdk.gen.ts +41 -2
- package/src/generated/types.gen.ts +78 -1
|
@@ -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
|
};
|