@@ -20,6 +20,59 @@ module Network.Google.DFAReporting.Types.Product where
20import Network.Google.DFAReporting.Types.Sum
20import Network.Google.DFAReporting.Types.Sum
21import Network.Google.Prelude
21import Network.Google.Prelude
25+-- /See:/ 'videoOffSet' smart constructor.
26+data VideoOffSet = VideoOffSet'
27+ { _vosOffSetPercentage :: !(Maybe (Textual Int32))
28+ , _vosOffSetSeconds :: !(Maybe (Textual Int32))
29+ } deriving (Eq,Show,Data,Typeable,Generic)
31+-- | Creates a value of 'VideoOffSet' with the minimum fields required to make a request.
33+-- Use one of the following lenses to modify other fields as desired:
35+-- * 'vosOffSetPercentage'
37+-- * 'vosOffSetSeconds'
42+ { _vosOffSetPercentage = Nothing
43+ , _vosOffSetSeconds = Nothing
46+-- | Duration, as a percentage of video duration. Do not set when
47+-- offsetSeconds is set.
48+vosOffSetPercentage :: Lens' VideoOffSet (Maybe Int32)
50+ = lens _vosOffSetPercentage
51+ (\ s a -> s{_vosOffSetPercentage = a})
54+-- | Duration, in seconds. Do not set when offsetPercentage is set.
55+vosOffSetSeconds :: Lens' VideoOffSet (Maybe Int32)
57+ = lens _vosOffSetSeconds
58+ (\ s a -> s{_vosOffSetSeconds = a})
61+instance FromJSON VideoOffSet where
63+ = withObject "VideoOffSet"
66+ (o .:? "offsetPercentage") <*>
67+ (o .:? "offsetSeconds"))
69+instance ToJSON VideoOffSet where
70+ toJSON VideoOffSet'{..}
73+ [("offsetPercentage" .=) <$> _vosOffSetPercentage,
74+ ("offsetSeconds" .=) <$> _vosOffSetSeconds])
23-- | Represents the list of File resources.
76-- | Represents the list of File resources.
25-- /See:/ 'fileList' smart constructor.
78-- /See:/ 'fileList' smart constructor.
@@ -599,6 +652,84 @@ instance ToJSON GeoTargeting where
599 ("excludeCountries" .=) <$> _gtExcludeCountries,
652 ("excludeCountries" .=) <$> _gtExcludeCountries,
600 ("postalCodes" .=) <$> _gtPostalCodes])
653 ("postalCodes" .=) <$> _gtPostalCodes])
657+-- /See:/ 'videoSettings' smart constructor.
658+data VideoSettings = VideoSettings'
660+ , _vsCompanionSettings :: !(Maybe CompanionSetting)
661+ , _vsTranscodeSettings :: !(Maybe TranscodeSetting)
662+ , _vsSkippableSettings :: !(Maybe SkippableSetting)
663+ } deriving (Eq,Show,Data,Typeable,Generic)
665+-- | Creates a value of 'VideoSettings' with the minimum fields required to make a request.
667+-- Use one of the following lenses to modify other fields as desired:
671+-- * 'vsCompanionSettings'
673+-- * 'vsTranscodeSettings'
675+-- * 'vsSkippableSettings'
680+ { _vsKind = "dfareporting#videoSettings"
681+ , _vsCompanionSettings = Nothing
682+ , _vsTranscodeSettings = Nothing
683+ , _vsSkippableSettings = Nothing
686+-- | Identifies what kind of resource this is. Value: the fixed string
687+-- \"dfareporting#videoSettings\".
688+vsKind :: Lens' VideoSettings Text
689+vsKind = lens _vsKind (\ s a -> s{_vsKind = a})
691+-- | Settings for the companion creatives of video creatives served to this
693+vsCompanionSettings :: Lens' VideoSettings (Maybe CompanionSetting)
695+ = lens _vsCompanionSettings
696+ (\ s a -> s{_vsCompanionSettings = a})
698+-- | Settings for the transcodes of video creatives served to this placement.
699+-- If this object is provided, the creative-level transcode settings will
701+vsTranscodeSettings :: Lens' VideoSettings (Maybe TranscodeSetting)
703+ = lens _vsTranscodeSettings
704+ (\ s a -> s{_vsTranscodeSettings = a})
706+-- | Settings for the skippability of video creatives served to this
707+-- placement. If this object is provided, the creative-level skippable
708+-- settings will be overridden.
709+vsSkippableSettings :: Lens' VideoSettings (Maybe SkippableSetting)
711+ = lens _vsSkippableSettings
712+ (\ s a -> s{_vsSkippableSettings = a})
714+instance FromJSON VideoSettings where
716+ = withObject "VideoSettings"
719+ (o .:? "kind" .!= "dfareporting#videoSettings") <*>
720+ (o .:? "companionSettings")
721+ <*> (o .:? "transcodeSettings")
722+ <*> (o .:? "skippableSettings"))
724+instance ToJSON VideoSettings where
725+ toJSON VideoSettings'{..}
728+ [Just ("kind" .= _vsKind),
729+ ("companionSettings" .=) <$> _vsCompanionSettings,
730+ ("transcodeSettings" .=) <$> _vsTranscodeSettings,
731+ ("skippableSettings" .=) <$> _vsSkippableSettings])
602-- | Represents fields that are compatible to be selected for a report of
733-- | Represents fields that are compatible to be selected for a report of
603-- type \"REACH\".
734-- type \"REACH\".
@@ -2211,6 +2342,90 @@ instance ToJSON FloodlightActivityDynamicTag where
2211 [("tag" .=) <$> _fadtTag, ("name" .=) <$> _fadtName,
2342 [("tag" .=) <$> _fadtTag, ("name" .=) <$> _fadtName,
2212 ("id" .=) <$> _fadtId])
2343 ("id" .=) <$> _fadtId])
2345+-- | Contains information about supported video formats.
2347+-- /See:/ 'videoFormat' smart constructor.
2348+data VideoFormat = VideoFormat'
2350+ , _vfFileType :: !(Maybe VideoFormatFileType)
2351+ , _vfResolution :: !(Maybe Size)
2352+ , _vfTargetBitRate :: !(Maybe (Textual Int32))
2353+ , _vfId :: !(Maybe (Textual Int32))
2354+ } deriving (Eq,Show,Data,Typeable,Generic)
2356+-- | Creates a value of 'VideoFormat' with the minimum fields required to make a request.
2358+-- Use one of the following lenses to modify other fields as desired:
2366+-- * 'vfTargetBitRate'
2373+ { _vfKind = "dfareporting#videoFormat"
2374+ , _vfFileType = Nothing
2375+ , _vfResolution = Nothing
2376+ , _vfTargetBitRate = Nothing
2380+-- | Identifies what kind of resource this is. Value: the fixed string
2381+-- \"dfareporting#videoFormat\".
2382+vfKind :: Lens' VideoFormat Text
2383+vfKind = lens _vfKind (\ s a -> s{_vfKind = a})
2385+-- | File type of the video format.
2386+vfFileType :: Lens' VideoFormat (Maybe VideoFormatFileType)
2388+ = lens _vfFileType (\ s a -> s{_vfFileType = a})
2390+-- | The resolution of this video format.
2391+vfResolution :: Lens' VideoFormat (Maybe Size)
2393+ = lens _vfResolution (\ s a -> s{_vfResolution = a})
2395+-- | The target bit rate of this video format.
2396+vfTargetBitRate :: Lens' VideoFormat (Maybe Int32)
2398+ = lens _vfTargetBitRate
2399+ (\ s a -> s{_vfTargetBitRate = a})
2402+-- | ID of the video format.
2403+vfId :: Lens' VideoFormat (Maybe Int32)
2405+ = lens _vfId (\ s a -> s{_vfId = a}) .
2408+instance FromJSON VideoFormat where
2410+ = withObject "VideoFormat"
2413+ (o .:? "kind" .!= "dfareporting#videoFormat") <*>
2415+ <*> (o .:? "resolution")
2416+ <*> (o .:? "targetBitRate")
2419+instance ToJSON VideoFormat where
2420+ toJSON VideoFormat'{..}
2423+ [Just ("kind" .= _vfKind),
2424+ ("fileType" .=) <$> _vfFileType,
2425+ ("resolution" .=) <$> _vfResolution,
2426+ ("targetBitRate" .=) <$> _vfTargetBitRate,
2427+ ("id" .=) <$> _vfId])
2214-- | DirectorySites contains properties of a website from the Site Directory.
2429-- | DirectorySites contains properties of a website from the Site Directory.
2215-- Sites need to be added to an account via the Sites resource before they
2430-- Sites need to be added to an account via the Sites resource before they
2216-- can be assigned to a placement.
2431-- can be assigned to a placement.
@@ -4236,7 +4451,7 @@ aEventTagOverrides
4236 . _Default
4451 . _Default
4237 . _Coerce
4452 . _Coerce
4239−-- | Whether this ad is active.
4454+-- | Whether this ad is active. When true, archived must be false.
4240aActive :: Lens' Ad (Maybe Bool)
4455aActive :: Lens' Ad (Maybe Bool)
4241aActive = lens _aActive (\ s a -> s{_aActive = a})
4456aActive = lens _aActive (\ s a -> s{_aActive = a})
@@ -4345,7 +4560,7 @@ aCompatibility
4345 = lens _aCompatibility
4560 = lens _aCompatibility
4346 (\ s a -> s{_aCompatibility = a})
4561 (\ s a -> s{_aCompatibility = a})
4348−-- | Whether this ad is archived.
4563+-- | Whether this ad is archived. When true, active must be false.
4349aArchived :: Lens' Ad (Maybe Bool)
4564aArchived :: Lens' Ad (Maybe Bool)
4350aArchived
4565aArchived
4351 = lens _aArchived (\ s a -> s{_aArchived = a})
4566 = lens _aArchived (\ s a -> s{_aArchived = a})
@@ -5025,6 +5240,78 @@ instance ToJSON ObjectFilter where
5025 Just ("kind" .= _ofKind),
5240 Just ("kind" .= _ofKind),
5026 ("objectIds" .=) <$> _ofObjectIds])
5241 ("objectIds" .=) <$> _ofObjectIds])
5243+-- | Skippable Settings
5245+-- /See:/ 'skippableSetting' smart constructor.
5246+data SkippableSetting = SkippableSetting'
5247+ { _ssSkipOffSet :: !(Maybe VideoOffSet)
5248+ , _ssProgressOffSet :: !(Maybe VideoOffSet)
5250+ , _ssSkippable :: !(Maybe Bool)
5251+ } deriving (Eq,Show,Data,Typeable,Generic)
5253+-- | Creates a value of 'SkippableSetting' with the minimum fields required to make a request.
5255+-- Use one of the following lenses to modify other fields as desired:
5259+-- * 'ssProgressOffSet'
5265+ :: SkippableSetting
5268+ { _ssSkipOffSet = Nothing
5269+ , _ssProgressOffSet = Nothing
5270+ , _ssKind = "dfareporting#skippableSetting"
5271+ , _ssSkippable = Nothing
5274+-- | Amount of time to play videos served to this placement before the skip
5275+-- button should appear. Applicable when skippable is true.
5276+ssSkipOffSet :: Lens' SkippableSetting (Maybe VideoOffSet)
5278+ = lens _ssSkipOffSet (\ s a -> s{_ssSkipOffSet = a})
5280+-- | Amount of time to play videos served to this placement before counting a
5281+-- view. Applicable when skippable is true.
5282+ssProgressOffSet :: Lens' SkippableSetting (Maybe VideoOffSet)
5284+ = lens _ssProgressOffSet
5285+ (\ s a -> s{_ssProgressOffSet = a})
5287+-- | Identifies what kind of resource this is. Value: the fixed string
5288+-- \"dfareporting#skippableSetting\".
5289+ssKind :: Lens' SkippableSetting Text
5290+ssKind = lens _ssKind (\ s a -> s{_ssKind = a})
5292+-- | Whether the user can skip creatives served to this placement.
5293+ssSkippable :: Lens' SkippableSetting (Maybe Bool)
5295+ = lens _ssSkippable (\ s a -> s{_ssSkippable = a})
5297+instance FromJSON SkippableSetting where
5299+ = withObject "SkippableSetting"
5301+ SkippableSetting' <$>
5302+ (o .:? "skipOffset") <*> (o .:? "progressOffset") <*>
5303+ (o .:? "kind" .!= "dfareporting#skippableSetting")
5304+ <*> (o .:? "skippable"))
5306+instance ToJSON SkippableSetting where
5307+ toJSON SkippableSetting'{..}
5310+ [("skipOffset" .=) <$> _ssSkipOffSet,
5311+ ("progressOffset" .=) <$> _ssProgressOffSet,
5312+ Just ("kind" .= _ssKind),
5313+ ("skippable" .=) <$> _ssSkippable])
5028-- | Reporting Configuration
5315-- | Reporting Configuration
5030-- /See:/ 'reportsConfiguration' smart constructor.
5317-- /See:/ 'reportsConfiguration' smart constructor.
@@ -7015,6 +7302,7 @@ data Creative = Creative'
7015 , _creBackupImageTargetWindow :: !(Maybe TargetWindow)
7302 , _creBackupImageTargetWindow :: !(Maybe TargetWindow)
7016 , _creRenderingIdDimensionValue :: !(Maybe DimensionValue)
7303 , _creRenderingIdDimensionValue :: !(Maybe DimensionValue)
7017 , _creCustomKeyValues :: !(Maybe [Text])
7304 , _creCustomKeyValues :: !(Maybe [Text])
7305+ , _creSkipOffSet :: !(Maybe VideoOffSet)
7018 , _creVideoDuration :: !(Maybe (Textual Double))
7306 , _creVideoDuration :: !(Maybe (Textual Double))
7019 , _creRenderingId :: !(Maybe (Textual Int64))
7307 , _creRenderingId :: !(Maybe (Textual Int64))
7020 , _creThirdPartyBackupImageImpressionsURL :: !(Maybe Text)
7308 , _creThirdPartyBackupImageImpressionsURL :: !(Maybe Text)
@@ -7025,6 +7313,7 @@ data Creative = Creative'
7025 , _creAuthoringTool :: !(Maybe CreativeAuthoringTool)
7313 , _creAuthoringTool :: !(Maybe CreativeAuthoringTool)
7026 , _creSize :: !(Maybe Size)
7314 , _creSize :: !(Maybe Size)
7027 , _creThirdPartyURLs :: !(Maybe [ThirdPartyTrackingURL])
7315 , _creThirdPartyURLs :: !(Maybe [ThirdPartyTrackingURL])
7316+ , _creProgressOffSet :: !(Maybe VideoOffSet)
7028 , _creCounterCustomEvents :: !(Maybe [CreativeCustomEvent])
7317 , _creCounterCustomEvents :: !(Maybe [CreativeCustomEvent])
7029 , _creKind :: !Text
7318 , _creKind :: !Text
7030 , _creSSLOverride :: !(Maybe Bool)
7319 , _creSSLOverride :: !(Maybe Bool)
@@ -7085,6 +7374,8 @@ data Creative = Creative'
7086-- * 'creCustomKeyValues'
7375-- * 'creCustomKeyValues'
7377+-- * 'creSkipOffSet'
7088-- * 'creVideoDuration'
7379-- * 'creVideoDuration'
7090-- * 'creRenderingId'
7381-- * 'creRenderingId'
@@ -7105,6 +7396,8 @@ data Creative = Creative'
7106-- * 'creThirdPartyURLs'
7397-- * 'creThirdPartyURLs'
7399+-- * 'creProgressOffSet'
7108-- * 'creCounterCustomEvents'
7401-- * 'creCounterCustomEvents'
7110-- * 'creKind'
7403-- * 'creKind'
@@ -7204,6 +7497,7 @@ creative =
7204 , _creBackupImageTargetWindow = Nothing
7497 , _creBackupImageTargetWindow = Nothing
7205 , _creRenderingIdDimensionValue = Nothing
7498 , _creRenderingIdDimensionValue = Nothing
7206 , _creCustomKeyValues = Nothing
7499 , _creCustomKeyValues = Nothing
7500+ , _creSkipOffSet = Nothing
7207 , _creVideoDuration = Nothing
7501 , _creVideoDuration = Nothing
7208 , _creRenderingId = Nothing
7502 , _creRenderingId = Nothing
7209 , _creThirdPartyBackupImageImpressionsURL = Nothing
7503 , _creThirdPartyBackupImageImpressionsURL = Nothing
@@ -7214,6 +7508,7 @@ creative =
7214 , _creAuthoringTool = Nothing
7508 , _creAuthoringTool = Nothing
7215 , _creSize = Nothing
7509 , _creSize = Nothing
7216 , _creThirdPartyURLs = Nothing
7510 , _creThirdPartyURLs = Nothing
7511+ , _creProgressOffSet = Nothing
7217 , _creCounterCustomEvents = Nothing
7512 , _creCounterCustomEvents = Nothing
7218 , _creKind = "dfareporting#creative"
7513 , _creKind = "dfareporting#creative"
7219 , _creSSLOverride = Nothing
7514 , _creSSLOverride = Nothing
@@ -7300,6 +7595,13 @@ creCustomKeyValues
7300 . _Default
7595 . _Default
7301 . _Coerce
7596 . _Coerce
7598+-- | Amount of time to play the video before the skip button appears.
7599+-- Applicable to the following creative types: all INSTREAM_VIDEO.
7600+creSkipOffSet :: Lens' Creative (Maybe VideoOffSet)
7602+ = lens _creSkipOffSet
7603+ (\ s a -> s{_creSkipOffSet = a})
7303-- | Creative video duration in seconds. This is a read-only field.
7605-- | Creative video duration in seconds. This is a read-only field.
7304-- Applicable to the following creative types: INSTREAM_VIDEO, all
7606-- Applicable to the following creative types: INSTREAM_VIDEO, all
7305-- RICH_MEDIA, and all VPAID.
7607-- RICH_MEDIA, and all VPAID.
@@ -7386,6 +7688,13 @@ creThirdPartyURLs
7386 . _Default
7688 . _Default
7387 . _Coerce
7689 . _Coerce
7691+-- | Amount of time to play the video before counting a view. Applicable to
7692+-- the following creative types: all INSTREAM_VIDEO.
7693+creProgressOffSet :: Lens' Creative (Maybe VideoOffSet)
7695+ = lens _creProgressOffSet
7696+ (\ s a -> s{_creProgressOffSet = a})
7389-- | List of counter events configured for the creative. For
7698-- | List of counter events configured for the creative. For
7390-- DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated
7699-- DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated
7391-- from clickTags. Applicable to the following creative types:
7700-- from clickTags. Applicable to the following creative types:
@@ -7804,6 +8113,7 @@ instance FromJSON Creative where
7804 (o .:? "backupImageTargetWindow")
8113 (o .:? "backupImageTargetWindow")
7805 <*> (o .:? "renderingIdDimensionValue")
8114 <*> (o .:? "renderingIdDimensionValue")
7806 <*> (o .:? "customKeyValues" .!= mempty)
8115 <*> (o .:? "customKeyValues" .!= mempty)
8116+ <*> (o .:? "skipOffset")
7807 <*> (o .:? "videoDuration")
8117 <*> (o .:? "videoDuration")
7808 <*> (o .:? "renderingId")
8118 <*> (o .:? "renderingId")
7809 <*> (o .:? "thirdPartyBackupImageImpressionsUrl")
8119 <*> (o .:? "thirdPartyBackupImageImpressionsUrl")
@@ -7814,6 +8124,7 @@ instance FromJSON Creative where
7814 <*> (o .:? "authoringTool")
8124 <*> (o .:? "authoringTool")
7815 <*> (o .:? "size")
8125 <*> (o .:? "size")
7816 <*> (o .:? "thirdPartyUrls" .!= mempty)
8126 <*> (o .:? "thirdPartyUrls" .!= mempty)
8127+ <*> (o .:? "progressOffset")
7817 <*> (o .:? "counterCustomEvents" .!= mempty)
8128 <*> (o .:? "counterCustomEvents" .!= mempty)
7818 <*> (o .:? "kind" .!= "dfareporting#creative")
8129 <*> (o .:? "kind" .!= "dfareporting#creative")
7819 <*> (o .:? "sslOverride")
8130 <*> (o .:? "sslOverride")
@@ -7872,6 +8183,7 @@ instance ToJSON Creative where
7872 ("renderingIdDimensionValue" .=) <$>
8183 ("renderingIdDimensionValue" .=) <$>
7873 _creRenderingIdDimensionValue,
8184 _creRenderingIdDimensionValue,
7874 ("customKeyValues" .=) <$> _creCustomKeyValues,
8185 ("customKeyValues" .=) <$> _creCustomKeyValues,
8186+ ("skipOffset" .=) <$> _creSkipOffSet,
7875 ("videoDuration" .=) <$> _creVideoDuration,
8187 ("videoDuration" .=) <$> _creVideoDuration,
7876 ("renderingId" .=) <$> _creRenderingId,
8188 ("renderingId" .=) <$> _creRenderingId,
7877 ("thirdPartyBackupImageImpressionsUrl" .=) <$>
8189 ("thirdPartyBackupImageImpressionsUrl" .=) <$>
@@ -7884,6 +8196,7 @@ instance ToJSON Creative where
7884 ("authoringTool" .=) <$> _creAuthoringTool,
8196 ("authoringTool" .=) <$> _creAuthoringTool,
7885 ("size" .=) <$> _creSize,
8197 ("size" .=) <$> _creSize,
7886 ("thirdPartyUrls" .=) <$> _creThirdPartyURLs,
8198 ("thirdPartyUrls" .=) <$> _creThirdPartyURLs,
8199+ ("progressOffset" .=) <$> _creProgressOffSet,
7887 ("counterCustomEvents" .=) <$>
8200 ("counterCustomEvents" .=) <$>
7888 _creCounterCustomEvents,
8201 _creCounterCustomEvents,
7889 Just ("kind" .= _creKind),
8202 Just ("kind" .= _creKind),
@@ -9069,13 +9382,14 @@ instance ToJSON BrowsersListResponse where
9070-- /See:/ 'siteSettings' smart constructor.
9383-- /See:/ 'siteSettings' smart constructor.
9071data SiteSettings = SiteSettings'
9384data SiteSettings = SiteSettings'
9072− { _ssDisableNewCookie :: !(Maybe Bool)
9385+ { _ssDisableNewCookie :: !(Maybe Bool)
9386+ , _ssVideoActiveViewOptOutTemplate :: !(Maybe Bool)
9073− , _ssDisableBrandSafeAds :: !(Maybe Bool)
9387+ , _ssDisableBrandSafeAds :: !(Maybe Bool)
9074− , _ssLookbackConfiguration :: !(Maybe LookbackConfiguration)
9388+ , _ssLookbackConfiguration :: !(Maybe LookbackConfiguration)
9075− , _ssTagSetting :: !(Maybe TagSetting)
9389+ , _ssTagSetting :: !(Maybe TagSetting)
9076− , _ssActiveViewOptOut :: !(Maybe Bool)
9390+ , _ssActiveViewOptOut :: !(Maybe Bool)
9077− , _ssVideoActiveViewOptOut :: !(Maybe Bool)
9391+ , _ssVpaidAdapterChoiceTemplate :: !(Maybe SiteSettingsVpaidAdapterChoiceTemplate)
9078− , _ssCreativeSettings :: !(Maybe CreativeSettings)
9392+ , _ssCreativeSettings :: !(Maybe CreativeSettings)
9079 } deriving (Eq,Show,Data,Typeable,Generic)
9393 } deriving (Eq,Show,Data,Typeable,Generic)
9081-- | Creates a value of 'SiteSettings' with the minimum fields required to make a request.
9395-- | Creates a value of 'SiteSettings' with the minimum fields required to make a request.
@@ -9084,6 +9398,8 @@ data SiteSettings = SiteSettings'
9085-- * 'ssDisableNewCookie'
9399-- * 'ssDisableNewCookie'
9401+-- * 'ssVideoActiveViewOptOutTemplate'
9087-- * 'ssDisableBrandSafeAds'
9403-- * 'ssDisableBrandSafeAds'
9089-- * 'ssLookbackConfiguration'
9405-- * 'ssLookbackConfiguration'
@@ -9092,7 +9408,7 @@ data SiteSettings = SiteSettings'
9093-- * 'ssActiveViewOptOut'
9409-- * 'ssActiveViewOptOut'
9095−-- * 'ssVideoActiveViewOptOut'
9411+-- * 'ssVpaidAdapterChoiceTemplate'
9097-- * 'ssCreativeSettings'
9413-- * 'ssCreativeSettings'
9098siteSettings
9414siteSettings
@@ -9100,11 +9416,12 @@ siteSettings
9100siteSettings =
9416siteSettings =
9101 SiteSettings'
9417 SiteSettings'
9102 { _ssDisableNewCookie = Nothing
9418 { _ssDisableNewCookie = Nothing
9419+ , _ssVideoActiveViewOptOutTemplate = Nothing
9103 , _ssDisableBrandSafeAds = Nothing
9420 , _ssDisableBrandSafeAds = Nothing
9104 , _ssLookbackConfiguration = Nothing
9421 , _ssLookbackConfiguration = Nothing
9105 , _ssTagSetting = Nothing
9422 , _ssTagSetting = Nothing
9106 , _ssActiveViewOptOut = Nothing
9423 , _ssActiveViewOptOut = Nothing
9107− , _ssVideoActiveViewOptOut = Nothing
9424+ , _ssVpaidAdapterChoiceTemplate = Nothing
9108 , _ssCreativeSettings = Nothing
9425 , _ssCreativeSettings = Nothing
@@ -9114,6 +9431,15 @@ ssDisableNewCookie
9114 = lens _ssDisableNewCookie
9431 = lens _ssDisableNewCookie
9115 (\ s a -> s{_ssDisableNewCookie = a})
9432 (\ s a -> s{_ssDisableNewCookie = a})
9434+-- | Whether Verification and ActiveView for in-stream video creatives are
9435+-- disabled by default for new placements created under this site. This
9436+-- value will be used to populate the placement.videoActiveViewOptOut
9437+-- field, when no value is specified for the new placement.
9438+ssVideoActiveViewOptOutTemplate :: Lens' SiteSettings (Maybe Bool)
9439+ssVideoActiveViewOptOutTemplate
9440+ = lens _ssVideoActiveViewOptOutTemplate
9441+ (\ s a -> s{_ssVideoActiveViewOptOutTemplate = a})
9117-- | Whether brand safe ads are disabled for this site.
9443-- | Whether brand safe ads are disabled for this site.
9118ssDisableBrandSafeAds :: Lens' SiteSettings (Maybe Bool)
9444ssDisableBrandSafeAds :: Lens' SiteSettings (Maybe Bool)
9119ssDisableBrandSafeAds
9445ssDisableBrandSafeAds
@@ -9137,18 +9463,19 @@ ssActiveViewOptOut
9137 = lens _ssActiveViewOptOut
9463 = lens _ssActiveViewOptOut
9138 (\ s a -> s{_ssActiveViewOptOut = a})
9464 (\ s a -> s{_ssActiveViewOptOut = a})
9140−-- | Whether Verification and ActiveView are disabled for in-stream video
9466+-- | Default VPAID adapter setting for new placements created under this
9141−-- creatives on this site. The same setting videoActiveViewOptOut exists on
9467+-- site. This value will be used to populate the
9142−-- the directory site level -- the opt out occurs if either of these
9468+-- placements.vpaidAdapterChoice field, when no value is specified for the
9143−-- settings are true. These settings are distinct from
9469+-- new placement. Controls which VPAID format the measurement adapter will
9144−-- DirectorySites.settings.activeViewOptOut or
9470+-- use for in-stream video creatives assigned to the placement. The
9145−-- Sites.siteSettings.activeViewOptOut which only apply to display ads.
9471+-- publisher\'s specifications will typically determine this setting. For
9146−-- However, Accounts.activeViewOptOut opts out both video traffic, as well
9472+-- VPAID creatives, the adapter format will match the VPAID format (HTML5
9147−-- as display ads, from Verification and ActiveView.
9473+-- VPAID creatives use the HTML5 adapter, and Flash VPAID creatives use the
9148−ssVideoActiveViewOptOut :: Lens' SiteSettings (Maybe Bool)
9474+-- Flash adapter).
9149−ssVideoActiveViewOptOut
9475+ssVpaidAdapterChoiceTemplate :: Lens' SiteSettings (Maybe SiteSettingsVpaidAdapterChoiceTemplate)
9150− = lens _ssVideoActiveViewOptOut
9476+ssVpaidAdapterChoiceTemplate
9151− (\ s a -> s{_ssVideoActiveViewOptOut = a})
9477+ = lens _ssVpaidAdapterChoiceTemplate
9478+ (\ s a -> s{_ssVpaidAdapterChoiceTemplate = a})
9153-- | Site-wide creative settings.
9480-- | Site-wide creative settings.
9154ssCreativeSettings :: Lens' SiteSettings (Maybe CreativeSettings)
9481ssCreativeSettings :: Lens' SiteSettings (Maybe CreativeSettings)
@@ -9162,11 +9489,12 @@ instance FromJSON SiteSettings where
9163 SiteSettings' <$>
9490 SiteSettings' <$>
9164 (o .:? "disableNewCookie") <*>
9491 (o .:? "disableNewCookie") <*>
9492+ (o .:? "videoActiveViewOptOutTemplate")
9165− (o .:? "disableBrandSafeAds")
9493+ <*> (o .:? "disableBrandSafeAds")
9166 <*> (o .:? "lookbackConfiguration")
9494 <*> (o .:? "lookbackConfiguration")
9167 <*> (o .:? "tagSetting")
9495 <*> (o .:? "tagSetting")
9168 <*> (o .:? "activeViewOptOut")
9496 <*> (o .:? "activeViewOptOut")
9169− <*> (o .:? "videoActiveViewOptOut")
9497+ <*> (o .:? "vpaidAdapterChoiceTemplate")
9170 <*> (o .:? "creativeSettings"))
9498 <*> (o .:? "creativeSettings"))
9172instance ToJSON SiteSettings where
9500instance ToJSON SiteSettings where
@@ -9174,14 +9502,16 @@ instance ToJSON SiteSettings where
9174 = object
9502 = object
9175 (catMaybes
9503 (catMaybes
9176 [("disableNewCookie" .=) <$> _ssDisableNewCookie,
9504 [("disableNewCookie" .=) <$> _ssDisableNewCookie,
9505+ ("videoActiveViewOptOutTemplate" .=) <$>
9506+ _ssVideoActiveViewOptOutTemplate,
9177 ("disableBrandSafeAds" .=) <$>
9507 ("disableBrandSafeAds" .=) <$>
9178 _ssDisableBrandSafeAds,
9508 _ssDisableBrandSafeAds,
9179 ("lookbackConfiguration" .=) <$>
9509 ("lookbackConfiguration" .=) <$>
9180 _ssLookbackConfiguration,
9510 _ssLookbackConfiguration,
9181 ("tagSetting" .=) <$> _ssTagSetting,
9511 ("tagSetting" .=) <$> _ssTagSetting,
9182 ("activeViewOptOut" .=) <$> _ssActiveViewOptOut,
9512 ("activeViewOptOut" .=) <$> _ssActiveViewOptOut,
9183− ("videoActiveViewOptOut" .=) <$>
9513+ ("vpaidAdapterChoiceTemplate" .=) <$>
9184− _ssVideoActiveViewOptOut,
9514+ _ssVpaidAdapterChoiceTemplate,
9185 ("creativeSettings" .=) <$> _ssCreativeSettings])
9515 ("creativeSettings" .=) <$> _ssCreativeSettings])
9187-- | Content Category List Response
9517-- | Content Category List Response
@@ -14993,6 +15323,58 @@ instance ToJSON UserRole where
14993 ("permissions" .=) <$> _urPermissions,
15323 ("permissions" .=) <$> _urPermissions,
14994 ("subaccountId" .=) <$> _urSubAccountId])
15324 ("subaccountId" .=) <$> _urSubAccountId])
15326+-- | Video Format List Response
15328+-- /See:/ 'videoFormatsListResponse' smart constructor.
15329+data VideoFormatsListResponse = VideoFormatsListResponse'
15330+ { _vflrKind :: !Text
15331+ , _vflrVideoFormats :: !(Maybe [VideoFormat])
15332+ } deriving (Eq,Show,Data,Typeable,Generic)
15334+-- | Creates a value of 'VideoFormatsListResponse' with the minimum fields required to make a request.
15336+-- Use one of the following lenses to modify other fields as desired:
15340+-- * 'vflrVideoFormats'
15341+videoFormatsListResponse
15342+ :: VideoFormatsListResponse
15343+videoFormatsListResponse =
15344+ VideoFormatsListResponse'
15345+ { _vflrKind = "dfareporting#videoFormatsListResponse"
15346+ , _vflrVideoFormats = Nothing
15349+-- | Identifies what kind of resource this is. Value: the fixed string
15350+-- \"dfareporting#videoFormatsListResponse\".
15351+vflrKind :: Lens' VideoFormatsListResponse Text
15352+vflrKind = lens _vflrKind (\ s a -> s{_vflrKind = a})
15354+-- | Video format collection.
15355+vflrVideoFormats :: Lens' VideoFormatsListResponse [VideoFormat]
15357+ = lens _vflrVideoFormats
15358+ (\ s a -> s{_vflrVideoFormats = a})
15362+instance FromJSON VideoFormatsListResponse where
15364+ = withObject "VideoFormatsListResponse"
15366+ VideoFormatsListResponse' <$>
15368+ "dfareporting#videoFormatsListResponse")
15369+ <*> (o .:? "videoFormats" .!= mempty))
15371+instance ToJSON VideoFormatsListResponse where
15372+ toJSON VideoFormatsListResponse'{..}
15375+ [Just ("kind" .= _vflrKind),
15376+ ("videoFormats" .=) <$> _vflrVideoFormats])
14996-- | Directory Site List Response
15378-- | Directory Site List Response
14998-- /See:/ 'directorySitesListResponse' smart constructor.
15380-- /See:/ 'directorySitesListResponse' smart constructor.
@@ -16037,6 +16419,81 @@ instance ToJSON FloodlightConfiguration where
16037 ("standardVariableTypes" .=) <$>
16419 ("standardVariableTypes" .=) <$>
16038 _fcStandardVariableTypes])
16420 _fcStandardVariableTypes])
16422+-- | Companion Settings
16424+-- /See:/ 'companionSetting' smart constructor.
16425+data CompanionSetting = CompanionSetting'
16426+ { _comKind :: !Text
16427+ , _comImageOnly :: !(Maybe Bool)
16428+ , _comCompanionsDisabled :: !(Maybe Bool)
16429+ , _comEnabledSizes :: !(Maybe [Size])
16430+ } deriving (Eq,Show,Data,Typeable,Generic)
16432+-- | Creates a value of 'CompanionSetting' with the minimum fields required to make a request.
16434+-- Use one of the following lenses to modify other fields as desired:
16438+-- * 'comImageOnly'
16440+-- * 'comCompanionsDisabled'
16442+-- * 'comEnabledSizes'
16444+ :: CompanionSetting
16447+ { _comKind = "dfareporting#companionSetting"
16448+ , _comImageOnly = Nothing
16449+ , _comCompanionsDisabled = Nothing
16450+ , _comEnabledSizes = Nothing
16453+-- | Identifies what kind of resource this is. Value: the fixed string
16454+-- \"dfareporting#companionSetting\".
16455+comKind :: Lens' CompanionSetting Text
16456+comKind = lens _comKind (\ s a -> s{_comKind = a})
16458+-- | Whether to serve only static images as companions.
16459+comImageOnly :: Lens' CompanionSetting (Maybe Bool)
16461+ = lens _comImageOnly (\ s a -> s{_comImageOnly = a})
16463+-- | Whether companions are disabled for this placement.
16464+comCompanionsDisabled :: Lens' CompanionSetting (Maybe Bool)
16465+comCompanionsDisabled
16466+ = lens _comCompanionsDisabled
16467+ (\ s a -> s{_comCompanionsDisabled = a})
16469+-- | Whitelist of companion sizes to be served to this placement. Set this
16470+-- list to null or empty to serve all companion sizes.
16471+comEnabledSizes :: Lens' CompanionSetting [Size]
16473+ = lens _comEnabledSizes
16474+ (\ s a -> s{_comEnabledSizes = a})
16478+instance FromJSON CompanionSetting where
16480+ = withObject "CompanionSetting"
16482+ CompanionSetting' <$>
16483+ (o .:? "kind" .!= "dfareporting#companionSetting")
16484+ <*> (o .:? "imageOnly")
16485+ <*> (o .:? "companionsDisabled")
16486+ <*> (o .:? "enabledSizes" .!= mempty))
16488+instance ToJSON CompanionSetting where
16489+ toJSON CompanionSetting'{..}
16492+ [Just ("kind" .= _comKind),
16493+ ("imageOnly" .=) <$> _comImageOnly,
16494+ ("companionsDisabled" .=) <$> _comCompanionsDisabled,
16495+ ("enabledSizes" .=) <$> _comEnabledSizes])
16040-- | Floodlight Activity Group List Response
16497-- | Floodlight Activity Group List Response
16042-- /See:/ 'floodlightActivityGroupsListResponse' smart constructor.
16499-- /See:/ 'floodlightActivityGroupsListResponse' smart constructor.
@@ -16196,7 +16653,9 @@ conoTimestampMicros
16196 (\ s a -> s{_conoTimestampMicros = a})
16653 (\ s a -> s{_conoTimestampMicros = a})
16197 . mapping _Coerce
16654 . mapping _Coerce
16199−-- | Whether the user has Limit Ad Tracking set.
16656+-- | Whether Limit Ad Tracking is enabled. When set to true, the conversion
16657+-- will be used for reporting but not targeting. This will prevent
16200conoLimitAdTracking :: Lens' Conversion (Maybe Bool)
16659conoLimitAdTracking :: Lens' Conversion (Maybe Bool)
16201conoLimitAdTracking
16660conoLimitAdTracking
16202 = lens _conoLimitAdTracking
16661 = lens _conoLimitAdTracking
@@ -18014,144 +18473,145 @@ instance ToJSON Recipient where
18015-- /See:/ 'site' smart constructor.
18474-- /See:/ 'site' smart constructor.
18016data Site = Site'
18475data Site = Site'
18017− { _ssKind :: !Text
18476+ { _sitiKind :: !Text
18018− , _ssKeyName :: !(Maybe Text)
18477+ , _sitiKeyName :: !(Maybe Text)
18019− , _ssSiteContacts :: !(Maybe [SiteContact])
18478+ , _sitiSiteContacts :: !(Maybe [SiteContact])
18020− , _ssSiteSettings :: !(Maybe SiteSettings)
18479+ , _sitiSiteSettings :: !(Maybe SiteSettings)
18021− , _ssIdDimensionValue :: !(Maybe DimensionValue)
18480+ , _sitiIdDimensionValue :: !(Maybe DimensionValue)
18022− , _ssDirectorySiteIdDimensionValue :: !(Maybe DimensionValue)
18481+ , _sitiDirectorySiteIdDimensionValue :: !(Maybe DimensionValue)
18023− , _ssAccountId :: !(Maybe (Textual Int64))
18482+ , _sitiAccountId :: !(Maybe (Textual Int64))
18024− , _ssName :: !(Maybe Text)
18483+ , _sitiName :: !(Maybe Text)
18025− , _ssDirectorySiteId :: !(Maybe (Textual Int64))
18484+ , _sitiDirectorySiteId :: !(Maybe (Textual Int64))
18026− , _ssId :: !(Maybe (Textual Int64))
18485+ , _sitiId :: !(Maybe (Textual Int64))
18027− , _ssSubAccountId :: !(Maybe (Textual Int64))
18486+ , _sitiSubAccountId :: !(Maybe (Textual Int64))
18028− , _ssApproved :: !(Maybe Bool)
18487+ , _sitiApproved :: !(Maybe Bool)
18029 } deriving (Eq,Show,Data,Typeable,Generic)
18488 } deriving (Eq,Show,Data,Typeable,Generic)
18031-- | Creates a value of 'Site' with the minimum fields required to make a request.
18490-- | Creates a value of 'Site' with the minimum fields required to make a request.
18033-- Use one of the following lenses to modify other fields as desired:
18492-- Use one of the following lenses to modify other fields as desired:
18035−-- * 'ssKind'
18494+-- * 'sitiKind'
18037−-- * 'ssKeyName'
18496+-- * 'sitiKeyName'
18039−-- * 'ssSiteContacts'
18498+-- * 'sitiSiteContacts'
18041−-- * 'ssSiteSettings'
18500+-- * 'sitiSiteSettings'
18043−-- * 'ssIdDimensionValue'
18502+-- * 'sitiIdDimensionValue'
18045−-- * 'ssDirectorySiteIdDimensionValue'
18504+-- * 'sitiDirectorySiteIdDimensionValue'
18047−-- * 'ssAccountId'
18506+-- * 'sitiAccountId'
18049−-- * 'ssName'
18508+-- * 'sitiName'
18051−-- * 'ssDirectorySiteId'
18510+-- * 'sitiDirectorySiteId'
18053−-- * 'ssId'
18512+-- * 'sitiId'
18055−-- * 'ssSubAccountId'
18514+-- * 'sitiSubAccountId'
18057−-- * 'ssApproved'
18516+-- * 'sitiApproved'
18059 :: Site
18518 :: Site
18062− { _ssKind = "dfareporting#site"
18521+ { _sitiKind = "dfareporting#site"
18063− , _ssKeyName = Nothing
18522+ , _sitiKeyName = Nothing
18064− , _ssSiteContacts = Nothing
18523+ , _sitiSiteContacts = Nothing
18065− , _ssSiteSettings = Nothing
18524+ , _sitiSiteSettings = Nothing
18066− , _ssIdDimensionValue = Nothing
18525+ , _sitiIdDimensionValue = Nothing
18067− , _ssDirectorySiteIdDimensionValue = Nothing
18526+ , _sitiDirectorySiteIdDimensionValue = Nothing
18068− , _ssAccountId = Nothing
18527+ , _sitiAccountId = Nothing
18069− , _ssName = Nothing
18528+ , _sitiName = Nothing
18070− , _ssDirectorySiteId = Nothing
18529+ , _sitiDirectorySiteId = Nothing
18071− , _ssId = Nothing
18530+ , _sitiId = Nothing
18072− , _ssSubAccountId = Nothing
18531+ , _sitiSubAccountId = Nothing
18073− , _ssApproved = Nothing
18532+ , _sitiApproved = Nothing
18076-- | Identifies what kind of resource this is. Value: the fixed string
18535-- | Identifies what kind of resource this is. Value: the fixed string
18077-- \"dfareporting#site\".
18536-- \"dfareporting#site\".
18078−ssKind :: Lens' Site Text
18537+sitiKind :: Lens' Site Text
18079−ssKind = lens _ssKind (\ s a -> s{_ssKind = a})
18538+sitiKind = lens _sitiKind (\ s a -> s{_sitiKind = a})
18081-- | Key name of this site. This is a read-only, auto-generated field.
18540-- | Key name of this site. This is a read-only, auto-generated field.
18082−ssKeyName :: Lens' Site (Maybe Text)
18541+sitiKeyName :: Lens' Site (Maybe Text)
18083−ssKeyName
18542+sitiKeyName
18084− = lens _ssKeyName (\ s a -> s{_ssKeyName = a})
18543+ = lens _sitiKeyName (\ s a -> s{_sitiKeyName = a})
18086-- | Site contacts.
18545-- | Site contacts.
18087−ssSiteContacts :: Lens' Site [SiteContact]
18546+sitiSiteContacts :: Lens' Site [SiteContact]
18088−ssSiteContacts
18547+sitiSiteContacts
18089− = lens _ssSiteContacts
18548+ = lens _sitiSiteContacts
18090− (\ s a -> s{_ssSiteContacts = a})
18549+ (\ s a -> s{_sitiSiteContacts = a})
18091 . _Default
18550 . _Default
18092 . _Coerce
18551 . _Coerce
18094-- | Site-wide settings.
18553-- | Site-wide settings.
18095−ssSiteSettings :: Lens' Site (Maybe SiteSettings)
18554+sitiSiteSettings :: Lens' Site (Maybe SiteSettings)
18096−ssSiteSettings
18555+sitiSiteSettings
18097− = lens _ssSiteSettings
18556+ = lens _sitiSiteSettings
18098− (\ s a -> s{_ssSiteSettings = a})
18557+ (\ s a -> s{_sitiSiteSettings = a})
18100-- | Dimension value for the ID of this site. This is a read-only,
18559-- | Dimension value for the ID of this site. This is a read-only,
18101-- auto-generated field.
18560-- auto-generated field.
18102−ssIdDimensionValue :: Lens' Site (Maybe DimensionValue)
18561+sitiIdDimensionValue :: Lens' Site (Maybe DimensionValue)
18103−ssIdDimensionValue
18562+sitiIdDimensionValue
18104− = lens _ssIdDimensionValue
18563+ = lens _sitiIdDimensionValue
18105− (\ s a -> s{_ssIdDimensionValue = a})
18564+ (\ s a -> s{_sitiIdDimensionValue = a})
18107-- | Dimension value for the ID of the directory site. This is a read-only,
18566-- | Dimension value for the ID of the directory site. This is a read-only,
18108-- auto-generated field.
18567-- auto-generated field.
18109−ssDirectorySiteIdDimensionValue :: Lens' Site (Maybe DimensionValue)
18568+sitiDirectorySiteIdDimensionValue :: Lens' Site (Maybe DimensionValue)
18110−ssDirectorySiteIdDimensionValue
18569+sitiDirectorySiteIdDimensionValue
18111− = lens _ssDirectorySiteIdDimensionValue
18570+ = lens _sitiDirectorySiteIdDimensionValue
18112− (\ s a -> s{_ssDirectorySiteIdDimensionValue = a})
18571+ (\ s a -> s{_sitiDirectorySiteIdDimensionValue = a})
18114-- | Account ID of this site. This is a read-only field that can be left
18573-- | Account ID of this site. This is a read-only field that can be left
18115-- blank.
18574-- blank.
18116−ssAccountId :: Lens' Site (Maybe Int64)
18575+sitiAccountId :: Lens' Site (Maybe Int64)
18117−ssAccountId
18576+sitiAccountId
18118− = lens _ssAccountId (\ s a -> s{_ssAccountId = a}) .
18577+ = lens _sitiAccountId
18578+ (\ s a -> s{_sitiAccountId = a})
18119− mapping _Coerce
18579+ . mapping _Coerce
18121-- | Name of this site.This is a required field. Must be less than 128
18581-- | Name of this site.This is a required field. Must be less than 128
18122-- characters long. If this site is under a subaccount, the name must be
18582-- characters long. If this site is under a subaccount, the name must be
18123-- unique among sites of the same subaccount. Otherwise, this site is a
18583-- unique among sites of the same subaccount. Otherwise, this site is a
18124-- top-level site, and the name must be unique among top-level sites of the
18584-- top-level site, and the name must be unique among top-level sites of the
18125-- same account.
18585-- same account.
18126−ssName :: Lens' Site (Maybe Text)
18586+sitiName :: Lens' Site (Maybe Text)
18127−ssName = lens _ssName (\ s a -> s{_ssName = a})
18587+sitiName = lens _sitiName (\ s a -> s{_sitiName = a})
18129-- | Directory site associated with this site. This is a required field that
18589-- | Directory site associated with this site. This is a required field that
18130-- is read-only after insertion.
18590-- is read-only after insertion.
18131−ssDirectorySiteId :: Lens' Site (Maybe Int64)
18591+sitiDirectorySiteId :: Lens' Site (Maybe Int64)
18132−ssDirectorySiteId
18592+sitiDirectorySiteId
18133− = lens _ssDirectorySiteId
18593+ = lens _sitiDirectorySiteId
18134− (\ s a -> s{_ssDirectorySiteId = a})
18594+ (\ s a -> s{_sitiDirectorySiteId = a})
18135 . mapping _Coerce
18595 . mapping _Coerce
18137-- | ID of this site. This is a read-only, auto-generated field.
18597-- | ID of this site. This is a read-only, auto-generated field.
18138−ssId :: Lens' Site (Maybe Int64)
18598+sitiId :: Lens' Site (Maybe Int64)
18140− = lens _ssId (\ s a -> s{_ssId = a}) .
18600+ = lens _sitiId (\ s a -> s{_sitiId = a}) .
18141 mapping _Coerce
18601 mapping _Coerce
18143-- | Subaccount ID of this site. This is a read-only field that can be left
18603-- | Subaccount ID of this site. This is a read-only field that can be left
18144-- blank.
18604-- blank.
18145−ssSubAccountId :: Lens' Site (Maybe Int64)
18605+sitiSubAccountId :: Lens' Site (Maybe Int64)
18146−ssSubAccountId
18606+sitiSubAccountId
18147− = lens _ssSubAccountId
18607+ = lens _sitiSubAccountId
18148− (\ s a -> s{_ssSubAccountId = a})
18608+ (\ s a -> s{_sitiSubAccountId = a})
18149 . mapping _Coerce
18609 . mapping _Coerce
18151-- | Whether this site is approved.
18611-- | Whether this site is approved.
18152−ssApproved :: Lens' Site (Maybe Bool)
18612+sitiApproved :: Lens' Site (Maybe Bool)
18153−ssApproved
18613+sitiApproved
18154− = lens _ssApproved (\ s a -> s{_ssApproved = a})
18614+ = lens _sitiApproved (\ s a -> s{_sitiApproved = a})
18156instance FromJSON Site where
18616instance FromJSON Site where
18157 parseJSON
18617 parseJSON
@@ -18175,19 +18635,19 @@ instance ToJSON Site where
18175 toJSON Site'{..}
18635 toJSON Site'{..}
18176 = object
18636 = object
18177 (catMaybes
18637 (catMaybes
18178− [Just ("kind" .= _ssKind),
18638+ [Just ("kind" .= _sitiKind),
18179− ("keyName" .=) <$> _ssKeyName,
18639+ ("keyName" .=) <$> _sitiKeyName,
18180− ("siteContacts" .=) <$> _ssSiteContacts,
18640+ ("siteContacts" .=) <$> _sitiSiteContacts,
18181− ("siteSettings" .=) <$> _ssSiteSettings,
18641+ ("siteSettings" .=) <$> _sitiSiteSettings,
18182− ("idDimensionValue" .=) <$> _ssIdDimensionValue,
18642+ ("idDimensionValue" .=) <$> _sitiIdDimensionValue,
18183 ("directorySiteIdDimensionValue" .=) <$>
18643 ("directorySiteIdDimensionValue" .=) <$>
18184− _ssDirectorySiteIdDimensionValue,
18644+ _sitiDirectorySiteIdDimensionValue,
18185− ("accountId" .=) <$> _ssAccountId,
18645+ ("accountId" .=) <$> _sitiAccountId,
18186− ("name" .=) <$> _ssName,
18646+ ("name" .=) <$> _sitiName,
18187− ("directorySiteId" .=) <$> _ssDirectorySiteId,
18647+ ("directorySiteId" .=) <$> _sitiDirectorySiteId,
18188− ("id" .=) <$> _ssId,
18648+ ("id" .=) <$> _sitiId,
18189− ("subaccountId" .=) <$> _ssSubAccountId,
18649+ ("subaccountId" .=) <$> _sitiSubAccountId,
18190− ("approved" .=) <$> _ssApproved])
18650+ ("approved" .=) <$> _sitiApproved])
18192-- | User Defined Variable configuration.
18652-- | User Defined Variable configuration.
@@ -20282,6 +20742,59 @@ instance ToJSON OrderContact where
20282 ("contactType" .=) <$> _ocContactType,
20742 ("contactType" .=) <$> _ocContactType,
20283 ("contactInfo" .=) <$> _ocContactInfo])
20743 ("contactInfo" .=) <$> _ocContactInfo])
20745+-- | Transcode Settings
20747+-- /See:/ 'transcodeSetting' smart constructor.
20748+data TranscodeSetting = TranscodeSetting'
20749+ { _tsKind :: !Text
20750+ , _tsEnabledVideoFormats :: !(Maybe [Textual Int32])
20751+ } deriving (Eq,Show,Data,Typeable,Generic)
20753+-- | Creates a value of 'TranscodeSetting' with the minimum fields required to make a request.
20755+-- Use one of the following lenses to modify other fields as desired:
20759+-- * 'tsEnabledVideoFormats'
20761+ :: TranscodeSetting
20764+ { _tsKind = "dfareporting#transcodeSetting"
20765+ , _tsEnabledVideoFormats = Nothing
20768+-- | Identifies what kind of resource this is. Value: the fixed string
20769+-- \"dfareporting#transcodeSetting\".
20770+tsKind :: Lens' TranscodeSetting Text
20771+tsKind = lens _tsKind (\ s a -> s{_tsKind = a})
20773+-- | Whitelist of video formats to be served to this placement. Set this list
20774+-- to null or empty to serve all video formats.
20775+tsEnabledVideoFormats :: Lens' TranscodeSetting [Int32]
20776+tsEnabledVideoFormats
20777+ = lens _tsEnabledVideoFormats
20778+ (\ s a -> s{_tsEnabledVideoFormats = a})
20782+instance FromJSON TranscodeSetting where
20784+ = withObject "TranscodeSetting"
20786+ TranscodeSetting' <$>
20787+ (o .:? "kind" .!= "dfareporting#transcodeSetting")
20788+ <*> (o .:? "enabledVideoFormats" .!= mempty))
20790+instance ToJSON TranscodeSetting where
20791+ toJSON TranscodeSetting'{..}
20794+ [Just ("kind" .= _tsKind),
20795+ ("enabledVideoFormats" .=) <$>
20796+ _tsEnabledVideoFormats])
20285-- | Floodlight Activity GenerateTag Response
20798-- | Floodlight Activity GenerateTag Response
20287-- /See:/ 'floodlightActivitiesGenerateTagResponse' smart constructor.
20800-- /See:/ 'floodlightActivitiesGenerateTagResponse' smart constructor.
@@ -20908,6 +21421,7 @@ instance ToJSON Metro where
20908-- /See:/ 'placement' smart constructor.
21421-- /See:/ 'placement' smart constructor.
20909data Placement = Placement'
21422data Placement = Placement'
20910 { _p1Status :: !(Maybe PlacementStatus)
21423 { _p1Status :: !(Maybe PlacementStatus)
21424+ , _p1VideoSettings :: !(Maybe VideoSettings)
20911 , _p1PlacementStrategyId :: !(Maybe (Textual Int64))
21425 , _p1PlacementStrategyId :: !(Maybe (Textual Int64))
20912 , _p1TagFormats :: !(Maybe [PlacementTagFormatsItem])
21426 , _p1TagFormats :: !(Maybe [PlacementTagFormatsItem])
20913 , _p1SiteIdDimensionValue :: !(Maybe DimensionValue)
21427 , _p1SiteIdDimensionValue :: !(Maybe DimensionValue)
@@ -20920,6 +21434,7 @@ data Placement = Placement'
20920 , _p1AdvertiserIdDimensionValue :: !(Maybe DimensionValue)
21434 , _p1AdvertiserIdDimensionValue :: !(Maybe DimensionValue)
20921 , _p1CampaignId :: !(Maybe (Textual Int64))
21435 , _p1CampaignId :: !(Maybe (Textual Int64))
20922 , _p1IdDimensionValue :: !(Maybe DimensionValue)
21436 , _p1IdDimensionValue :: !(Maybe DimensionValue)
21437+ , _p1VpaidAdapterChoice :: !(Maybe PlacementVpaidAdapterChoice)
20923 , _p1Primary :: !(Maybe Bool)
21438 , _p1Primary :: !(Maybe Bool)
20924 , _p1LookbackConfiguration :: !(Maybe LookbackConfiguration)
21439 , _p1LookbackConfiguration :: !(Maybe LookbackConfiguration)
20925 , _p1TagSetting :: !(Maybe TagSetting)
21440 , _p1TagSetting :: !(Maybe TagSetting)
@@ -20930,6 +21445,7 @@ data Placement = Placement'
20930 , _p1Name :: !(Maybe Text)
21445 , _p1Name :: !(Maybe Text)
20931 , _p1DirectorySiteId :: !(Maybe (Textual Int64))
21446 , _p1DirectorySiteId :: !(Maybe (Textual Int64))
20932 , _p1CreateInfo :: !(Maybe LastModifiedInfo)
21447 , _p1CreateInfo :: !(Maybe LastModifiedInfo)
21448+ , _p1VideoActiveViewOptOut :: !(Maybe Bool)
20933 , _p1LastModifiedInfo :: !(Maybe LastModifiedInfo)
21449 , _p1LastModifiedInfo :: !(Maybe LastModifiedInfo)
20934 , _p1Id :: !(Maybe (Textual Int64))
21450 , _p1Id :: !(Maybe (Textual Int64))
20935 , _p1SSLRequired :: !(Maybe Bool)
21451 , _p1SSLRequired :: !(Maybe Bool)
@@ -20951,6 +21467,8 @@ data Placement = Placement'
20952-- * 'p1Status'
21468-- * 'p1Status'
21470+-- * 'p1VideoSettings'
20954-- * 'p1PlacementStrategyId'
21472-- * 'p1PlacementStrategyId'
20956-- * 'p1TagFormats'
21474-- * 'p1TagFormats'
@@ -20975,6 +21493,8 @@ data Placement = Placement'
20976-- * 'p1IdDimensionValue'
21494-- * 'p1IdDimensionValue'
21496+-- * 'p1VpaidAdapterChoice'
20978-- * 'p1Primary'
21498-- * 'p1Primary'
20980-- * 'p1LookbackConfiguration'
21500-- * 'p1LookbackConfiguration'
@@ -20995,6 +21515,8 @@ data Placement = Placement'
20996-- * 'p1CreateInfo'
21516-- * 'p1CreateInfo'
21518+-- * 'p1VideoActiveViewOptOut'
20998-- * 'p1LastModifiedInfo'
21520-- * 'p1LastModifiedInfo'
21000-- * 'p1Id'
21522-- * 'p1Id'
@@ -21025,6 +21547,7 @@ placement
21025placement =
21547placement =
21026 Placement'
21548 Placement'
21027 { _p1Status = Nothing
21549 { _p1Status = Nothing
21550+ , _p1VideoSettings = Nothing
21028 , _p1PlacementStrategyId = Nothing
21551 , _p1PlacementStrategyId = Nothing
21029 , _p1TagFormats = Nothing
21552 , _p1TagFormats = Nothing
21030 , _p1SiteIdDimensionValue = Nothing
21553 , _p1SiteIdDimensionValue = Nothing
@@ -21037,6 +21560,7 @@ placement =
21037 , _p1AdvertiserIdDimensionValue = Nothing
21560 , _p1AdvertiserIdDimensionValue = Nothing
21038 , _p1CampaignId = Nothing
21561 , _p1CampaignId = Nothing
21039 , _p1IdDimensionValue = Nothing
21562 , _p1IdDimensionValue = Nothing
21563+ , _p1VpaidAdapterChoice = Nothing
21040 , _p1Primary = Nothing
21564 , _p1Primary = Nothing
21041 , _p1LookbackConfiguration = Nothing
21565 , _p1LookbackConfiguration = Nothing
21042 , _p1TagSetting = Nothing
21566 , _p1TagSetting = Nothing
@@ -21047,6 +21571,7 @@ placement =
21047 , _p1Name = Nothing
21571 , _p1Name = Nothing
21048 , _p1DirectorySiteId = Nothing
21572 , _p1DirectorySiteId = Nothing
21049 , _p1CreateInfo = Nothing
21573 , _p1CreateInfo = Nothing
21574+ , _p1VideoActiveViewOptOut = Nothing
21050 , _p1LastModifiedInfo = Nothing
21575 , _p1LastModifiedInfo = Nothing
21051 , _p1Id = Nothing
21576 , _p1Id = Nothing
21052 , _p1SSLRequired = Nothing
21577 , _p1SSLRequired = Nothing
@@ -21066,6 +21591,14 @@ placement =
21066p1Status :: Lens' Placement (Maybe PlacementStatus)
21591p1Status :: Lens' Placement (Maybe PlacementStatus)
21067p1Status = lens _p1Status (\ s a -> s{_p1Status = a})
21592p1Status = lens _p1Status (\ s a -> s{_p1Status = a})
21594+-- | A collection of settings which affect video creatives served through
21595+-- this placement. Applicable to placements with IN_STREAM_VIDEO
21597+p1VideoSettings :: Lens' Placement (Maybe VideoSettings)
21599+ = lens _p1VideoSettings
21600+ (\ s a -> s{_p1VideoSettings = a})
21069-- | ID of the placement strategy assigned to this placement.
21602-- | ID of the placement strategy assigned to this placement.
21070p1PlacementStrategyId :: Lens' Placement (Maybe Int64)
21603p1PlacementStrategyId :: Lens' Placement (Maybe Int64)
21071p1PlacementStrategyId
21604p1PlacementStrategyId
@@ -21155,6 +21688,14 @@ p1IdDimensionValue
21155 = lens _p1IdDimensionValue
21688 = lens _p1IdDimensionValue
21156 (\ s a -> s{_p1IdDimensionValue = a})
21689 (\ s a -> s{_p1IdDimensionValue = a})
21691+-- | VPAID adapter setting for this placement. Controls which VPAID format
21692+-- the measurement adapter will use for in-stream video creatives assigned
21693+-- to this placement.
21694+p1VpaidAdapterChoice :: Lens' Placement (Maybe PlacementVpaidAdapterChoice)
21695+p1VpaidAdapterChoice
21696+ = lens _p1VpaidAdapterChoice
21697+ (\ s a -> s{_p1VpaidAdapterChoice = a})
21158-- | Whether this placement is the primary placement of a roadblock
21699-- | Whether this placement is the primary placement of a roadblock
21159-- (placement group). You cannot change this field from true to false.
21700-- (placement group). You cannot change this field from true to false.
21160-- Setting this field to true will automatically set the primary field on
21701-- Setting this field to true will automatically set the primary field on
@@ -21223,6 +21764,19 @@ p1CreateInfo :: Lens' Placement (Maybe LastModifiedInfo)
21223p1CreateInfo
21764p1CreateInfo
21224 = lens _p1CreateInfo (\ s a -> s{_p1CreateInfo = a})
21765 = lens _p1CreateInfo (\ s a -> s{_p1CreateInfo = a})
21767+-- | Whether Verification and ActiveView are disabled for in-stream video
21768+-- creatives for this placement. The same setting videoActiveViewOptOut
21769+-- exists on the site level -- the opt out occurs if either of these
21770+-- settings are true. These settings are distinct from
21771+-- DirectorySites.settings.activeViewOptOut or
21772+-- Sites.siteSettings.activeViewOptOut which only apply to display ads.
21773+-- However, Accounts.activeViewOptOut opts out both video traffic, as well
21774+-- as display ads, from Verification and ActiveView.
21775+p1VideoActiveViewOptOut :: Lens' Placement (Maybe Bool)
21776+p1VideoActiveViewOptOut
21777+ = lens _p1VideoActiveViewOptOut
21778+ (\ s a -> s{_p1VideoActiveViewOptOut = a})
21226-- | Information about the most recent modification of this placement. This
21780-- | Information about the most recent modification of this placement. This
21227-- is a read-only field.
21781-- is a read-only field.
21228p1LastModifiedInfo :: Lens' Placement (Maybe LastModifiedInfo)
21782p1LastModifiedInfo :: Lens' Placement (Maybe LastModifiedInfo)
@@ -21317,7 +21871,8 @@ instance FromJSON Placement where
21317 = withObject "Placement"
21871 = withObject "Placement"
21318 (\ o ->
21872 (\ o ->
21319 Placement' <$>
21873 Placement' <$>
21874+ (o .:? "status") <*> (o .:? "videoSettings") <*>
21320− (o .:? "status") <*> (o .:? "placementStrategyId")
21875+ (o .:? "placementStrategyId")
21321 <*> (o .:? "tagFormats" .!= mempty)
21876 <*> (o .:? "tagFormats" .!= mempty)
21322 <*> (o .:? "siteIdDimensionValue")
21877 <*> (o .:? "siteIdDimensionValue")
21323 <*> (o .:? "pricingSchedule")
21878 <*> (o .:? "pricingSchedule")
@@ -21329,6 +21884,7 @@ instance FromJSON Placement where
21329 <*> (o .:? "advertiserIdDimensionValue")
21884 <*> (o .:? "advertiserIdDimensionValue")
21330 <*> (o .:? "campaignId")
21885 <*> (o .:? "campaignId")
21331 <*> (o .:? "idDimensionValue")
21886 <*> (o .:? "idDimensionValue")
21887+ <*> (o .:? "vpaidAdapterChoice")
21332 <*> (o .:? "primary")
21888 <*> (o .:? "primary")
21333 <*> (o .:? "lookbackConfiguration")
21889 <*> (o .:? "lookbackConfiguration")
21334 <*> (o .:? "tagSetting")
21890 <*> (o .:? "tagSetting")
@@ -21339,6 +21895,7 @@ instance FromJSON Placement where
21339 <*> (o .:? "name")
21895 <*> (o .:? "name")
21340 <*> (o .:? "directorySiteId")
21896 <*> (o .:? "directorySiteId")
21341 <*> (o .:? "createInfo")
21897 <*> (o .:? "createInfo")
21898+ <*> (o .:? "videoActiveViewOptOut")
21342 <*> (o .:? "lastModifiedInfo")
21899 <*> (o .:? "lastModifiedInfo")
21343 <*> (o .:? "id")
21900 <*> (o .:? "id")
21344 <*> (o .:? "sslRequired")
21901 <*> (o .:? "sslRequired")
@@ -21358,6 +21915,7 @@ instance ToJSON Placement where
21358 = object
21915 = object
21359 (catMaybes
21916 (catMaybes
21360 [("status" .=) <$> _p1Status,
21917 [("status" .=) <$> _p1Status,
21918+ ("videoSettings" .=) <$> _p1VideoSettings,
21361 ("placementStrategyId" .=) <$>
21919 ("placementStrategyId" .=) <$>
21362 _p1PlacementStrategyId,
21920 _p1PlacementStrategyId,
21363 ("tagFormats" .=) <$> _p1TagFormats,
21921 ("tagFormats" .=) <$> _p1TagFormats,
@@ -21373,6 +21931,7 @@ instance ToJSON Placement where
21373 _p1AdvertiserIdDimensionValue,
21931 _p1AdvertiserIdDimensionValue,
21374 ("campaignId" .=) <$> _p1CampaignId,
21932 ("campaignId" .=) <$> _p1CampaignId,
21375 ("idDimensionValue" .=) <$> _p1IdDimensionValue,
21933 ("idDimensionValue" .=) <$> _p1IdDimensionValue,
21934+ ("vpaidAdapterChoice" .=) <$> _p1VpaidAdapterChoice,
21376 ("primary" .=) <$> _p1Primary,
21935 ("primary" .=) <$> _p1Primary,
21377 ("lookbackConfiguration" .=) <$>
21936 ("lookbackConfiguration" .=) <$>
21378 _p1LookbackConfiguration,
21937 _p1LookbackConfiguration,
@@ -21385,6 +21944,8 @@ instance ToJSON Placement where
21385 ("name" .=) <$> _p1Name,
21944 ("name" .=) <$> _p1Name,
21386 ("directorySiteId" .=) <$> _p1DirectorySiteId,
21945 ("directorySiteId" .=) <$> _p1DirectorySiteId,
21387 ("createInfo" .=) <$> _p1CreateInfo,
21946 ("createInfo" .=) <$> _p1CreateInfo,
21947+ ("videoActiveViewOptOut" .=) <$>
21948+ _p1VideoActiveViewOptOut,
21388 ("lastModifiedInfo" .=) <$> _p1LastModifiedInfo,
21949 ("lastModifiedInfo" .=) <$> _p1LastModifiedInfo,
21389 ("id" .=) <$> _p1Id,
21950 ("id" .=) <$> _p1Id,
21390 ("sslRequired" .=) <$> _p1SSLRequired,
21951 ("sslRequired" .=) <$> _p1SSLRequired,