@@ -147,6 +147,7 @@ data CreativeNATiveAd = CreativeNATiveAd'
147147 { _cnataImage :: !(Maybe CreativeNATiveAdImage)
148148 , _cnataAppIcon :: !(Maybe CreativeNATiveAdAppIcon)
149149 , _cnataClickTrackingURL :: !(Maybe Text)
150+ , _cnataClickLinkURL :: !(Maybe Text)
150151 , _cnataBody :: !(Maybe Text)
151152 , _cnataHeadline :: !(Maybe Text)
152153 , _cnataImpressionTrackingURL :: !(Maybe [Text])
@@ -169,6 +170,8 @@ data CreativeNATiveAd = CreativeNATiveAd'
169170--
170171-- * 'cnataClickTrackingURL'
171172--
173+-- * 'cnataClickLinkURL'
174+--
172175-- * 'cnataBody'
173176--
174177-- * 'cnataHeadline'
@@ -195,6 +198,7 @@ creativeNATiveAd =
195198 { _cnataImage = Nothing
196199 , _cnataAppIcon = Nothing
197200 , _cnataClickTrackingURL = Nothing
201+ , _cnataClickLinkURL = Nothing
198202 , _cnataBody = Nothing
199203 , _cnataHeadline = Nothing
200204 , _cnataImpressionTrackingURL = Nothing
@@ -223,6 +227,12 @@ cnataClickTrackingURL
223227 = lens _cnataClickTrackingURL
224228 (\ s a -> s{_cnataClickTrackingURL = a})
225229
230+-- | The URL that the browser\/SDK will load when the user clicks the ad.
231+cnataClickLinkURL :: Lens' CreativeNATiveAd (Maybe Text)
232+cnataClickLinkURL
233+ = lens _cnataClickLinkURL
234+ (\ s a -> s{_cnataClickLinkURL = a})
235+
226236-- | A long description of the ad.
227237cnataBody :: Lens' CreativeNATiveAd (Maybe Text)
228238cnataBody
@@ -253,6 +263,8 @@ cnataStore :: Lens' CreativeNATiveAd (Maybe Text)
253263cnataStore
254264 = lens _cnataStore (\ s a -> s{_cnataStore = a})
255265
266+-- | The URL of the XML VAST for a native ad. Note this is a separate field
267+-- from resource.video_url.
256268cnataVideoURL :: Lens' CreativeNATiveAd (Maybe Text)
257269cnataVideoURL
258270 = lens _cnataVideoURL
@@ -287,6 +299,7 @@ instance FromJSON CreativeNATiveAd where
287299 CreativeNATiveAd' <$>
288300 (o .:? "image") <*> (o .:? "appIcon") <*>
289301 (o .:? "clickTrackingUrl")
302+ <*> (o .:? "clickLinkUrl")
290303 <*> (o .:? "body")
291304 <*> (o .:? "headline")
292305 <*> (o .:? "impressionTrackingUrl" .!= mempty)
@@ -305,6 +318,7 @@ instance ToJSON CreativeNATiveAd where
305318 [("image" .=) <$> _cnataImage,
306319 ("appIcon" .=) <$> _cnataAppIcon,
307320 ("clickTrackingUrl" .=) <$> _cnataClickTrackingURL,
321+ ("clickLinkUrl" .=) <$> _cnataClickLinkURL,
308322 ("body" .=) <$> _cnataBody,
309323 ("headline" .=) <$> _cnataHeadline,
310324 ("impressionTrackingUrl" .=) <$>
@@ -664,12 +678,11 @@ abliRegion :: Lens' AccountBidderLocationItem (Maybe Text)
664678abliRegion
665679 = lens _abliRegion (\ s a -> s{_abliRegion = a})
666680
667−-- | The protocol that the bidder endpoint is using. By default, OpenRTB
668−-- protocols use JSON, except PROTOCOL_OPENRTB_PROTOBUF.
669−-- PROTOCOL_OPENRTB_PROTOBUF uses protobuf encoding over the latest OpenRTB
670−-- protocol version, which is 2.3 right now. Allowed values: - PROTOCOL_ADX
671−-- - PROTOCOL_OPENRTB_2_2 - PROTOCOL_OPENRTB_2_3 -
672−-- PROTOCOL_OPENRTB_PROTOBUF
681+-- | The protocol that the bidder endpoint is using. OpenRTB protocols with
682+-- prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON.
683+-- Allowed values: - PROTOCOL_ADX - PROTOCOL_OPENRTB_2_2 -
684+-- PROTOCOL_OPENRTB_2_3 - PROTOCOL_OPENRTB_2_4 -
685+-- PROTOCOL_OPENRTB_PROTOBUF_2_3 - PROTOCOL_OPENRTB_PROTOBUF_2_4
673686abliBidProtocol :: Lens' AccountBidderLocationItem (Maybe Text)
674687abliBidProtocol
675688 = lens _abliBidProtocol
@@ -696,7 +709,7 @@ instance ToJSON AccountBidderLocationItem where
696709--
697710-- /See:/ 'privateData' smart constructor.
698711data PrivateData = PrivateData'
699− { _pdReferencePayload :: !(Maybe Base64)
712+ { _pdReferencePayload :: !(Maybe Bytes)
700713 , _pdReferenceId :: !(Maybe Text)
701714 } deriving (Eq,Show,Data,Typeable,Generic)
702715
@@ -719,7 +732,7 @@ pdReferencePayload :: Lens' PrivateData (Maybe ByteString)
719732pdReferencePayload
720733 = lens _pdReferencePayload
721734 (\ s a -> s{_pdReferencePayload = a})
722− . mapping _Base64
735+ . mapping _Bytes
723736
724737pdReferenceId :: Lens' PrivateData (Maybe Text)
725738pdReferenceId
@@ -1879,7 +1892,7 @@ cSensitiveCategories
18791892 . _Coerce
18801893
18811894-- | The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should
1882−-- not be set. Note, this is diffrent from resource.native_ad.video_url
1895+-- not be set. Note, this is different from resource.native_ad.video_url
18831896-- above.
18841897cVideoURL :: Lens' Creative (Maybe Text)
18851898cVideoURL
@@ -3050,6 +3063,8 @@ data PretargetingConfig = PretargetingConfig'
30503063 , _pcUserLists :: !(Maybe [Textual Int64])
30513064 , _pcKind :: !Text
30523065 , _pcExcludedPlacements :: !(Maybe [PretargetingConfigExcludedPlacementsItem])
3066+ , _pcUserIdentifierDataRequired :: !(Maybe [Text])
3067+ , _pcMinimumViewabilityDecile :: !(Maybe (Textual Int32))
30533068 , _pcMobileDevices :: !(Maybe [Textual Int64])
30543069 , _pcLanguages :: !(Maybe [Text])
30553070 , _pcVerticals :: !(Maybe [Textual Int64])
@@ -3088,6 +3103,10 @@ data PretargetingConfig = PretargetingConfig'
30883103--
30893104-- * 'pcExcludedPlacements'
30903105--
3106+-- * 'pcUserIdentifierDataRequired'
3107+--
3108+-- * 'pcMinimumViewabilityDecile'
3109+--
30913110-- * 'pcMobileDevices'
30923111--
30933112-- * 'pcLanguages'
@@ -3131,6 +3150,8 @@ pretargetingConfig =
31313150 , _pcUserLists = Nothing
31323151 , _pcKind = "adexchangebuyer#pretargetingConfig"
31333152 , _pcExcludedPlacements = Nothing
3153+ , _pcUserIdentifierDataRequired = Nothing
3154+ , _pcMinimumViewabilityDecile = Nothing
31343155 , _pcMobileDevices = Nothing
31353156 , _pcLanguages = Nothing
31363157 , _pcVerticals = Nothing
@@ -3214,6 +3235,28 @@ pcExcludedPlacements
32143235 . _Default
32153236 . _Coerce
32163237
3238+-- | Requests containing the specified type of user data will match. Possible
3239+-- values are HOSTED_MATCH_DATA, which means the request is
3240+-- cookie-targetable and has a match in the buyer\'s hosted match table,
3241+-- and COOKIE_OR_IDFA, which means the request has either a targetable
3242+-- cookie or an iOS IDFA.
3243+pcUserIdentifierDataRequired :: Lens' PretargetingConfig [Text]
3244+pcUserIdentifierDataRequired
3245+ = lens _pcUserIdentifierDataRequired
3246+ (\ s a -> s{_pcUserIdentifierDataRequired = a})
3247+ . _Default
3248+ . _Coerce
3249+
3250+-- | Requests where the predicted viewability is below the specified decile
3251+-- will not match. E.g. if the buyer sets this value to 5, requests from
3252+-- slots where the predicted viewability is below 50% will not match. If
3253+-- the predicted viewability is unknown this field will be ignored.
3254+pcMinimumViewabilityDecile :: Lens' PretargetingConfig (Maybe Int32)
3255+pcMinimumViewabilityDecile
3256+ = lens _pcMinimumViewabilityDecile
3257+ (\ s a -> s{_pcMinimumViewabilityDecile = a})
3258+ . mapping _Coerce
3259+
32173260-- | Requests containing any of these mobile device ids will match. Values
32183261-- are from mobile-devices.csv in the downloadable files section.
32193262pcMobileDevices :: Lens' PretargetingConfig [Int64]
@@ -3353,6 +3396,8 @@ instance FromJSON PretargetingConfig where
33533396 (o .:? "kind" .!=
33543397 "adexchangebuyer#pretargetingConfig")
33553398 <*> (o .:? "excludedPlacements" .!= mempty)
3399+ <*> (o .:? "userIdentifierDataRequired" .!= mempty)
3400+ <*> (o .:? "minimumViewabilityDecile")
33563401 <*> (o .:? "mobileDevices" .!= mempty)
33573402 <*> (o .:? "languages" .!= mempty)
33583403 <*> (o .:? "verticals" .!= mempty)
@@ -3385,6 +3430,10 @@ instance ToJSON PretargetingConfig where
33853430 ("userLists" .=) <$> _pcUserLists,
33863431 Just ("kind" .= _pcKind),
33873432 ("excludedPlacements" .=) <$> _pcExcludedPlacements,
3433+ ("userIdentifierDataRequired" .=) <$>
3434+ _pcUserIdentifierDataRequired,
3435+ ("minimumViewabilityDecile" .=) <$>
3436+ _pcMinimumViewabilityDecile,
33883437 ("mobileDevices" .=) <$> _pcMobileDevices,
33893438 ("languages" .=) <$> _pcLanguages,
33903439 ("verticals" .=) <$> _pcVerticals,
@@ -4994,29 +5043,30 @@ instance ToJSON CreativeNATiveAdImage where
49945043--
49955044-- /See:/ 'product' smart constructor.
49965045data Product = Product'
4997− { _proState :: !(Maybe Text)
4998− , _proInventorySource :: !(Maybe Text)
4999− , _proWebPropertyCode :: !(Maybe Text)
5000− , _proCreationTimeMs :: !(Maybe (Textual Int64))
5001− , _proTerms :: !(Maybe DealTerms)
5002− , _proLastUpdateTimeMs :: !(Maybe (Textual Int64))
5003− , _proKind :: !Text
5004− , _proRevisionNumber :: !(Maybe (Textual Int64))
5005− , _proPrivateAuctionId :: !(Maybe Text)
5006− , _proDeliveryControl :: !(Maybe DeliveryControl)
5007− , _proHasCreatorSignedOff :: !(Maybe Bool)
5008− , _proFlightStartTimeMs :: !(Maybe (Textual Int64))
5009− , _proSharedTargetings :: !(Maybe [SharedTargeting])
5010− , _proSeller :: !(Maybe Seller)
5011− , _proSyndicationProduct :: !(Maybe Text)
5012− , _proFlightEndTimeMs :: !(Maybe (Textual Int64))
5013− , _proName :: !(Maybe Text)
5014− , _proCreatorContacts :: !(Maybe [ContactInformation])
5015− , _proPublisherProvidedForecast :: !(Maybe PublisherProvidedForecast)
5016− , _proLabels :: !(Maybe [MarketplaceLabel])
5017− , _proPublisherProFileId :: !(Maybe Text)
5018− , _proLegacyOfferId :: !(Maybe Text)
5019− , _proProductId :: !(Maybe Text)
5046+ { _proState :: !(Maybe Text)
5047+ , _proInventorySource :: !(Maybe Text)
5048+ , _proWebPropertyCode :: !(Maybe Text)
5049+ , _proCreationTimeMs :: !(Maybe (Textual Int64))
5050+ , _proTerms :: !(Maybe DealTerms)
5051+ , _proLastUpdateTimeMs :: !(Maybe (Textual Int64))
5052+ , _proKind :: !Text
5053+ , _proRevisionNumber :: !(Maybe (Textual Int64))
5054+ , _proPrivateAuctionId :: !(Maybe Text)
5055+ , _proDeliveryControl :: !(Maybe DeliveryControl)
5056+ , _proHasCreatorSignedOff :: !(Maybe Bool)
5057+ , _proFlightStartTimeMs :: !(Maybe (Textual Int64))
5058+ , _proSharedTargetings :: !(Maybe [SharedTargeting])
5059+ , _proSeller :: !(Maybe Seller)
5060+ , _proSyndicationProduct :: !(Maybe Text)
5061+ , _proFlightEndTimeMs :: !(Maybe (Textual Int64))
5062+ , _proName :: !(Maybe Text)
5063+ , _proCreatorContacts :: !(Maybe [ContactInformation])
5064+ , _proMarketplacePublisherProFileId :: !(Maybe Text)
5065+ , _proPublisherProvidedForecast :: !(Maybe PublisherProvidedForecast)
5066+ , _proLabels :: !(Maybe [MarketplaceLabel])
5067+ , _proPublisherProFileId :: !(Maybe Text)
5068+ , _proLegacyOfferId :: !(Maybe Text)
5069+ , _proProductId :: !(Maybe Text)
50205070 } deriving (Eq,Show,Data,Typeable,Generic)
50215071
50225072-- | Creates a value of 'Product' with the minimum fields required to make a request.
@@ -5059,6 +5109,8 @@ data Product = Product'
50595109--
50605110-- * 'proCreatorContacts'
50615111--
5112+-- * 'proMarketplacePublisherProFileId'
5113+--
50625114-- * 'proPublisherProvidedForecast'
50635115--
50645116-- * 'proLabels'
@@ -5090,6 +5142,7 @@ product =
50905142 , _proFlightEndTimeMs = Nothing
50915143 , _proName = Nothing
50925144 , _proCreatorContacts = Nothing
5145+ , _proMarketplacePublisherProFileId = Nothing
50935146 , _proPublisherProvidedForecast = Nothing
50945147 , _proLabels = Nothing
50955148 , _proPublisherProFileId = Nothing
@@ -5219,6 +5272,15 @@ proCreatorContacts
52195272 . _Default
52205273 . _Coerce
52215274
5275+-- | Marketplace publisher profile Id. This Id differs from the regular
5276+-- publisher_profile_id in that 1. This is a new id, the old Id will be
5277+-- deprecated in 2017. 2. This id uniquely identifies a publisher profile
5278+-- by itself.
5279+proMarketplacePublisherProFileId :: Lens' Product (Maybe Text)
5280+proMarketplacePublisherProFileId
5281+ = lens _proMarketplacePublisherProFileId
5282+ (\ s a -> s{_proMarketplacePublisherProFileId = a})
5283+
52225284-- | Publisher self-provided forecast information.
52235285proPublisherProvidedForecast :: Lens' Product (Maybe PublisherProvidedForecast)
52245286proPublisherProvidedForecast
@@ -5274,6 +5336,7 @@ instance FromJSON Product where
52745336 <*> (o .:? "flightEndTimeMs")
52755337 <*> (o .:? "name")
52765338 <*> (o .:? "creatorContacts" .!= mempty)
5339+ <*> (o .:? "marketplacePublisherProfileId")
52775340 <*> (o .:? "publisherProvidedForecast")
52785341 <*> (o .:? "labels" .!= mempty)
52795342 <*> (o .:? "publisherProfileId")
@@ -5303,6 +5366,8 @@ instance ToJSON Product where
53035366 ("flightEndTimeMs" .=) <$> _proFlightEndTimeMs,
53045367 ("name" .=) <$> _proName,
53055368 ("creatorContacts" .=) <$> _proCreatorContacts,
5369+ ("marketplacePublisherProfileId" .=) <$>
5370+ _proMarketplacePublisherProFileId,
53065371 ("publisherProvidedForecast" .=) <$>
53075372 _proPublisherProvidedForecast,
53085373 ("labels" .=) <$> _proLabels,
@@ -5989,7 +6054,7 @@ mdProposalId
59896054mdDealId :: Lens' MarketplaceDeal (Maybe Text)
59906055mdDealId = lens _mdDealId (\ s a -> s{_mdDealId = a})
59916056
5992−-- | Description for the deal terms. (updatable)
6057+-- | Description for the deal terms. (buyer-readonly)
59936058mdInventoryDescription :: Lens' MarketplaceDeal (Maybe Text)
59946059mdInventoryDescription
59956060 = lens _mdInventoryDescription