@unified-api/typescript-sdk 2.83.48 → 2.83.49
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/commonjs/funcs/adsListAdsAds.js +1 -0
- package/dist/commonjs/funcs/adsListAdsAds.js.map +1 -1
- package/dist/commonjs/funcs/adsListAdsCampaigns.js +1 -0
- package/dist/commonjs/funcs/adsListAdsCampaigns.js.map +1 -1
- package/dist/commonjs/funcs/adsListAdsCreatives.js +1 -0
- package/dist/commonjs/funcs/adsListAdsCreatives.js.map +1 -1
- package/dist/commonjs/funcs/adsListAdsGroups.js +1 -0
- package/dist/commonjs/funcs/adsListAdsGroups.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/sdk/models/operations/listadsads.d.ts +5 -0
- package/dist/commonjs/sdk/models/operations/listadsads.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listadsads.js +1 -0
- package/dist/commonjs/sdk/models/operations/listadsads.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listadscampaigns.d.ts +5 -0
- package/dist/commonjs/sdk/models/operations/listadscampaigns.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listadscampaigns.js +1 -0
- package/dist/commonjs/sdk/models/operations/listadscampaigns.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listadscreatives.d.ts +5 -0
- package/dist/commonjs/sdk/models/operations/listadscreatives.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listadscreatives.js +1 -0
- package/dist/commonjs/sdk/models/operations/listadscreatives.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listadsgroups.d.ts +5 -0
- package/dist/commonjs/sdk/models/operations/listadsgroups.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listadsgroups.js +1 -0
- package/dist/commonjs/sdk/models/operations/listadsgroups.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/adstarget.d.ts +0 -2
- package/dist/commonjs/sdk/models/shared/adstarget.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/adstarget.js +0 -2
- package/dist/commonjs/sdk/models/shared/adstarget.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/devicetarget.d.ts +22 -0
- package/dist/commonjs/sdk/models/shared/devicetarget.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/devicetarget.js +60 -0
- package/dist/commonjs/sdk/models/shared/devicetarget.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/geotarget.d.ts +22 -0
- package/dist/commonjs/sdk/models/shared/geotarget.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/geotarget.js +60 -0
- package/dist/commonjs/sdk/models/shared/geotarget.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +3 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +3 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetingcontent.d.ts +5 -4
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetingcontent.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetingcontent.js +5 -4
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetingcontent.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetingdevice.d.ts +9 -8
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetingdevice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetingdevice.js +9 -8
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetingdevice.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetinggeographic.d.ts +13 -12
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetinggeographic.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetinggeographic.js +13 -12
- package/dist/commonjs/sdk/models/shared/propertyadscampaigntargetinggeographic.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetingcontent.d.ts +5 -4
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetingcontent.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetingcontent.js +5 -4
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetingcontent.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetingdevice.d.ts +9 -8
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetingdevice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetingdevice.js +9 -8
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetingdevice.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetinggeographic.d.ts +13 -12
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetinggeographic.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetinggeographic.js +13 -12
- package/dist/commonjs/sdk/models/shared/propertyadsgrouptargetinggeographic.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetingcontent.d.ts +3 -2
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetingcontent.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetingcontent.js +3 -2
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetingcontent.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetingdevice.d.ts +5 -4
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetingdevice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetingdevice.js +5 -4
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetingdevice.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetinggeographic.d.ts +7 -6
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetinggeographic.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetinggeographic.js +7 -6
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscampaigntargetinggeographic.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetingcontent.d.ts +3 -2
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetingcontent.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetingcontent.js +3 -2
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetingcontent.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetingdevice.d.ts +5 -4
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetingdevice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetingdevice.js +5 -4
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetingdevice.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetinggeographic.d.ts +7 -6
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetinggeographic.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetinggeographic.js +7 -6
- package/dist/commonjs/sdk/models/shared/propertyadsreportmetricsgrouptargetinggeographic.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/topictarget.d.ts +22 -0
- package/dist/commonjs/sdk/models/shared/topictarget.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/topictarget.js +60 -0
- package/dist/commonjs/sdk/models/shared/topictarget.js.map +1 -0
- package/dist/esm/funcs/adsListAdsAds.js +1 -0
- package/dist/esm/funcs/adsListAdsAds.js.map +1 -1
- package/dist/esm/funcs/adsListAdsCampaigns.js +1 -0
- package/dist/esm/funcs/adsListAdsCampaigns.js.map +1 -1
- package/dist/esm/funcs/adsListAdsCreatives.js +1 -0
- package/dist/esm/funcs/adsListAdsCreatives.js.map +1 -1
- package/dist/esm/funcs/adsListAdsGroups.js +1 -0
- package/dist/esm/funcs/adsListAdsGroups.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/sdk/models/operations/listadsads.d.ts +5 -0
- package/dist/esm/sdk/models/operations/listadsads.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listadsads.js +1 -0
- package/dist/esm/sdk/models/operations/listadsads.js.map +1 -1
- package/dist/esm/sdk/models/operations/listadscampaigns.d.ts +5 -0
- package/dist/esm/sdk/models/operations/listadscampaigns.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listadscampaigns.js +1 -0
- package/dist/esm/sdk/models/operations/listadscampaigns.js.map +1 -1
- package/dist/esm/sdk/models/operations/listadscreatives.d.ts +5 -0
- package/dist/esm/sdk/models/operations/listadscreatives.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listadscreatives.js +1 -0
- package/dist/esm/sdk/models/operations/listadscreatives.js.map +1 -1
- package/dist/esm/sdk/models/operations/listadsgroups.d.ts +5 -0
- package/dist/esm/sdk/models/operations/listadsgroups.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listadsgroups.js +1 -0
- package/dist/esm/sdk/models/operations/listadsgroups.js.map +1 -1
- package/dist/esm/sdk/models/shared/adstarget.d.ts +0 -2
- package/dist/esm/sdk/models/shared/adstarget.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/adstarget.js +0 -2
- package/dist/esm/sdk/models/shared/adstarget.js.map +1 -1
- package/dist/esm/sdk/models/shared/devicetarget.d.ts +22 -0
- package/dist/esm/sdk/models/shared/devicetarget.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/devicetarget.js +22 -0
- package/dist/esm/sdk/models/shared/devicetarget.js.map +1 -0
- package/dist/esm/sdk/models/shared/geotarget.d.ts +22 -0
- package/dist/esm/sdk/models/shared/geotarget.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/geotarget.js +22 -0
- package/dist/esm/sdk/models/shared/geotarget.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +3 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +3 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetingcontent.d.ts +5 -4
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetingcontent.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetingcontent.js +5 -4
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetingcontent.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetingdevice.d.ts +9 -8
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetingdevice.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetingdevice.js +9 -8
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetingdevice.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetinggeographic.d.ts +13 -12
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetinggeographic.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetinggeographic.js +13 -12
- package/dist/esm/sdk/models/shared/propertyadscampaigntargetinggeographic.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetingcontent.d.ts +5 -4
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetingcontent.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetingcontent.js +5 -4
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetingcontent.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetingdevice.d.ts +9 -8
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetingdevice.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetingdevice.js +9 -8
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetingdevice.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetinggeographic.d.ts +13 -12
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetinggeographic.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetinggeographic.js +13 -12
- package/dist/esm/sdk/models/shared/propertyadsgrouptargetinggeographic.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetingcontent.d.ts +3 -2
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetingcontent.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetingcontent.js +3 -2
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetingcontent.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetingdevice.d.ts +5 -4
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetingdevice.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetingdevice.js +5 -4
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetingdevice.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetinggeographic.d.ts +7 -6
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetinggeographic.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetinggeographic.js +7 -6
- package/dist/esm/sdk/models/shared/propertyadsreportmetricscampaigntargetinggeographic.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetingcontent.d.ts +3 -2
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetingcontent.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetingcontent.js +3 -2
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetingcontent.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetingdevice.d.ts +5 -4
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetingdevice.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetingdevice.js +5 -4
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetingdevice.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetinggeographic.d.ts +7 -6
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetinggeographic.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetinggeographic.js +7 -6
- package/dist/esm/sdk/models/shared/propertyadsreportmetricsgrouptargetinggeographic.js.map +1 -1
- package/dist/esm/sdk/models/shared/topictarget.d.ts +22 -0
- package/dist/esm/sdk/models/shared/topictarget.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/topictarget.js +22 -0
- package/dist/esm/sdk/models/shared/topictarget.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/adsListAdsAds.ts +1 -0
- package/src/funcs/adsListAdsCampaigns.ts +1 -0
- package/src/funcs/adsListAdsCreatives.ts +1 -0
- package/src/funcs/adsListAdsGroups.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/operations/listadsads.ts +6 -0
- package/src/sdk/models/operations/listadscampaigns.ts +6 -0
- package/src/sdk/models/operations/listadscreatives.ts +6 -0
- package/src/sdk/models/operations/listadsgroups.ts +6 -0
- package/src/sdk/models/shared/adstarget.ts +0 -2
- package/src/sdk/models/shared/devicetarget.ts +54 -0
- package/src/sdk/models/shared/geotarget.ts +54 -0
- package/src/sdk/models/shared/index.ts +3 -0
- package/src/sdk/models/shared/propertyadscampaigntargetingcontent.ts +14 -8
- package/src/sdk/models/shared/propertyadscampaigntargetingdevice.ts +22 -16
- package/src/sdk/models/shared/propertyadscampaigntargetinggeographic.ts +30 -24
- package/src/sdk/models/shared/propertyadsgrouptargetingcontent.ts +14 -8
- package/src/sdk/models/shared/propertyadsgrouptargetingdevice.ts +22 -16
- package/src/sdk/models/shared/propertyadsgrouptargetinggeographic.ts +30 -24
- package/src/sdk/models/shared/propertyadsreportmetricscampaigntargetingcontent.ts +5 -4
- package/src/sdk/models/shared/propertyadsreportmetricscampaigntargetingdevice.ts +9 -8
- package/src/sdk/models/shared/propertyadsreportmetricscampaigntargetinggeographic.ts +13 -12
- package/src/sdk/models/shared/propertyadsreportmetricsgrouptargetingcontent.ts +5 -4
- package/src/sdk/models/shared/propertyadsreportmetricsgrouptargetingdevice.ts +9 -8
- package/src/sdk/models/shared/propertyadsreportmetricsgrouptargetinggeographic.ts +13 -12
- package/src/sdk/models/shared/topictarget.ts +54 -0
|
@@ -19,13 +19,19 @@ import {
|
|
|
19
19
|
PropertyAdsGroupTargetingContentVideo$Outbound,
|
|
20
20
|
PropertyAdsGroupTargetingContentVideo$outboundSchema,
|
|
21
21
|
} from "./propertyadsgrouptargetingcontentvideo.js";
|
|
22
|
+
import {
|
|
23
|
+
TopicTarget,
|
|
24
|
+
TopicTarget$inboundSchema,
|
|
25
|
+
TopicTarget$Outbound,
|
|
26
|
+
TopicTarget$outboundSchema,
|
|
27
|
+
} from "./topictarget.js";
|
|
22
28
|
|
|
23
29
|
export type PropertyAdsGroupTargetingContent = {
|
|
24
30
|
excludedKeywords?: Array<AdsKeyword> | undefined;
|
|
25
|
-
excludedTopics?: Array<
|
|
31
|
+
excludedTopics?: Array<TopicTarget> | undefined;
|
|
26
32
|
excludedUrls?: Array<string> | undefined;
|
|
27
33
|
keywords?: Array<AdsKeyword> | undefined;
|
|
28
|
-
topics?: Array<
|
|
34
|
+
topics?: Array<TopicTarget> | undefined;
|
|
29
35
|
urls?: Array<string> | undefined;
|
|
30
36
|
video?: PropertyAdsGroupTargetingContentVideo | undefined;
|
|
31
37
|
};
|
|
@@ -37,10 +43,10 @@ export const PropertyAdsGroupTargetingContent$inboundSchema: z.ZodType<
|
|
|
37
43
|
unknown
|
|
38
44
|
> = z.object({
|
|
39
45
|
excluded_keywords: z.array(AdsKeyword$inboundSchema).optional(),
|
|
40
|
-
excluded_topics: z.array(
|
|
46
|
+
excluded_topics: z.array(TopicTarget$inboundSchema).optional(),
|
|
41
47
|
excluded_urls: z.array(z.string()).optional(),
|
|
42
48
|
keywords: z.array(AdsKeyword$inboundSchema).optional(),
|
|
43
|
-
topics: z.array(
|
|
49
|
+
topics: z.array(TopicTarget$inboundSchema).optional(),
|
|
44
50
|
urls: z.array(z.string()).optional(),
|
|
45
51
|
video: PropertyAdsGroupTargetingContentVideo$inboundSchema.optional(),
|
|
46
52
|
}).transform((v) => {
|
|
@@ -53,10 +59,10 @@ export const PropertyAdsGroupTargetingContent$inboundSchema: z.ZodType<
|
|
|
53
59
|
/** @internal */
|
|
54
60
|
export type PropertyAdsGroupTargetingContent$Outbound = {
|
|
55
61
|
excluded_keywords?: Array<AdsKeyword$Outbound> | undefined;
|
|
56
|
-
excluded_topics?: Array<
|
|
62
|
+
excluded_topics?: Array<TopicTarget$Outbound> | undefined;
|
|
57
63
|
excluded_urls?: Array<string> | undefined;
|
|
58
64
|
keywords?: Array<AdsKeyword$Outbound> | undefined;
|
|
59
|
-
topics?: Array<
|
|
65
|
+
topics?: Array<TopicTarget$Outbound> | undefined;
|
|
60
66
|
urls?: Array<string> | undefined;
|
|
61
67
|
video?: PropertyAdsGroupTargetingContentVideo$Outbound | undefined;
|
|
62
68
|
};
|
|
@@ -68,10 +74,10 @@ export const PropertyAdsGroupTargetingContent$outboundSchema: z.ZodType<
|
|
|
68
74
|
PropertyAdsGroupTargetingContent
|
|
69
75
|
> = z.object({
|
|
70
76
|
excludedKeywords: z.array(AdsKeyword$outboundSchema).optional(),
|
|
71
|
-
excludedTopics: z.array(
|
|
77
|
+
excludedTopics: z.array(TopicTarget$outboundSchema).optional(),
|
|
72
78
|
excludedUrls: z.array(z.string()).optional(),
|
|
73
79
|
keywords: z.array(AdsKeyword$outboundSchema).optional(),
|
|
74
|
-
topics: z.array(
|
|
80
|
+
topics: z.array(TopicTarget$outboundSchema).optional(),
|
|
75
81
|
urls: z.array(z.string()).optional(),
|
|
76
82
|
video: PropertyAdsGroupTargetingContentVideo$outboundSchema.optional(),
|
|
77
83
|
}).transform((v) => {
|
|
@@ -7,12 +7,18 @@ import { remap as remap$ } from "../../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
DeviceTarget,
|
|
12
|
+
DeviceTarget$inboundSchema,
|
|
13
|
+
DeviceTarget$Outbound,
|
|
14
|
+
DeviceTarget$outboundSchema,
|
|
15
|
+
} from "./devicetarget.js";
|
|
10
16
|
|
|
11
17
|
export type PropertyAdsGroupTargetingDevice = {
|
|
12
|
-
carriers?: Array<
|
|
13
|
-
types?: Array<
|
|
14
|
-
userDevice?: Array<
|
|
15
|
-
userOs?: Array<
|
|
18
|
+
carriers?: Array<DeviceTarget> | undefined;
|
|
19
|
+
types?: Array<DeviceTarget> | undefined;
|
|
20
|
+
userDevice?: Array<DeviceTarget> | undefined;
|
|
21
|
+
userOs?: Array<DeviceTarget> | undefined;
|
|
16
22
|
};
|
|
17
23
|
|
|
18
24
|
/** @internal */
|
|
@@ -21,10 +27,10 @@ export const PropertyAdsGroupTargetingDevice$inboundSchema: z.ZodType<
|
|
|
21
27
|
z.ZodTypeDef,
|
|
22
28
|
unknown
|
|
23
29
|
> = z.object({
|
|
24
|
-
carriers: z.array(
|
|
25
|
-
types: z.array(
|
|
26
|
-
user_device: z.array(
|
|
27
|
-
user_os: z.array(
|
|
30
|
+
carriers: z.array(DeviceTarget$inboundSchema).optional(),
|
|
31
|
+
types: z.array(DeviceTarget$inboundSchema).optional(),
|
|
32
|
+
user_device: z.array(DeviceTarget$inboundSchema).optional(),
|
|
33
|
+
user_os: z.array(DeviceTarget$inboundSchema).optional(),
|
|
28
34
|
}).transform((v) => {
|
|
29
35
|
return remap$(v, {
|
|
30
36
|
"user_device": "userDevice",
|
|
@@ -33,10 +39,10 @@ export const PropertyAdsGroupTargetingDevice$inboundSchema: z.ZodType<
|
|
|
33
39
|
});
|
|
34
40
|
/** @internal */
|
|
35
41
|
export type PropertyAdsGroupTargetingDevice$Outbound = {
|
|
36
|
-
carriers?: Array<
|
|
37
|
-
types?: Array<
|
|
38
|
-
user_device?: Array<
|
|
39
|
-
user_os?: Array<
|
|
42
|
+
carriers?: Array<DeviceTarget$Outbound> | undefined;
|
|
43
|
+
types?: Array<DeviceTarget$Outbound> | undefined;
|
|
44
|
+
user_device?: Array<DeviceTarget$Outbound> | undefined;
|
|
45
|
+
user_os?: Array<DeviceTarget$Outbound> | undefined;
|
|
40
46
|
};
|
|
41
47
|
|
|
42
48
|
/** @internal */
|
|
@@ -45,10 +51,10 @@ export const PropertyAdsGroupTargetingDevice$outboundSchema: z.ZodType<
|
|
|
45
51
|
z.ZodTypeDef,
|
|
46
52
|
PropertyAdsGroupTargetingDevice
|
|
47
53
|
> = z.object({
|
|
48
|
-
carriers: z.array(
|
|
49
|
-
types: z.array(
|
|
50
|
-
userDevice: z.array(
|
|
51
|
-
userOs: z.array(
|
|
54
|
+
carriers: z.array(DeviceTarget$outboundSchema).optional(),
|
|
55
|
+
types: z.array(DeviceTarget$outboundSchema).optional(),
|
|
56
|
+
userDevice: z.array(DeviceTarget$outboundSchema).optional(),
|
|
57
|
+
userOs: z.array(DeviceTarget$outboundSchema).optional(),
|
|
52
58
|
}).transform((v) => {
|
|
53
59
|
return remap$(v, {
|
|
54
60
|
userDevice: "user_device",
|
|
@@ -15,6 +15,12 @@ import {
|
|
|
15
15
|
CityTarget$Outbound,
|
|
16
16
|
CityTarget$outboundSchema,
|
|
17
17
|
} from "./citytarget.js";
|
|
18
|
+
import {
|
|
19
|
+
GeoTarget,
|
|
20
|
+
GeoTarget$inboundSchema,
|
|
21
|
+
GeoTarget$Outbound,
|
|
22
|
+
GeoTarget$outboundSchema,
|
|
23
|
+
} from "./geotarget.js";
|
|
18
24
|
import {
|
|
19
25
|
PropertyAdsGroupTargetingGeographicLocationTypes,
|
|
20
26
|
PropertyAdsGroupTargetingGeographicLocationTypes$inboundSchema,
|
|
@@ -37,19 +43,19 @@ export type PropertyAdsGroupTargetingGeographicPresenceType = OpenEnum<
|
|
|
37
43
|
|
|
38
44
|
export type PropertyAdsGroupTargetingGeographic = {
|
|
39
45
|
cities?: Array<CityTarget> | undefined;
|
|
40
|
-
countries?: Array<
|
|
46
|
+
countries?: Array<GeoTarget> | undefined;
|
|
41
47
|
excludedCities?: Array<CityTarget> | undefined;
|
|
42
|
-
excludedCountries?: Array<
|
|
43
|
-
excludedPostalCodes?: Array<
|
|
48
|
+
excludedCountries?: Array<GeoTarget> | undefined;
|
|
49
|
+
excludedPostalCodes?: Array<GeoTarget> | undefined;
|
|
44
50
|
excludedRegions?: Array<RegionTarget> | undefined;
|
|
45
|
-
excludedUsDmas?: Array<
|
|
51
|
+
excludedUsDmas?: Array<GeoTarget> | undefined;
|
|
46
52
|
locationTypes?:
|
|
47
53
|
| Array<PropertyAdsGroupTargetingGeographicLocationTypes>
|
|
48
54
|
| undefined;
|
|
49
|
-
postalCodes?: Array<
|
|
55
|
+
postalCodes?: Array<GeoTarget> | undefined;
|
|
50
56
|
presenceType?: PropertyAdsGroupTargetingGeographicPresenceType | undefined;
|
|
51
57
|
regions?: Array<RegionTarget> | undefined;
|
|
52
|
-
usDmas?: Array<
|
|
58
|
+
usDmas?: Array<GeoTarget> | undefined;
|
|
53
59
|
};
|
|
54
60
|
|
|
55
61
|
/** @internal */
|
|
@@ -74,20 +80,20 @@ export const PropertyAdsGroupTargetingGeographic$inboundSchema: z.ZodType<
|
|
|
74
80
|
unknown
|
|
75
81
|
> = z.object({
|
|
76
82
|
cities: z.array(CityTarget$inboundSchema).optional(),
|
|
77
|
-
countries: z.array(
|
|
83
|
+
countries: z.array(GeoTarget$inboundSchema).optional(),
|
|
78
84
|
excluded_cities: z.array(CityTarget$inboundSchema).optional(),
|
|
79
|
-
excluded_countries: z.array(
|
|
80
|
-
excluded_postal_codes: z.array(
|
|
85
|
+
excluded_countries: z.array(GeoTarget$inboundSchema).optional(),
|
|
86
|
+
excluded_postal_codes: z.array(GeoTarget$inboundSchema).optional(),
|
|
81
87
|
excluded_regions: z.array(RegionTarget$inboundSchema).optional(),
|
|
82
|
-
excluded_us_dmas: z.array(
|
|
88
|
+
excluded_us_dmas: z.array(GeoTarget$inboundSchema).optional(),
|
|
83
89
|
location_types: z.array(
|
|
84
90
|
PropertyAdsGroupTargetingGeographicLocationTypes$inboundSchema,
|
|
85
91
|
).optional(),
|
|
86
|
-
postal_codes: z.array(
|
|
92
|
+
postal_codes: z.array(GeoTarget$inboundSchema).optional(),
|
|
87
93
|
presence_type: PropertyAdsGroupTargetingGeographicPresenceType$inboundSchema
|
|
88
94
|
.optional(),
|
|
89
95
|
regions: z.array(RegionTarget$inboundSchema).optional(),
|
|
90
|
-
us_dmas: z.array(
|
|
96
|
+
us_dmas: z.array(GeoTarget$inboundSchema).optional(),
|
|
91
97
|
}).transform((v) => {
|
|
92
98
|
return remap$(v, {
|
|
93
99
|
"excluded_cities": "excludedCities",
|
|
@@ -104,17 +110,17 @@ export const PropertyAdsGroupTargetingGeographic$inboundSchema: z.ZodType<
|
|
|
104
110
|
/** @internal */
|
|
105
111
|
export type PropertyAdsGroupTargetingGeographic$Outbound = {
|
|
106
112
|
cities?: Array<CityTarget$Outbound> | undefined;
|
|
107
|
-
countries?: Array<
|
|
113
|
+
countries?: Array<GeoTarget$Outbound> | undefined;
|
|
108
114
|
excluded_cities?: Array<CityTarget$Outbound> | undefined;
|
|
109
|
-
excluded_countries?: Array<
|
|
110
|
-
excluded_postal_codes?: Array<
|
|
115
|
+
excluded_countries?: Array<GeoTarget$Outbound> | undefined;
|
|
116
|
+
excluded_postal_codes?: Array<GeoTarget$Outbound> | undefined;
|
|
111
117
|
excluded_regions?: Array<RegionTarget$Outbound> | undefined;
|
|
112
|
-
excluded_us_dmas?: Array<
|
|
118
|
+
excluded_us_dmas?: Array<GeoTarget$Outbound> | undefined;
|
|
113
119
|
location_types?: Array<string> | undefined;
|
|
114
|
-
postal_codes?: Array<
|
|
120
|
+
postal_codes?: Array<GeoTarget$Outbound> | undefined;
|
|
115
121
|
presence_type?: string | undefined;
|
|
116
122
|
regions?: Array<RegionTarget$Outbound> | undefined;
|
|
117
|
-
us_dmas?: Array<
|
|
123
|
+
us_dmas?: Array<GeoTarget$Outbound> | undefined;
|
|
118
124
|
};
|
|
119
125
|
|
|
120
126
|
/** @internal */
|
|
@@ -124,20 +130,20 @@ export const PropertyAdsGroupTargetingGeographic$outboundSchema: z.ZodType<
|
|
|
124
130
|
PropertyAdsGroupTargetingGeographic
|
|
125
131
|
> = z.object({
|
|
126
132
|
cities: z.array(CityTarget$outboundSchema).optional(),
|
|
127
|
-
countries: z.array(
|
|
133
|
+
countries: z.array(GeoTarget$outboundSchema).optional(),
|
|
128
134
|
excludedCities: z.array(CityTarget$outboundSchema).optional(),
|
|
129
|
-
excludedCountries: z.array(
|
|
130
|
-
excludedPostalCodes: z.array(
|
|
135
|
+
excludedCountries: z.array(GeoTarget$outboundSchema).optional(),
|
|
136
|
+
excludedPostalCodes: z.array(GeoTarget$outboundSchema).optional(),
|
|
131
137
|
excludedRegions: z.array(RegionTarget$outboundSchema).optional(),
|
|
132
|
-
excludedUsDmas: z.array(
|
|
138
|
+
excludedUsDmas: z.array(GeoTarget$outboundSchema).optional(),
|
|
133
139
|
locationTypes: z.array(
|
|
134
140
|
PropertyAdsGroupTargetingGeographicLocationTypes$outboundSchema,
|
|
135
141
|
).optional(),
|
|
136
|
-
postalCodes: z.array(
|
|
142
|
+
postalCodes: z.array(GeoTarget$outboundSchema).optional(),
|
|
137
143
|
presenceType: PropertyAdsGroupTargetingGeographicPresenceType$outboundSchema
|
|
138
144
|
.optional(),
|
|
139
145
|
regions: z.array(RegionTarget$outboundSchema).optional(),
|
|
140
|
-
usDmas: z.array(
|
|
146
|
+
usDmas: z.array(GeoTarget$outboundSchema).optional(),
|
|
141
147
|
}).transform((v) => {
|
|
142
148
|
return remap$(v, {
|
|
143
149
|
excludedCities: "excluded_cities",
|
|
@@ -12,13 +12,14 @@ import {
|
|
|
12
12
|
PropertyAdsReportMetricsCampaignTargetingContentVideo,
|
|
13
13
|
PropertyAdsReportMetricsCampaignTargetingContentVideo$inboundSchema,
|
|
14
14
|
} from "./propertyadsreportmetricscampaigntargetingcontentvideo.js";
|
|
15
|
+
import { TopicTarget, TopicTarget$inboundSchema } from "./topictarget.js";
|
|
15
16
|
|
|
16
17
|
export type PropertyAdsReportMetricsCampaignTargetingContent = {
|
|
17
18
|
excludedKeywords?: Array<AdsKeyword> | undefined;
|
|
18
|
-
excludedTopics?: Array<
|
|
19
|
+
excludedTopics?: Array<TopicTarget> | undefined;
|
|
19
20
|
excludedUrls?: Array<string> | undefined;
|
|
20
21
|
keywords?: Array<AdsKeyword> | undefined;
|
|
21
|
-
topics?: Array<
|
|
22
|
+
topics?: Array<TopicTarget> | undefined;
|
|
22
23
|
urls?: Array<string> | undefined;
|
|
23
24
|
video?: PropertyAdsReportMetricsCampaignTargetingContentVideo | undefined;
|
|
24
25
|
};
|
|
@@ -31,10 +32,10 @@ export const PropertyAdsReportMetricsCampaignTargetingContent$inboundSchema:
|
|
|
31
32
|
unknown
|
|
32
33
|
> = z.object({
|
|
33
34
|
excluded_keywords: z.array(AdsKeyword$inboundSchema).optional(),
|
|
34
|
-
excluded_topics: z.array(
|
|
35
|
+
excluded_topics: z.array(TopicTarget$inboundSchema).optional(),
|
|
35
36
|
excluded_urls: z.array(z.string()).optional(),
|
|
36
37
|
keywords: z.array(AdsKeyword$inboundSchema).optional(),
|
|
37
|
-
topics: z.array(
|
|
38
|
+
topics: z.array(TopicTarget$inboundSchema).optional(),
|
|
38
39
|
urls: z.array(z.string()).optional(),
|
|
39
40
|
video: PropertyAdsReportMetricsCampaignTargetingContentVideo$inboundSchema
|
|
40
41
|
.optional(),
|
|
@@ -7,12 +7,13 @@ import { remap as remap$ } from "../../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { DeviceTarget, DeviceTarget$inboundSchema } from "./devicetarget.js";
|
|
10
11
|
|
|
11
12
|
export type PropertyAdsReportMetricsCampaignTargetingDevice = {
|
|
12
|
-
carriers?: Array<
|
|
13
|
-
types?: Array<
|
|
14
|
-
userDevice?: Array<
|
|
15
|
-
userOs?: Array<
|
|
13
|
+
carriers?: Array<DeviceTarget> | undefined;
|
|
14
|
+
types?: Array<DeviceTarget> | undefined;
|
|
15
|
+
userDevice?: Array<DeviceTarget> | undefined;
|
|
16
|
+
userOs?: Array<DeviceTarget> | undefined;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
/** @internal */
|
|
@@ -22,10 +23,10 @@ export const PropertyAdsReportMetricsCampaignTargetingDevice$inboundSchema:
|
|
|
22
23
|
z.ZodTypeDef,
|
|
23
24
|
unknown
|
|
24
25
|
> = z.object({
|
|
25
|
-
carriers: z.array(
|
|
26
|
-
types: z.array(
|
|
27
|
-
user_device: z.array(
|
|
28
|
-
user_os: z.array(
|
|
26
|
+
carriers: z.array(DeviceTarget$inboundSchema).optional(),
|
|
27
|
+
types: z.array(DeviceTarget$inboundSchema).optional(),
|
|
28
|
+
user_device: z.array(DeviceTarget$inboundSchema).optional(),
|
|
29
|
+
user_os: z.array(DeviceTarget$inboundSchema).optional(),
|
|
29
30
|
}).transform((v) => {
|
|
30
31
|
return remap$(v, {
|
|
31
32
|
"user_device": "userDevice",
|
|
@@ -10,6 +10,7 @@ import { OpenEnum } from "../../types/enums.js";
|
|
|
10
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
import { CityTarget, CityTarget$inboundSchema } from "./citytarget.js";
|
|
13
|
+
import { GeoTarget, GeoTarget$inboundSchema } from "./geotarget.js";
|
|
13
14
|
import {
|
|
14
15
|
PropertyAdsReportMetricsCampaignTargetingGeographicLocationTypes,
|
|
15
16
|
PropertyAdsReportMetricsCampaignTargetingGeographicLocationTypes$inboundSchema,
|
|
@@ -27,21 +28,21 @@ export type PropertyAdsReportMetricsCampaignTargetingGeographicPresenceType =
|
|
|
27
28
|
|
|
28
29
|
export type PropertyAdsReportMetricsCampaignTargetingGeographic = {
|
|
29
30
|
cities?: Array<CityTarget> | undefined;
|
|
30
|
-
countries?: Array<
|
|
31
|
+
countries?: Array<GeoTarget> | undefined;
|
|
31
32
|
excludedCities?: Array<CityTarget> | undefined;
|
|
32
|
-
excludedCountries?: Array<
|
|
33
|
-
excludedPostalCodes?: Array<
|
|
33
|
+
excludedCountries?: Array<GeoTarget> | undefined;
|
|
34
|
+
excludedPostalCodes?: Array<GeoTarget> | undefined;
|
|
34
35
|
excludedRegions?: Array<RegionTarget> | undefined;
|
|
35
|
-
excludedUsDmas?: Array<
|
|
36
|
+
excludedUsDmas?: Array<GeoTarget> | undefined;
|
|
36
37
|
locationTypes?:
|
|
37
38
|
| Array<PropertyAdsReportMetricsCampaignTargetingGeographicLocationTypes>
|
|
38
39
|
| undefined;
|
|
39
|
-
postalCodes?: Array<
|
|
40
|
+
postalCodes?: Array<GeoTarget> | undefined;
|
|
40
41
|
presenceType?:
|
|
41
42
|
| PropertyAdsReportMetricsCampaignTargetingGeographicPresenceType
|
|
42
43
|
| undefined;
|
|
43
44
|
regions?: Array<RegionTarget> | undefined;
|
|
44
|
-
usDmas?: Array<
|
|
45
|
+
usDmas?: Array<GeoTarget> | undefined;
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
/** @internal */
|
|
@@ -62,21 +63,21 @@ export const PropertyAdsReportMetricsCampaignTargetingGeographic$inboundSchema:
|
|
|
62
63
|
unknown
|
|
63
64
|
> = z.object({
|
|
64
65
|
cities: z.array(CityTarget$inboundSchema).optional(),
|
|
65
|
-
countries: z.array(
|
|
66
|
+
countries: z.array(GeoTarget$inboundSchema).optional(),
|
|
66
67
|
excluded_cities: z.array(CityTarget$inboundSchema).optional(),
|
|
67
|
-
excluded_countries: z.array(
|
|
68
|
-
excluded_postal_codes: z.array(
|
|
68
|
+
excluded_countries: z.array(GeoTarget$inboundSchema).optional(),
|
|
69
|
+
excluded_postal_codes: z.array(GeoTarget$inboundSchema).optional(),
|
|
69
70
|
excluded_regions: z.array(RegionTarget$inboundSchema).optional(),
|
|
70
|
-
excluded_us_dmas: z.array(
|
|
71
|
+
excluded_us_dmas: z.array(GeoTarget$inboundSchema).optional(),
|
|
71
72
|
location_types: z.array(
|
|
72
73
|
PropertyAdsReportMetricsCampaignTargetingGeographicLocationTypes$inboundSchema,
|
|
73
74
|
).optional(),
|
|
74
|
-
postal_codes: z.array(
|
|
75
|
+
postal_codes: z.array(GeoTarget$inboundSchema).optional(),
|
|
75
76
|
presence_type:
|
|
76
77
|
PropertyAdsReportMetricsCampaignTargetingGeographicPresenceType$inboundSchema
|
|
77
78
|
.optional(),
|
|
78
79
|
regions: z.array(RegionTarget$inboundSchema).optional(),
|
|
79
|
-
us_dmas: z.array(
|
|
80
|
+
us_dmas: z.array(GeoTarget$inboundSchema).optional(),
|
|
80
81
|
}).transform((v) => {
|
|
81
82
|
return remap$(v, {
|
|
82
83
|
"excluded_cities": "excludedCities",
|
|
@@ -12,13 +12,14 @@ import {
|
|
|
12
12
|
PropertyAdsReportMetricsGroupTargetingContentVideo,
|
|
13
13
|
PropertyAdsReportMetricsGroupTargetingContentVideo$inboundSchema,
|
|
14
14
|
} from "./propertyadsreportmetricsgrouptargetingcontentvideo.js";
|
|
15
|
+
import { TopicTarget, TopicTarget$inboundSchema } from "./topictarget.js";
|
|
15
16
|
|
|
16
17
|
export type PropertyAdsReportMetricsGroupTargetingContent = {
|
|
17
18
|
excludedKeywords?: Array<AdsKeyword> | undefined;
|
|
18
|
-
excludedTopics?: Array<
|
|
19
|
+
excludedTopics?: Array<TopicTarget> | undefined;
|
|
19
20
|
excludedUrls?: Array<string> | undefined;
|
|
20
21
|
keywords?: Array<AdsKeyword> | undefined;
|
|
21
|
-
topics?: Array<
|
|
22
|
+
topics?: Array<TopicTarget> | undefined;
|
|
22
23
|
urls?: Array<string> | undefined;
|
|
23
24
|
video?: PropertyAdsReportMetricsGroupTargetingContentVideo | undefined;
|
|
24
25
|
};
|
|
@@ -31,10 +32,10 @@ export const PropertyAdsReportMetricsGroupTargetingContent$inboundSchema:
|
|
|
31
32
|
unknown
|
|
32
33
|
> = z.object({
|
|
33
34
|
excluded_keywords: z.array(AdsKeyword$inboundSchema).optional(),
|
|
34
|
-
excluded_topics: z.array(
|
|
35
|
+
excluded_topics: z.array(TopicTarget$inboundSchema).optional(),
|
|
35
36
|
excluded_urls: z.array(z.string()).optional(),
|
|
36
37
|
keywords: z.array(AdsKeyword$inboundSchema).optional(),
|
|
37
|
-
topics: z.array(
|
|
38
|
+
topics: z.array(TopicTarget$inboundSchema).optional(),
|
|
38
39
|
urls: z.array(z.string()).optional(),
|
|
39
40
|
video: PropertyAdsReportMetricsGroupTargetingContentVideo$inboundSchema
|
|
40
41
|
.optional(),
|
|
@@ -7,12 +7,13 @@ import { remap as remap$ } from "../../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { DeviceTarget, DeviceTarget$inboundSchema } from "./devicetarget.js";
|
|
10
11
|
|
|
11
12
|
export type PropertyAdsReportMetricsGroupTargetingDevice = {
|
|
12
|
-
carriers?: Array<
|
|
13
|
-
types?: Array<
|
|
14
|
-
userDevice?: Array<
|
|
15
|
-
userOs?: Array<
|
|
13
|
+
carriers?: Array<DeviceTarget> | undefined;
|
|
14
|
+
types?: Array<DeviceTarget> | undefined;
|
|
15
|
+
userDevice?: Array<DeviceTarget> | undefined;
|
|
16
|
+
userOs?: Array<DeviceTarget> | undefined;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
/** @internal */
|
|
@@ -22,10 +23,10 @@ export const PropertyAdsReportMetricsGroupTargetingDevice$inboundSchema:
|
|
|
22
23
|
z.ZodTypeDef,
|
|
23
24
|
unknown
|
|
24
25
|
> = z.object({
|
|
25
|
-
carriers: z.array(
|
|
26
|
-
types: z.array(
|
|
27
|
-
user_device: z.array(
|
|
28
|
-
user_os: z.array(
|
|
26
|
+
carriers: z.array(DeviceTarget$inboundSchema).optional(),
|
|
27
|
+
types: z.array(DeviceTarget$inboundSchema).optional(),
|
|
28
|
+
user_device: z.array(DeviceTarget$inboundSchema).optional(),
|
|
29
|
+
user_os: z.array(DeviceTarget$inboundSchema).optional(),
|
|
29
30
|
}).transform((v) => {
|
|
30
31
|
return remap$(v, {
|
|
31
32
|
"user_device": "userDevice",
|
|
@@ -10,6 +10,7 @@ import { OpenEnum } from "../../types/enums.js";
|
|
|
10
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
import { CityTarget, CityTarget$inboundSchema } from "./citytarget.js";
|
|
13
|
+
import { GeoTarget, GeoTarget$inboundSchema } from "./geotarget.js";
|
|
13
14
|
import {
|
|
14
15
|
PropertyAdsReportMetricsGroupTargetingGeographicLocationTypes,
|
|
15
16
|
PropertyAdsReportMetricsGroupTargetingGeographicLocationTypes$inboundSchema,
|
|
@@ -25,21 +26,21 @@ export type PropertyAdsReportMetricsGroupTargetingGeographicPresenceType =
|
|
|
25
26
|
|
|
26
27
|
export type PropertyAdsReportMetricsGroupTargetingGeographic = {
|
|
27
28
|
cities?: Array<CityTarget> | undefined;
|
|
28
|
-
countries?: Array<
|
|
29
|
+
countries?: Array<GeoTarget> | undefined;
|
|
29
30
|
excludedCities?: Array<CityTarget> | undefined;
|
|
30
|
-
excludedCountries?: Array<
|
|
31
|
-
excludedPostalCodes?: Array<
|
|
31
|
+
excludedCountries?: Array<GeoTarget> | undefined;
|
|
32
|
+
excludedPostalCodes?: Array<GeoTarget> | undefined;
|
|
32
33
|
excludedRegions?: Array<RegionTarget> | undefined;
|
|
33
|
-
excludedUsDmas?: Array<
|
|
34
|
+
excludedUsDmas?: Array<GeoTarget> | undefined;
|
|
34
35
|
locationTypes?:
|
|
35
36
|
| Array<PropertyAdsReportMetricsGroupTargetingGeographicLocationTypes>
|
|
36
37
|
| undefined;
|
|
37
|
-
postalCodes?: Array<
|
|
38
|
+
postalCodes?: Array<GeoTarget> | undefined;
|
|
38
39
|
presenceType?:
|
|
39
40
|
| PropertyAdsReportMetricsGroupTargetingGeographicPresenceType
|
|
40
41
|
| undefined;
|
|
41
42
|
regions?: Array<RegionTarget> | undefined;
|
|
42
|
-
usDmas?: Array<
|
|
43
|
+
usDmas?: Array<GeoTarget> | undefined;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
/** @internal */
|
|
@@ -60,21 +61,21 @@ export const PropertyAdsReportMetricsGroupTargetingGeographic$inboundSchema:
|
|
|
60
61
|
unknown
|
|
61
62
|
> = z.object({
|
|
62
63
|
cities: z.array(CityTarget$inboundSchema).optional(),
|
|
63
|
-
countries: z.array(
|
|
64
|
+
countries: z.array(GeoTarget$inboundSchema).optional(),
|
|
64
65
|
excluded_cities: z.array(CityTarget$inboundSchema).optional(),
|
|
65
|
-
excluded_countries: z.array(
|
|
66
|
-
excluded_postal_codes: z.array(
|
|
66
|
+
excluded_countries: z.array(GeoTarget$inboundSchema).optional(),
|
|
67
|
+
excluded_postal_codes: z.array(GeoTarget$inboundSchema).optional(),
|
|
67
68
|
excluded_regions: z.array(RegionTarget$inboundSchema).optional(),
|
|
68
|
-
excluded_us_dmas: z.array(
|
|
69
|
+
excluded_us_dmas: z.array(GeoTarget$inboundSchema).optional(),
|
|
69
70
|
location_types: z.array(
|
|
70
71
|
PropertyAdsReportMetricsGroupTargetingGeographicLocationTypes$inboundSchema,
|
|
71
72
|
).optional(),
|
|
72
|
-
postal_codes: z.array(
|
|
73
|
+
postal_codes: z.array(GeoTarget$inboundSchema).optional(),
|
|
73
74
|
presence_type:
|
|
74
75
|
PropertyAdsReportMetricsGroupTargetingGeographicPresenceType$inboundSchema
|
|
75
76
|
.optional(),
|
|
76
77
|
regions: z.array(RegionTarget$inboundSchema).optional(),
|
|
77
|
-
us_dmas: z.array(
|
|
78
|
+
us_dmas: z.array(GeoTarget$inboundSchema).optional(),
|
|
78
79
|
}).transform((v) => {
|
|
79
80
|
return remap$(v, {
|
|
80
81
|
"excluded_cities": "excludedCities",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* content topic id from ads_target list
|
|
12
|
+
*/
|
|
13
|
+
export type TopicTarget = {
|
|
14
|
+
id: string;
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const TopicTarget$inboundSchema: z.ZodType<
|
|
20
|
+
TopicTarget,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.string(),
|
|
25
|
+
name: z.string().optional(),
|
|
26
|
+
});
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type TopicTarget$Outbound = {
|
|
29
|
+
id: string;
|
|
30
|
+
name?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const TopicTarget$outboundSchema: z.ZodType<
|
|
35
|
+
TopicTarget$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
TopicTarget
|
|
38
|
+
> = z.object({
|
|
39
|
+
id: z.string(),
|
|
40
|
+
name: z.string().optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function topicTargetToJSON(topicTarget: TopicTarget): string {
|
|
44
|
+
return JSON.stringify(TopicTarget$outboundSchema.parse(topicTarget));
|
|
45
|
+
}
|
|
46
|
+
export function topicTargetFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<TopicTarget, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => TopicTarget$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'TopicTarget' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|