@getlatedev/node 0.2.943 → 0.2.945
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/dist/index.d.mts +89 -4
- package/dist/index.d.ts +89 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +17 -1
- package/src/generated/types.gen.ts +89 -3
|
@@ -5079,6 +5079,80 @@ export type GoogleCustomerConversionGoal = {
|
|
|
5079
5079
|
}>;
|
|
5080
5080
|
};
|
|
5081
5081
|
|
|
5082
|
+
/**
|
|
5083
|
+
* Creative, channel and audience settings for a Google Demand Gen campaign (campaignType demand_gen). Creates one ad group with one ad: a multi-asset image ad, or a video responsive ad when youtubeVideoIds is sent.
|
|
5084
|
+
*/
|
|
5085
|
+
export type GoogleDemandGenInput = {
|
|
5086
|
+
/**
|
|
5087
|
+
* Defaults to the ad name.
|
|
5088
|
+
*/
|
|
5089
|
+
adGroupName?: string;
|
|
5090
|
+
finalUrl: string;
|
|
5091
|
+
businessName: string;
|
|
5092
|
+
/**
|
|
5093
|
+
* Distinct texts.
|
|
5094
|
+
*/
|
|
5095
|
+
headlines: Array<(string)>;
|
|
5096
|
+
/**
|
|
5097
|
+
* Video ads only, and required there.
|
|
5098
|
+
*/
|
|
5099
|
+
longHeadlines?: Array<(string)>;
|
|
5100
|
+
descriptions: Array<(string)>;
|
|
5101
|
+
/**
|
|
5102
|
+
* Image ads only. Call to action text such as 'Learn more'; Google picks one when omitted.
|
|
5103
|
+
*/
|
|
5104
|
+
callToAction?: string;
|
|
5105
|
+
/**
|
|
5106
|
+
* Public image URLs. An image ad needs landscape or square; a video ad takes only one logo.
|
|
5107
|
+
*/
|
|
5108
|
+
images: {
|
|
5109
|
+
/**
|
|
5110
|
+
* 1.91:1, at least 600x314.
|
|
5111
|
+
*/
|
|
5112
|
+
landscape?: Array<(string)>;
|
|
5113
|
+
/**
|
|
5114
|
+
* 1:1, at least 300x300.
|
|
5115
|
+
*/
|
|
5116
|
+
square?: Array<(string)>;
|
|
5117
|
+
/**
|
|
5118
|
+
* 4:5, at least 480x600.
|
|
5119
|
+
*/
|
|
5120
|
+
portrait?: Array<(string)>;
|
|
5121
|
+
/**
|
|
5122
|
+
* 1:1, at least 128x128.
|
|
5123
|
+
*/
|
|
5124
|
+
logo: Array<(string)>;
|
|
5125
|
+
};
|
|
5126
|
+
/**
|
|
5127
|
+
* Makes the ad a video responsive ad.
|
|
5128
|
+
*/
|
|
5129
|
+
youtubeVideoIds?: Array<(string)>;
|
|
5130
|
+
/**
|
|
5131
|
+
* Channel controls on the ad group. Only the listed channels serve; omit to serve on all of them.
|
|
5132
|
+
*/
|
|
5133
|
+
channels?: Array<('youtube_in_stream' | 'youtube_in_feed' | 'youtube_shorts' | 'discover' | 'gmail' | 'display')>;
|
|
5134
|
+
/**
|
|
5135
|
+
* Created as a Google Audience and attached to the ad group. Send at least one dimension. Ids are numeric Google ids (user lists, interest categories, custom audiences) from the same customer.
|
|
5136
|
+
*/
|
|
5137
|
+
audience?: {
|
|
5138
|
+
userLists?: Array<(string)>;
|
|
5139
|
+
userInterests?: Array<(string)>;
|
|
5140
|
+
customAudiences?: Array<(string)>;
|
|
5141
|
+
ageRanges?: Array<{
|
|
5142
|
+
min: 18 | 25 | 35 | 45 | 55 | 65;
|
|
5143
|
+
/**
|
|
5144
|
+
* Omit for no upper bound.
|
|
5145
|
+
*/
|
|
5146
|
+
max?: 24 | 34 | 44 | 54 | 64;
|
|
5147
|
+
}>;
|
|
5148
|
+
genders?: Array<('male' | 'female' | 'undetermined')>;
|
|
5149
|
+
};
|
|
5150
|
+
/**
|
|
5151
|
+
* Attach an existing Google Audience by numeric id instead of audience.
|
|
5152
|
+
*/
|
|
5153
|
+
audienceId?: string;
|
|
5154
|
+
};
|
|
5155
|
+
|
|
5082
5156
|
/**
|
|
5083
5157
|
* Exactly one key. Omit the value (for example { productBrand: {} }) for the everything-else node of that level.
|
|
5084
5158
|
*/
|
|
@@ -40761,6 +40835,17 @@ export type GetAdAccountHierarchyResponse = ({
|
|
|
40761
40835
|
*/
|
|
40762
40836
|
clients?: Array<GoogleAdsHierarchyClient>;
|
|
40763
40837
|
}>;
|
|
40838
|
+
directCustomers?: Array<{
|
|
40839
|
+
customerId?: string;
|
|
40840
|
+
manager?: boolean;
|
|
40841
|
+
/**
|
|
40842
|
+
* Manager invitations this account has not answered yet.
|
|
40843
|
+
*/
|
|
40844
|
+
pendingInvitations?: Array<{
|
|
40845
|
+
managerCustomerId?: string;
|
|
40846
|
+
managerLinkId?: string;
|
|
40847
|
+
}>;
|
|
40848
|
+
}>;
|
|
40764
40849
|
unavailable?: Array<{
|
|
40765
40850
|
customerId?: string;
|
|
40766
40851
|
/**
|
|
@@ -41972,7 +42057,7 @@ export type CreateStandaloneAdData = {
|
|
|
41972
42057
|
*/
|
|
41973
42058
|
aiDisclosure?: 'OPT_IN' | 'OPT_OUT';
|
|
41974
42059
|
/**
|
|
41975
|
-
* Google Performance Max validates the complete atomic campaign and asset group with no resource creation or local persistence. Google validation still downloads image URLs and consumes quota. On Meta, validates the complete inline campaign, ad set, creative and ad with execution_options validate_only. Nothing is uploaded or created, and validation bypasses Idempotency-Key storage. Supports a single image, all-image placementAssets with per-rule copy, existing video.id or existingCreativeId; other media pools, new video uploads, creatives[], adSetId and RESERVED buying return 400. Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped. Success returns 200 with per-node results; Meta rejection returns an error. ChatGPT (OpenAI) has no platform dry-run: Zernio runs every check it knows (creative lengths, budget, bid strategy, targeting) plus live lookups of the conversion event and target countries, and uploads or creates nothing. OpenAI's own write-time checks (image fetch, currency-specific minimums, ad review) still run only on a real create. Any other platform, or a Google campaignType other than pmax, returns 501 `feature_not_available`.
|
|
42060
|
+
* Google Performance Max validates the complete atomic campaign and asset group with no resource creation or local persistence. Google validation still downloads image URLs and consumes quota. On Meta, validates the complete inline campaign, ad set, creative and ad with execution_options validate_only. Nothing is uploaded or created, and validation bypasses Idempotency-Key storage. Supports a single image, all-image placementAssets with per-rule copy, existing video.id or existingCreativeId; other media pools, new video uploads, creatives[], adSetId and RESERVED buying return 400. Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped. Success returns 200 with per-node results; Meta rejection returns an error. ChatGPT (OpenAI) has no platform dry-run: Zernio runs every check it knows (creative lengths, budget, bid strategy, targeting) plus live lookups of the conversion event and target countries, and uploads or creates nothing. OpenAI's own write-time checks (image fetch, currency-specific minimums, ad review) still run only on a real create. Any other platform, or a Google campaignType other than pmax or demand_gen, returns 501 `feature_not_available`.
|
|
41976
42061
|
*/
|
|
41977
42062
|
validateOnly?: boolean;
|
|
41978
42063
|
/**
|
|
@@ -42722,14 +42807,15 @@ export type CreateStandaloneAdData = {
|
|
|
42722
42807
|
*/
|
|
42723
42808
|
audienceId?: string;
|
|
42724
42809
|
/**
|
|
42725
|
-
* Google only. Performance Max requires assetGroup and
|
|
42810
|
+
* Google only. Performance Max requires assetGroup and Demand Gen requires demandGen; both are always created PAUSED.
|
|
42726
42811
|
*/
|
|
42727
|
-
campaignType?: 'display' | 'search' | 'pmax';
|
|
42812
|
+
campaignType?: 'display' | 'search' | 'pmax' | 'demand_gen';
|
|
42728
42813
|
/**
|
|
42729
42814
|
* Google only (400 elsewhere). Set on the new campaign; a request that joins an existing campaign (`existingCampaignId` or `adSetId`) returns 400, change that campaign with PUT /v1/ads/campaigns/{campaignId}/targeting instead. `presence` reaches only people in or regularly in the targeted locations.
|
|
42730
42815
|
*/
|
|
42731
42816
|
locationTargetingType?: (GoogleLocationTargetingType);
|
|
42732
42817
|
assetGroup?: GooglePmaxAssetGroupInput;
|
|
42818
|
+
demandGen?: GoogleDemandGenInput;
|
|
42733
42819
|
/**
|
|
42734
42820
|
* Google Search only. Keywords on the new ad group; entries are strings (BROAD) or { text, matchType }. Editable later via PUT /v1/ads/{adId} targeting.keywords.
|
|
42735
42821
|
*/
|