@@ -307,8 +307,9 @@ instance ToJSON CreativeNATiveAd where
309-- /See:/ 'editAllOrderDealsResponse' smart constructor.
309-- /See:/ 'editAllOrderDealsResponse' smart constructor.
310−newtype EditAllOrderDealsResponse = EditAllOrderDealsResponse'
310+data EditAllOrderDealsResponse = EditAllOrderDealsResponse'
311− { _eaodrDeals :: Maybe [MarketplaceDeal]
311+ { _eaodrDeals :: !(Maybe [MarketplaceDeal])
312+ , _eaodrOrderRevisionNumber :: !(Maybe (Textual Int64))
312 } deriving (Eq,Show,Data,Typeable,Generic)
313 } deriving (Eq,Show,Data,Typeable,Generic)
314-- | Creates a value of 'EditAllOrderDealsResponse' with the minimum fields required to make a request.
315-- | Creates a value of 'EditAllOrderDealsResponse' with the minimum fields required to make a request.
@@ -316,11 +317,14 @@ newtype EditAllOrderDealsResponse = EditAllOrderDealsResponse'
316-- Use one of the following lenses to modify other fields as desired:
317-- Use one of the following lenses to modify other fields as desired:
318-- * 'eaodrDeals'
319-- * 'eaodrDeals'
321+-- * 'eaodrOrderRevisionNumber'
319editAllOrderDealsResponse
322editAllOrderDealsResponse
320 :: EditAllOrderDealsResponse
323 :: EditAllOrderDealsResponse
321editAllOrderDealsResponse =
324editAllOrderDealsResponse =
322 EditAllOrderDealsResponse'
325 EditAllOrderDealsResponse'
323 { _eaodrDeals = Nothing
326 { _eaodrDeals = Nothing
327+ , _eaodrOrderRevisionNumber = Nothing
326-- | List of all deals in the proposal after edit.
330-- | List of all deals in the proposal after edit.
@@ -330,16 +334,28 @@ eaodrDeals
331 . _Coerce
335 . _Coerce
337+-- | The latest revision number after the update has been applied.
338+eaodrOrderRevisionNumber :: Lens' EditAllOrderDealsResponse (Maybe Int64)
339+eaodrOrderRevisionNumber
340+ = lens _eaodrOrderRevisionNumber
341+ (\ s a -> s{_eaodrOrderRevisionNumber = a})
333instance FromJSON EditAllOrderDealsResponse where
344instance FromJSON EditAllOrderDealsResponse where
334 parseJSON
345 parseJSON
335 = withObject "EditAllOrderDealsResponse"
346 = withObject "EditAllOrderDealsResponse"
337 EditAllOrderDealsResponse' <$>
348 EditAllOrderDealsResponse' <$>
338− (o .:? "deals" .!= mempty))
349+ (o .:? "deals" .!= mempty) <*>
350+ (o .:? "orderRevisionNumber"))
340instance ToJSON EditAllOrderDealsResponse where
352instance ToJSON EditAllOrderDealsResponse where
341 toJSON EditAllOrderDealsResponse'{..}
353 toJSON EditAllOrderDealsResponse'{..}
342− = object (catMaybes [("deals" .=) <$> _eaodrDeals])
356+ [("deals" .=) <$> _eaodrDeals,
357+ ("orderRevisionNumber" .=) <$>
358+ _eaodrOrderRevisionNumber])
344-- | The creatives feed lists the active creatives for the Ad Exchange buyer
360-- | The creatives feed lists the active creatives for the Ad Exchange buyer
345-- accounts that the user has access to. Each entry in the feed corresponds
361-- accounts that the user has access to. Each entry in the feed corresponds
@@ -529,9 +545,10 @@ instance ToJSON CreateOrdersResponse where
530-- /See:/ 'accountBidderLocationItem' smart constructor.
546-- /See:/ 'accountBidderLocationItem' smart constructor.
531data AccountBidderLocationItem = AccountBidderLocationItem'
547data AccountBidderLocationItem = AccountBidderLocationItem'
532− { _abliURL :: !(Maybe Text)
548+ { _abliURL :: !(Maybe Text)
533− , _abliMaximumQps :: !(Maybe (Textual Int32))
549+ , _abliMaximumQps :: !(Maybe (Textual Int32))
534− , _abliRegion :: !(Maybe Text)
550+ , _abliRegion :: !(Maybe Text)
551+ , _abliBidProtocol :: !(Maybe Text)
535 } deriving (Eq,Show,Data,Typeable,Generic)
552 } deriving (Eq,Show,Data,Typeable,Generic)
537-- | Creates a value of 'AccountBidderLocationItem' with the minimum fields required to make a request.
554-- | Creates a value of 'AccountBidderLocationItem' with the minimum fields required to make a request.
@@ -543,6 +560,8 @@ data AccountBidderLocationItem = AccountBidderLocationItem'
543-- * 'abliMaximumQps'
560-- * 'abliMaximumQps'
545-- * 'abliRegion'
562-- * 'abliRegion'
564+-- * 'abliBidProtocol'
546accountBidderLocationItem
565accountBidderLocationItem
547 :: AccountBidderLocationItem
566 :: AccountBidderLocationItem
548accountBidderLocationItem =
567accountBidderLocationItem =
@@ -550,6 +569,7 @@ accountBidderLocationItem =
550 { _abliURL = Nothing
569 { _abliURL = Nothing
551 , _abliMaximumQps = Nothing
570 , _abliMaximumQps = Nothing
552 , _abliRegion = Nothing
571 , _abliRegion = Nothing
572+ , _abliBidProtocol = Nothing
555-- | The URL to which the Ad Exchange will send bid requests.
575-- | The URL to which the Ad Exchange will send bid requests.
@@ -570,13 +590,25 @@ abliRegion :: Lens' AccountBidderLocationItem (Maybe Text)
570abliRegion
590abliRegion
571 = lens _abliRegion (\ s a -> s{_abliRegion = a})
591 = lens _abliRegion (\ s a -> s{_abliRegion = a})
593+-- | The protocol that the bidder endpoint is using. By default, OpenRTB
594+-- protocols use JSON, except PROTOCOL_OPENRTB_PROTOBUF.
595+-- PROTOCOL_OPENRTB_PROTOBUF uses protobuf encoding over the latest OpenRTB
596+-- protocol version, which is 2.3 right now. Allowed values: - PROTOCOL_ADX
597+-- - PROTOCOL_OPENRTB_2_2 - PROTOCOL_OPENRTB_2_3 -
598+-- PROTOCOL_OPENRTB_PROTOBUF
599+abliBidProtocol :: Lens' AccountBidderLocationItem (Maybe Text)
601+ = lens _abliBidProtocol
602+ (\ s a -> s{_abliBidProtocol = a})
573instance FromJSON AccountBidderLocationItem where
604instance FromJSON AccountBidderLocationItem where
574 parseJSON
605 parseJSON
575 = withObject "AccountBidderLocationItem"
606 = withObject "AccountBidderLocationItem"
577 AccountBidderLocationItem' <$>
608 AccountBidderLocationItem' <$>
578 (o .:? "url") <*> (o .:? "maximumQps") <*>
609 (o .:? "url") <*> (o .:? "maximumQps") <*>
579− (o .:? "region"))
610+ (o .:? "region")
611+ <*> (o .:? "bidProtocol"))
581instance ToJSON AccountBidderLocationItem where
613instance ToJSON AccountBidderLocationItem where
582 toJSON AccountBidderLocationItem'{..}
614 toJSON AccountBidderLocationItem'{..}
@@ -584,7 +616,8 @@ instance ToJSON AccountBidderLocationItem where
584 (catMaybes
616 (catMaybes
585 [("url" .=) <$> _abliURL,
617 [("url" .=) <$> _abliURL,
586 ("maximumQps" .=) <$> _abliMaximumQps,
618 ("maximumQps" .=) <$> _abliMaximumQps,
587− ("region" .=) <$> _abliRegion])
619+ ("region" .=) <$> _abliRegion,
620+ ("bidProtocol" .=) <$> _abliBidProtocol])
590-- /See:/ 'privateData' smart constructor.
623-- /See:/ 'privateData' smart constructor.
@@ -1049,6 +1082,58 @@ instance ToJSON AccountsList where
1049 [Just ("kind" .= _alKind),
1082 [Just ("kind" .= _alKind),
1050 ("items" .=) <$> _alItems])
1083 ("items" .=) <$> _alItems])
1085+-- | This message carries publisher provided breakdown. E.g. {dimension_type:
1086+-- \'COUNTRY\', [{dimension_value: {id: 1, name: \'US\'}},
1087+-- {dimension_value: {id: 2, name: \'UK\'}}]}
1089+-- /See:/ 'dimension' smart constructor.
1090+data Dimension = Dimension'
1091+ { _dDimensionValues :: !(Maybe [DimensionDimensionValue])
1092+ , _dDimensionType :: !(Maybe Text)
1093+ } deriving (Eq,Show,Data,Typeable,Generic)
1095+-- | Creates a value of 'Dimension' with the minimum fields required to make a request.
1097+-- Use one of the following lenses to modify other fields as desired:
1099+-- * 'dDimensionValues'
1101+-- * 'dDimensionType'
1106+ { _dDimensionValues = Nothing
1107+ , _dDimensionType = Nothing
1110+dDimensionValues :: Lens' Dimension [DimensionDimensionValue]
1112+ = lens _dDimensionValues
1113+ (\ s a -> s{_dDimensionValues = a})
1117+dDimensionType :: Lens' Dimension (Maybe Text)
1119+ = lens _dDimensionType
1120+ (\ s a -> s{_dDimensionType = a})
1122+instance FromJSON Dimension where
1124+ = withObject "Dimension"
1127+ (o .:? "dimensionValues" .!= mempty) <*>
1128+ (o .:? "dimensionType"))
1130+instance ToJSON Dimension where
1131+ toJSON Dimension'{..}
1134+ [("dimensionValues" .=) <$> _dDimensionValues,
1135+ ("dimensionType" .=) <$> _dDimensionType])
1053-- /See:/ 'createOrdersRequest' smart constructor.
1138-- /See:/ 'createOrdersRequest' smart constructor.
1054data CreateOrdersRequest = CreateOrdersRequest'
1139data CreateOrdersRequest = CreateOrdersRequest'
@@ -1078,6 +1163,7 @@ cProposals
1078 _Default
1163 _Default
1079 . _Coerce
1164 . _Coerce
1166+-- | Web property id of the seller creating these orders
1081cWebPropertyCode :: Lens' CreateOrdersRequest (Maybe Text)
1167cWebPropertyCode :: Lens' CreateOrdersRequest (Maybe Text)
1082cWebPropertyCode
1168cWebPropertyCode
1083 = lens _cWebPropertyCode
1169 = lens _cWebPropertyCode
@@ -1146,6 +1232,43 @@ instance ToJSON CreativeCorrectionsItem where
1146 [("reason" .=) <$> _cciReason,
1232 [("reason" .=) <$> _cciReason,
1147 ("details" .=) <$> _cciDetails])
1233 ("details" .=) <$> _cciDetails])
1236+-- /See:/ 'dealServingMetadata' smart constructor.
1237+newtype DealServingMetadata = DealServingMetadata'
1238+ { _dsmDealPauseStatus :: Maybe DealServingMetadataDealPauseStatus
1239+ } deriving (Eq,Show,Data,Typeable,Generic)
1241+-- | Creates a value of 'DealServingMetadata' with the minimum fields required to make a request.
1243+-- Use one of the following lenses to modify other fields as desired:
1245+-- * 'dsmDealPauseStatus'
1247+ :: DealServingMetadata
1248+dealServingMetadata =
1249+ DealServingMetadata'
1250+ { _dsmDealPauseStatus = Nothing
1253+-- | Tracks which parties (if any) have paused a deal. (readonly, except via
1254+-- PauseResumeOrderDeals action)
1255+dsmDealPauseStatus :: Lens' DealServingMetadata (Maybe DealServingMetadataDealPauseStatus)
1257+ = lens _dsmDealPauseStatus
1258+ (\ s a -> s{_dsmDealPauseStatus = a})
1260+instance FromJSON DealServingMetadata where
1262+ = withObject "DealServingMetadata"
1264+ DealServingMetadata' <$> (o .:? "dealPauseStatus"))
1266+instance ToJSON DealServingMetadata where
1267+ toJSON DealServingMetadata'{..}
1270+ [("dealPauseStatus" .=) <$> _dsmDealPauseStatus])
1150-- /See:/ 'addOrderDealsResponse' smart constructor.
1273-- /See:/ 'addOrderDealsResponse' smart constructor.
1151data AddOrderDealsResponse = AddOrderDealsResponse'
1274data AddOrderDealsResponse = AddOrderDealsResponse'
@@ -1269,8 +1392,9 @@ instance ToJSON DeliveryControl where
1270-- /See:/ 'pricePerBuyer' smart constructor.
1393-- /See:/ 'pricePerBuyer' smart constructor.
1271data PricePerBuyer = PricePerBuyer'
1394data PricePerBuyer = PricePerBuyer'
1272− { _ppbPrice :: !(Maybe Price)
1395+ { _ppbPrice :: !(Maybe Price)
1396+ , _ppbAuctionTier :: !(Maybe Text)
1273− , _ppbBuyer :: !(Maybe Buyer)
1397+ , _ppbBuyer :: !(Maybe Buyer)
1274 } deriving (Eq,Show,Data,Typeable,Generic)
1398 } deriving (Eq,Show,Data,Typeable,Generic)
1276-- | Creates a value of 'PricePerBuyer' with the minimum fields required to make a request.
1400-- | Creates a value of 'PricePerBuyer' with the minimum fields required to make a request.
@@ -1279,12 +1403,15 @@ data PricePerBuyer = PricePerBuyer'
1280-- * 'ppbPrice'
1404-- * 'ppbPrice'
1406+-- * 'ppbAuctionTier'
1282-- * 'ppbBuyer'
1408-- * 'ppbBuyer'
1283pricePerBuyer
1409pricePerBuyer
1284 :: PricePerBuyer
1410 :: PricePerBuyer
1285pricePerBuyer =
1411pricePerBuyer =
1286 PricePerBuyer'
1412 PricePerBuyer'
1287 { _ppbPrice = Nothing
1413 { _ppbPrice = Nothing
1414+ , _ppbAuctionTier = Nothing
1288 , _ppbBuyer = Nothing
1415 , _ppbBuyer = Nothing
@@ -1292,6 +1419,12 @@ pricePerBuyer =
1292ppbPrice :: Lens' PricePerBuyer (Maybe Price)
1419ppbPrice :: Lens' PricePerBuyer (Maybe Price)
1293ppbPrice = lens _ppbPrice (\ s a -> s{_ppbPrice = a})
1420ppbPrice = lens _ppbPrice (\ s a -> s{_ppbPrice = a})
1422+-- | Optional access type for this buyer.
1423+ppbAuctionTier :: Lens' PricePerBuyer (Maybe Text)
1425+ = lens _ppbAuctionTier
1426+ (\ s a -> s{_ppbAuctionTier = a})
1295-- | The buyer who will pay this price. If unset, all buyers can pay this
1428-- | The buyer who will pay this price. If unset, all buyers can pay this
1296-- price (if the advertisers match, and there\'s no more specific rule
1429-- price (if the advertisers match, and there\'s no more specific rule
1297-- matching the buyer).
1430-- matching the buyer).
@@ -1303,13 +1436,15 @@ instance FromJSON PricePerBuyer where
1303 = withObject "PricePerBuyer"
1436 = withObject "PricePerBuyer"
1305 PricePerBuyer' <$>
1438 PricePerBuyer' <$>
1439+ (o .:? "price") <*> (o .:? "auctionTier") <*>
1306− (o .:? "price") <*> (o .:? "buyer"))
1440+ (o .:? "buyer"))
1308instance ToJSON PricePerBuyer where
1442instance ToJSON PricePerBuyer where
1309 toJSON PricePerBuyer'{..}
1443 toJSON PricePerBuyer'{..}
1310 = object
1444 = object
1311 (catMaybes
1445 (catMaybes
1312 [("price" .=) <$> _ppbPrice,
1446 [("price" .=) <$> _ppbPrice,
1447+ ("auctionTier" .=) <$> _ppbAuctionTier,
1313 ("buyer" .=) <$> _ppbBuyer])
1448 ("buyer" .=) <$> _ppbBuyer])
1315-- | A creative and its classification data.
1450-- | A creative and its classification data.
@@ -1757,6 +1892,52 @@ instance ToJSON TargetingValueDayPartTargetingDayPart
1757 ("dayOfWeek" .=) <$> _tvdptdpDayOfWeek,
1892 ("dayOfWeek" .=) <$> _tvdptdpDayOfWeek,
1758 ("endMinute" .=) <$> _tvdptdpEndMinute])
1893 ("endMinute" .=) <$> _tvdptdpEndMinute])
1895+-- | Value of the dimension.
1897+-- /See:/ 'dimensionDimensionValue' smart constructor.
1898+data DimensionDimensionValue = DimensionDimensionValue'
1899+ { _ddvName :: !(Maybe Text)
1900+ , _ddvId :: !(Maybe (Textual Int32))
1901+ } deriving (Eq,Show,Data,Typeable,Generic)
1903+-- | Creates a value of 'DimensionDimensionValue' with the minimum fields required to make a request.
1905+-- Use one of the following lenses to modify other fields as desired:
1910+dimensionDimensionValue
1911+ :: DimensionDimensionValue
1912+dimensionDimensionValue =
1913+ DimensionDimensionValue'
1914+ { _ddvName = Nothing
1918+-- | Name of the dimension mainly for debugging purposes.
1919+ddvName :: Lens' DimensionDimensionValue (Maybe Text)
1920+ddvName = lens _ddvName (\ s a -> s{_ddvName = a})
1922+-- | Id of the dimension.
1923+ddvId :: Lens' DimensionDimensionValue (Maybe Int32)
1925+ = lens _ddvId (\ s a -> s{_ddvId = a}) .
1928+instance FromJSON DimensionDimensionValue where
1930+ = withObject "DimensionDimensionValue"
1932+ DimensionDimensionValue' <$>
1933+ (o .:? "name") <*> (o .:? "id"))
1935+instance ToJSON DimensionDimensionValue where
1936+ toJSON DimensionDimensionValue'{..}
1939+ [("name" .=) <$> _ddvName, ("id" .=) <$> _ddvId])
1761-- /See:/ 'pretargetingConfigList' smart constructor.
1942-- /See:/ 'pretargetingConfigList' smart constructor.
1762data PretargetingConfigList = PretargetingConfigList'
1943data PretargetingConfigList = PretargetingConfigList'
@@ -2431,6 +2612,7 @@ deleteOrderDealsRequest =
2431 , _dodrProposalRevisionNumber = Nothing
2612 , _dodrProposalRevisionNumber = Nothing
2615+-- | Indicates an optional action to take on the proposal
2434dodrUpdateAction :: Lens' DeleteOrderDealsRequest (Maybe Text)
2616dodrUpdateAction :: Lens' DeleteOrderDealsRequest (Maybe Text)
2435dodrUpdateAction
2617dodrUpdateAction
2436 = lens _dodrUpdateAction
2618 = lens _dodrUpdateAction
@@ -2605,8 +2787,6 @@ instance ToJSON GetOrderDealsResponse where
2605 = object (catMaybes [("deals" .=) <$> _godrDeals])
2787 = object (catMaybes [("deals" .=) <$> _godrDeals])
2607-- | The configuration data for an Ad Exchange performance report list.
2789-- | The configuration data for an Ad Exchange performance report list.
2608−-- https:\/\/sites.google.com\/a\/google.com\/adx-integration\/Home\/engineering\/binary-releases\/rtb-api-release
2609−-- https:\/\/cs.corp.google.com\/#piper\/\/\/depot\/google3\/contentads\/adx\/tools\/rtb_api\/adxrtb.py
2611-- /See:/ 'performanceReportList' smart constructor.
2791-- /See:/ 'performanceReportList' smart constructor.
2612data PerformanceReportList = PerformanceReportList'
2792data PerformanceReportList = PerformanceReportList'
@@ -3134,6 +3314,123 @@ instance ToJSON TargetingValueCreativeSize where
3134 ("companionSizes" .=) <$> _tvcsCompanionSizes,
3314 ("companionSizes" .=) <$> _tvcsCompanionSizes,
3135 ("creativeSizeType" .=) <$> _tvcsCreativeSizeType])
3315 ("creativeSizeType" .=) <$> _tvcsCreativeSizeType])
3318+-- /See:/ 'dealTermsGuaranteedFixedPriceTermsBillingInfo' smart constructor.
3319+data DealTermsGuaranteedFixedPriceTermsBillingInfo = DealTermsGuaranteedFixedPriceTermsBillingInfo'
3320+ { _dtgfptbiCurrencyConversionTimeMs :: !(Maybe (Textual Int64))
3321+ , _dtgfptbiPrice :: !(Maybe Price)
3322+ , _dtgfptbiOriginalContractedQuantity :: !(Maybe (Textual Int64))
3323+ } deriving (Eq,Show,Data,Typeable,Generic)
3325+-- | Creates a value of 'DealTermsGuaranteedFixedPriceTermsBillingInfo' with the minimum fields required to make a request.
3327+-- Use one of the following lenses to modify other fields as desired:
3329+-- * 'dtgfptbiCurrencyConversionTimeMs'
3331+-- * 'dtgfptbiPrice'
3333+-- * 'dtgfptbiOriginalContractedQuantity'
3334+dealTermsGuaranteedFixedPriceTermsBillingInfo
3335+ :: DealTermsGuaranteedFixedPriceTermsBillingInfo
3336+dealTermsGuaranteedFixedPriceTermsBillingInfo =
3337+ DealTermsGuaranteedFixedPriceTermsBillingInfo'
3338+ { _dtgfptbiCurrencyConversionTimeMs = Nothing
3339+ , _dtgfptbiPrice = Nothing
3340+ , _dtgfptbiOriginalContractedQuantity = Nothing
3343+-- | The timestamp (in ms since epoch) when the original reservation price
3344+-- for the deal was first converted to DFP currency. This is used to
3345+-- convert the contracted price into advertiser\'s currency without
3347+dtgfptbiCurrencyConversionTimeMs :: Lens' DealTermsGuaranteedFixedPriceTermsBillingInfo (Maybe Int64)
3348+dtgfptbiCurrencyConversionTimeMs
3349+ = lens _dtgfptbiCurrencyConversionTimeMs
3350+ (\ s a -> s{_dtgfptbiCurrencyConversionTimeMs = a})
3353+-- | The original reservation price for the deal, if the currency code is
3354+-- different from the one used in negotiation.
3355+dtgfptbiPrice :: Lens' DealTermsGuaranteedFixedPriceTermsBillingInfo (Maybe Price)
3357+ = lens _dtgfptbiPrice
3358+ (\ s a -> s{_dtgfptbiPrice = a})
3360+-- | The original contracted quantity (# impressions) for this deal. To
3361+-- ensure delivery, sometimes publisher will book the deal with a
3362+-- impression buffer, however clients are billed using the original
3363+-- contracted quantity.
3364+dtgfptbiOriginalContractedQuantity :: Lens' DealTermsGuaranteedFixedPriceTermsBillingInfo (Maybe Int64)
3365+dtgfptbiOriginalContractedQuantity
3366+ = lens _dtgfptbiOriginalContractedQuantity
3367+ (\ s a -> s{_dtgfptbiOriginalContractedQuantity = a})
3371+ DealTermsGuaranteedFixedPriceTermsBillingInfo where
3374+ "DealTermsGuaranteedFixedPriceTermsBillingInfo"
3376+ DealTermsGuaranteedFixedPriceTermsBillingInfo' <$>
3377+ (o .:? "currencyConversionTimeMs") <*>
3379+ <*> (o .:? "originalContractedQuantity"))
3382+ DealTermsGuaranteedFixedPriceTermsBillingInfo where
3384+ DealTermsGuaranteedFixedPriceTermsBillingInfo'{..}
3387+ [("currencyConversionTimeMs" .=) <$>
3388+ _dtgfptbiCurrencyConversionTimeMs,
3389+ ("price" .=) <$> _dtgfptbiPrice,
3390+ ("originalContractedQuantity" .=) <$>
3391+ _dtgfptbiOriginalContractedQuantity])
3394+-- /See:/ 'getPublisherProFilesByAccountIdResponse' smart constructor.
3395+newtype GetPublisherProFilesByAccountIdResponse = GetPublisherProFilesByAccountIdResponse'
3396+ { _gppfbairProFiles :: Maybe [PublisherProFileAPIProto]
3397+ } deriving (Eq,Show,Data,Typeable,Generic)
3399+-- | Creates a value of 'GetPublisherProFilesByAccountIdResponse' with the minimum fields required to make a request.
3401+-- Use one of the following lenses to modify other fields as desired:
3403+-- * 'gppfbairProFiles'
3404+getPublisherProFilesByAccountIdResponse
3405+ :: GetPublisherProFilesByAccountIdResponse
3406+getPublisherProFilesByAccountIdResponse =
3407+ GetPublisherProFilesByAccountIdResponse'
3408+ { _gppfbairProFiles = Nothing
3411+-- | Profiles for the requested publisher
3412+gppfbairProFiles :: Lens' GetPublisherProFilesByAccountIdResponse [PublisherProFileAPIProto]
3414+ = lens _gppfbairProFiles
3415+ (\ s a -> s{_gppfbairProFiles = a})
3420+ GetPublisherProFilesByAccountIdResponse where
3423+ "GetPublisherProFilesByAccountIdResponse"
3425+ GetPublisherProFilesByAccountIdResponse' <$>
3426+ (o .:? "profiles" .!= mempty))
3429+ GetPublisherProFilesByAccountIdResponse where
3430+ toJSON GetPublisherProFilesByAccountIdResponse'{..}
3432+ (catMaybes [("profiles" .=) <$> _gppfbairProFiles])
3137-- | Represents a proposal in the marketplace. A proposal is the unit of
3434-- | Represents a proposal in the marketplace. A proposal is the unit of
3138-- negotiation between a seller and a buyer and contains deals which are
3435-- negotiation between a seller and a buyer and contains deals which are
3139-- served. Each field in a proposal can have one of the following setting:
3436-- served. Each field in a proposal can have one of the following setting:
@@ -3152,6 +3449,7 @@ data Proposal = Proposal'
3152 , _pOriginatorRole :: !(Maybe Text)
3449 , _pOriginatorRole :: !(Maybe Text)
3153 , _pRevisionNumber :: !(Maybe (Textual Int64))
3450 , _pRevisionNumber :: !(Maybe (Textual Int64))
3154 , _pBilledBuyer :: !(Maybe Buyer)
3451 , _pBilledBuyer :: !(Maybe Buyer)
3452+ , _pPrivateAuctionId :: !(Maybe Text)
3155 , _pIsRenegotiating :: !(Maybe Bool)
3453 , _pIsRenegotiating :: !(Maybe Bool)
3156 , _pHasSellerSignedOff :: !(Maybe Bool)
3454 , _pHasSellerSignedOff :: !(Maybe Bool)
3157 , _pSeller :: !(Maybe Seller)
3455 , _pSeller :: !(Maybe Seller)
@@ -3163,6 +3461,7 @@ data Proposal = Proposal'
3163 , _pRevisionTimeMs :: !(Maybe (Textual Int64))
3461 , _pRevisionTimeMs :: !(Maybe (Textual Int64))
3164 , _pProposalState :: !(Maybe Text)
3462 , _pProposalState :: !(Maybe Text)
3165 , _pLastUpdaterOrCommentorRole :: !(Maybe Text)
3463 , _pLastUpdaterOrCommentorRole :: !(Maybe Text)
3464+ , _pNegotiationId :: !(Maybe Text)
3166 , _pHasBuyerSignedOff :: !(Maybe Bool)
3465 , _pHasBuyerSignedOff :: !(Maybe Bool)
3167 , _pBuyer :: !(Maybe Buyer)
3466 , _pBuyer :: !(Maybe Buyer)
3168 } deriving (Eq,Show,Data,Typeable,Generic)
3467 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -3187,6 +3486,8 @@ data Proposal = Proposal'
3188-- * 'pBilledBuyer'
3487-- * 'pBilledBuyer'
3489+-- * 'pPrivateAuctionId'
3190-- * 'pIsRenegotiating'
3491-- * 'pIsRenegotiating'
3192-- * 'pHasSellerSignedOff'
3493-- * 'pHasSellerSignedOff'
@@ -3209,6 +3510,8 @@ data Proposal = Proposal'
3210-- * 'pLastUpdaterOrCommentorRole'
3511-- * 'pLastUpdaterOrCommentorRole'
3513+-- * 'pNegotiationId'
3212-- * 'pHasBuyerSignedOff'
3515-- * 'pHasBuyerSignedOff'
3214-- * 'pBuyer'
3517-- * 'pBuyer'
@@ -3224,6 +3527,7 @@ proposal =
3224 , _pOriginatorRole = Nothing
3527 , _pOriginatorRole = Nothing
3225 , _pRevisionNumber = Nothing
3528 , _pRevisionNumber = Nothing
3226 , _pBilledBuyer = Nothing
3529 , _pBilledBuyer = Nothing
3530+ , _pPrivateAuctionId = Nothing
3227 , _pIsRenegotiating = Nothing
3531 , _pIsRenegotiating = Nothing
3228 , _pHasSellerSignedOff = Nothing
3532 , _pHasSellerSignedOff = Nothing
3229 , _pSeller = Nothing
3533 , _pSeller = Nothing
@@ -3235,6 +3539,7 @@ proposal =
3235 , _pRevisionTimeMs = Nothing
3539 , _pRevisionTimeMs = Nothing
3236 , _pProposalState = Nothing
3540 , _pProposalState = Nothing
3237 , _pLastUpdaterOrCommentorRole = Nothing
3541 , _pLastUpdaterOrCommentorRole = Nothing
3542+ , _pNegotiationId = Nothing
3238 , _pHasBuyerSignedOff = Nothing
3543 , _pHasBuyerSignedOff = Nothing
3239 , _pBuyer = Nothing
3544 , _pBuyer = Nothing
@@ -3246,7 +3551,7 @@ pBuyerPrivateData
3246 (\ s a -> s{_pBuyerPrivateData = a})
3551 (\ s a -> s{_pBuyerPrivateData = a})
3248-- | True, if the buyside inventory setup is complete for this proposal.
3553-- | True, if the buyside inventory setup is complete for this proposal.
3249−-- (readonly)
3554+-- (readonly, except via OrderSetupCompleted action)
3250pIsSetupComplete :: Lens' Proposal (Maybe Bool)
3555pIsSetupComplete :: Lens' Proposal (Maybe Bool)
3251pIsSetupComplete
3556pIsSetupComplete
3252 = lens _pIsSetupComplete
3557 = lens _pIsSetupComplete
@@ -3290,6 +3595,13 @@ pBilledBuyer :: Lens' Proposal (Maybe Buyer)
3290pBilledBuyer
3595pBilledBuyer
3291 = lens _pBilledBuyer (\ s a -> s{_pBilledBuyer = a})
3596 = lens _pBilledBuyer (\ s a -> s{_pBilledBuyer = a})
3598+-- | Optional private auction id if this proposal is a private auction
3600+pPrivateAuctionId :: Lens' Proposal (Maybe Text)
3602+ = lens _pPrivateAuctionId
3603+ (\ s a -> s{_pPrivateAuctionId = a})
3293-- | True if the proposal is being renegotiated (readonly).
3605-- | True if the proposal is being renegotiated (readonly).
3294pIsRenegotiating :: Lens' Proposal (Maybe Bool)
3606pIsRenegotiating :: Lens' Proposal (Maybe Bool)
3295pIsRenegotiating
3607pIsRenegotiating
@@ -3356,6 +3668,12 @@ pLastUpdaterOrCommentorRole
3356 = lens _pLastUpdaterOrCommentorRole
3668 = lens _pLastUpdaterOrCommentorRole
3357 (\ s a -> s{_pLastUpdaterOrCommentorRole = a})
3669 (\ s a -> s{_pLastUpdaterOrCommentorRole = a})
3671+-- | Optional negotiation id if this proposal is a preferred deal proposal.
3672+pNegotiationId :: Lens' Proposal (Maybe Text)
3674+ = lens _pNegotiationId
3675+ (\ s a -> s{_pNegotiationId = a})
3359-- | When an proposal is in an accepted state, indicates whether the buyer
3677-- | When an proposal is in an accepted state, indicates whether the buyer
3360-- has signed off Once both sides have signed off on a deal, the proposal
3678-- has signed off Once both sides have signed off on a deal, the proposal
3361-- can be finalized by the seller. (seller-readonly)
3679-- can be finalized by the seller. (seller-readonly)
@@ -3381,6 +3699,7 @@ instance FromJSON Proposal where
3381 <*> (o .:? "originatorRole")
3699 <*> (o .:? "originatorRole")
3382 <*> (o .:? "revisionNumber")
3700 <*> (o .:? "revisionNumber")
3383 <*> (o .:? "billedBuyer")
3701 <*> (o .:? "billedBuyer")
3702+ <*> (o .:? "privateAuctionId")
3384 <*> (o .:? "isRenegotiating")
3703 <*> (o .:? "isRenegotiating")
3385 <*> (o .:? "hasSellerSignedOff")
3704 <*> (o .:? "hasSellerSignedOff")
3386 <*> (o .:? "seller")
3705 <*> (o .:? "seller")
@@ -3392,6 +3711,7 @@ instance FromJSON Proposal where
3392 <*> (o .:? "revisionTimeMs")
3711 <*> (o .:? "revisionTimeMs")
3393 <*> (o .:? "proposalState")
3712 <*> (o .:? "proposalState")
3394 <*> (o .:? "lastUpdaterOrCommentorRole")
3713 <*> (o .:? "lastUpdaterOrCommentorRole")
3714+ <*> (o .:? "negotiationId")
3395 <*> (o .:? "hasBuyerSignedOff")
3715 <*> (o .:? "hasBuyerSignedOff")
3396 <*> (o .:? "buyer"))
3716 <*> (o .:? "buyer"))
@@ -3407,6 +3727,7 @@ instance ToJSON Proposal where
3407 ("originatorRole" .=) <$> _pOriginatorRole,
3727 ("originatorRole" .=) <$> _pOriginatorRole,
3408 ("revisionNumber" .=) <$> _pRevisionNumber,
3728 ("revisionNumber" .=) <$> _pRevisionNumber,
3409 ("billedBuyer" .=) <$> _pBilledBuyer,
3729 ("billedBuyer" .=) <$> _pBilledBuyer,
3730+ ("privateAuctionId" .=) <$> _pPrivateAuctionId,
3410 ("isRenegotiating" .=) <$> _pIsRenegotiating,
3731 ("isRenegotiating" .=) <$> _pIsRenegotiating,
3411 ("hasSellerSignedOff" .=) <$> _pHasSellerSignedOff,
3732 ("hasSellerSignedOff" .=) <$> _pHasSellerSignedOff,
3412 ("seller" .=) <$> _pSeller,
3733 ("seller" .=) <$> _pSeller,
@@ -3419,6 +3740,7 @@ instance ToJSON Proposal where
3419 ("proposalState" .=) <$> _pProposalState,
3740 ("proposalState" .=) <$> _pProposalState,
3420 ("lastUpdaterOrCommentorRole" .=) <$>
3741 ("lastUpdaterOrCommentorRole" .=) <$>
3421 _pLastUpdaterOrCommentorRole,
3742 _pLastUpdaterOrCommentorRole,
3743+ ("negotiationId" .=) <$> _pNegotiationId,
3422 ("hasBuyerSignedOff" .=) <$> _pHasBuyerSignedOff,
3744 ("hasBuyerSignedOff" .=) <$> _pHasBuyerSignedOff,
3423 ("buyer" .=) <$> _pBuyer])
3745 ("buyer" .=) <$> _pBuyer])
@@ -3554,6 +3876,81 @@ instance ToJSON TargetingValueSize where
3554 [("height" .=) <$> _tvsHeight,
3876 [("height" .=) <$> _tvsHeight,
3555 ("width" .=) <$> _tvsWidth])
3877 ("width" .=) <$> _tvsWidth])
3880+-- /See:/ 'updatePrivateAuctionProposalRequest' smart constructor.
3881+data UpdatePrivateAuctionProposalRequest = UpdatePrivateAuctionProposalRequest'
3882+ { _upaprExternalDealId :: !(Maybe Text)
3883+ , _upaprUpdateAction :: !(Maybe Text)
3884+ , _upaprNote :: !(Maybe MarketplaceNote)
3885+ , _upaprProposalRevisionNumber :: !(Maybe (Textual Int64))
3886+ } deriving (Eq,Show,Data,Typeable,Generic)
3888+-- | Creates a value of 'UpdatePrivateAuctionProposalRequest' with the minimum fields required to make a request.
3890+-- Use one of the following lenses to modify other fields as desired:
3892+-- * 'upaprExternalDealId'
3894+-- * 'upaprUpdateAction'
3898+-- * 'upaprProposalRevisionNumber'
3899+updatePrivateAuctionProposalRequest
3900+ :: UpdatePrivateAuctionProposalRequest
3901+updatePrivateAuctionProposalRequest =
3902+ UpdatePrivateAuctionProposalRequest'
3903+ { _upaprExternalDealId = Nothing
3904+ , _upaprUpdateAction = Nothing
3905+ , _upaprNote = Nothing
3906+ , _upaprProposalRevisionNumber = Nothing
3909+-- | The externalDealId of the deal to be updated.
3910+upaprExternalDealId :: Lens' UpdatePrivateAuctionProposalRequest (Maybe Text)
3912+ = lens _upaprExternalDealId
3913+ (\ s a -> s{_upaprExternalDealId = a})
3915+-- | The proposed action on the private auction proposal.
3916+upaprUpdateAction :: Lens' UpdatePrivateAuctionProposalRequest (Maybe Text)
3918+ = lens _upaprUpdateAction
3919+ (\ s a -> s{_upaprUpdateAction = a})
3921+-- | Optional note to be added.
3922+upaprNote :: Lens' UpdatePrivateAuctionProposalRequest (Maybe MarketplaceNote)
3924+ = lens _upaprNote (\ s a -> s{_upaprNote = a})
3926+-- | The current revision number of the proposal to be updated.
3927+upaprProposalRevisionNumber :: Lens' UpdatePrivateAuctionProposalRequest (Maybe Int64)
3928+upaprProposalRevisionNumber
3929+ = lens _upaprProposalRevisionNumber
3930+ (\ s a -> s{_upaprProposalRevisionNumber = a})
3933+instance FromJSON UpdatePrivateAuctionProposalRequest
3936+ = withObject "UpdatePrivateAuctionProposalRequest"
3938+ UpdatePrivateAuctionProposalRequest' <$>
3939+ (o .:? "externalDealId") <*> (o .:? "updateAction")
3941+ <*> (o .:? "proposalRevisionNumber"))
3943+instance ToJSON UpdatePrivateAuctionProposalRequest
3945+ toJSON UpdatePrivateAuctionProposalRequest'{..}
3948+ [("externalDealId" .=) <$> _upaprExternalDealId,
3949+ ("updateAction" .=) <$> _upaprUpdateAction,
3950+ ("note" .=) <$> _upaprNote,
3951+ ("proposalRevisionNumber" .=) <$>
3952+ _upaprProposalRevisionNumber])
3558-- /See:/ 'pretargetingConfigDimensionsItem' smart constructor.
3955-- /See:/ 'pretargetingConfigDimensionsItem' smart constructor.
3559data PretargetingConfigDimensionsItem = PretargetingConfigDimensionsItem'
3956data PretargetingConfigDimensionsItem = PretargetingConfigDimensionsItem'
@@ -3604,6 +4001,72 @@ instance ToJSON PretargetingConfigDimensionsItem
3604 [("height" .=) <$> _pcdiHeight,
4001 [("height" .=) <$> _pcdiHeight,
3605 ("width" .=) <$> _pcdiWidth])
4002 ("width" .=) <$> _pcdiWidth])
4004+-- | This message carries publisher provided forecasting information.
4006+-- /See:/ 'publisherProvidedForecast' smart constructor.
4007+data PublisherProvidedForecast = PublisherProvidedForecast'
4008+ { _ppfWeeklyImpressions :: !(Maybe (Textual Int64))
4009+ , _ppfWeeklyUniques :: !(Maybe (Textual Int64))
4010+ , _ppfDimensions :: !(Maybe [Dimension])
4011+ } deriving (Eq,Show,Data,Typeable,Generic)
4013+-- | Creates a value of 'PublisherProvidedForecast' with the minimum fields required to make a request.
4015+-- Use one of the following lenses to modify other fields as desired:
4017+-- * 'ppfWeeklyImpressions'
4019+-- * 'ppfWeeklyUniques'
4021+-- * 'ppfDimensions'
4022+publisherProvidedForecast
4023+ :: PublisherProvidedForecast
4024+publisherProvidedForecast =
4025+ PublisherProvidedForecast'
4026+ { _ppfWeeklyImpressions = Nothing
4027+ , _ppfWeeklyUniques = Nothing
4028+ , _ppfDimensions = Nothing
4031+-- | Publisher provided weekly impressions.
4032+ppfWeeklyImpressions :: Lens' PublisherProvidedForecast (Maybe Int64)
4033+ppfWeeklyImpressions
4034+ = lens _ppfWeeklyImpressions
4035+ (\ s a -> s{_ppfWeeklyImpressions = a})
4038+-- | Publisher provided weekly uniques.
4039+ppfWeeklyUniques :: Lens' PublisherProvidedForecast (Maybe Int64)
4041+ = lens _ppfWeeklyUniques
4042+ (\ s a -> s{_ppfWeeklyUniques = a})
4045+-- | Publisher provided dimensions. E.g. geo, sizes etc...
4046+ppfDimensions :: Lens' PublisherProvidedForecast [Dimension]
4048+ = lens _ppfDimensions
4049+ (\ s a -> s{_ppfDimensions = a})
4053+instance FromJSON PublisherProvidedForecast where
4055+ = withObject "PublisherProvidedForecast"
4057+ PublisherProvidedForecast' <$>
4058+ (o .:? "weeklyImpressions") <*>
4059+ (o .:? "weeklyUniques")
4060+ <*> (o .:? "dimensions" .!= mempty))
4062+instance ToJSON PublisherProvidedForecast where
4063+ toJSON PublisherProvidedForecast'{..}
4066+ [("weeklyImpressions" .=) <$> _ppfWeeklyImpressions,
4067+ ("weeklyUniques" .=) <$> _ppfWeeklyUniques,
4068+ ("dimensions" .=) <$> _ppfDimensions])
3608-- /See:/ 'targetingValue' smart constructor.
4071-- /See:/ 'targetingValue' smart constructor.
3609data TargetingValue = TargetingValue'
4072data TargetingValue = TargetingValue'
@@ -4103,14 +4566,16 @@ sharedTargeting =
4103stKey :: Lens' SharedTargeting (Maybe Text)
4566stKey :: Lens' SharedTargeting (Maybe Text)
4104stKey = lens _stKey (\ s a -> s{_stKey = a})
4567stKey = lens _stKey (\ s a -> s{_stKey = a})
4106−-- | The list of values to exclude from targeting.
4569+-- | The list of values to exclude from targeting. Each value is AND\'d
4107stExclusions :: Lens' SharedTargeting [TargetingValue]
4571stExclusions :: Lens' SharedTargeting [TargetingValue]
4108stExclusions
4572stExclusions
4109 = lens _stExclusions (\ s a -> s{_stExclusions = a})
4573 = lens _stExclusions (\ s a -> s{_stExclusions = a})
4110 . _Default
4574 . _Default
4111 . _Coerce
4575 . _Coerce
4113−-- | The list of value to include as part of the targeting.
4577+-- | The list of value to include as part of the targeting. Each value is
4114stInclusions :: Lens' SharedTargeting [TargetingValue]
4579stInclusions :: Lens' SharedTargeting [TargetingValue]
4115stInclusions
4580stInclusions
4116 = lens _stInclusions (\ s a -> s{_stInclusions = a})
4581 = lens _stInclusions (\ s a -> s{_stInclusions = a})
@@ -4200,24 +4665,29 @@ instance ToJSON CreativeNATiveAdImage where
4201-- /See:/ 'product' smart constructor.
4666-- /See:/ 'product' smart constructor.
4202data Product = Product'
4667data Product = Product'
4203− { _proState :: !(Maybe Text)
4668+ { _proState :: !(Maybe Text)
4204− , _proInventorySource :: !(Maybe Text)
4669+ , _proInventorySource :: !(Maybe Text)
4205− , _proWebPropertyCode :: !(Maybe Text)
4670+ , _proWebPropertyCode :: !(Maybe Text)
4206− , _proCreationTimeMs :: !(Maybe (Textual Int64))
4671+ , _proCreationTimeMs :: !(Maybe (Textual Int64))
4207− , _proTerms :: !(Maybe DealTerms)
4672+ , _proTerms :: !(Maybe DealTerms)
4208− , _proLastUpdateTimeMs :: !(Maybe (Textual Int64))
4673+ , _proLastUpdateTimeMs :: !(Maybe (Textual Int64))
4209− , _proKind :: !Text
4674+ , _proKind :: !Text
4210− , _proRevisionNumber :: !(Maybe (Textual Int64))
4675+ , _proRevisionNumber :: !(Maybe (Textual Int64))
4676+ , _proPrivateAuctionId :: !(Maybe Text)
4677+ , _proDeliveryControl :: !(Maybe DeliveryControl)
4211− , _proHasCreatorSignedOff :: !(Maybe Bool)
4678+ , _proHasCreatorSignedOff :: !(Maybe Bool)
4212− , _proFlightStartTimeMs :: !(Maybe (Textual Int64))
4679+ , _proFlightStartTimeMs :: !(Maybe (Textual Int64))
4213− , _proSharedTargetings :: !(Maybe [SharedTargeting])
4680+ , _proSharedTargetings :: !(Maybe [SharedTargeting])
4214− , _proSeller :: !(Maybe Seller)
4681+ , _proSeller :: !(Maybe Seller)
4215− , _proSyndicationProduct :: !(Maybe Text)
4682+ , _proSyndicationProduct :: !(Maybe Text)
4216− , _proFlightEndTimeMs :: !(Maybe (Textual Int64))
4683+ , _proFlightEndTimeMs :: !(Maybe (Textual Int64))
4217− , _proName :: !(Maybe Text)
4684+ , _proName :: !(Maybe Text)
4218− , _proCreatorContacts :: !(Maybe [ContactInformation])
4685+ , _proCreatorContacts :: !(Maybe [ContactInformation])
4686+ , _proPublisherProvidedForecast :: !(Maybe PublisherProvidedForecast)
4219− , _proLabels :: !(Maybe [MarketplaceLabel])
4687+ , _proLabels :: !(Maybe [MarketplaceLabel])
4688+ , _proPublisherProFileId :: !(Maybe Text)
4689+ , _proLegacyOfferId :: !(Maybe Text)
4220− , _proProductId :: !(Maybe Text)
4690+ , _proProductId :: !(Maybe Text)
4221 } deriving (Eq,Show,Data,Typeable,Generic)
4691 } deriving (Eq,Show,Data,Typeable,Generic)
4223-- | Creates a value of 'Product' with the minimum fields required to make a request.
4693-- | Creates a value of 'Product' with the minimum fields required to make a request.
@@ -4240,6 +4710,10 @@ data Product = Product'
4241-- * 'proRevisionNumber'
4711-- * 'proRevisionNumber'
4713+-- * 'proPrivateAuctionId'
4715+-- * 'proDeliveryControl'
4243-- * 'proHasCreatorSignedOff'
4717-- * 'proHasCreatorSignedOff'
4245-- * 'proFlightStartTimeMs'
4719-- * 'proFlightStartTimeMs'
@@ -4256,8 +4730,14 @@ data Product = Product'
4257-- * 'proCreatorContacts'
4731-- * 'proCreatorContacts'
4733+-- * 'proPublisherProvidedForecast'
4259-- * 'proLabels'
4735-- * 'proLabels'
4737+-- * 'proPublisherProFileId'
4739+-- * 'proLegacyOfferId'
4261-- * 'proProductId'
4741-- * 'proProductId'
4263 :: Product
4743 :: Product
@@ -4271,6 +4751,8 @@ product =
4271 , _proLastUpdateTimeMs = Nothing
4751 , _proLastUpdateTimeMs = Nothing
4272 , _proKind = "adexchangebuyer#product"
4752 , _proKind = "adexchangebuyer#product"
4273 , _proRevisionNumber = Nothing
4753 , _proRevisionNumber = Nothing
4754+ , _proPrivateAuctionId = Nothing
4755+ , _proDeliveryControl = Nothing
4274 , _proHasCreatorSignedOff = Nothing
4756 , _proHasCreatorSignedOff = Nothing
4275 , _proFlightStartTimeMs = Nothing
4757 , _proFlightStartTimeMs = Nothing
4276 , _proSharedTargetings = Nothing
4758 , _proSharedTargetings = Nothing
@@ -4279,7 +4761,10 @@ product =
4279 , _proFlightEndTimeMs = Nothing
4761 , _proFlightEndTimeMs = Nothing
4280 , _proName = Nothing
4762 , _proName = Nothing
4281 , _proCreatorContacts = Nothing
4763 , _proCreatorContacts = Nothing
4764+ , _proPublisherProvidedForecast = Nothing
4282 , _proLabels = Nothing
4765 , _proLabels = Nothing
4766+ , _proPublisherProFileId = Nothing
4767+ , _proLegacyOfferId = Nothing
4283 , _proProductId = Nothing
4768 , _proProductId = Nothing
@@ -4293,6 +4778,8 @@ proInventorySource
4293 = lens _proInventorySource
4778 = lens _proInventorySource
4294 (\ s a -> s{_proInventorySource = a})
4779 (\ s a -> s{_proInventorySource = a})
4781+-- | The web property code for the seller. This field is meant to be copied
4782+-- over as is when creating deals.
4296proWebPropertyCode :: Lens' Product (Maybe Text)
4783proWebPropertyCode :: Lens' Product (Maybe Text)
4297proWebPropertyCode
4784proWebPropertyCode
4298 = lens _proWebPropertyCode
4785 = lens _proWebPropertyCode
@@ -4328,6 +4815,21 @@ proRevisionNumber
4328 (\ s a -> s{_proRevisionNumber = a})
4815 (\ s a -> s{_proRevisionNumber = a})
4329 . mapping _Coerce
4816 . mapping _Coerce
4818+-- | Optional private auction id if this offer is a private auction offer.
4819+proPrivateAuctionId :: Lens' Product (Maybe Text)
4821+ = lens _proPrivateAuctionId
4822+ (\ s a -> s{_proPrivateAuctionId = a})
4824+-- | The set of fields around delivery control that are interesting for a
4825+-- buyer to see but are non-negotiable. These are set by the publisher.
4826+-- This message is assigned an id of 100 since some day we would want to
4827+-- model this as a protobuf extension.
4828+proDeliveryControl :: Lens' Product (Maybe DeliveryControl)
4830+ = lens _proDeliveryControl
4831+ (\ s a -> s{_proDeliveryControl = a})
4331-- | If the creator has already signed off on the product, then the buyer can
4833-- | If the creator has already signed off on the product, then the buyer can
4332-- finalize the deal by accepting the product as is. When copying to a
4834-- finalize the deal by accepting the product as is. When copying to a
4333-- proposal, if any of the terms are changed, then auto_finalize is
4835-- proposal, if any of the terms are changed, then auto_finalize is
@@ -4388,6 +4890,12 @@ proCreatorContacts
4388 . _Default
4890 . _Default
4389 . _Coerce
4891 . _Coerce
4893+-- | Publisher self-provided forecast information.
4894+proPublisherProvidedForecast :: Lens' Product (Maybe PublisherProvidedForecast)
4895+proPublisherProvidedForecast
4896+ = lens _proPublisherProvidedForecast
4897+ (\ s a -> s{_proPublisherProvidedForecast = a})
4391-- | Optional List of labels for the product (optional, buyer-readonly).
4899-- | Optional List of labels for the product (optional, buyer-readonly).
4392proLabels :: Lens' Product [MarketplaceLabel]
4900proLabels :: Lens' Product [MarketplaceLabel]
4393proLabels
4901proLabels
@@ -4395,6 +4903,21 @@ proLabels
4395 _Default
4903 _Default
4396 . _Coerce
4904 . _Coerce
4906+-- | Id of the publisher profile for a given seller. A (seller.account_id,
4907+-- publisher_profile_id) pair uniquely identifies a publisher profile.
4908+-- Buyers can call the PublisherProfiles::List endpoint to get a list of
4909+-- publisher profiles for a given seller.
4910+proPublisherProFileId :: Lens' Product (Maybe Text)
4911+proPublisherProFileId
4912+ = lens _proPublisherProFileId
4913+ (\ s a -> s{_proPublisherProFileId = a})
4915+-- | Optional legacy offer id if this offer is a preferred deal offer.
4916+proLegacyOfferId :: Lens' Product (Maybe Text)
4918+ = lens _proLegacyOfferId
4919+ (\ s a -> s{_proLegacyOfferId = a})
4398-- | The unique id for the product (readonly)
4921-- | The unique id for the product (readonly)
4399proProductId :: Lens' Product (Maybe Text)
4922proProductId :: Lens' Product (Maybe Text)
4400proProductId
4923proProductId
@@ -4412,6 +4935,8 @@ instance FromJSON Product where
4412 <*> (o .:? "lastUpdateTimeMs")
4935 <*> (o .:? "lastUpdateTimeMs")
4413 <*> (o .:? "kind" .!= "adexchangebuyer#product")
4936 <*> (o .:? "kind" .!= "adexchangebuyer#product")
4414 <*> (o .:? "revisionNumber")
4937 <*> (o .:? "revisionNumber")
4938+ <*> (o .:? "privateAuctionId")
4939+ <*> (o .:? "deliveryControl")
4415 <*> (o .:? "hasCreatorSignedOff")
4940 <*> (o .:? "hasCreatorSignedOff")
4416 <*> (o .:? "flightStartTimeMs")
4941 <*> (o .:? "flightStartTimeMs")
4417 <*> (o .:? "sharedTargetings" .!= mempty)
4942 <*> (o .:? "sharedTargetings" .!= mempty)
@@ -4420,7 +4945,10 @@ instance FromJSON Product where
4420 <*> (o .:? "flightEndTimeMs")
4945 <*> (o .:? "flightEndTimeMs")
4421 <*> (o .:? "name")
4946 <*> (o .:? "name")
4422 <*> (o .:? "creatorContacts" .!= mempty)
4947 <*> (o .:? "creatorContacts" .!= mempty)
4948+ <*> (o .:? "publisherProvidedForecast")
4423 <*> (o .:? "labels" .!= mempty)
4949 <*> (o .:? "labels" .!= mempty)
4950+ <*> (o .:? "publisherProfileId")
4951+ <*> (o .:? "legacyOfferId")
4424 <*> (o .:? "productId"))
4952 <*> (o .:? "productId"))
4426instance ToJSON Product where
4954instance ToJSON Product where
@@ -4435,6 +4963,8 @@ instance ToJSON Product where
4435 ("lastUpdateTimeMs" .=) <$> _proLastUpdateTimeMs,
4963 ("lastUpdateTimeMs" .=) <$> _proLastUpdateTimeMs,
4436 Just ("kind" .= _proKind),
4964 Just ("kind" .= _proKind),
4437 ("revisionNumber" .=) <$> _proRevisionNumber,
4965 ("revisionNumber" .=) <$> _proRevisionNumber,
4966+ ("privateAuctionId" .=) <$> _proPrivateAuctionId,
4967+ ("deliveryControl" .=) <$> _proDeliveryControl,
4438 ("hasCreatorSignedOff" .=) <$>
4968 ("hasCreatorSignedOff" .=) <$>
4439 _proHasCreatorSignedOff,
4969 _proHasCreatorSignedOff,
4440 ("flightStartTimeMs" .=) <$> _proFlightStartTimeMs,
4970 ("flightStartTimeMs" .=) <$> _proFlightStartTimeMs,
@@ -4444,7 +4974,11 @@ instance ToJSON Product where
4444 ("flightEndTimeMs" .=) <$> _proFlightEndTimeMs,
4974 ("flightEndTimeMs" .=) <$> _proFlightEndTimeMs,
4445 ("name" .=) <$> _proName,
4975 ("name" .=) <$> _proName,
4446 ("creatorContacts" .=) <$> _proCreatorContacts,
4976 ("creatorContacts" .=) <$> _proCreatorContacts,
4977+ ("publisherProvidedForecast" .=) <$>
4978+ _proPublisherProvidedForecast,
4447 ("labels" .=) <$> _proLabels,
4979 ("labels" .=) <$> _proLabels,
4980+ ("publisherProfileId" .=) <$> _proPublisherProFileId,
4981+ ("legacyOfferId" .=) <$> _proLegacyOfferId,
4448 ("productId" .=) <$> _proProductId])
4982 ("productId" .=) <$> _proProductId])
@@ -4616,31 +5150,343 @@ instance ToJSON PretargetingConfigPlacementsItem
4616 [("token" .=) <$> _pcpiToken,
5150 [("token" .=) <$> _pcpiToken,
4617 ("type" .=) <$> _pcpiType])
5151 ("type" .=) <$> _pcpiType])
5154+-- /See:/ 'publisherProFileAPIProto' smart constructor.
5155+data PublisherProFileAPIProto = PublisherProFileAPIProto'
5156+ { _ppfapAudience :: !(Maybe Text)
5157+ , _ppfapState :: !(Maybe Text)
5158+ , _ppfapMediaKitLink :: !(Maybe Text)
5159+ , _ppfapDirectContact :: !(Maybe Text)
5160+ , _ppfapSamplePageLink :: !(Maybe Text)
5161+ , _ppfapLogoURL :: !(Maybe Text)
5162+ , _ppfapKind :: !Text
5163+ , _ppfapExchange :: !(Maybe Text)
5164+ , _ppfapOverview :: !(Maybe Text)
5165+ , _ppfapGooglePlusLink :: !(Maybe Text)
5166+ , _ppfapProFileId :: !(Maybe (Textual Int32))
5167+ , _ppfapIsParent :: !(Maybe Bool)
5168+ , _ppfapSeller :: !(Maybe Seller)
5169+ , _ppfapAccountId :: !(Maybe Text)
5170+ , _ppfapName :: !(Maybe Text)
5171+ , _ppfapBuyerPitchStatement :: !(Maybe Text)
5172+ , _ppfapPublisherProvidedForecast :: !(Maybe PublisherProvidedForecast)
5173+ , _ppfapIsPublished :: !(Maybe Bool)
5174+ , _ppfapPublisherDomains :: !(Maybe [Text])
5175+ , _ppfapPublisherProFileId :: !(Maybe Text)
5176+ , _ppfapRateCardInfoLink :: !(Maybe Text)
5177+ , _ppfapTopHeadlines :: !(Maybe [Text])
5178+ , _ppfapProgrammaticContact :: !(Maybe Text)
5179+ } deriving (Eq,Show,Data,Typeable,Generic)
5181+-- | Creates a value of 'PublisherProFileAPIProto' with the minimum fields required to make a request.
5183+-- Use one of the following lenses to modify other fields as desired:
5185+-- * 'ppfapAudience'
5189+-- * 'ppfapMediaKitLink'
5191+-- * 'ppfapDirectContact'
5193+-- * 'ppfapSamplePageLink'
5199+-- * 'ppfapExchange'
5201+-- * 'ppfapOverview'
5203+-- * 'ppfapGooglePlusLink'
5205+-- * 'ppfapProFileId'
5207+-- * 'ppfapIsParent'
5211+-- * 'ppfapAccountId'
5215+-- * 'ppfapBuyerPitchStatement'
5217+-- * 'ppfapPublisherProvidedForecast'
5219+-- * 'ppfapIsPublished'
5221+-- * 'ppfapPublisherDomains'
5223+-- * 'ppfapPublisherProFileId'
5225+-- * 'ppfapRateCardInfoLink'
5227+-- * 'ppfapTopHeadlines'
5229+-- * 'ppfapProgrammaticContact'
5230+publisherProFileAPIProto
5231+ :: PublisherProFileAPIProto
5232+publisherProFileAPIProto =
5233+ PublisherProFileAPIProto'
5234+ { _ppfapAudience = Nothing
5235+ , _ppfapState = Nothing
5236+ , _ppfapMediaKitLink = Nothing
5237+ , _ppfapDirectContact = Nothing
5238+ , _ppfapSamplePageLink = Nothing
5239+ , _ppfapLogoURL = Nothing
5240+ , _ppfapKind = "adexchangebuyer#publisherProfileApiProto"
5241+ , _ppfapExchange = Nothing
5242+ , _ppfapOverview = Nothing
5243+ , _ppfapGooglePlusLink = Nothing
5244+ , _ppfapProFileId = Nothing
5245+ , _ppfapIsParent = Nothing
5246+ , _ppfapSeller = Nothing
5247+ , _ppfapAccountId = Nothing
5248+ , _ppfapName = Nothing
5249+ , _ppfapBuyerPitchStatement = Nothing
5250+ , _ppfapPublisherProvidedForecast = Nothing
5251+ , _ppfapIsPublished = Nothing
5252+ , _ppfapPublisherDomains = Nothing
5253+ , _ppfapPublisherProFileId = Nothing
5254+ , _ppfapRateCardInfoLink = Nothing
5255+ , _ppfapTopHeadlines = Nothing
5256+ , _ppfapProgrammaticContact = Nothing
5259+-- | Publisher provided info on its audience.
5260+ppfapAudience :: Lens' PublisherProFileAPIProto (Maybe Text)
5262+ = lens _ppfapAudience
5263+ (\ s a -> s{_ppfapAudience = a})
5265+-- | State of the publisher profile.
5266+ppfapState :: Lens' PublisherProFileAPIProto (Maybe Text)
5268+ = lens _ppfapState (\ s a -> s{_ppfapState = a})
5270+-- | The url for additional marketing and sales materials.
5271+ppfapMediaKitLink :: Lens' PublisherProFileAPIProto (Maybe Text)
5273+ = lens _ppfapMediaKitLink
5274+ (\ s a -> s{_ppfapMediaKitLink = a})
5276+-- | Direct contact for the publisher profile.
5277+ppfapDirectContact :: Lens' PublisherProFileAPIProto (Maybe Text)
5279+ = lens _ppfapDirectContact
5280+ (\ s a -> s{_ppfapDirectContact = a})
5282+-- | Link for a sample content page.
5283+ppfapSamplePageLink :: Lens' PublisherProFileAPIProto (Maybe Text)
5285+ = lens _ppfapSamplePageLink
5286+ (\ s a -> s{_ppfapSamplePageLink = a})
5288+-- | The url to the logo for the publisher.
5289+ppfapLogoURL :: Lens' PublisherProFileAPIProto (Maybe Text)
5291+ = lens _ppfapLogoURL (\ s a -> s{_ppfapLogoURL = a})
5293+-- | Identifies what kind of resource this is. Value: the fixed string
5294+-- \"adexchangebuyer#publisherProfileApiProto\".
5295+ppfapKind :: Lens' PublisherProFileAPIProto Text
5297+ = lens _ppfapKind (\ s a -> s{_ppfapKind = a})
5299+-- | Exchange where this publisher profile is from. E.g. AdX, Rubicon etc...
5300+ppfapExchange :: Lens' PublisherProFileAPIProto (Maybe Text)
5302+ = lens _ppfapExchange
5303+ (\ s a -> s{_ppfapExchange = a})
5305+-- | Publisher provided overview.
5306+ppfapOverview :: Lens' PublisherProFileAPIProto (Maybe Text)
5308+ = lens _ppfapOverview
5309+ (\ s a -> s{_ppfapOverview = a})
5311+-- | Link to publisher\'s Google+ page.
5312+ppfapGooglePlusLink :: Lens' PublisherProFileAPIProto (Maybe Text)
5314+ = lens _ppfapGooglePlusLink
5315+ (\ s a -> s{_ppfapGooglePlusLink = a})
5317+-- | The pair of (seller.account_id, profile_id) uniquely identifies a
5318+-- publisher profile for a given publisher.
5319+ppfapProFileId :: Lens' PublisherProFileAPIProto (Maybe Int32)
5321+ = lens _ppfapProFileId
5322+ (\ s a -> s{_ppfapProFileId = a})
5325+-- | True, if this is the parent profile, which represents all domains owned
5326+-- by the publisher.
5327+ppfapIsParent :: Lens' PublisherProFileAPIProto (Maybe Bool)
5329+ = lens _ppfapIsParent
5330+ (\ s a -> s{_ppfapIsParent = a})
5332+-- | Seller of the publisher profile.
5333+ppfapSeller :: Lens' PublisherProFileAPIProto (Maybe Seller)
5335+ = lens _ppfapSeller (\ s a -> s{_ppfapSeller = a})
5337+-- | The account id of the seller.
5338+ppfapAccountId :: Lens' PublisherProFileAPIProto (Maybe Text)
5340+ = lens _ppfapAccountId
5341+ (\ s a -> s{_ppfapAccountId = a})
5343+ppfapName :: Lens' PublisherProFileAPIProto (Maybe Text)
5345+ = lens _ppfapName (\ s a -> s{_ppfapName = a})
5347+-- | A pitch statement for the buyer
5348+ppfapBuyerPitchStatement :: Lens' PublisherProFileAPIProto (Maybe Text)
5349+ppfapBuyerPitchStatement
5350+ = lens _ppfapBuyerPitchStatement
5351+ (\ s a -> s{_ppfapBuyerPitchStatement = a})
5353+-- | Publisher provided forecasting information.
5354+ppfapPublisherProvidedForecast :: Lens' PublisherProFileAPIProto (Maybe PublisherProvidedForecast)
5355+ppfapPublisherProvidedForecast
5356+ = lens _ppfapPublisherProvidedForecast
5357+ (\ s a -> s{_ppfapPublisherProvidedForecast = a})
5359+-- | True, if this profile is published. Deprecated for state.
5360+ppfapIsPublished :: Lens' PublisherProFileAPIProto (Maybe Bool)
5362+ = lens _ppfapIsPublished
5363+ (\ s a -> s{_ppfapIsPublished = a})
5365+-- | The list of domains represented in this publisher profile. Empty if this
5366+-- is a parent profile.
5367+ppfapPublisherDomains :: Lens' PublisherProFileAPIProto [Text]
5368+ppfapPublisherDomains
5369+ = lens _ppfapPublisherDomains
5370+ (\ s a -> s{_ppfapPublisherDomains = a})
5374+-- | Unique Id for publisher profile.
5375+ppfapPublisherProFileId :: Lens' PublisherProFileAPIProto (Maybe Text)
5376+ppfapPublisherProFileId
5377+ = lens _ppfapPublisherProFileId
5378+ (\ s a -> s{_ppfapPublisherProFileId = a})
5380+-- | Link to publisher rate card
5381+ppfapRateCardInfoLink :: Lens' PublisherProFileAPIProto (Maybe Text)
5382+ppfapRateCardInfoLink
5383+ = lens _ppfapRateCardInfoLink
5384+ (\ s a -> s{_ppfapRateCardInfoLink = a})
5386+-- | Publisher provided key metrics and rankings.
5387+ppfapTopHeadlines :: Lens' PublisherProFileAPIProto [Text]
5389+ = lens _ppfapTopHeadlines
5390+ (\ s a -> s{_ppfapTopHeadlines = a})
5394+-- | Programmatic contact for the publisher profile.
5395+ppfapProgrammaticContact :: Lens' PublisherProFileAPIProto (Maybe Text)
5396+ppfapProgrammaticContact
5397+ = lens _ppfapProgrammaticContact
5398+ (\ s a -> s{_ppfapProgrammaticContact = a})
5400+instance FromJSON PublisherProFileAPIProto where
5402+ = withObject "PublisherProFileAPIProto"
5404+ PublisherProFileAPIProto' <$>
5405+ (o .:? "audience") <*> (o .:? "state") <*>
5406+ (o .:? "mediaKitLink")
5407+ <*> (o .:? "directContact")
5408+ <*> (o .:? "samplePageLink")
5409+ <*> (o .:? "logoUrl")
5412+ "adexchangebuyer#publisherProfileApiProto")
5413+ <*> (o .:? "exchange")
5414+ <*> (o .:? "overview")
5415+ <*> (o .:? "googlePlusLink")
5416+ <*> (o .:? "profileId")
5417+ <*> (o .:? "isParent")
5418+ <*> (o .:? "seller")
5419+ <*> (o .:? "accountId")
5421+ <*> (o .:? "buyerPitchStatement")
5422+ <*> (o .:? "publisherProvidedForecast")
5423+ <*> (o .:? "isPublished")
5424+ <*> (o .:? "publisherDomains" .!= mempty)
5425+ <*> (o .:? "publisherProfileId")
5426+ <*> (o .:? "rateCardInfoLink")
5427+ <*> (o .:? "topHeadlines" .!= mempty)
5428+ <*> (o .:? "programmaticContact"))
5430+instance ToJSON PublisherProFileAPIProto where
5431+ toJSON PublisherProFileAPIProto'{..}
5434+ [("audience" .=) <$> _ppfapAudience,
5435+ ("state" .=) <$> _ppfapState,
5436+ ("mediaKitLink" .=) <$> _ppfapMediaKitLink,
5437+ ("directContact" .=) <$> _ppfapDirectContact,
5438+ ("samplePageLink" .=) <$> _ppfapSamplePageLink,
5439+ ("logoUrl" .=) <$> _ppfapLogoURL,
5440+ Just ("kind" .= _ppfapKind),
5441+ ("exchange" .=) <$> _ppfapExchange,
5442+ ("overview" .=) <$> _ppfapOverview,
5443+ ("googlePlusLink" .=) <$> _ppfapGooglePlusLink,
5444+ ("profileId" .=) <$> _ppfapProFileId,
5445+ ("isParent" .=) <$> _ppfapIsParent,
5446+ ("seller" .=) <$> _ppfapSeller,
5447+ ("accountId" .=) <$> _ppfapAccountId,
5448+ ("name" .=) <$> _ppfapName,
5449+ ("buyerPitchStatement" .=) <$>
5450+ _ppfapBuyerPitchStatement,
5451+ ("publisherProvidedForecast" .=) <$>
5452+ _ppfapPublisherProvidedForecast,
5453+ ("isPublished" .=) <$> _ppfapIsPublished,
5454+ ("publisherDomains" .=) <$> _ppfapPublisherDomains,
5455+ ("publisherProfileId" .=) <$>
5456+ _ppfapPublisherProFileId,
5457+ ("rateCardInfoLink" .=) <$> _ppfapRateCardInfoLink,
5458+ ("topHeadlines" .=) <$> _ppfapTopHeadlines,
5459+ ("programmaticContact" .=) <$>
5460+ _ppfapProgrammaticContact])
4619-- | A proposal can contain multiple deals. A deal contains the terms and
5462-- | A proposal can contain multiple deals. A deal contains the terms and
4620-- targeting information that is used for serving.
5463-- targeting information that is used for serving.
4622-- /See:/ 'marketplaceDeal' smart constructor.
5465-- /See:/ 'marketplaceDeal' smart constructor.
4623data MarketplaceDeal = MarketplaceDeal'
5466data MarketplaceDeal = MarketplaceDeal'
4624− { _mdExternalDealId :: !(Maybe Text)
5467+ { _mdExternalDealId :: !(Maybe Text)
4625− , _mdBuyerPrivateData :: !(Maybe PrivateData)
5468+ , _mdBuyerPrivateData :: !(Maybe PrivateData)
4626− , _mdWebPropertyCode :: !(Maybe Text)
5469+ , _mdWebPropertyCode :: !(Maybe Text)
4627− , _mdCreationTimeMs :: !(Maybe (Textual Int64))
5470+ , _mdCreationTimeMs :: !(Maybe (Textual Int64))
4628− , _mdTerms :: !(Maybe DealTerms)
5471+ , _mdTerms :: !(Maybe DealTerms)
4629− , _mdLastUpdateTimeMs :: !(Maybe (Textual Int64))
5472+ , _mdLastUpdateTimeMs :: !(Maybe (Textual Int64))
4630− , _mdKind :: !Text
5473+ , _mdKind :: !Text
4631− , _mdDeliveryControl :: !(Maybe DeliveryControl)
5474+ , _mdDeliveryControl :: !(Maybe DeliveryControl)
5475+ , _mdDealServingMetadata :: !(Maybe DealServingMetadata)
4632− , _mdFlightStartTimeMs :: !(Maybe (Textual Int64))
5476+ , _mdFlightStartTimeMs :: !(Maybe (Textual Int64))
4633− , _mdSharedTargetings :: !(Maybe [SharedTargeting])
5477+ , _mdSharedTargetings :: !(Maybe [SharedTargeting])
4634− , _mdProposalId :: !(Maybe Text)
5478+ , _mdProposalId :: !(Maybe Text)
4635− , _mdDealId :: !(Maybe Text)
5479+ , _mdDealId :: !(Maybe Text)
4636− , _mdInventoryDescription :: !(Maybe Text)
5480+ , _mdInventoryDescription :: !(Maybe Text)
4637− , _mdSyndicationProduct :: !(Maybe Text)
5481+ , _mdSyndicationProduct :: !(Maybe Text)
4638− , _mdFlightEndTimeMs :: !(Maybe (Textual Int64))
5482+ , _mdFlightEndTimeMs :: !(Maybe (Textual Int64))
4639− , _mdName :: !(Maybe Text)
5483+ , _mdName :: !(Maybe Text)
4640− , _mdSellerContacts :: !(Maybe [ContactInformation])
5484+ , _mdSellerContacts :: !(Maybe [ContactInformation])
5485+ , _mdProgrammaticCreativeSource :: !(Maybe Text)
4641− , _mdCreativePreApprovalPolicy :: !(Maybe Text)
5486+ , _mdCreativePreApprovalPolicy :: !(Maybe Text)
4642− , _mdProductRevisionNumber :: !(Maybe (Textual Int64))
5487+ , _mdProductRevisionNumber :: !(Maybe (Textual Int64))
4643− , _mdProductId :: !(Maybe Text)
5488+ , _mdProductId :: !(Maybe Text)
5489+ , _mdCreativeSafeFrameCompatibility :: !(Maybe Text)
4644 } deriving (Eq,Show,Data,Typeable,Generic)
5490 } deriving (Eq,Show,Data,Typeable,Generic)
4646-- | Creates a value of 'MarketplaceDeal' with the minimum fields required to make a request.
5492-- | Creates a value of 'MarketplaceDeal' with the minimum fields required to make a request.
@@ -4663,6 +5509,8 @@ data MarketplaceDeal = MarketplaceDeal'
4664-- * 'mdDeliveryControl'
5510-- * 'mdDeliveryControl'
5512+-- * 'mdDealServingMetadata'
4666-- * 'mdFlightStartTimeMs'
5514-- * 'mdFlightStartTimeMs'
4668-- * 'mdSharedTargetings'
5516-- * 'mdSharedTargetings'
@@ -4681,11 +5529,15 @@ data MarketplaceDeal = MarketplaceDeal'
4682-- * 'mdSellerContacts'
5530-- * 'mdSellerContacts'
5532+-- * 'mdProgrammaticCreativeSource'
4684-- * 'mdCreativePreApprovalPolicy'
5534-- * 'mdCreativePreApprovalPolicy'
4686-- * 'mdProductRevisionNumber'
5536-- * 'mdProductRevisionNumber'
4688-- * 'mdProductId'
5538-- * 'mdProductId'
5540+-- * 'mdCreativeSafeFrameCompatibility'
4689marketplaceDeal
5541marketplaceDeal
4690 :: MarketplaceDeal
5542 :: MarketplaceDeal
4691marketplaceDeal =
5543marketplaceDeal =
@@ -4698,6 +5550,7 @@ marketplaceDeal =
4698 , _mdLastUpdateTimeMs = Nothing
5550 , _mdLastUpdateTimeMs = Nothing
4699 , _mdKind = "adexchangebuyer#marketplaceDeal"
5551 , _mdKind = "adexchangebuyer#marketplaceDeal"
4700 , _mdDeliveryControl = Nothing
5552 , _mdDeliveryControl = Nothing
5553+ , _mdDealServingMetadata = Nothing
4701 , _mdFlightStartTimeMs = Nothing
5554 , _mdFlightStartTimeMs = Nothing
4702 , _mdSharedTargetings = Nothing
5555 , _mdSharedTargetings = Nothing
4703 , _mdProposalId = Nothing
5556 , _mdProposalId = Nothing
@@ -4707,9 +5560,11 @@ marketplaceDeal =
4707 , _mdFlightEndTimeMs = Nothing
5560 , _mdFlightEndTimeMs = Nothing
4708 , _mdName = Nothing
5561 , _mdName = Nothing
4709 , _mdSellerContacts = Nothing
5562 , _mdSellerContacts = Nothing
5563+ , _mdProgrammaticCreativeSource = Nothing
4710 , _mdCreativePreApprovalPolicy = Nothing
5564 , _mdCreativePreApprovalPolicy = Nothing
4711 , _mdProductRevisionNumber = Nothing
5565 , _mdProductRevisionNumber = Nothing
4712 , _mdProductId = Nothing
5566 , _mdProductId = Nothing
5567+ , _mdCreativeSafeFrameCompatibility = Nothing
4715-- | The external deal id assigned to this deal once the deal is finalized.
5570-- | The external deal id assigned to this deal once the deal is finalized.
@@ -4762,6 +5617,13 @@ mdDeliveryControl
4762 = lens _mdDeliveryControl
5617 = lens _mdDeliveryControl
4763 (\ s a -> s{_mdDeliveryControl = a})
5618 (\ s a -> s{_mdDeliveryControl = a})
5620+-- | Metadata about the serving status of this deal (readonly, writes via
5622+mdDealServingMetadata :: Lens' MarketplaceDeal (Maybe DealServingMetadata)
5623+mdDealServingMetadata
5624+ = lens _mdDealServingMetadata
5625+ (\ s a -> s{_mdDealServingMetadata = a})
4765-- | Proposed flight start time of the deal (ms since epoch) This will
5627-- | Proposed flight start time of the deal (ms since epoch) This will
4766-- generally be stored in a granularity of a second. (updatable)
5628-- generally be stored in a granularity of a second. (updatable)
4767mdFlightStartTimeMs :: Lens' MarketplaceDeal (Maybe Int64)
5629mdFlightStartTimeMs :: Lens' MarketplaceDeal (Maybe Int64)
@@ -4770,7 +5632,8 @@ mdFlightStartTimeMs
4770 (\ s a -> s{_mdFlightStartTimeMs = a})
5632 (\ s a -> s{_mdFlightStartTimeMs = a})
4771 . mapping _Coerce
5633 . mapping _Coerce
4773−-- | The shared targeting visible to buyers and sellers. (updatable)
5635+-- | The shared targeting visible to buyers and sellers. Each shared
5636+-- targeting entity is AND\'d together. (updatable)
4774mdSharedTargetings :: Lens' MarketplaceDeal [SharedTargeting]
5637mdSharedTargetings :: Lens' MarketplaceDeal [SharedTargeting]
4775mdSharedTargetings
5638mdSharedTargetings
4776 = lens _mdSharedTargetings
5639 = lens _mdSharedTargetings
@@ -4819,6 +5682,14 @@ mdSellerContacts
4819 . _Default
5682 . _Default
4820 . _Coerce
5683 . _Coerce
5685+-- | Specifies the creative source for programmatic deals, PUBLISHER means
5686+-- creative is provided by seller and ADVERTISR means creative is provided
5687+-- by buyer. (buyer-readonly)
5688+mdProgrammaticCreativeSource :: Lens' MarketplaceDeal (Maybe Text)
5689+mdProgrammaticCreativeSource
5690+ = lens _mdProgrammaticCreativeSource
5691+ (\ s a -> s{_mdProgrammaticCreativeSource = a})
4822-- | Specifies the creative pre-approval policy (buyer-readonly)
5693-- | Specifies the creative pre-approval policy (buyer-readonly)
4823mdCreativePreApprovalPolicy :: Lens' MarketplaceDeal (Maybe Text)
5694mdCreativePreApprovalPolicy :: Lens' MarketplaceDeal (Maybe Text)
4824mdCreativePreApprovalPolicy
5695mdCreativePreApprovalPolicy
@@ -4839,6 +5710,12 @@ mdProductId :: Lens' MarketplaceDeal (Maybe Text)
4839mdProductId
5710mdProductId
4840 = lens _mdProductId (\ s a -> s{_mdProductId = a})
5711 = lens _mdProductId (\ s a -> s{_mdProductId = a})
5713+-- | Specifies whether the creative is safeFrame compatible (buyer-readonly)
5714+mdCreativeSafeFrameCompatibility :: Lens' MarketplaceDeal (Maybe Text)
5715+mdCreativeSafeFrameCompatibility
5716+ = lens _mdCreativeSafeFrameCompatibility
5717+ (\ s a -> s{_mdCreativeSafeFrameCompatibility = a})
4842instance FromJSON MarketplaceDeal where
5719instance FromJSON MarketplaceDeal where
4843 parseJSON
5720 parseJSON
4844 = withObject "MarketplaceDeal"
5721 = withObject "MarketplaceDeal"
@@ -4853,6 +5730,7 @@ instance FromJSON MarketplaceDeal where
4854 (o .:? "kind" .!= "adexchangebuyer#marketplaceDeal")
5731 (o .:? "kind" .!= "adexchangebuyer#marketplaceDeal")
4855 <*> (o .:? "deliveryControl")
5732 <*> (o .:? "deliveryControl")
5733+ <*> (o .:? "dealServingMetadata")
4856 <*> (o .:? "flightStartTimeMs")
5734 <*> (o .:? "flightStartTimeMs")
4857 <*> (o .:? "sharedTargetings" .!= mempty)
5735 <*> (o .:? "sharedTargetings" .!= mempty)
4858 <*> (o .:? "proposalId")
5736 <*> (o .:? "proposalId")
@@ -4862,9 +5740,11 @@ instance FromJSON MarketplaceDeal where
4862 <*> (o .:? "flightEndTimeMs")
5740 <*> (o .:? "flightEndTimeMs")
4863 <*> (o .:? "name")
5741 <*> (o .:? "name")
4864 <*> (o .:? "sellerContacts" .!= mempty)
5742 <*> (o .:? "sellerContacts" .!= mempty)
5743+ <*> (o .:? "programmaticCreativeSource")
4865 <*> (o .:? "creativePreApprovalPolicy")
5744 <*> (o .:? "creativePreApprovalPolicy")
4866 <*> (o .:? "productRevisionNumber")
5745 <*> (o .:? "productRevisionNumber")
4867− <*> (o .:? "productId"))
5746+ <*> (o .:? "productId")
5747+ <*> (o .:? "creativeSafeFrameCompatibility"))
4869instance ToJSON MarketplaceDeal where
5749instance ToJSON MarketplaceDeal where
4870 toJSON MarketplaceDeal'{..}
5750 toJSON MarketplaceDeal'{..}
@@ -4878,6 +5758,8 @@ instance ToJSON MarketplaceDeal where
4878 ("lastUpdateTimeMs" .=) <$> _mdLastUpdateTimeMs,
5758 ("lastUpdateTimeMs" .=) <$> _mdLastUpdateTimeMs,
4879 Just ("kind" .= _mdKind),
5759 Just ("kind" .= _mdKind),
4880 ("deliveryControl" .=) <$> _mdDeliveryControl,
5760 ("deliveryControl" .=) <$> _mdDeliveryControl,
5761+ ("dealServingMetadata" .=) <$>
5762+ _mdDealServingMetadata,
4881 ("flightStartTimeMs" .=) <$> _mdFlightStartTimeMs,
5763 ("flightStartTimeMs" .=) <$> _mdFlightStartTimeMs,
4882 ("sharedTargetings" .=) <$> _mdSharedTargetings,
5764 ("sharedTargetings" .=) <$> _mdSharedTargetings,
4883 ("proposalId" .=) <$> _mdProposalId,
5765 ("proposalId" .=) <$> _mdProposalId,
@@ -4888,11 +5770,15 @@ instance ToJSON MarketplaceDeal where
4888 ("flightEndTimeMs" .=) <$> _mdFlightEndTimeMs,
5770 ("flightEndTimeMs" .=) <$> _mdFlightEndTimeMs,
4889 ("name" .=) <$> _mdName,
5771 ("name" .=) <$> _mdName,
4890 ("sellerContacts" .=) <$> _mdSellerContacts,
5772 ("sellerContacts" .=) <$> _mdSellerContacts,
5773+ ("programmaticCreativeSource" .=) <$>
5774+ _mdProgrammaticCreativeSource,
4891 ("creativePreApprovalPolicy" .=) <$>
5775 ("creativePreApprovalPolicy" .=) <$>
4892 _mdCreativePreApprovalPolicy,
5776 _mdCreativePreApprovalPolicy,
4893 ("productRevisionNumber" .=) <$>
5777 ("productRevisionNumber" .=) <$>
4894 _mdProductRevisionNumber,
5778 _mdProductRevisionNumber,
4895− ("productId" .=) <$> _mdProductId])
5779+ ("productId" .=) <$> _mdProductId,
5780+ ("creativeSafeFrameCompatibility" .=) <$>
5781+ _mdCreativeSafeFrameCompatibility])
4898-- /See:/ 'getOffersResponse' smart constructor.
5784-- /See:/ 'getOffersResponse' smart constructor.
@@ -4933,8 +5819,8 @@ instance ToJSON GetOffersResponse where
4934-- /See:/ 'dealTermsNonGuaranteedAuctionTerms' smart constructor.
5820-- /See:/ 'dealTermsNonGuaranteedAuctionTerms' smart constructor.
4935data DealTermsNonGuaranteedAuctionTerms = DealTermsNonGuaranteedAuctionTerms'
5821data DealTermsNonGuaranteedAuctionTerms = DealTermsNonGuaranteedAuctionTerms'
4936− { _dtngatReservePricePerBuyers :: !(Maybe [PricePerBuyer])
5822+ { _dtngatReservePricePerBuyers :: !(Maybe [PricePerBuyer])
4937− , _dtngatPrivateAuctionId :: !(Maybe Text)
5823+ , _dtngatAutoOptimizePrivateAuction :: !(Maybe Bool)
4938 } deriving (Eq,Show,Data,Typeable,Generic)
5824 } deriving (Eq,Show,Data,Typeable,Generic)
4940-- | Creates a value of 'DealTermsNonGuaranteedAuctionTerms' with the minimum fields required to make a request.
5826-- | Creates a value of 'DealTermsNonGuaranteedAuctionTerms' with the minimum fields required to make a request.
@@ -4943,13 +5829,13 @@ data DealTermsNonGuaranteedAuctionTerms = DealTermsNonGuaranteedAuctionTerms'
4944-- * 'dtngatReservePricePerBuyers'
5830-- * 'dtngatReservePricePerBuyers'
4946−-- * 'dtngatPrivateAuctionId'
5832+-- * 'dtngatAutoOptimizePrivateAuction'
4947dealTermsNonGuaranteedAuctionTerms
5833dealTermsNonGuaranteedAuctionTerms
4948 :: DealTermsNonGuaranteedAuctionTerms
5834 :: DealTermsNonGuaranteedAuctionTerms
4949dealTermsNonGuaranteedAuctionTerms =
5835dealTermsNonGuaranteedAuctionTerms =
4950 DealTermsNonGuaranteedAuctionTerms'
5836 DealTermsNonGuaranteedAuctionTerms'
4951 { _dtngatReservePricePerBuyers = Nothing
5837 { _dtngatReservePricePerBuyers = Nothing
4952− , _dtngatPrivateAuctionId = Nothing
5838+ , _dtngatAutoOptimizePrivateAuction = Nothing
4955-- | Reserve price for the specified buyer.
5841-- | Reserve price for the specified buyer.
@@ -4960,11 +5846,12 @@ dtngatReservePricePerBuyers
4960 . _Default
5846 . _Default
4961 . _Coerce
5847 . _Coerce
5849+-- | True if open auction buyers are allowed to compete with invited buyers
4963−-- | Id of the corresponding private auction.
5850+-- in this private auction (buyer-readonly).
4964−dtngatPrivateAuctionId :: Lens' DealTermsNonGuaranteedAuctionTerms (Maybe Text)
5851+dtngatAutoOptimizePrivateAuction :: Lens' DealTermsNonGuaranteedAuctionTerms (Maybe Bool)
4965−dtngatPrivateAuctionId
5852+dtngatAutoOptimizePrivateAuction
4966− = lens _dtngatPrivateAuctionId
5853+ = lens _dtngatAutoOptimizePrivateAuction
4967− (\ s a -> s{_dtngatPrivateAuctionId = a})
5854+ (\ s a -> s{_dtngatAutoOptimizePrivateAuction = a})
4969instance FromJSON DealTermsNonGuaranteedAuctionTerms
5856instance FromJSON DealTermsNonGuaranteedAuctionTerms
@@ -4973,7 +5860,7 @@ instance FromJSON DealTermsNonGuaranteedAuctionTerms
4974 DealTermsNonGuaranteedAuctionTerms' <$>
5861 DealTermsNonGuaranteedAuctionTerms' <$>
4975 (o .:? "reservePricePerBuyers" .!= mempty) <*>
5862 (o .:? "reservePricePerBuyers" .!= mempty) <*>
4976− (o .:? "privateAuctionId"))
5863+ (o .:? "autoOptimizePrivateAuction"))
4978instance ToJSON DealTermsNonGuaranteedAuctionTerms
5865instance ToJSON DealTermsNonGuaranteedAuctionTerms
@@ -4982,7 +5869,8 @@ instance ToJSON DealTermsNonGuaranteedAuctionTerms
4982 (catMaybes
5869 (catMaybes
4983 [("reservePricePerBuyers" .=) <$>
5870 [("reservePricePerBuyers" .=) <$>
4984 _dtngatReservePricePerBuyers,
5871 _dtngatReservePricePerBuyers,
4985− ("privateAuctionId" .=) <$> _dtngatPrivateAuctionId])
5872+ ("autoOptimizePrivateAuction" .=) <$>
5873+ _dtngatAutoOptimizePrivateAuction])
4988-- /See:/ 'creativeFilteringReasonsReasonsItem' smart constructor.
5876-- /See:/ 'creativeFilteringReasonsReasonsItem' smart constructor.
@@ -5047,6 +5935,7 @@ data DealTerms = DealTerms'
5047 , _dtNonGuaranteedAuctionTerms :: !(Maybe DealTermsNonGuaranteedAuctionTerms)
5935 , _dtNonGuaranteedAuctionTerms :: !(Maybe DealTermsNonGuaranteedAuctionTerms)
5048 , _dtBrandingType :: !(Maybe Text)
5936 , _dtBrandingType :: !(Maybe Text)
5049 , _dtEstimatedImpressionsPerDay :: !(Maybe (Textual Int64))
5937 , _dtEstimatedImpressionsPerDay :: !(Maybe (Textual Int64))
5938+ , _dtSellerTimeZone :: !(Maybe Text)
5050 , _dtGuaranteedFixedPriceTerms :: !(Maybe DealTermsGuaranteedFixedPriceTerms)
5939 , _dtGuaranteedFixedPriceTerms :: !(Maybe DealTermsGuaranteedFixedPriceTerms)
5051 , _dtDescription :: !(Maybe Text)
5940 , _dtDescription :: !(Maybe Text)
5052 } deriving (Eq,Show,Data,Typeable,Generic)
5941 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -5065,6 +5954,8 @@ data DealTerms = DealTerms'
5066-- * 'dtEstimatedImpressionsPerDay'
5955-- * 'dtEstimatedImpressionsPerDay'
5957+-- * 'dtSellerTimeZone'
5068-- * 'dtGuaranteedFixedPriceTerms'
5959-- * 'dtGuaranteedFixedPriceTerms'
5070-- * 'dtDescription'
5961-- * 'dtDescription'
@@ -5077,6 +5968,7 @@ dealTerms =
5077 , _dtNonGuaranteedAuctionTerms = Nothing
5968 , _dtNonGuaranteedAuctionTerms = Nothing
5078 , _dtBrandingType = Nothing
5969 , _dtBrandingType = Nothing
5079 , _dtEstimatedImpressionsPerDay = Nothing
5970 , _dtEstimatedImpressionsPerDay = Nothing
5971+ , _dtSellerTimeZone = Nothing
5080 , _dtGuaranteedFixedPriceTerms = Nothing
5972 , _dtGuaranteedFixedPriceTerms = Nothing
5081 , _dtDescription = Nothing
5973 , _dtDescription = Nothing
@@ -5114,6 +6006,13 @@ dtEstimatedImpressionsPerDay
5114 (\ s a -> s{_dtEstimatedImpressionsPerDay = a})
6006 (\ s a -> s{_dtEstimatedImpressionsPerDay = a})
5115 . mapping _Coerce
6007 . mapping _Coerce
6009+-- | For deals with Cost Per Day billing, defines the timezone used to mark
6010+-- the boundaries of a day (buyer-readonly)
6011+dtSellerTimeZone :: Lens' DealTerms (Maybe Text)
6013+ = lens _dtSellerTimeZone
6014+ (\ s a -> s{_dtSellerTimeZone = a})
5117-- | The terms for guaranteed fixed price deals.
6016-- | The terms for guaranteed fixed price deals.
5118dtGuaranteedFixedPriceTerms :: Lens' DealTerms (Maybe DealTermsGuaranteedFixedPriceTerms)
6017dtGuaranteedFixedPriceTerms :: Lens' DealTerms (Maybe DealTermsGuaranteedFixedPriceTerms)
5119dtGuaranteedFixedPriceTerms
6018dtGuaranteedFixedPriceTerms
@@ -5136,6 +6035,7 @@ instance FromJSON DealTerms where
5136 <*> (o .:? "nonGuaranteedAuctionTerms")
6035 <*> (o .:? "nonGuaranteedAuctionTerms")
5137 <*> (o .:? "brandingType")
6036 <*> (o .:? "brandingType")
5138 <*> (o .:? "estimatedImpressionsPerDay")
6037 <*> (o .:? "estimatedImpressionsPerDay")
6038+ <*> (o .:? "sellerTimeZone")
5139 <*> (o .:? "guaranteedFixedPriceTerms")
6039 <*> (o .:? "guaranteedFixedPriceTerms")
5140 <*> (o .:? "description"))
6040 <*> (o .:? "description"))
@@ -5152,6 +6052,7 @@ instance ToJSON DealTerms where
5152 ("brandingType" .=) <$> _dtBrandingType,
6052 ("brandingType" .=) <$> _dtBrandingType,
5153 ("estimatedImpressionsPerDay" .=) <$>
6053 ("estimatedImpressionsPerDay" .=) <$>
5154 _dtEstimatedImpressionsPerDay,
6054 _dtEstimatedImpressionsPerDay,
6055+ ("sellerTimeZone" .=) <$> _dtSellerTimeZone,
5155 ("guaranteedFixedPriceTerms" .=) <$>
6056 ("guaranteedFixedPriceTerms" .=) <$>
5156 _dtGuaranteedFixedPriceTerms,
6057 _dtGuaranteedFixedPriceTerms,
5157 ("description" .=) <$> _dtDescription])
6058 ("description" .=) <$> _dtDescription])
@@ -5323,11 +6224,63 @@ instance ToJSON AddOrderDealsRequest where
5323 ("proposalRevisionNumber" .=) <$>
6224 ("proposalRevisionNumber" .=) <$>
5324 _aProposalRevisionNumber])
6225 _aProposalRevisionNumber])
6227+-- | Tracks which parties (if any) have paused a deal. The deal is considered
6228+-- paused if has_buyer_paused || has_seller_paused.
6230+-- /See:/ 'dealServingMetadataDealPauseStatus' smart constructor.
6231+data DealServingMetadataDealPauseStatus = DealServingMetadataDealPauseStatus'
6232+ { _dsmdpsHasBuyerPaused :: !(Maybe Bool)
6233+ , _dsmdpsHasSellerPaused :: !(Maybe Bool)
6234+ } deriving (Eq,Show,Data,Typeable,Generic)
6236+-- | Creates a value of 'DealServingMetadataDealPauseStatus' with the minimum fields required to make a request.
6238+-- Use one of the following lenses to modify other fields as desired:
6240+-- * 'dsmdpsHasBuyerPaused'
6242+-- * 'dsmdpsHasSellerPaused'
6243+dealServingMetadataDealPauseStatus
6244+ :: DealServingMetadataDealPauseStatus
6245+dealServingMetadataDealPauseStatus =
6246+ DealServingMetadataDealPauseStatus'
6247+ { _dsmdpsHasBuyerPaused = Nothing
6248+ , _dsmdpsHasSellerPaused = Nothing
6251+dsmdpsHasBuyerPaused :: Lens' DealServingMetadataDealPauseStatus (Maybe Bool)
6252+dsmdpsHasBuyerPaused
6253+ = lens _dsmdpsHasBuyerPaused
6254+ (\ s a -> s{_dsmdpsHasBuyerPaused = a})
6256+dsmdpsHasSellerPaused :: Lens' DealServingMetadataDealPauseStatus (Maybe Bool)
6257+dsmdpsHasSellerPaused
6258+ = lens _dsmdpsHasSellerPaused
6259+ (\ s a -> s{_dsmdpsHasSellerPaused = a})
6261+instance FromJSON DealServingMetadataDealPauseStatus
6264+ = withObject "DealServingMetadataDealPauseStatus"
6266+ DealServingMetadataDealPauseStatus' <$>
6267+ (o .:? "hasBuyerPaused") <*>
6268+ (o .:? "hasSellerPaused"))
6270+instance ToJSON DealServingMetadataDealPauseStatus
6272+ toJSON DealServingMetadataDealPauseStatus'{..}
6275+ [("hasBuyerPaused" .=) <$> _dsmdpsHasBuyerPaused,
6276+ ("hasSellerPaused" .=) <$> _dsmdpsHasSellerPaused])
5327-- /See:/ 'dealTermsGuaranteedFixedPriceTerms' smart constructor.
6279-- /See:/ 'dealTermsGuaranteedFixedPriceTerms' smart constructor.
5328data DealTermsGuaranteedFixedPriceTerms = DealTermsGuaranteedFixedPriceTerms'
6280data DealTermsGuaranteedFixedPriceTerms = DealTermsGuaranteedFixedPriceTerms'
5329 { _dtgfptGuaranteedLooks :: !(Maybe (Textual Int64))
6281 { _dtgfptGuaranteedLooks :: !(Maybe (Textual Int64))
5330 , _dtgfptGuaranteedImpressions :: !(Maybe (Textual Int64))
6282 , _dtgfptGuaranteedImpressions :: !(Maybe (Textual Int64))
6283+ , _dtgfptBillingInfo :: !(Maybe DealTermsGuaranteedFixedPriceTermsBillingInfo)
5331 , _dtgfptFixedPrices :: !(Maybe [PricePerBuyer])
6284 , _dtgfptFixedPrices :: !(Maybe [PricePerBuyer])
5332 } deriving (Eq,Show,Data,Typeable,Generic)
6285 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -5339,6 +6292,8 @@ data DealTermsGuaranteedFixedPriceTerms = DealTermsGuaranteedFixedPriceTerms'
5340-- * 'dtgfptGuaranteedImpressions'
6293-- * 'dtgfptGuaranteedImpressions'
6295+-- * 'dtgfptBillingInfo'
5342-- * 'dtgfptFixedPrices'
6297-- * 'dtgfptFixedPrices'
5343dealTermsGuaranteedFixedPriceTerms
6298dealTermsGuaranteedFixedPriceTerms
5344 :: DealTermsGuaranteedFixedPriceTerms
6299 :: DealTermsGuaranteedFixedPriceTerms
@@ -5346,6 +6301,7 @@ dealTermsGuaranteedFixedPriceTerms =
5346 DealTermsGuaranteedFixedPriceTerms'
6301 DealTermsGuaranteedFixedPriceTerms'
5347 { _dtgfptGuaranteedLooks = Nothing
6302 { _dtgfptGuaranteedLooks = Nothing
5348 , _dtgfptGuaranteedImpressions = Nothing
6303 , _dtgfptGuaranteedImpressions = Nothing
6304+ , _dtgfptBillingInfo = Nothing
5349 , _dtgfptFixedPrices = Nothing
6305 , _dtgfptFixedPrices = Nothing
@@ -5364,6 +6320,14 @@ dtgfptGuaranteedImpressions
5364 (\ s a -> s{_dtgfptGuaranteedImpressions = a})
6320 (\ s a -> s{_dtgfptGuaranteedImpressions = a})
5365 . mapping _Coerce
6321 . mapping _Coerce
6323+-- | External billing info for this Deal. This field is relevant when
6324+-- external billing info such as price has a different currency code than
6326+dtgfptBillingInfo :: Lens' DealTermsGuaranteedFixedPriceTerms (Maybe DealTermsGuaranteedFixedPriceTermsBillingInfo)
6328+ = lens _dtgfptBillingInfo
6329+ (\ s a -> s{_dtgfptBillingInfo = a})
5367-- | Fixed price for the specified buyer.
6331-- | Fixed price for the specified buyer.
5368dtgfptFixedPrices :: Lens' DealTermsGuaranteedFixedPriceTerms [PricePerBuyer]
6332dtgfptFixedPrices :: Lens' DealTermsGuaranteedFixedPriceTerms [PricePerBuyer]
5369dtgfptFixedPrices
6333dtgfptFixedPrices
@@ -5380,6 +6344,7 @@ instance FromJSON DealTermsGuaranteedFixedPriceTerms
5380 DealTermsGuaranteedFixedPriceTerms' <$>
6344 DealTermsGuaranteedFixedPriceTerms' <$>
5381 (o .:? "guaranteedLooks") <*>
6345 (o .:? "guaranteedLooks") <*>
5382 (o .:? "guaranteedImpressions")
6346 (o .:? "guaranteedImpressions")
6347+ <*> (o .:? "billingInfo")
5383 <*> (o .:? "fixedPrices" .!= mempty))
6348 <*> (o .:? "fixedPrices" .!= mempty))
5385instance ToJSON DealTermsGuaranteedFixedPriceTerms
6350instance ToJSON DealTermsGuaranteedFixedPriceTerms
@@ -5390,4 +6355,5 @@ instance ToJSON DealTermsGuaranteedFixedPriceTerms
5390 [("guaranteedLooks" .=) <$> _dtgfptGuaranteedLooks,
6355 [("guaranteedLooks" .=) <$> _dtgfptGuaranteedLooks,
5391 ("guaranteedImpressions" .=) <$>
6356 ("guaranteedImpressions" .=) <$>
5392 _dtgfptGuaranteedImpressions,
6357 _dtgfptGuaranteedImpressions,
6358+ ("billingInfo" .=) <$> _dtgfptBillingInfo,
5393 ("fixedPrices" .=) <$> _dtgfptFixedPrices])
6359 ("fixedPrices" .=) <$> _dtgfptFixedPrices])