@getlatedev/node 0.2.1740 → 0.2.1741

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.
@@ -169,7 +169,7 @@ export type AccountWithFollowerStats = SocialAccount & {
169
169
  export type Ad = {
170
170
  _id?: string;
171
171
  name?: string;
172
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
172
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
173
173
  /**
174
174
  * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
175
175
  */
@@ -714,7 +714,7 @@ export type Ad = {
714
714
  updatedAt?: string;
715
715
  };
716
716
 
717
- export type platform = 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
717
+ export type platform = 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
718
718
 
719
719
  export type adType = 'boost' | 'standalone';
720
720
 
@@ -912,7 +912,7 @@ export type AdBudget = {
912
912
 
913
913
  export type AdCampaign = {
914
914
  platformCampaignId?: string;
915
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
915
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
916
916
  campaignName?: string;
917
917
  /**
918
918
  * Delivery status derived from child ad statuses. Distinct from `reviewStatus`.
@@ -3336,7 +3336,7 @@ export type AdTreeCampaign = {
3336
3336
  [key: string]: (number);
3337
3337
  };
3338
3338
  platformCampaignId?: string;
3339
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
3339
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
3340
3340
  campaignName?: string;
3341
3341
  /**
3342
3342
  * Earliest `platformCreatedAt` across every ad in the campaign (platform ad creation time; falls back to `createdAt`, Zernio's sync time, for ads synced before that field existed).
@@ -3510,6 +3510,243 @@ export type AdTreeResponse = {
3510
3510
  backfillPending?: boolean;
3511
3511
  };
3512
3512
 
3513
+ /**
3514
+ * Amazon Ads: the ad product of the campaign and its settings. Unknown keys return a 400.
3515
+ *
3516
+ * The unified `goal` maps onto the product: Sponsored Products takes `conversions`; Sponsored Brands takes `traffic` (PAGE_VISIT), `awareness` (BRAND_IMPRESSION_SHARE), `video_views` (AD_VIEWS) and `conversions` (ACQUIRE_NEW_CUSTOMERS); Sponsored Display takes `traffic` (optimizes for clicks), `conversions` and `awareness` (optimizes for reach and bills by viewable impressions).
3517
+ *
3518
+ */
3519
+ export type AmazonAdsCampaignPlatformData = AmazonSponsoredProductsCampaignData | AmazonSponsoredBrandsCampaignData | AmazonSponsoredDisplayCampaignData;
3520
+
3521
+ /**
3522
+ * Amazon Ads (required): the ad product and everything the unified fields do not cover. Unknown keys return a 400.
3523
+ *
3524
+ * Unified fields that apply:
3525
+ *
3526
+ * - `name`, `campaignName`, `adSetName`, `adName`, `goal` and the status fields.
3527
+ * - `budgetAmount` / `budgetType`: the campaign budget in whole currency units; lifetime on Sponsored Brands only.
3528
+ * - `startDate` / `endDate`: calendar days in the profile time zone.
3529
+ * - `keywords` and `negativeKeywords` (Sponsored Products and Brands), `campaignNegativeKeywords` (Sponsored Products).
3530
+ * - `existingCampaignId`: a new ad group under an existing campaign of the same product, which keeps its goal when `goal` is omitted.
3531
+ * - `adSetId`: new ads in an existing ad group.
3532
+ *
3533
+ * Creative and audience fields (headline, body, linkUrl, imageUrl, countries, interests...) return a 400.
3534
+ *
3535
+ * Goals per product are listed on `AmazonAdsCampaignPlatformData`. If anything after the campaign fails, the campaign is archived (Amazon's delete) and the error names the refused item, e.g. `keywords[2]`.
3536
+ *
3537
+ */
3538
+ export type AmazonAdsPlatformData = AmazonSponsoredProductsAdData | AmazonSponsoredBrandsAdData | AmazonSponsoredDisplayAdData;
3539
+
3540
+ export type AmazonAdvertisedProducts = {
3541
+ /**
3542
+ * Vendor profiles: the ASINs to advertise, one product ad each.
3543
+ */
3544
+ asins?: Array<(string)>;
3545
+ /**
3546
+ * Seller profiles: the SKUs to advertise, one product ad each. Sending the identifier the profile does not use returns a 400.
3547
+ */
3548
+ skus?: Array<(string)>;
3549
+ };
3550
+
3551
+ export type AmazonAutoTargetGroup = {
3552
+ enabled?: boolean;
3553
+ bid?: number;
3554
+ };
3555
+
3556
+ export type AmazonSponsoredBrandsAdData = AmazonSponsoredBrandsCampaignData & {
3557
+ /**
3558
+ * Required. The ad, by format. Assets (logo, video) are Creative Asset Library ids. The product collection format is not offered: Amazon retires it in January 2027 (use manualCollection).
3559
+ */
3560
+ ad?: ({
3561
+ format: 'manualCollection';
3562
+ brandName: string;
3563
+ brandLogoAssetId?: string;
3564
+ title?: string;
3565
+ asins: Array<(string)>;
3566
+ landingPage?: {
3567
+ pageType: 'PRODUCT_LIST' | 'STORE';
3568
+ url?: string;
3569
+ };
3570
+ } | {
3571
+ format: 'storeSpotlight';
3572
+ brandName: string;
3573
+ brandLogoAssetId?: string;
3574
+ headline?: string;
3575
+ /**
3576
+ * The Store home page the ad lands on.
3577
+ */
3578
+ storeUrl: string;
3579
+ subpages: [
3580
+ {
3581
+ pageTitle: string;
3582
+ asin: string;
3583
+ url: string;
3584
+ },
3585
+ {
3586
+ pageTitle: string;
3587
+ asin: string;
3588
+ url: string;
3589
+ },
3590
+ {
3591
+ pageTitle: string;
3592
+ asin: string;
3593
+ url: string;
3594
+ }
3595
+ ];
3596
+ } | {
3597
+ format: 'video';
3598
+ videoAssetId: string;
3599
+ asin: string;
3600
+ brandName?: string;
3601
+ brandLogoAssetId?: string;
3602
+ headline?: string;
3603
+ });
3604
+ /**
3605
+ * Bid of the keywords and product targets without their own. With goal traffic (cost per click), US: 0.10 to 49, video 0.25 to 49.
3606
+ */
3607
+ defaultBid?: number;
3608
+ productTargets?: Array<{
3609
+ expressions: Array<{
3610
+ type: 'asinSameAs' | 'asinCategorySameAs' | 'asinBrandSameAs' | 'asinPriceLessThan' | 'asinPriceBetween' | 'asinPriceGreaterThan' | 'asinReviewRatingLessThan' | 'asinReviewRatingBetween' | 'asinReviewRatingGreaterThan';
3611
+ value: string;
3612
+ }>;
3613
+ bid?: number;
3614
+ }>;
3615
+ negativeProductTargets?: Array<{
3616
+ type: 'asinSameAs' | 'asinBrandSameAs';
3617
+ value: string;
3618
+ }>;
3619
+ };
3620
+
3621
+ export type format2 = 'manualCollection';
3622
+
3623
+ export type pageType = 'PRODUCT_LIST' | 'STORE';
3624
+
3625
+ export type AmazonSponsoredBrandsCampaignData = {
3626
+ adProduct: 'SPONSORED_BRANDS';
3627
+ /**
3628
+ * The brand (Brand Registry entity) the campaign advertises. Sellers need one.
3629
+ */
3630
+ brandEntityId?: string;
3631
+ /**
3632
+ * Amazon adjusts placement bids itself. Send false to set placementAdjustments.
3633
+ */
3634
+ bidOptimization?: boolean;
3635
+ /**
3636
+ * Only with bidOptimization false (400 otherwise).
3637
+ */
3638
+ placementAdjustments?: Array<{
3639
+ placement: 'TOP_OF_SEARCH' | 'DETAIL_PAGE' | 'HOME' | 'OTHER';
3640
+ percentage: number;
3641
+ }>;
3642
+ portfolioId?: string;
3643
+ };
3644
+
3645
+ export type AmazonSponsoredDisplayAdData = AmazonSponsoredDisplayCampaignData & AmazonAdvertisedProducts & {
3646
+ /**
3647
+ * US: 0.02 to 1000 per click, 1 to 1000 per thousand viewable impressions (goal awareness).
3648
+ */
3649
+ defaultBid?: number;
3650
+ /**
3651
+ * Required for a new ad group. Each entry is one Amazon targeting clause, in Amazon's own shape:
3652
+ *
3653
+ * - Contextual: `{ type: similarProduct }`, `{ type: asinSameAs, value: B0... }`, `{ type: asinCategorySameAs, value: "12345" }` with optional brand, price or rating refinements in the same expression, `{ type: contentCategorySameAs, value: "amzn1.iab-content.325" }`.
3654
+ * - Audiences (tactic T00030 only): `{ type: views | purchases, value: [{ type: exactProduct | similarProduct | relatedProduct | asinCategorySameAs ... }, { type: lookback, value: "30" }] }`, or `{ type: audience, value: [{ type: audienceSameAs, value: "<audience id>" }] }` for in-market and lifestyle audiences.
3655
+ *
3656
+ */
3657
+ targets?: Array<{
3658
+ expression: Array<{
3659
+ type: string;
3660
+ value?: (string | Array<{
3661
+ type: string;
3662
+ value?: string;
3663
+ }>);
3664
+ }>;
3665
+ bid?: number;
3666
+ }>;
3667
+ negativeTargets?: Array<{
3668
+ type: 'asinSameAs' | 'asinBrandSameAs';
3669
+ value: string;
3670
+ }>;
3671
+ };
3672
+
3673
+ export type AmazonSponsoredDisplayCampaignData = {
3674
+ adProduct: 'SPONSORED_DISPLAY';
3675
+ /**
3676
+ * Required for a new campaign. T00020 targets products and categories; T00030 also targets audiences (views, purchases, audience).
3677
+ */
3678
+ tactic?: 'T00020' | 'T00030';
3679
+ portfolioId?: string;
3680
+ };
3681
+
3682
+ /**
3683
+ * Required for a new campaign. T00020 targets products and categories; T00030 also targets audiences (views, purchases, audience).
3684
+ */
3685
+ export type tactic = 'T00020' | 'T00030';
3686
+
3687
+ export type AmazonSponsoredProductsAdData = AmazonSponsoredProductsCampaignData & AmazonAdvertisedProducts & {
3688
+ /**
3689
+ * Required for a new ad group. Whole currency units; keywords and targets without their own bid use it. US: 0.02 to 1000.
3690
+ */
3691
+ defaultBid?: number;
3692
+ /**
3693
+ * MANUAL campaigns. Each entry is one Amazon targeting clause: a product (ASIN_SAME_AS), a category (ASIN_CATEGORY_SAME_AS) optionally refined by brand, price, rating or Prime in the same expression.
3694
+ */
3695
+ productTargets?: Array<{
3696
+ expression: Array<{
3697
+ type: 'ASIN_SAME_AS' | 'ASIN_CATEGORY_SAME_AS' | 'ASIN_BRAND_SAME_AS' | 'ASIN_PRICE_LESS_THAN' | 'ASIN_PRICE_GREATER_THAN' | 'ASIN_PRICE_BETWEEN' | 'ASIN_REVIEW_RATING_LESS_THAN' | 'ASIN_REVIEW_RATING_GREATER_THAN' | 'ASIN_REVIEW_RATING_BETWEEN' | 'ASIN_IS_PRIME_SHIPPING_ELIGIBLE' | 'ASIN_AGE_RANGE_SAME_AS' | 'ASIN_GENRE_SAME_AS' | 'ASIN_EXPANDED_FROM';
3698
+ /**
3699
+ * Ranges use a hyphen, e.g. "50-120".
3700
+ */
3701
+ value?: string;
3702
+ }>;
3703
+ bid?: number;
3704
+ }>;
3705
+ negativeProductTargets?: Array<{
3706
+ type: 'ASIN_SAME_AS' | 'ASIN_BRAND_SAME_AS';
3707
+ value: string;
3708
+ }>;
3709
+ /**
3710
+ * AUTO campaigns. Amazon adds the four auto target groups to the ad group itself; this switches them off or bids on them. A group Amazon had not added yet is reported in `warnings`.
3711
+ */
3712
+ autoTargeting?: {
3713
+ closeMatch?: AmazonAutoTargetGroup;
3714
+ looseMatch?: AmazonAutoTargetGroup;
3715
+ substitutes?: AmazonAutoTargetGroup;
3716
+ complements?: AmazonAutoTargetGroup;
3717
+ };
3718
+ };
3719
+
3720
+ export type AmazonSponsoredProductsCampaignData = {
3721
+ adProduct: 'SPONSORED_PRODUCTS';
3722
+ /**
3723
+ * Required for a new campaign. MANUAL targets keywords and productTargets; AUTO lets Amazon match searches and products (tune them with autoTargeting). Immutable.
3724
+ */
3725
+ targetingType?: 'MANUAL' | 'AUTO';
3726
+ /**
3727
+ * Dynamic bidding: LEGACY_FOR_SALES lowers bids when a sale is unlikely, AUTO_FOR_SALES raises and lowers them (up to +100%), MANUAL keeps them fixed.
3728
+ */
3729
+ biddingStrategy?: 'LEGACY_FOR_SALES' | 'AUTO_FOR_SALES' | 'MANUAL';
3730
+ /**
3731
+ * Bid increase per placement, added on top of the bid (50 on a 1.00 bid gives 1.50 at the top of search).
3732
+ */
3733
+ placementBidding?: Array<{
3734
+ placement: 'PLACEMENT_TOP' | 'PLACEMENT_PRODUCT_PAGE' | 'PLACEMENT_REST_OF_SEARCH';
3735
+ percentage: number;
3736
+ }>;
3737
+ portfolioId?: string;
3738
+ };
3739
+
3740
+ /**
3741
+ * Required for a new campaign. MANUAL targets keywords and productTargets; AUTO lets Amazon match searches and products (tune them with autoTargeting). Immutable.
3742
+ */
3743
+ export type targetingType = 'MANUAL' | 'AUTO';
3744
+
3745
+ /**
3746
+ * Dynamic bidding: LEGACY_FOR_SALES lowers bids when a sale is unlikely, AUTO_FOR_SALES raises and lowers them (up to +100%), MANUAL keeps them fixed.
3747
+ */
3748
+ export type biddingStrategy = 'LEGACY_FOR_SALES' | 'AUTO_FOR_SALES' | 'MANUAL';
3749
+
3513
3750
  export type AnalyticsDashboardFollowers = {
3514
3751
  /**
3515
3752
  * Live follower count when the window includes today, otherwise the count the window ended on.
@@ -19604,7 +19841,7 @@ export type PostMetricFormat = {
19604
19841
  /**
19605
19842
  * gif counts as image, document as text.
19606
19843
  */
19607
- export type format2 = 'image' | 'video' | 'carousel' | 'text';
19844
+ export type format3 = 'image' | 'video' | 'carousel' | 'text';
19608
19845
 
19609
19846
  export type PostMetricGroup = {
19610
19847
  postId: (string) | null;
@@ -30646,7 +30883,7 @@ export type WhatsAppHeaderComponent = {
30646
30883
  };
30647
30884
  };
30648
30885
 
30649
- export type format3 = 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
30886
+ export type format4 = 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
30650
30887
 
30651
30888
  export type WhatsAppLimitedTimeOfferComponent = {
30652
30889
  type: 'limited_time_offer';
@@ -40869,6 +41106,10 @@ export type GetAmazonAdsConnectUrlData = {
40869
41106
  * Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme.
40870
41107
  */
40871
41108
  redirect_url?: string;
41109
+ /**
41110
+ * Amazon region whose consent page the user signs in on: NA (amazon.com), EU (Europe, Middle East, India) or FE (Japan, Australia, Singapore).
41111
+ */
41112
+ region?: 'NA' | 'EU' | 'FE';
40872
41113
  };
40873
41114
  };
40874
41115
 
@@ -65525,7 +65766,7 @@ export type ListAdsData = {
65525
65766
  * Meta only: Facebook Page ID. Returns only ads whose creative is backed by this Page (a Meta ad account serves ads for every Page in the Business Manager). Matches each ad's `creative.pageId`; ads with no page signal (rare IG-only creatives) never match. Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
65526
65767
  */
65527
65768
  pageId?: string;
65528
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
65769
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
65529
65770
  /**
65530
65771
  * Meta ad ID. Returns the ad with this platform-side ad ID.
65531
65772
  */
@@ -67741,7 +67982,7 @@ export type ListAdCampaignsData = {
67741
67982
  * Meta only: Facebook Page ID. Campaigns have no Page of their own, so this keeps campaigns having at least one ad backed by this Page, with adCount and metrics computed over those ads only. Mirrors the same filter on /v1/ads and /v1/ads/tree.
67742
67983
  */
67743
67984
  pageId?: string;
67744
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
67985
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
67745
67986
  /**
67746
67987
  * Profile ID
67747
67988
  */
@@ -67816,13 +68057,17 @@ export type CreateAdCampaignData = {
67816
68057
  budgetType?: 'daily' | 'lifetime';
67817
68058
  status?: 'ACTIVE' | 'PAUSED';
67818
68059
  /**
67819
- * Reddit only (400 elsewhere). Campaign start (ISO 8601); a value without an offset is read in the ad account time zone. Requires a campaign budget (`budgetAmount` + `budgetType`, 400 otherwise). Defaults to now.
68060
+ * Reddit and Amazon only (400 elsewhere). Campaign start (ISO 8601); a value without an offset is read in the ad account time zone. Requires a campaign budget (`budgetAmount` + `budgetType`, 400 otherwise). Defaults to now.
67820
68061
  */
67821
68062
  startDate?: string;
67822
68063
  /**
67823
- * Reddit only (400 elsewhere). Campaign end (ISO 8601); a value without an offset is read in the ad account time zone. Requires a campaign budget (400 otherwise), and is required for `budgetType: lifetime`.
68064
+ * Reddit and Amazon only (400 elsewhere). Campaign end (ISO 8601); a value without an offset is read in the ad account time zone. Requires a campaign budget (400 otherwise), and is required for `budgetType: lifetime`.
67824
68065
  */
67825
68066
  endDate?: string;
68067
+ /**
68068
+ * Amazon Ads only (400 elsewhere), and required there: the ad product and its campaign settings.
68069
+ */
68070
+ platformSpecificData?: (AmazonAdsCampaignPlatformData);
67826
68071
  /**
67827
68072
  * Google only (400 elsewhere). Written on the new campaign.
67828
68073
  */
@@ -67911,7 +68156,7 @@ export type CreateAdCampaignError = (unknown | ErrorResponse);
67911
68156
  export type UpdateAdCampaignStatusData = {
67912
68157
  body: {
67913
68158
  status: 'active' | 'paused';
67914
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
68159
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
67915
68160
  };
67916
68161
  headers?: {
67917
68162
  /**
@@ -68160,7 +68405,7 @@ export type UpdateAdCampaignData = {
68160
68405
  /**
68161
68406
  * Required: platform campaign IDs are not globally unique.
68162
68407
  */
68163
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
68408
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68164
68409
  /**
68165
68410
  * **Meta only.** Zernio SocialAccount id owning the ad account. Needed only for an EMPTY campaign (zero ads); ignored otherwise.
68166
68411
  */
@@ -68287,7 +68532,7 @@ export type UpdateAdCampaignError = (unknown | ErrorResponse);
68287
68532
 
68288
68533
  export type DeleteAdCampaignData = {
68289
68534
  body: {
68290
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
68535
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68291
68536
  /**
68292
68537
  * Zernio SocialAccount id owning the ad account. Required only to delete an EMPTY campaign (zero ads), which has no local Ad documents to resolve a token from.
68293
68538
  */
@@ -69726,7 +69971,7 @@ export type GetAdSetTargetingData = {
69726
69971
  /**
69727
69972
  * Disambiguates when the same adSetId string exists on more than one connected platform.
69728
69973
  */
69729
- platform?: 'reddit';
69974
+ platform?: 'reddit' | 'amazon';
69730
69975
  };
69731
69976
  };
69732
69977
 
@@ -69751,7 +69996,7 @@ export type GetAdSetTargetingError = (ErrorResponse | unknown);
69751
69996
  export type UpdateAdSetStatusData = {
69752
69997
  body: {
69753
69998
  status: 'active' | 'paused';
69754
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
69999
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
69755
70000
  };
69756
70001
  headers?: {
69757
70002
  /**
@@ -69886,7 +70131,7 @@ export type GetAdTreeData = {
69886
70131
  * Meta only: Facebook Page ID. Prunes the tree to ads whose creative is backed by this Page: campaigns and ad sets with no ad on the Page drop out, and rolled-up metrics cover only the Page's ads. Mirrors the same filter on /v1/ads and /v1/ads/campaigns.
69887
70132
  */
69888
70133
  pageId?: string;
69889
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
70134
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
69890
70135
  /**
69891
70136
  * Profile ID
69892
70137
  */
@@ -69977,7 +70222,7 @@ export type ListAdsByPerformanceData = {
69977
70222
  /**
69978
70223
  * Restrict to one platform.
69979
70224
  */
69980
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
70225
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
69981
70226
  /**
69982
70227
  * Metric the ads are ranked by, highest first.
69983
70228
  */
@@ -70028,7 +70273,7 @@ export type GetAdsTimelineData = {
70028
70273
  /**
70029
70274
  * Restrict to one platform.
70030
70275
  */
70031
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft';
70276
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
70032
70277
  /**
70033
70278
  * Inclusive end of metrics range (YYYY-MM-DD). Defaults to today. Max 730-day range.
70034
70279
  */
@@ -77486,15 +77731,15 @@ export type CreateStandaloneAdData = {
77486
77731
  };
77487
77732
  demandGen?: GoogleDemandGenInput;
77488
77733
  /**
77489
- * 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.
77734
+ * Google Search, Microsoft Ads, and Amazon Sponsored Products (MANUAL campaigns) and Sponsored Brands. Keywords on the new ad group; entries are strings (BROAD) or { text, matchType }. Editable later via PUT /v1/ads/{adId} targeting.keywords.
77490
77735
  */
77491
77736
  keywords?: Array<KeywordEntry>;
77492
77737
  /**
77493
- * Google Search only; other platforms return 400. Ad-group-level negative keywords on the new ad group. Editable later via PUT /v1/ads/{adId} targeting.negativeKeywords.
77738
+ * Google Search and Amazon Sponsored Products and Sponsored Brands (EXACT or PHRASE only); other platforms return 400. Ad-group-level negative keywords on the new ad group. Editable later via PUT /v1/ads/{adId} targeting.negativeKeywords.
77494
77739
  */
77495
77740
  negativeKeywords?: Array<KeywordEntry>;
77496
77741
  /**
77497
- * Google Search only; other platforms return 400. Campaign-level negative keywords (campaign_criterion.negative), created alongside the ad group. Editable later via PUT /v1/ads/campaigns/{campaignId}/negative-keywords.
77742
+ * Google Search and Amazon Sponsored Products; other platforms return 400. Campaign-level negative keywords (campaign_criterion.negative on Google), created alongside the ad group. Editable later via PUT /v1/ads/campaigns/{campaignId}/negative-keywords.
77498
77743
  */
77499
77744
  campaignNegativeKeywords?: Array<KeywordEntry>;
77500
77745
  /**
@@ -77666,7 +77911,9 @@ export type CreateStandaloneAdData = {
77666
77911
  */
77667
77912
  valueRulesApplied?: boolean;
77668
77913
  /**
77669
- * Platform-specific options. The platform is derived from `accountId`; options for a different platform return a 400. LinkedIn (campaign bidding and delivery controls) and Meta (the bid trio) have options today.
77914
+ * Platform-specific options. The platform is derived from `accountId`; options for a different platform return a 400. LinkedIn (campaign bidding and delivery controls), Meta (the bid trio) and Amazon Ads (required: the ad product, products, creative and targeting) have options today.
77915
+ *
77916
+ * **Amazon Ads**: see `AmazonAdsPlatformData`. Amazon has no dry run, so `validateOnly` returns a 501.
77670
77917
  *
77671
77918
  * **Meta**
77672
77919
  *
@@ -77675,7 +77922,7 @@ export type CreateStandaloneAdData = {
77675
77922
  * - `dailyMinSpendTarget` / `lifetimeMinSpendTarget` set the new ad set's minimum spend and live here only; also rejected in `adSetId` attach mode.
77676
77923
  *
77677
77924
  */
77678
- platformSpecificData?: (LinkedInAdsPlatformData | MetaAdsPlatformData);
77925
+ platformSpecificData?: (LinkedInAdsPlatformData | MetaAdsPlatformData | AmazonAdsPlatformData);
77679
77926
  /**
77680
77927
  * Legal entity that benefits from the ad. Required when targeting EU users
77681
77928
  * (EU DSA, Article 26). Optional if the ad account has a default beneficiary: