on develop help sign in
Regenerating gogol-adexchange-buyer from latest service definition
30accf0Brendan Hay
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer.hs+108−1
@@ -91,6 +91,9 @@ module Network.Google.AdExchangeBuyer
91 -- ** adexchangebuyer.marketplacenotes.list
91 -- ** adexchangebuyer.marketplacenotes.list
92 , module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
92 , module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
93
93
94+ -- ** adexchangebuyer.marketplaceprivateauction.updateproposal
95+ , module Network.Google.Resource.AdExchangeBuyer.Marketplaceprivateauction.Updateproposal
96+
94 -- ** adexchangebuyer.performanceReport.list
97 -- ** adexchangebuyer.performanceReport.list
95 , module Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
98 , module Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
96
99
@@ -130,9 +133,15 @@ module Network.Google.AdExchangeBuyer
130 -- ** adexchangebuyer.proposals.search
133 -- ** adexchangebuyer.proposals.search
131 , module Network.Google.Resource.AdExchangeBuyer.Proposals.Search
134 , module Network.Google.Resource.AdExchangeBuyer.Proposals.Search
132
135
136+ -- ** adexchangebuyer.proposals.setupcomplete
137+ , module Network.Google.Resource.AdExchangeBuyer.Proposals.Setupcomplete
138+
133 -- ** adexchangebuyer.proposals.update
139 -- ** adexchangebuyer.proposals.update
134 , module Network.Google.Resource.AdExchangeBuyer.Proposals.Update
140 , module Network.Google.Resource.AdExchangeBuyer.Proposals.Update
135
141
142+ -- ** adexchangebuyer.pubprofiles.list
143+ , module Network.Google.Resource.AdExchangeBuyer.PubproFiles.List
144+
136 -- * Types
145 -- * Types
137
146
138 -- ** MarketplaceNote
147 -- ** MarketplaceNote
@@ -167,6 +176,7 @@ module Network.Google.AdExchangeBuyer
167 , EditAllOrderDealsResponse
176 , EditAllOrderDealsResponse
168 , editAllOrderDealsResponse
177 , editAllOrderDealsResponse
169 , eaodrDeals
178 , eaodrDeals
179+ , eaodrOrderRevisionNumber
170
180
171 -- ** CreativesList
181 -- ** CreativesList
172 , CreativesList
182 , CreativesList
@@ -194,6 +204,7 @@ module Network.Google.AdExchangeBuyer
194 , abliURL
204 , abliURL
195 , abliMaximumQps
205 , abliMaximumQps
196 , abliRegion
206 , abliRegion
207+ , abliBidProtocol
197
208
198 -- ** PrivateData
209 -- ** PrivateData
199 , PrivateData
210 , PrivateData
@@ -251,6 +262,12 @@ module Network.Google.AdExchangeBuyer
251 , alKind
262 , alKind
252 , alItems
263 , alItems
253
264
265+ -- ** Dimension
266+ , Dimension
267+ , dimension
268+ , dDimensionValues
269+ , dDimensionType
270+
254 -- ** CreateOrdersRequest
271 -- ** CreateOrdersRequest
255 , CreateOrdersRequest
272 , CreateOrdersRequest
256 , createOrdersRequest
273 , createOrdersRequest
@@ -263,6 +280,11 @@ module Network.Google.AdExchangeBuyer
263 , cciReason
280 , cciReason
264 , cciDetails
281 , cciDetails
265
282
283+ -- ** DealServingMetadata
284+ , DealServingMetadata
285+ , dealServingMetadata
286+ , dsmDealPauseStatus
287+
266 -- ** AddOrderDealsResponse
288 -- ** AddOrderDealsResponse
267 , AddOrderDealsResponse
289 , AddOrderDealsResponse
268 , addOrderDealsResponse
290 , addOrderDealsResponse
@@ -280,6 +302,7 @@ module Network.Google.AdExchangeBuyer
280 , PricePerBuyer
302 , PricePerBuyer
281 , pricePerBuyer
303 , pricePerBuyer
282 , ppbPrice
304 , ppbPrice
305+ , ppbAuctionTier
283 , ppbBuyer
306 , ppbBuyer
284
307
285 -- ** Creative
308 -- ** Creative
@@ -320,6 +343,12 @@ module Network.Google.AdExchangeBuyer
320 , tvdptdpDayOfWeek
343 , tvdptdpDayOfWeek
321 , tvdptdpEndMinute
344 , tvdptdpEndMinute
322
345
346+ -- ** DimensionDimensionValue
347+ , DimensionDimensionValue
348+ , dimensionDimensionValue
349+ , ddvName
350+ , ddvId
351+
323 -- ** PretargetingConfigList
352 -- ** PretargetingConfigList
324 , PretargetingConfigList
353 , PretargetingConfigList
325 , pretargetingConfigList
354 , pretargetingConfigList
@@ -456,6 +485,18 @@ module Network.Google.AdExchangeBuyer
456 , tvcsCompanionSizes
485 , tvcsCompanionSizes
457 , tvcsCreativeSizeType
486 , tvcsCreativeSizeType
458
487
488+ -- ** DealTermsGuaranteedFixedPriceTermsBillingInfo
489+ , DealTermsGuaranteedFixedPriceTermsBillingInfo
490+ , dealTermsGuaranteedFixedPriceTermsBillingInfo
491+ , dtgfptbiCurrencyConversionTimeMs
492+ , dtgfptbiPrice
493+ , dtgfptbiOriginalContractedQuantity
494+
495+ -- ** GetPublisherProFilesByAccountIdResponse
496+ , GetPublisherProFilesByAccountIdResponse
497+ , getPublisherProFilesByAccountIdResponse
498+ , gppfbairProFiles
499+
459 -- ** Proposal
500 -- ** Proposal
460 , Proposal
501 , Proposal
461 , proposal
502 , proposal
@@ -467,6 +508,7 @@ module Network.Google.AdExchangeBuyer
467 , pOriginatorRole
508 , pOriginatorRole
468 , pRevisionNumber
509 , pRevisionNumber
469 , pBilledBuyer
510 , pBilledBuyer
511+ , pPrivateAuctionId
470 , pIsRenegotiating
512 , pIsRenegotiating
471 , pHasSellerSignedOff
513 , pHasSellerSignedOff
472 , pSeller
514 , pSeller
@@ -478,6 +520,7 @@ module Network.Google.AdExchangeBuyer
478 , pRevisionTimeMs
520 , pRevisionTimeMs
479 , pProposalState
521 , pProposalState
480 , pLastUpdaterOrCommentorRole
522 , pLastUpdaterOrCommentorRole
523+ , pNegotiationId
481 , pHasBuyerSignedOff
524 , pHasBuyerSignedOff
482 , pBuyer
525 , pBuyer
483
526
@@ -498,12 +541,27 @@ module Network.Google.AdExchangeBuyer
498 , tvsHeight
541 , tvsHeight
499 , tvsWidth
542 , tvsWidth
500
543
544+ -- ** UpdatePrivateAuctionProposalRequest
545+ , UpdatePrivateAuctionProposalRequest
546+ , updatePrivateAuctionProposalRequest
547+ , upaprExternalDealId
548+ , upaprUpdateAction
549+ , upaprNote
550+ , upaprProposalRevisionNumber
551+
501 -- ** PretargetingConfigDimensionsItem
552 -- ** PretargetingConfigDimensionsItem
502 , PretargetingConfigDimensionsItem
553 , PretargetingConfigDimensionsItem
503 , pretargetingConfigDimensionsItem
554 , pretargetingConfigDimensionsItem
504 , pcdiHeight
555 , pcdiHeight
505 , pcdiWidth
556 , pcdiWidth
506
557
558+ -- ** PublisherProvidedForecast
559+ , PublisherProvidedForecast
560+ , publisherProvidedForecast
561+ , ppfWeeklyImpressions
562+ , ppfWeeklyUniques
563+ , ppfDimensions
564+
507 -- ** TargetingValue
565 -- ** TargetingValue
508 , TargetingValue
566 , TargetingValue
509 , targetingValue
567 , targetingValue
@@ -580,6 +638,8 @@ module Network.Google.AdExchangeBuyer
580 , proLastUpdateTimeMs
638 , proLastUpdateTimeMs
581 , proKind
639 , proKind
582 , proRevisionNumber
640 , proRevisionNumber
641+ , proPrivateAuctionId
642+ , proDeliveryControl
583 , proHasCreatorSignedOff
643 , proHasCreatorSignedOff
584 , proFlightStartTimeMs
644 , proFlightStartTimeMs
585 , proSharedTargetings
645 , proSharedTargetings
@@ -588,7 +648,10 @@ module Network.Google.AdExchangeBuyer
588 , proFlightEndTimeMs
648 , proFlightEndTimeMs
589 , proName
649 , proName
590 , proCreatorContacts
650 , proCreatorContacts
651+ , proPublisherProvidedForecast
591 , proLabels
652 , proLabels
653+ , proPublisherProFileId
654+ , proLegacyOfferId
592 , proProductId
655 , proProductId
593
656
594 -- ** CreativeServingRestrictionsItem
657 -- ** CreativeServingRestrictionsItem
@@ -610,6 +673,33 @@ module Network.Google.AdExchangeBuyer
610 , pcpiToken
673 , pcpiToken
611 , pcpiType
674 , pcpiType
612
675
676+ -- ** PublisherProFileAPIProto
677+ , PublisherProFileAPIProto
678+ , publisherProFileAPIProto
679+ , ppfapAudience
680+ , ppfapState
681+ , ppfapMediaKitLink
682+ , ppfapDirectContact
683+ , ppfapSamplePageLink
684+ , ppfapLogoURL
685+ , ppfapKind
686+ , ppfapExchange
687+ , ppfapOverview
688+ , ppfapGooglePlusLink
689+ , ppfapProFileId
690+ , ppfapIsParent
691+ , ppfapSeller
692+ , ppfapAccountId
693+ , ppfapName
694+ , ppfapBuyerPitchStatement
695+ , ppfapPublisherProvidedForecast
696+ , ppfapIsPublished
697+ , ppfapPublisherDomains
698+ , ppfapPublisherProFileId
699+ , ppfapRateCardInfoLink
700+ , ppfapTopHeadlines
701+ , ppfapProgrammaticContact
702+
613 -- ** MarketplaceDeal
703 -- ** MarketplaceDeal
614 , MarketplaceDeal
704 , MarketplaceDeal
615 , marketplaceDeal
705 , marketplaceDeal
@@ -621,6 +711,7 @@ module Network.Google.AdExchangeBuyer
621 , mdLastUpdateTimeMs
711 , mdLastUpdateTimeMs
622 , mdKind
712 , mdKind
623 , mdDeliveryControl
713 , mdDeliveryControl
714+ , mdDealServingMetadata
624 , mdFlightStartTimeMs
715 , mdFlightStartTimeMs
625 , mdSharedTargetings
716 , mdSharedTargetings
626 , mdProposalId
717 , mdProposalId
@@ -630,9 +721,11 @@ module Network.Google.AdExchangeBuyer
630 , mdFlightEndTimeMs
721 , mdFlightEndTimeMs
631 , mdName
722 , mdName
632 , mdSellerContacts
723 , mdSellerContacts
724+ , mdProgrammaticCreativeSource
633 , mdCreativePreApprovalPolicy
725 , mdCreativePreApprovalPolicy
634 , mdProductRevisionNumber
726 , mdProductRevisionNumber
635 , mdProductId
727 , mdProductId
728+ , mdCreativeSafeFrameCompatibility
636
729
637 -- ** GetOffersResponse
730 -- ** GetOffersResponse
638 , GetOffersResponse
731 , GetOffersResponse
@@ -643,7 +736,7 @@ module Network.Google.AdExchangeBuyer
643 , DealTermsNonGuaranteedAuctionTerms
736 , DealTermsNonGuaranteedAuctionTerms
644 , dealTermsNonGuaranteedAuctionTerms
737 , dealTermsNonGuaranteedAuctionTerms
645 , dtngatReservePricePerBuyers
738 , dtngatReservePricePerBuyers
646− , dtngatPrivateAuctionId
739+ , dtngatAutoOptimizePrivateAuction
647
740
648 -- ** CreativeFilteringReasonsReasonsItem
741 -- ** CreativeFilteringReasonsReasonsItem
649 , CreativeFilteringReasonsReasonsItem
742 , CreativeFilteringReasonsReasonsItem
@@ -665,6 +758,7 @@ module Network.Google.AdExchangeBuyer
665 , dtNonGuaranteedAuctionTerms
758 , dtNonGuaranteedAuctionTerms
666 , dtBrandingType
759 , dtBrandingType
667 , dtEstimatedImpressionsPerDay
760 , dtEstimatedImpressionsPerDay
761+ , dtSellerTimeZone
668 , dtGuaranteedFixedPriceTerms
762 , dtGuaranteedFixedPriceTerms
669 , dtDescription
763 , dtDescription
670
764
@@ -691,11 +785,18 @@ module Network.Google.AdExchangeBuyer
691 , aDeals
785 , aDeals
692 , aProposalRevisionNumber
786 , aProposalRevisionNumber
693
787
788+ -- ** DealServingMetadataDealPauseStatus
789+ , DealServingMetadataDealPauseStatus
790+ , dealServingMetadataDealPauseStatus
791+ , dsmdpsHasBuyerPaused
792+ , dsmdpsHasSellerPaused
793+
694 -- ** DealTermsGuaranteedFixedPriceTerms
794 -- ** DealTermsGuaranteedFixedPriceTerms
695 , DealTermsGuaranteedFixedPriceTerms
795 , DealTermsGuaranteedFixedPriceTerms
696 , dealTermsGuaranteedFixedPriceTerms
796 , dealTermsGuaranteedFixedPriceTerms
697 , dtgfptGuaranteedLooks
797 , dtgfptGuaranteedLooks
698 , dtgfptGuaranteedImpressions
798 , dtgfptGuaranteedImpressions
799+ , dtgfptBillingInfo
699 , dtgfptFixedPrices
800 , dtgfptFixedPrices
700 ) where
801 ) where
701
802
@@ -721,6 +822,7 @@ import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.List
721import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
822import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
722import Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
823import Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
723import Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
824import Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
825+import Network.Google.Resource.AdExchangeBuyer.Marketplaceprivateauction.Updateproposal
724import Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
826import Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
725import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Delete
827import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Delete
726import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Get
828import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Get
@@ -734,7 +836,9 @@ import Network.Google.Resource.AdExchangeBuyer.Proposals.Get
734import Network.Google.Resource.AdExchangeBuyer.Proposals.Insert
836import Network.Google.Resource.AdExchangeBuyer.Proposals.Insert
735import Network.Google.Resource.AdExchangeBuyer.Proposals.Patch
837import Network.Google.Resource.AdExchangeBuyer.Proposals.Patch
736import Network.Google.Resource.AdExchangeBuyer.Proposals.Search
838import Network.Google.Resource.AdExchangeBuyer.Proposals.Search
839+import Network.Google.Resource.AdExchangeBuyer.Proposals.Setupcomplete
737import Network.Google.Resource.AdExchangeBuyer.Proposals.Update
840import Network.Google.Resource.AdExchangeBuyer.Proposals.Update
841+import Network.Google.Resource.AdExchangeBuyer.PubproFiles.List
738
842
739{- $resources
843{- $resources
740TODO
844TODO
@@ -746,6 +850,7 @@ type AdExchangeBuyerAPI =
746 MarketplaceNotesListResource
850 MarketplaceNotesListResource
747 :<|> ProposalsInsertResource
851 :<|> ProposalsInsertResource
748 :<|> ProposalsPatchResource
852 :<|> ProposalsPatchResource
853+ :<|> ProposalsSetupcompleteResource
749 :<|> ProposalsGetResource
854 :<|> ProposalsGetResource
750 :<|> ProposalsSearchResource
855 :<|> ProposalsSearchResource
751 :<|> ProposalsUpdateResource
856 :<|> ProposalsUpdateResource
@@ -768,6 +873,7 @@ type AdExchangeBuyerAPI =
768 :<|> PretargetingConfigGetResource
873 :<|> PretargetingConfigGetResource
769 :<|> PretargetingConfigDeleteResource
874 :<|> PretargetingConfigDeleteResource
770 :<|> PretargetingConfigUpdateResource
875 :<|> PretargetingConfigUpdateResource
876+ :<|> PubproFilesListResource
771 :<|> BillingInfoListResource
877 :<|> BillingInfoListResource
772 :<|> BillingInfoGetResource
878 :<|> BillingInfoGetResource
773 :<|> ProductsGetResource
879 :<|> ProductsGetResource
@@ -776,3 +882,4 @@ type AdExchangeBuyerAPI =
776 :<|> MarketplaceDealsListResource
882 :<|> MarketplaceDealsListResource
777 :<|> MarketplaceDealsDeleteResource
883 :<|> MarketplaceDealsDeleteResource
778 :<|> MarketplaceDealsUpdateResource
884 :<|> MarketplaceDealsUpdateResource
885+ :<|> MarketplaceprivateauctionUpdateproposalResource
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types.hs+93−1
@@ -54,6 +54,7 @@ module Network.Google.AdExchangeBuyer.Types
54 , EditAllOrderDealsResponse
54 , EditAllOrderDealsResponse
55 , editAllOrderDealsResponse
55 , editAllOrderDealsResponse
56 , eaodrDeals
56 , eaodrDeals
57+ , eaodrOrderRevisionNumber
57
58
58 -- * CreativesList
59 -- * CreativesList
59 , CreativesList
60 , CreativesList
@@ -81,6 +82,7 @@ module Network.Google.AdExchangeBuyer.Types
81 , abliURL
82 , abliURL
82 , abliMaximumQps
83 , abliMaximumQps
83 , abliRegion
84 , abliRegion
85+ , abliBidProtocol
84
86
85 -- * PrivateData
87 -- * PrivateData
86 , PrivateData
88 , PrivateData
@@ -138,6 +140,12 @@ module Network.Google.AdExchangeBuyer.Types
138 , alKind
140 , alKind
139 , alItems
141 , alItems
140
142
143+ -- * Dimension
144+ , Dimension
145+ , dimension
146+ , dDimensionValues
147+ , dDimensionType
148+
141 -- * CreateOrdersRequest
149 -- * CreateOrdersRequest
142 , CreateOrdersRequest
150 , CreateOrdersRequest
143 , createOrdersRequest
151 , createOrdersRequest
@@ -150,6 +158,11 @@ module Network.Google.AdExchangeBuyer.Types
150 , cciReason
158 , cciReason
151 , cciDetails
159 , cciDetails
152
160
161+ -- * DealServingMetadata
162+ , DealServingMetadata
163+ , dealServingMetadata
164+ , dsmDealPauseStatus
165+
153 -- * AddOrderDealsResponse
166 -- * AddOrderDealsResponse
154 , AddOrderDealsResponse
167 , AddOrderDealsResponse
155 , addOrderDealsResponse
168 , addOrderDealsResponse
@@ -167,6 +180,7 @@ module Network.Google.AdExchangeBuyer.Types
167 , PricePerBuyer
180 , PricePerBuyer
168 , pricePerBuyer
181 , pricePerBuyer
169 , ppbPrice
182 , ppbPrice
183+ , ppbAuctionTier
170 , ppbBuyer
184 , ppbBuyer
171
185
172 -- * Creative
186 -- * Creative
@@ -207,6 +221,12 @@ module Network.Google.AdExchangeBuyer.Types
207 , tvdptdpDayOfWeek
221 , tvdptdpDayOfWeek
208 , tvdptdpEndMinute
222 , tvdptdpEndMinute
209
223
224+ -- * DimensionDimensionValue
225+ , DimensionDimensionValue
226+ , dimensionDimensionValue
227+ , ddvName
228+ , ddvId
229+
210 -- * PretargetingConfigList
230 -- * PretargetingConfigList
211 , PretargetingConfigList
231 , PretargetingConfigList
212 , pretargetingConfigList
232 , pretargetingConfigList
@@ -343,6 +363,18 @@ module Network.Google.AdExchangeBuyer.Types
343 , tvcsCompanionSizes
363 , tvcsCompanionSizes
344 , tvcsCreativeSizeType
364 , tvcsCreativeSizeType
345
365
366+ -- * DealTermsGuaranteedFixedPriceTermsBillingInfo
367+ , DealTermsGuaranteedFixedPriceTermsBillingInfo
368+ , dealTermsGuaranteedFixedPriceTermsBillingInfo
369+ , dtgfptbiCurrencyConversionTimeMs
370+ , dtgfptbiPrice
371+ , dtgfptbiOriginalContractedQuantity
372+
373+ -- * GetPublisherProFilesByAccountIdResponse
374+ , GetPublisherProFilesByAccountIdResponse
375+ , getPublisherProFilesByAccountIdResponse
376+ , gppfbairProFiles
377+
346 -- * Proposal
378 -- * Proposal
347 , Proposal
379 , Proposal
348 , proposal
380 , proposal
@@ -354,6 +386,7 @@ module Network.Google.AdExchangeBuyer.Types
354 , pOriginatorRole
386 , pOriginatorRole
355 , pRevisionNumber
387 , pRevisionNumber
356 , pBilledBuyer
388 , pBilledBuyer
389+ , pPrivateAuctionId
357 , pIsRenegotiating
390 , pIsRenegotiating
358 , pHasSellerSignedOff
391 , pHasSellerSignedOff
359 , pSeller
392 , pSeller
@@ -365,6 +398,7 @@ module Network.Google.AdExchangeBuyer.Types
365 , pRevisionTimeMs
398 , pRevisionTimeMs
366 , pProposalState
399 , pProposalState
367 , pLastUpdaterOrCommentorRole
400 , pLastUpdaterOrCommentorRole
401+ , pNegotiationId
368 , pHasBuyerSignedOff
402 , pHasBuyerSignedOff
369 , pBuyer
403 , pBuyer
370
404
@@ -385,12 +419,27 @@ module Network.Google.AdExchangeBuyer.Types
385 , tvsHeight
419 , tvsHeight
386 , tvsWidth
420 , tvsWidth
387
421
422+ -- * UpdatePrivateAuctionProposalRequest
423+ , UpdatePrivateAuctionProposalRequest
424+ , updatePrivateAuctionProposalRequest
425+ , upaprExternalDealId
426+ , upaprUpdateAction
427+ , upaprNote
428+ , upaprProposalRevisionNumber
429+
388 -- * PretargetingConfigDimensionsItem
430 -- * PretargetingConfigDimensionsItem
389 , PretargetingConfigDimensionsItem
431 , PretargetingConfigDimensionsItem
390 , pretargetingConfigDimensionsItem
432 , pretargetingConfigDimensionsItem
391 , pcdiHeight
433 , pcdiHeight
392 , pcdiWidth
434 , pcdiWidth
393
435
436+ -- * PublisherProvidedForecast
437+ , PublisherProvidedForecast
438+ , publisherProvidedForecast
439+ , ppfWeeklyImpressions
440+ , ppfWeeklyUniques
441+ , ppfDimensions
442+
394 -- * TargetingValue
443 -- * TargetingValue
395 , TargetingValue
444 , TargetingValue
396 , targetingValue
445 , targetingValue
@@ -467,6 +516,8 @@ module Network.Google.AdExchangeBuyer.Types
467 , proLastUpdateTimeMs
516 , proLastUpdateTimeMs
468 , proKind
517 , proKind
469 , proRevisionNumber
518 , proRevisionNumber
519+ , proPrivateAuctionId
520+ , proDeliveryControl
470 , proHasCreatorSignedOff
521 , proHasCreatorSignedOff
471 , proFlightStartTimeMs
522 , proFlightStartTimeMs
472 , proSharedTargetings
523 , proSharedTargetings
@@ -475,7 +526,10 @@ module Network.Google.AdExchangeBuyer.Types
475 , proFlightEndTimeMs
526 , proFlightEndTimeMs
476 , proName
527 , proName
477 , proCreatorContacts
528 , proCreatorContacts
529+ , proPublisherProvidedForecast
478 , proLabels
530 , proLabels
531+ , proPublisherProFileId
532+ , proLegacyOfferId
479 , proProductId
533 , proProductId
480
534
481 -- * CreativeServingRestrictionsItem
535 -- * CreativeServingRestrictionsItem
@@ -497,6 +551,33 @@ module Network.Google.AdExchangeBuyer.Types
497 , pcpiToken
551 , pcpiToken
498 , pcpiType
552 , pcpiType
499
553
554+ -- * PublisherProFileAPIProto
555+ , PublisherProFileAPIProto
556+ , publisherProFileAPIProto
557+ , ppfapAudience
558+ , ppfapState
559+ , ppfapMediaKitLink
560+ , ppfapDirectContact
561+ , ppfapSamplePageLink
562+ , ppfapLogoURL
563+ , ppfapKind
564+ , ppfapExchange
565+ , ppfapOverview
566+ , ppfapGooglePlusLink
567+ , ppfapProFileId
568+ , ppfapIsParent
569+ , ppfapSeller
570+ , ppfapAccountId
571+ , ppfapName
572+ , ppfapBuyerPitchStatement
573+ , ppfapPublisherProvidedForecast
574+ , ppfapIsPublished
575+ , ppfapPublisherDomains
576+ , ppfapPublisherProFileId
577+ , ppfapRateCardInfoLink
578+ , ppfapTopHeadlines
579+ , ppfapProgrammaticContact
580+
500 -- * MarketplaceDeal
581 -- * MarketplaceDeal
501 , MarketplaceDeal
582 , MarketplaceDeal
502 , marketplaceDeal
583 , marketplaceDeal
@@ -508,6 +589,7 @@ module Network.Google.AdExchangeBuyer.Types
508 , mdLastUpdateTimeMs
589 , mdLastUpdateTimeMs
509 , mdKind
590 , mdKind
510 , mdDeliveryControl
591 , mdDeliveryControl
592+ , mdDealServingMetadata
511 , mdFlightStartTimeMs
593 , mdFlightStartTimeMs
512 , mdSharedTargetings
594 , mdSharedTargetings
513 , mdProposalId
595 , mdProposalId
@@ -517,9 +599,11 @@ module Network.Google.AdExchangeBuyer.Types
517 , mdFlightEndTimeMs
599 , mdFlightEndTimeMs
518 , mdName
600 , mdName
519 , mdSellerContacts
601 , mdSellerContacts
602+ , mdProgrammaticCreativeSource
520 , mdCreativePreApprovalPolicy
603 , mdCreativePreApprovalPolicy
521 , mdProductRevisionNumber
604 , mdProductRevisionNumber
522 , mdProductId
605 , mdProductId
606+ , mdCreativeSafeFrameCompatibility
523
607
524 -- * GetOffersResponse
608 -- * GetOffersResponse
525 , GetOffersResponse
609 , GetOffersResponse
@@ -530,7 +614,7 @@ module Network.Google.AdExchangeBuyer.Types
530 , DealTermsNonGuaranteedAuctionTerms
614 , DealTermsNonGuaranteedAuctionTerms
531 , dealTermsNonGuaranteedAuctionTerms
615 , dealTermsNonGuaranteedAuctionTerms
532 , dtngatReservePricePerBuyers
616 , dtngatReservePricePerBuyers
533− , dtngatPrivateAuctionId
617+ , dtngatAutoOptimizePrivateAuction
534
618
535 -- * CreativeFilteringReasonsReasonsItem
619 -- * CreativeFilteringReasonsReasonsItem
536 , CreativeFilteringReasonsReasonsItem
620 , CreativeFilteringReasonsReasonsItem
@@ -552,6 +636,7 @@ module Network.Google.AdExchangeBuyer.Types
552 , dtNonGuaranteedAuctionTerms
636 , dtNonGuaranteedAuctionTerms
553 , dtBrandingType
637 , dtBrandingType
554 , dtEstimatedImpressionsPerDay
638 , dtEstimatedImpressionsPerDay
639+ , dtSellerTimeZone
555 , dtGuaranteedFixedPriceTerms
640 , dtGuaranteedFixedPriceTerms
556 , dtDescription
641 , dtDescription
557
642
@@ -578,11 +663,18 @@ module Network.Google.AdExchangeBuyer.Types
578 , aDeals
663 , aDeals
579 , aProposalRevisionNumber
664 , aProposalRevisionNumber
580
665
666+ -- * DealServingMetadataDealPauseStatus
667+ , DealServingMetadataDealPauseStatus
668+ , dealServingMetadataDealPauseStatus
669+ , dsmdpsHasBuyerPaused
670+ , dsmdpsHasSellerPaused
671+
581 -- * DealTermsGuaranteedFixedPriceTerms
672 -- * DealTermsGuaranteedFixedPriceTerms
582 , DealTermsGuaranteedFixedPriceTerms
673 , DealTermsGuaranteedFixedPriceTerms
583 , dealTermsGuaranteedFixedPriceTerms
674 , dealTermsGuaranteedFixedPriceTerms
584 , dtgfptGuaranteedLooks
675 , dtgfptGuaranteedLooks
585 , dtgfptGuaranteedImpressions
676 , dtgfptGuaranteedImpressions
677+ , dtgfptBillingInfo
586 , dtgfptFixedPrices
678 , dtgfptFixedPrices
587 ) where
679 ) where
588
680
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs+1035−69
@@ -307,8 +307,9 @@ instance ToJSON CreativeNATiveAd where
307
307
308--
308--
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)
313
314
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:
317--
318--
318-- * 'eaodrDeals'
319-- * 'eaodrDeals'
320+--
321+-- * 'eaodrOrderRevisionNumber'
319editAllOrderDealsResponse
322editAllOrderDealsResponse
320 :: EditAllOrderDealsResponse
323 :: EditAllOrderDealsResponse
321editAllOrderDealsResponse =
324editAllOrderDealsResponse =
322 EditAllOrderDealsResponse'
325 EditAllOrderDealsResponse'
323 { _eaodrDeals = Nothing
326 { _eaodrDeals = Nothing
327+ , _eaodrOrderRevisionNumber = Nothing
324 }
328 }
325
329
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
330 _Default
334 _Default
331 . _Coerce
335 . _Coerce
332
336
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})
342+ . mapping _Coerce
343+
333instance FromJSON EditAllOrderDealsResponse where
344instance FromJSON EditAllOrderDealsResponse where
334 parseJSON
345 parseJSON
335 = withObject "EditAllOrderDealsResponse"
346 = withObject "EditAllOrderDealsResponse"
336 (\ o ->
347 (\ o ->
337 EditAllOrderDealsResponse' <$>
348 EditAllOrderDealsResponse' <$>
338− (o .:? "deals" .!= mempty))
349+ (o .:? "deals" .!= mempty) <*>
350+ (o .:? "orderRevisionNumber"))
339
351
340instance ToJSON EditAllOrderDealsResponse where
352instance ToJSON EditAllOrderDealsResponse where
341 toJSON EditAllOrderDealsResponse'{..}
353 toJSON EditAllOrderDealsResponse'{..}
354+ = object
355+ (catMaybes
342− = object (catMaybes [("deals" .=) <$> _eaodrDeals])
356+ [("deals" .=) <$> _eaodrDeals,
357+ ("orderRevisionNumber" .=) <$>
358+ _eaodrOrderRevisionNumber])
343
359
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
529--
545--
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)
536
553
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'
544--
561--
545-- * 'abliRegion'
562-- * 'abliRegion'
563+--
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
553 }
573 }
554
574
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})
572
592
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)
600+abliBidProtocol
601+ = lens _abliBidProtocol
602+ (\ s a -> s{_abliBidProtocol = a})
603+
573instance FromJSON AccountBidderLocationItem where
604instance FromJSON AccountBidderLocationItem where
574 parseJSON
605 parseJSON
575 = withObject "AccountBidderLocationItem"
606 = withObject "AccountBidderLocationItem"
576 (\ o ->
607 (\ o ->
577 AccountBidderLocationItem' <$>
608 AccountBidderLocationItem' <$>
578 (o .:? "url") <*> (o .:? "maximumQps") <*>
609 (o .:? "url") <*> (o .:? "maximumQps") <*>
579− (o .:? "region"))
610+ (o .:? "region")
611+ <*> (o .:? "bidProtocol"))
580
612
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])
588
621
589--
622--
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])
1051
1084
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\'}}]}
1088+--
1089+-- /See:/ 'dimension' smart constructor.
1090+data Dimension = Dimension'
1091+ { _dDimensionValues :: !(Maybe [DimensionDimensionValue])
1092+ , _dDimensionType :: !(Maybe Text)
1093+ } deriving (Eq,Show,Data,Typeable,Generic)
1094+
1095+-- | Creates a value of 'Dimension' with the minimum fields required to make a request.
1096+--
1097+-- Use one of the following lenses to modify other fields as desired:
1098+--
1099+-- * 'dDimensionValues'
1100+--
1101+-- * 'dDimensionType'
1102+dimension
1103+ :: Dimension
1104+dimension =
1105+ Dimension'
1106+ { _dDimensionValues = Nothing
1107+ , _dDimensionType = Nothing
1108+ }
1109+
1110+dDimensionValues :: Lens' Dimension [DimensionDimensionValue]
1111+dDimensionValues
1112+ = lens _dDimensionValues
1113+ (\ s a -> s{_dDimensionValues = a})
1114+ . _Default
1115+ . _Coerce
1116+
1117+dDimensionType :: Lens' Dimension (Maybe Text)
1118+dDimensionType
1119+ = lens _dDimensionType
1120+ (\ s a -> s{_dDimensionType = a})
1121+
1122+instance FromJSON Dimension where
1123+ parseJSON
1124+ = withObject "Dimension"
1125+ (\ o ->
1126+ Dimension' <$>
1127+ (o .:? "dimensionValues" .!= mempty) <*>
1128+ (o .:? "dimensionType"))
1129+
1130+instance ToJSON Dimension where
1131+ toJSON Dimension'{..}
1132+ = object
1133+ (catMaybes
1134+ [("dimensionValues" .=) <$> _dDimensionValues,
1135+ ("dimensionType" .=) <$> _dDimensionType])
1136+
1052--
1137--
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
1080
1165
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])
1148
1234
1235+--
1236+-- /See:/ 'dealServingMetadata' smart constructor.
1237+newtype DealServingMetadata = DealServingMetadata'
1238+ { _dsmDealPauseStatus :: Maybe DealServingMetadataDealPauseStatus
1239+ } deriving (Eq,Show,Data,Typeable,Generic)
1240+
1241+-- | Creates a value of 'DealServingMetadata' with the minimum fields required to make a request.
1242+--
1243+-- Use one of the following lenses to modify other fields as desired:
1244+--
1245+-- * 'dsmDealPauseStatus'
1246+dealServingMetadata
1247+ :: DealServingMetadata
1248+dealServingMetadata =
1249+ DealServingMetadata'
1250+ { _dsmDealPauseStatus = Nothing
1251+ }
1252+
1253+-- | Tracks which parties (if any) have paused a deal. (readonly, except via
1254+-- PauseResumeOrderDeals action)
1255+dsmDealPauseStatus :: Lens' DealServingMetadata (Maybe DealServingMetadataDealPauseStatus)
1256+dsmDealPauseStatus
1257+ = lens _dsmDealPauseStatus
1258+ (\ s a -> s{_dsmDealPauseStatus = a})
1259+
1260+instance FromJSON DealServingMetadata where
1261+ parseJSON
1262+ = withObject "DealServingMetadata"
1263+ (\ o ->
1264+ DealServingMetadata' <$> (o .:? "dealPauseStatus"))
1265+
1266+instance ToJSON DealServingMetadata where
1267+ toJSON DealServingMetadata'{..}
1268+ = object
1269+ (catMaybes
1270+ [("dealPauseStatus" .=) <$> _dsmDealPauseStatus])
1271+
1149--
1272--
1150-- /See:/ 'addOrderDealsResponse' smart constructor.
1273-- /See:/ 'addOrderDealsResponse' smart constructor.
1151data AddOrderDealsResponse = AddOrderDealsResponse'
1274data AddOrderDealsResponse = AddOrderDealsResponse'
@@ -1269,8 +1392,9 @@ instance ToJSON DeliveryControl where
1269--
1392--
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)
1275
1399
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'
1279--
1403--
1280-- * 'ppbPrice'
1404-- * 'ppbPrice'
1281--
1405--
1406+-- * 'ppbAuctionTier'
1407+--
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
1289 }
1416 }
1290
1417
@@ -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})
1294
1421
1422+-- | Optional access type for this buyer.
1423+ppbAuctionTier :: Lens' PricePerBuyer (Maybe Text)
1424+ppbAuctionTier
1425+ = lens _ppbAuctionTier
1426+ (\ s a -> s{_ppbAuctionTier = a})
1427+
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"
1304 (\ o ->
1437 (\ o ->
1305 PricePerBuyer' <$>
1438 PricePerBuyer' <$>
1439+ (o .:? "price") <*> (o .:? "auctionTier") <*>
1306− (o .:? "price") <*> (o .:? "buyer"))
1440+ (o .:? "buyer"))
1307
1441
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])
1314
1449
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])
1759
1894
1895+-- | Value of the dimension.
1896+--
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)
1902+
1903+-- | Creates a value of 'DimensionDimensionValue' with the minimum fields required to make a request.
1904+--
1905+-- Use one of the following lenses to modify other fields as desired:
1906+--
1907+-- * 'ddvName'
1908+--
1909+-- * 'ddvId'
1910+dimensionDimensionValue
1911+ :: DimensionDimensionValue
1912+dimensionDimensionValue =
1913+ DimensionDimensionValue'
1914+ { _ddvName = Nothing
1915+ , _ddvId = Nothing
1916+ }
1917+
1918+-- | Name of the dimension mainly for debugging purposes.
1919+ddvName :: Lens' DimensionDimensionValue (Maybe Text)
1920+ddvName = lens _ddvName (\ s a -> s{_ddvName = a})
1921+
1922+-- | Id of the dimension.
1923+ddvId :: Lens' DimensionDimensionValue (Maybe Int32)
1924+ddvId
1925+ = lens _ddvId (\ s a -> s{_ddvId = a}) .
1926+ mapping _Coerce
1927+
1928+instance FromJSON DimensionDimensionValue where
1929+ parseJSON
1930+ = withObject "DimensionDimensionValue"
1931+ (\ o ->
1932+ DimensionDimensionValue' <$>
1933+ (o .:? "name") <*> (o .:? "id"))
1934+
1935+instance ToJSON DimensionDimensionValue where
1936+ toJSON DimensionDimensionValue'{..}
1937+ = object
1938+ (catMaybes
1939+ [("name" .=) <$> _ddvName, ("id" .=) <$> _ddvId])
1940+
1760--
1941--
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
2432 }
2613 }
2433
2614
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])
2606
2788
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
2610--
2790--
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])
3136
3316
3317+--
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)
3324+
3325+-- | Creates a value of 'DealTermsGuaranteedFixedPriceTermsBillingInfo' with the minimum fields required to make a request.
3326+--
3327+-- Use one of the following lenses to modify other fields as desired:
3328+--
3329+-- * 'dtgfptbiCurrencyConversionTimeMs'
3330+--
3331+-- * 'dtgfptbiPrice'
3332+--
3333+-- * 'dtgfptbiOriginalContractedQuantity'
3334+dealTermsGuaranteedFixedPriceTermsBillingInfo
3335+ :: DealTermsGuaranteedFixedPriceTermsBillingInfo
3336+dealTermsGuaranteedFixedPriceTermsBillingInfo =
3337+ DealTermsGuaranteedFixedPriceTermsBillingInfo'
3338+ { _dtgfptbiCurrencyConversionTimeMs = Nothing
3339+ , _dtgfptbiPrice = Nothing
3340+ , _dtgfptbiOriginalContractedQuantity = Nothing
3341+ }
3342+
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
3346+-- discrepancy.
3347+dtgfptbiCurrencyConversionTimeMs :: Lens' DealTermsGuaranteedFixedPriceTermsBillingInfo (Maybe Int64)
3348+dtgfptbiCurrencyConversionTimeMs
3349+ = lens _dtgfptbiCurrencyConversionTimeMs
3350+ (\ s a -> s{_dtgfptbiCurrencyConversionTimeMs = a})
3351+ . mapping _Coerce
3352+
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)
3356+dtgfptbiPrice
3357+ = lens _dtgfptbiPrice
3358+ (\ s a -> s{_dtgfptbiPrice = a})
3359+
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})
3368+ . mapping _Coerce
3369+
3370+instance FromJSON
3371+ DealTermsGuaranteedFixedPriceTermsBillingInfo where
3372+ parseJSON
3373+ = withObject
3374+ "DealTermsGuaranteedFixedPriceTermsBillingInfo"
3375+ (\ o ->
3376+ DealTermsGuaranteedFixedPriceTermsBillingInfo' <$>
3377+ (o .:? "currencyConversionTimeMs") <*>
3378+ (o .:? "price")
3379+ <*> (o .:? "originalContractedQuantity"))
3380+
3381+instance ToJSON
3382+ DealTermsGuaranteedFixedPriceTermsBillingInfo where
3383+ toJSON
3384+ DealTermsGuaranteedFixedPriceTermsBillingInfo'{..}
3385+ = object
3386+ (catMaybes
3387+ [("currencyConversionTimeMs" .=) <$>
3388+ _dtgfptbiCurrencyConversionTimeMs,
3389+ ("price" .=) <$> _dtgfptbiPrice,
3390+ ("originalContractedQuantity" .=) <$>
3391+ _dtgfptbiOriginalContractedQuantity])
3392+
3393+--
3394+-- /See:/ 'getPublisherProFilesByAccountIdResponse' smart constructor.
3395+newtype GetPublisherProFilesByAccountIdResponse = GetPublisherProFilesByAccountIdResponse'
3396+ { _gppfbairProFiles :: Maybe [PublisherProFileAPIProto]
3397+ } deriving (Eq,Show,Data,Typeable,Generic)
3398+
3399+-- | Creates a value of 'GetPublisherProFilesByAccountIdResponse' with the minimum fields required to make a request.
3400+--
3401+-- Use one of the following lenses to modify other fields as desired:
3402+--
3403+-- * 'gppfbairProFiles'
3404+getPublisherProFilesByAccountIdResponse
3405+ :: GetPublisherProFilesByAccountIdResponse
3406+getPublisherProFilesByAccountIdResponse =
3407+ GetPublisherProFilesByAccountIdResponse'
3408+ { _gppfbairProFiles = Nothing
3409+ }
3410+
3411+-- | Profiles for the requested publisher
3412+gppfbairProFiles :: Lens' GetPublisherProFilesByAccountIdResponse [PublisherProFileAPIProto]
3413+gppfbairProFiles
3414+ = lens _gppfbairProFiles
3415+ (\ s a -> s{_gppfbairProFiles = a})
3416+ . _Default
3417+ . _Coerce
3418+
3419+instance FromJSON
3420+ GetPublisherProFilesByAccountIdResponse where
3421+ parseJSON
3422+ = withObject
3423+ "GetPublisherProFilesByAccountIdResponse"
3424+ (\ o ->
3425+ GetPublisherProFilesByAccountIdResponse' <$>
3426+ (o .:? "profiles" .!= mempty))
3427+
3428+instance ToJSON
3429+ GetPublisherProFilesByAccountIdResponse where
3430+ toJSON GetPublisherProFilesByAccountIdResponse'{..}
3431+ = object
3432+ (catMaybes [("profiles" .=) <$> _gppfbairProFiles])
3433+
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'
3187--
3486--
3188-- * 'pBilledBuyer'
3487-- * 'pBilledBuyer'
3189--
3488--
3489+-- * 'pPrivateAuctionId'
3490+--
3190-- * 'pIsRenegotiating'
3491-- * 'pIsRenegotiating'
3191--
3492--
3192-- * 'pHasSellerSignedOff'
3493-- * 'pHasSellerSignedOff'
@@ -3209,6 +3510,8 @@ data Proposal = Proposal'
3209--
3510--
3210-- * 'pLastUpdaterOrCommentorRole'
3511-- * 'pLastUpdaterOrCommentorRole'
3211--
3512--
3513+-- * 'pNegotiationId'
3514+--
3212-- * 'pHasBuyerSignedOff'
3515-- * 'pHasBuyerSignedOff'
3213--
3516--
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
3240 }
3545 }
@@ -3246,7 +3551,7 @@ pBuyerPrivateData
3246 (\ s a -> s{_pBuyerPrivateData = a})
3551 (\ s a -> s{_pBuyerPrivateData = a})
3247
3552
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})
3292
3597
3598+-- | Optional private auction id if this proposal is a private auction
3599+-- proposal.
3600+pPrivateAuctionId :: Lens' Proposal (Maybe Text)
3601+pPrivateAuctionId
3602+ = lens _pPrivateAuctionId
3603+ (\ s a -> s{_pPrivateAuctionId = a})
3604+
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})
3358
3670
3671+-- | Optional negotiation id if this proposal is a preferred deal proposal.
3672+pNegotiationId :: Lens' Proposal (Maybe Text)
3673+pNegotiationId
3674+ = lens _pNegotiationId
3675+ (\ s a -> s{_pNegotiationId = a})
3676+
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"))
3397
3717
@@ -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])
3424
3746
@@ -3554,6 +3876,81 @@ instance ToJSON TargetingValueSize where
3554 [("height" .=) <$> _tvsHeight,
3876 [("height" .=) <$> _tvsHeight,
3555 ("width" .=) <$> _tvsWidth])
3877 ("width" .=) <$> _tvsWidth])
3556
3878
3879+--
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)
3887+
3888+-- | Creates a value of 'UpdatePrivateAuctionProposalRequest' with the minimum fields required to make a request.
3889+--
3890+-- Use one of the following lenses to modify other fields as desired:
3891+--
3892+-- * 'upaprExternalDealId'
3893+--
3894+-- * 'upaprUpdateAction'
3895+--
3896+-- * 'upaprNote'
3897+--
3898+-- * 'upaprProposalRevisionNumber'
3899+updatePrivateAuctionProposalRequest
3900+ :: UpdatePrivateAuctionProposalRequest
3901+updatePrivateAuctionProposalRequest =
3902+ UpdatePrivateAuctionProposalRequest'
3903+ { _upaprExternalDealId = Nothing
3904+ , _upaprUpdateAction = Nothing
3905+ , _upaprNote = Nothing
3906+ , _upaprProposalRevisionNumber = Nothing
3907+ }
3908+
3909+-- | The externalDealId of the deal to be updated.
3910+upaprExternalDealId :: Lens' UpdatePrivateAuctionProposalRequest (Maybe Text)
3911+upaprExternalDealId
3912+ = lens _upaprExternalDealId
3913+ (\ s a -> s{_upaprExternalDealId = a})
3914+
3915+-- | The proposed action on the private auction proposal.
3916+upaprUpdateAction :: Lens' UpdatePrivateAuctionProposalRequest (Maybe Text)
3917+upaprUpdateAction
3918+ = lens _upaprUpdateAction
3919+ (\ s a -> s{_upaprUpdateAction = a})
3920+
3921+-- | Optional note to be added.
3922+upaprNote :: Lens' UpdatePrivateAuctionProposalRequest (Maybe MarketplaceNote)
3923+upaprNote
3924+ = lens _upaprNote (\ s a -> s{_upaprNote = a})
3925+
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})
3931+ . mapping _Coerce
3932+
3933+instance FromJSON UpdatePrivateAuctionProposalRequest
3934+ where
3935+ parseJSON
3936+ = withObject "UpdatePrivateAuctionProposalRequest"
3937+ (\ o ->
3938+ UpdatePrivateAuctionProposalRequest' <$>
3939+ (o .:? "externalDealId") <*> (o .:? "updateAction")
3940+ <*> (o .:? "note")
3941+ <*> (o .:? "proposalRevisionNumber"))
3942+
3943+instance ToJSON UpdatePrivateAuctionProposalRequest
3944+ where
3945+ toJSON UpdatePrivateAuctionProposalRequest'{..}
3946+ = object
3947+ (catMaybes
3948+ [("externalDealId" .=) <$> _upaprExternalDealId,
3949+ ("updateAction" .=) <$> _upaprUpdateAction,
3950+ ("note" .=) <$> _upaprNote,
3951+ ("proposalRevisionNumber" .=) <$>
3952+ _upaprProposalRevisionNumber])
3953+
3557--
3954--
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])
3606
4003
4004+-- | This message carries publisher provided forecasting information.
4005+--
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)
4012+
4013+-- | Creates a value of 'PublisherProvidedForecast' with the minimum fields required to make a request.
4014+--
4015+-- Use one of the following lenses to modify other fields as desired:
4016+--
4017+-- * 'ppfWeeklyImpressions'
4018+--
4019+-- * 'ppfWeeklyUniques'
4020+--
4021+-- * 'ppfDimensions'
4022+publisherProvidedForecast
4023+ :: PublisherProvidedForecast
4024+publisherProvidedForecast =
4025+ PublisherProvidedForecast'
4026+ { _ppfWeeklyImpressions = Nothing
4027+ , _ppfWeeklyUniques = Nothing
4028+ , _ppfDimensions = Nothing
4029+ }
4030+
4031+-- | Publisher provided weekly impressions.
4032+ppfWeeklyImpressions :: Lens' PublisherProvidedForecast (Maybe Int64)
4033+ppfWeeklyImpressions
4034+ = lens _ppfWeeklyImpressions
4035+ (\ s a -> s{_ppfWeeklyImpressions = a})
4036+ . mapping _Coerce
4037+
4038+-- | Publisher provided weekly uniques.
4039+ppfWeeklyUniques :: Lens' PublisherProvidedForecast (Maybe Int64)
4040+ppfWeeklyUniques
4041+ = lens _ppfWeeklyUniques
4042+ (\ s a -> s{_ppfWeeklyUniques = a})
4043+ . mapping _Coerce
4044+
4045+-- | Publisher provided dimensions. E.g. geo, sizes etc...
4046+ppfDimensions :: Lens' PublisherProvidedForecast [Dimension]
4047+ppfDimensions
4048+ = lens _ppfDimensions
4049+ (\ s a -> s{_ppfDimensions = a})
4050+ . _Default
4051+ . _Coerce
4052+
4053+instance FromJSON PublisherProvidedForecast where
4054+ parseJSON
4055+ = withObject "PublisherProvidedForecast"
4056+ (\ o ->
4057+ PublisherProvidedForecast' <$>
4058+ (o .:? "weeklyImpressions") <*>
4059+ (o .:? "weeklyUniques")
4060+ <*> (o .:? "dimensions" .!= mempty))
4061+
4062+instance ToJSON PublisherProvidedForecast where
4063+ toJSON PublisherProvidedForecast'{..}
4064+ = object
4065+ (catMaybes
4066+ [("weeklyImpressions" .=) <$> _ppfWeeklyImpressions,
4067+ ("weeklyUniques" .=) <$> _ppfWeeklyUniques,
4068+ ("dimensions" .=) <$> _ppfDimensions])
4069+
3607--
4070--
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})
4105
4568
4106−-- | The list of values to exclude from targeting.
4569+-- | The list of values to exclude from targeting. Each value is AND\'d
4570+-- together.
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
4112
4576
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
4578+-- OR\'d together.
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
4200--
4665--
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)
4222
4692
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'
4240--
4710--
4241-- * 'proRevisionNumber'
4711-- * 'proRevisionNumber'
4242--
4712--
4713+-- * 'proPrivateAuctionId'
4714+--
4715+-- * 'proDeliveryControl'
4716+--
4243-- * 'proHasCreatorSignedOff'
4717-- * 'proHasCreatorSignedOff'
4244--
4718--
4245-- * 'proFlightStartTimeMs'
4719-- * 'proFlightStartTimeMs'
@@ -4256,8 +4730,14 @@ data Product = Product'
4256--
4730--
4257-- * 'proCreatorContacts'
4731-- * 'proCreatorContacts'
4258--
4732--
4733+-- * 'proPublisherProvidedForecast'
4734+--
4259-- * 'proLabels'
4735-- * 'proLabels'
4260--
4736--
4737+-- * 'proPublisherProFileId'
4738+--
4739+-- * 'proLegacyOfferId'
4740+--
4261-- * 'proProductId'
4741-- * 'proProductId'
4262product
4742product
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
4284 }
4769 }
4285
4770
@@ -4293,6 +4778,8 @@ proInventorySource
4293 = lens _proInventorySource
4778 = lens _proInventorySource
4294 (\ s a -> s{_proInventorySource = a})
4779 (\ s a -> s{_proInventorySource = a})
4295
4780
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
4330
4817
4818+-- | Optional private auction id if this offer is a private auction offer.
4819+proPrivateAuctionId :: Lens' Product (Maybe Text)
4820+proPrivateAuctionId
4821+ = lens _proPrivateAuctionId
4822+ (\ s a -> s{_proPrivateAuctionId = a})
4823+
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)
4829+proDeliveryControl
4830+ = lens _proDeliveryControl
4831+ (\ s a -> s{_proDeliveryControl = a})
4832+
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
4390
4892
4893+-- | Publisher self-provided forecast information.
4894+proPublisherProvidedForecast :: Lens' Product (Maybe PublisherProvidedForecast)
4895+proPublisherProvidedForecast
4896+ = lens _proPublisherProvidedForecast
4897+ (\ s a -> s{_proPublisherProvidedForecast = a})
4898+
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
4397
4905
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})
4914+
4915+-- | Optional legacy offer id if this offer is a preferred deal offer.
4916+proLegacyOfferId :: Lens' Product (Maybe Text)
4917+proLegacyOfferId
4918+ = lens _proLegacyOfferId
4919+ (\ s a -> s{_proLegacyOfferId = a})
4920+
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"))
4425
4953
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])
4449
4983
4450--
4984--
@@ -4616,31 +5150,343 @@ instance ToJSON PretargetingConfigPlacementsItem
4616 [("token" .=) <$> _pcpiToken,
5150 [("token" .=) <$> _pcpiToken,
4617 ("type" .=) <$> _pcpiType])
5151 ("type" .=) <$> _pcpiType])
4618
5152
5153+--
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)
5180+
5181+-- | Creates a value of 'PublisherProFileAPIProto' with the minimum fields required to make a request.
5182+--
5183+-- Use one of the following lenses to modify other fields as desired:
5184+--
5185+-- * 'ppfapAudience'
5186+--
5187+-- * 'ppfapState'
5188+--
5189+-- * 'ppfapMediaKitLink'
5190+--
5191+-- * 'ppfapDirectContact'
5192+--
5193+-- * 'ppfapSamplePageLink'
5194+--
5195+-- * 'ppfapLogoURL'
5196+--
5197+-- * 'ppfapKind'
5198+--
5199+-- * 'ppfapExchange'
5200+--
5201+-- * 'ppfapOverview'
5202+--
5203+-- * 'ppfapGooglePlusLink'
5204+--
5205+-- * 'ppfapProFileId'
5206+--
5207+-- * 'ppfapIsParent'
5208+--
5209+-- * 'ppfapSeller'
5210+--
5211+-- * 'ppfapAccountId'
5212+--
5213+-- * 'ppfapName'
5214+--
5215+-- * 'ppfapBuyerPitchStatement'
5216+--
5217+-- * 'ppfapPublisherProvidedForecast'
5218+--
5219+-- * 'ppfapIsPublished'
5220+--
5221+-- * 'ppfapPublisherDomains'
5222+--
5223+-- * 'ppfapPublisherProFileId'
5224+--
5225+-- * 'ppfapRateCardInfoLink'
5226+--
5227+-- * 'ppfapTopHeadlines'
5228+--
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
5257+ }
5258+
5259+-- | Publisher provided info on its audience.
5260+ppfapAudience :: Lens' PublisherProFileAPIProto (Maybe Text)
5261+ppfapAudience
5262+ = lens _ppfapAudience
5263+ (\ s a -> s{_ppfapAudience = a})
5264+
5265+-- | State of the publisher profile.
5266+ppfapState :: Lens' PublisherProFileAPIProto (Maybe Text)
5267+ppfapState
5268+ = lens _ppfapState (\ s a -> s{_ppfapState = a})
5269+
5270+-- | The url for additional marketing and sales materials.
5271+ppfapMediaKitLink :: Lens' PublisherProFileAPIProto (Maybe Text)
5272+ppfapMediaKitLink
5273+ = lens _ppfapMediaKitLink
5274+ (\ s a -> s{_ppfapMediaKitLink = a})
5275+
5276+-- | Direct contact for the publisher profile.
5277+ppfapDirectContact :: Lens' PublisherProFileAPIProto (Maybe Text)
5278+ppfapDirectContact
5279+ = lens _ppfapDirectContact
5280+ (\ s a -> s{_ppfapDirectContact = a})
5281+
5282+-- | Link for a sample content page.
5283+ppfapSamplePageLink :: Lens' PublisherProFileAPIProto (Maybe Text)
5284+ppfapSamplePageLink
5285+ = lens _ppfapSamplePageLink
5286+ (\ s a -> s{_ppfapSamplePageLink = a})
5287+
5288+-- | The url to the logo for the publisher.
5289+ppfapLogoURL :: Lens' PublisherProFileAPIProto (Maybe Text)
5290+ppfapLogoURL
5291+ = lens _ppfapLogoURL (\ s a -> s{_ppfapLogoURL = a})
5292+
5293+-- | Identifies what kind of resource this is. Value: the fixed string
5294+-- \"adexchangebuyer#publisherProfileApiProto\".
5295+ppfapKind :: Lens' PublisherProFileAPIProto Text
5296+ppfapKind
5297+ = lens _ppfapKind (\ s a -> s{_ppfapKind = a})
5298+
5299+-- | Exchange where this publisher profile is from. E.g. AdX, Rubicon etc...
5300+ppfapExchange :: Lens' PublisherProFileAPIProto (Maybe Text)
5301+ppfapExchange
5302+ = lens _ppfapExchange
5303+ (\ s a -> s{_ppfapExchange = a})
5304+
5305+-- | Publisher provided overview.
5306+ppfapOverview :: Lens' PublisherProFileAPIProto (Maybe Text)
5307+ppfapOverview
5308+ = lens _ppfapOverview
5309+ (\ s a -> s{_ppfapOverview = a})
5310+
5311+-- | Link to publisher\'s Google+ page.
5312+ppfapGooglePlusLink :: Lens' PublisherProFileAPIProto (Maybe Text)
5313+ppfapGooglePlusLink
5314+ = lens _ppfapGooglePlusLink
5315+ (\ s a -> s{_ppfapGooglePlusLink = a})
5316+
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)
5320+ppfapProFileId
5321+ = lens _ppfapProFileId
5322+ (\ s a -> s{_ppfapProFileId = a})
5323+ . mapping _Coerce
5324+
5325+-- | True, if this is the parent profile, which represents all domains owned
5326+-- by the publisher.
5327+ppfapIsParent :: Lens' PublisherProFileAPIProto (Maybe Bool)
5328+ppfapIsParent
5329+ = lens _ppfapIsParent
5330+ (\ s a -> s{_ppfapIsParent = a})
5331+
5332+-- | Seller of the publisher profile.
5333+ppfapSeller :: Lens' PublisherProFileAPIProto (Maybe Seller)
5334+ppfapSeller
5335+ = lens _ppfapSeller (\ s a -> s{_ppfapSeller = a})
5336+
5337+-- | The account id of the seller.
5338+ppfapAccountId :: Lens' PublisherProFileAPIProto (Maybe Text)
5339+ppfapAccountId
5340+ = lens _ppfapAccountId
5341+ (\ s a -> s{_ppfapAccountId = a})
5342+
5343+ppfapName :: Lens' PublisherProFileAPIProto (Maybe Text)
5344+ppfapName
5345+ = lens _ppfapName (\ s a -> s{_ppfapName = a})
5346+
5347+-- | A pitch statement for the buyer
5348+ppfapBuyerPitchStatement :: Lens' PublisherProFileAPIProto (Maybe Text)
5349+ppfapBuyerPitchStatement
5350+ = lens _ppfapBuyerPitchStatement
5351+ (\ s a -> s{_ppfapBuyerPitchStatement = a})
5352+
5353+-- | Publisher provided forecasting information.
5354+ppfapPublisherProvidedForecast :: Lens' PublisherProFileAPIProto (Maybe PublisherProvidedForecast)
5355+ppfapPublisherProvidedForecast
5356+ = lens _ppfapPublisherProvidedForecast
5357+ (\ s a -> s{_ppfapPublisherProvidedForecast = a})
5358+
5359+-- | True, if this profile is published. Deprecated for state.
5360+ppfapIsPublished :: Lens' PublisherProFileAPIProto (Maybe Bool)
5361+ppfapIsPublished
5362+ = lens _ppfapIsPublished
5363+ (\ s a -> s{_ppfapIsPublished = a})
5364+
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})
5371+ . _Default
5372+ . _Coerce
5373+
5374+-- | Unique Id for publisher profile.
5375+ppfapPublisherProFileId :: Lens' PublisherProFileAPIProto (Maybe Text)
5376+ppfapPublisherProFileId
5377+ = lens _ppfapPublisherProFileId
5378+ (\ s a -> s{_ppfapPublisherProFileId = a})
5379+
5380+-- | Link to publisher rate card
5381+ppfapRateCardInfoLink :: Lens' PublisherProFileAPIProto (Maybe Text)
5382+ppfapRateCardInfoLink
5383+ = lens _ppfapRateCardInfoLink
5384+ (\ s a -> s{_ppfapRateCardInfoLink = a})
5385+
5386+-- | Publisher provided key metrics and rankings.
5387+ppfapTopHeadlines :: Lens' PublisherProFileAPIProto [Text]
5388+ppfapTopHeadlines
5389+ = lens _ppfapTopHeadlines
5390+ (\ s a -> s{_ppfapTopHeadlines = a})
5391+ . _Default
5392+ . _Coerce
5393+
5394+-- | Programmatic contact for the publisher profile.
5395+ppfapProgrammaticContact :: Lens' PublisherProFileAPIProto (Maybe Text)
5396+ppfapProgrammaticContact
5397+ = lens _ppfapProgrammaticContact
5398+ (\ s a -> s{_ppfapProgrammaticContact = a})
5399+
5400+instance FromJSON PublisherProFileAPIProto where
5401+ parseJSON
5402+ = withObject "PublisherProFileAPIProto"
5403+ (\ o ->
5404+ PublisherProFileAPIProto' <$>
5405+ (o .:? "audience") <*> (o .:? "state") <*>
5406+ (o .:? "mediaKitLink")
5407+ <*> (o .:? "directContact")
5408+ <*> (o .:? "samplePageLink")
5409+ <*> (o .:? "logoUrl")
5410+ <*>
5411+ (o .:? "kind" .!=
5412+ "adexchangebuyer#publisherProfileApiProto")
5413+ <*> (o .:? "exchange")
5414+ <*> (o .:? "overview")
5415+ <*> (o .:? "googlePlusLink")
5416+ <*> (o .:? "profileId")
5417+ <*> (o .:? "isParent")
5418+ <*> (o .:? "seller")
5419+ <*> (o .:? "accountId")
5420+ <*> (o .:? "name")
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"))
5429+
5430+instance ToJSON PublisherProFileAPIProto where
5431+ toJSON PublisherProFileAPIProto'{..}
5432+ = object
5433+ (catMaybes
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])
5461+
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.
4621--
5464--
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)
4645
5491
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'
4663--
5509--
4664-- * 'mdDeliveryControl'
5510-- * 'mdDeliveryControl'
4665--
5511--
5512+-- * 'mdDealServingMetadata'
5513+--
4666-- * 'mdFlightStartTimeMs'
5514-- * 'mdFlightStartTimeMs'
4667--
5515--
4668-- * 'mdSharedTargetings'
5516-- * 'mdSharedTargetings'
@@ -4681,11 +5529,15 @@ data MarketplaceDeal = MarketplaceDeal'
4681--
5529--
4682-- * 'mdSellerContacts'
5530-- * 'mdSellerContacts'
4683--
5531--
5532+-- * 'mdProgrammaticCreativeSource'
5533+--
4684-- * 'mdCreativePreApprovalPolicy'
5534-- * 'mdCreativePreApprovalPolicy'
4685--
5535--
4686-- * 'mdProductRevisionNumber'
5536-- * 'mdProductRevisionNumber'
4687--
5537--
4688-- * 'mdProductId'
5538-- * 'mdProductId'
5539+--
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
4713 }
5568 }
4714
5569
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})
4764
5619
5620+-- | Metadata about the serving status of this deal (readonly, writes via
5621+-- custom actions)
5622+mdDealServingMetadata :: Lens' MarketplaceDeal (Maybe DealServingMetadata)
5623+mdDealServingMetadata
5624+ = lens _mdDealServingMetadata
5625+ (\ s a -> s{_mdDealServingMetadata = a})
5626+
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
4772
5634
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
4821
5684
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})
5692+
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})
4841
5712
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})
5718+
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
4853 <*>
5730 <*>
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"))
4868
5748
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])
4896
5782
4897--
5783--
4898-- /See:/ 'getOffersResponse' smart constructor.
5784-- /See:/ 'getOffersResponse' smart constructor.
@@ -4933,8 +5819,8 @@ instance ToJSON GetOffersResponse where
4933--
5819--
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)
4939
5825
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'
4943--
5829--
4944-- * 'dtngatReservePricePerBuyers'
5830-- * 'dtngatReservePricePerBuyers'
4945--
5831--
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
4953 }
5839 }
4954
5840
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
4962
5848
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})
4968
5855
4969instance FromJSON DealTermsNonGuaranteedAuctionTerms
5856instance FromJSON DealTermsNonGuaranteedAuctionTerms
4970 where
5857 where
@@ -4973,7 +5860,7 @@ instance FromJSON DealTermsNonGuaranteedAuctionTerms
4973 (\ o ->
5860 (\ o ->
4974 DealTermsNonGuaranteedAuctionTerms' <$>
5861 DealTermsNonGuaranteedAuctionTerms' <$>
4975 (o .:? "reservePricePerBuyers" .!= mempty) <*>
5862 (o .:? "reservePricePerBuyers" .!= mempty) <*>
4976− (o .:? "privateAuctionId"))
5863+ (o .:? "autoOptimizePrivateAuction"))
4977
5864
4978instance ToJSON DealTermsNonGuaranteedAuctionTerms
5865instance ToJSON DealTermsNonGuaranteedAuctionTerms
4979 where
5866 where
@@ -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])
4986
5874
4987--
5875--
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'
5065--
5954--
5066-- * 'dtEstimatedImpressionsPerDay'
5955-- * 'dtEstimatedImpressionsPerDay'
5067--
5956--
5957+-- * 'dtSellerTimeZone'
5958+--
5068-- * 'dtGuaranteedFixedPriceTerms'
5959-- * 'dtGuaranteedFixedPriceTerms'
5069--
5960--
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
5082 }
5974 }
@@ -5114,6 +6006,13 @@ dtEstimatedImpressionsPerDay
5114 (\ s a -> s{_dtEstimatedImpressionsPerDay = a})
6006 (\ s a -> s{_dtEstimatedImpressionsPerDay = a})
5115 . mapping _Coerce
6007 . mapping _Coerce
5116
6008
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)
6012+dtSellerTimeZone
6013+ = lens _dtSellerTimeZone
6014+ (\ s a -> s{_dtSellerTimeZone = a})
6015+
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"))
5141
6041
@@ -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])
5325
6226
6227+-- | Tracks which parties (if any) have paused a deal. The deal is considered
6228+-- paused if has_buyer_paused || has_seller_paused.
6229+--
6230+-- /See:/ 'dealServingMetadataDealPauseStatus' smart constructor.
6231+data DealServingMetadataDealPauseStatus = DealServingMetadataDealPauseStatus'
6232+ { _dsmdpsHasBuyerPaused :: !(Maybe Bool)
6233+ , _dsmdpsHasSellerPaused :: !(Maybe Bool)
6234+ } deriving (Eq,Show,Data,Typeable,Generic)
6235+
6236+-- | Creates a value of 'DealServingMetadataDealPauseStatus' with the minimum fields required to make a request.
6237+--
6238+-- Use one of the following lenses to modify other fields as desired:
6239+--
6240+-- * 'dsmdpsHasBuyerPaused'
6241+--
6242+-- * 'dsmdpsHasSellerPaused'
6243+dealServingMetadataDealPauseStatus
6244+ :: DealServingMetadataDealPauseStatus
6245+dealServingMetadataDealPauseStatus =
6246+ DealServingMetadataDealPauseStatus'
6247+ { _dsmdpsHasBuyerPaused = Nothing
6248+ , _dsmdpsHasSellerPaused = Nothing
6249+ }
6250+
6251+dsmdpsHasBuyerPaused :: Lens' DealServingMetadataDealPauseStatus (Maybe Bool)
6252+dsmdpsHasBuyerPaused
6253+ = lens _dsmdpsHasBuyerPaused
6254+ (\ s a -> s{_dsmdpsHasBuyerPaused = a})
6255+
6256+dsmdpsHasSellerPaused :: Lens' DealServingMetadataDealPauseStatus (Maybe Bool)
6257+dsmdpsHasSellerPaused
6258+ = lens _dsmdpsHasSellerPaused
6259+ (\ s a -> s{_dsmdpsHasSellerPaused = a})
6260+
6261+instance FromJSON DealServingMetadataDealPauseStatus
6262+ where
6263+ parseJSON
6264+ = withObject "DealServingMetadataDealPauseStatus"
6265+ (\ o ->
6266+ DealServingMetadataDealPauseStatus' <$>
6267+ (o .:? "hasBuyerPaused") <*>
6268+ (o .:? "hasSellerPaused"))
6269+
6270+instance ToJSON DealServingMetadataDealPauseStatus
6271+ where
6272+ toJSON DealServingMetadataDealPauseStatus'{..}
6273+ = object
6274+ (catMaybes
6275+ [("hasBuyerPaused" .=) <$> _dsmdpsHasBuyerPaused,
6276+ ("hasSellerPaused" .=) <$> _dsmdpsHasSellerPaused])
6277+
5326--
6278--
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)
5333
6286
@@ -5339,6 +6292,8 @@ data DealTermsGuaranteedFixedPriceTerms = DealTermsGuaranteedFixedPriceTerms'
5339--
6292--
5340-- * 'dtgfptGuaranteedImpressions'
6293-- * 'dtgfptGuaranteedImpressions'
5341--
6294--
6295+-- * 'dtgfptBillingInfo'
6296+--
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
5350 }
6306 }
5351
6307
@@ -5364,6 +6320,14 @@ dtgfptGuaranteedImpressions
5364 (\ s a -> s{_dtgfptGuaranteedImpressions = a})
6320 (\ s a -> s{_dtgfptGuaranteedImpressions = a})
5365 . mapping _Coerce
6321 . mapping _Coerce
5366
6322
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
6325+-- DFP\/AdX.
6326+dtgfptBillingInfo :: Lens' DealTermsGuaranteedFixedPriceTerms (Maybe DealTermsGuaranteedFixedPriceTermsBillingInfo)
6327+dtgfptBillingInfo
6328+ = lens _dtgfptBillingInfo
6329+ (\ s a -> s{_dtgfptBillingInfo = a})
6330+
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))
5384
6349
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])
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceDeals/List.hs+18−6
@@ -34,6 +34,7 @@ module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.List
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36 , mdlProposalId
36 , mdlProposalId
37+ , mdlPqlQuery
37 ) where
38 ) where
38
39
39import Network.Google.AdExchangeBuyer.Types
40import Network.Google.AdExchangeBuyer.Types
@@ -47,14 +48,16 @@ type MarketplaceDealsListResource =
47 "proposals" :>
48 "proposals" :>
48 Capture "proposalId" Text :>
49 Capture "proposalId" Text :>
49 "deals" :>
50 "deals" :>
51+ QueryParam "pqlQuery" Text :>
50− QueryParam "alt" AltJSON :>
52+ QueryParam "alt" AltJSON :>
51− Get '[JSON] GetOrderDealsResponse
53+ Get '[JSON] GetOrderDealsResponse
52
54
53-- | List all the deals for a given proposal
55-- | List all the deals for a given proposal
54--
56--
55-- /See:/ 'marketplaceDealsList' smart constructor.
57-- /See:/ 'marketplaceDealsList' smart constructor.
56−newtype MarketplaceDealsList = MarketplaceDealsList'
58+data MarketplaceDealsList = MarketplaceDealsList'
57− { _mdlProposalId :: Text
59+ { _mdlProposalId :: !Text
60+ , _mdlPqlQuery :: !(Maybe Text)
58 } deriving (Eq,Show,Data,Typeable,Generic)
61 } deriving (Eq,Show,Data,Typeable,Generic)
59
62
60-- | Creates a value of 'MarketplaceDealsList' with the minimum fields required to make a request.
63-- | Creates a value of 'MarketplaceDealsList' with the minimum fields required to make a request.
@@ -62,26 +65,35 @@ newtype MarketplaceDealsList = MarketplaceDealsList'
62-- Use one of the following lenses to modify other fields as desired:
65-- Use one of the following lenses to modify other fields as desired:
63--
66--
64-- * 'mdlProposalId'
67-- * 'mdlProposalId'
68+--
69+-- * 'mdlPqlQuery'
65marketplaceDealsList
70marketplaceDealsList
66 :: Text -- ^ 'mdlProposalId'
71 :: Text -- ^ 'mdlProposalId'
67 -> MarketplaceDealsList
72 -> MarketplaceDealsList
68marketplaceDealsList pMdlProposalId_ =
73marketplaceDealsList pMdlProposalId_ =
69 MarketplaceDealsList'
74 MarketplaceDealsList'
70 { _mdlProposalId = pMdlProposalId_
75 { _mdlProposalId = pMdlProposalId_
76+ , _mdlPqlQuery = Nothing
71 }
77 }
72
78
73−-- | The proposalId to get deals for.
79+-- | The proposalId to get deals for. To search across proposals specify
80+-- order_id = \'-\' as part of the URL.
74mdlProposalId :: Lens' MarketplaceDealsList Text
81mdlProposalId :: Lens' MarketplaceDealsList Text
75mdlProposalId
82mdlProposalId
76 = lens _mdlProposalId
83 = lens _mdlProposalId
77 (\ s a -> s{_mdlProposalId = a})
84 (\ s a -> s{_mdlProposalId = a})
78
85
86+-- | Query string to retrieve specific deals.
87+mdlPqlQuery :: Lens' MarketplaceDealsList (Maybe Text)
88+mdlPqlQuery
89+ = lens _mdlPqlQuery (\ s a -> s{_mdlPqlQuery = a})
90+
79instance GoogleRequest MarketplaceDealsList where
91instance GoogleRequest MarketplaceDealsList where
80 type Rs MarketplaceDealsList = GetOrderDealsResponse
92 type Rs MarketplaceDealsList = GetOrderDealsResponse
81 type Scopes MarketplaceDealsList =
93 type Scopes MarketplaceDealsList =
82 '["https://www.googleapis.com/auth/adexchange.buyer"]
94 '["https://www.googleapis.com/auth/adexchange.buyer"]
83 requestClient MarketplaceDealsList'{..}
95 requestClient MarketplaceDealsList'{..}
84− = go _mdlProposalId (Just AltJSON)
96+ = go _mdlProposalId _mdlPqlQuery (Just AltJSON)
85 adExchangeBuyerService
97 adExchangeBuyerService
86 where go
98 where go
87 = buildClient
99 = buildClient
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Marketplaceprivateauction/Updateproposal.hsnew file+106
@@ -0,0 +1,106 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Marketplaceprivateauction.Updateproposal
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Update a given private auction proposal
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplaceprivateauction.updateproposal@.
26+module Network.Google.Resource.AdExchangeBuyer.Marketplaceprivateauction.Updateproposal
27+ (
28+ -- * REST Resource
29+ MarketplaceprivateauctionUpdateproposalResource
30+
31+ -- * Creating a Request
32+ , marketplaceprivateauctionUpdateproposal
33+ , MarketplaceprivateauctionUpdateproposal
34+
35+ -- * Request Lenses
36+ , muPrivateAuctionId
37+ , muPayload
38+ ) where
39+
40+import Network.Google.AdExchangeBuyer.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @adexchangebuyer.marketplaceprivateauction.updateproposal@ method which the
44+-- 'MarketplaceprivateauctionUpdateproposal' request conforms to.
45+type MarketplaceprivateauctionUpdateproposalResource
46+ =
47+ "adexchangebuyer" :>
48+ "v1.4" :>
49+ "privateauction" :>
50+ Capture "privateAuctionId" Text :>
51+ "updateproposal" :>
52+ QueryParam "alt" AltJSON :>
53+ ReqBody '[JSON] UpdatePrivateAuctionProposalRequest
54+ :> Post '[JSON] ()
55+
56+-- | Update a given private auction proposal
57+--
58+-- /See:/ 'marketplaceprivateauctionUpdateproposal' smart constructor.
59+data MarketplaceprivateauctionUpdateproposal = MarketplaceprivateauctionUpdateproposal'
60+ { _muPrivateAuctionId :: !Text
61+ , _muPayload :: !UpdatePrivateAuctionProposalRequest
62+ } deriving (Eq,Show,Data,Typeable,Generic)
63+
64+-- | Creates a value of 'MarketplaceprivateauctionUpdateproposal' with the minimum fields required to make a request.
65+--
66+-- Use one of the following lenses to modify other fields as desired:
67+--
68+-- * 'muPrivateAuctionId'
69+--
70+-- * 'muPayload'
71+marketplaceprivateauctionUpdateproposal
72+ :: Text -- ^ 'muPrivateAuctionId'
73+ -> UpdatePrivateAuctionProposalRequest -- ^ 'muPayload'
74+ -> MarketplaceprivateauctionUpdateproposal
75+marketplaceprivateauctionUpdateproposal pMuPrivateAuctionId_ pMuPayload_ =
76+ MarketplaceprivateauctionUpdateproposal'
77+ { _muPrivateAuctionId = pMuPrivateAuctionId_
78+ , _muPayload = pMuPayload_
79+ }
80+
81+-- | The private auction id to be updated.
82+muPrivateAuctionId :: Lens' MarketplaceprivateauctionUpdateproposal Text
83+muPrivateAuctionId
84+ = lens _muPrivateAuctionId
85+ (\ s a -> s{_muPrivateAuctionId = a})
86+
87+-- | Multipart request metadata.
88+muPayload :: Lens' MarketplaceprivateauctionUpdateproposal UpdatePrivateAuctionProposalRequest
89+muPayload
90+ = lens _muPayload (\ s a -> s{_muPayload = a})
91+
92+instance GoogleRequest
93+ MarketplaceprivateauctionUpdateproposal where
94+ type Rs MarketplaceprivateauctionUpdateproposal = ()
95+ type Scopes MarketplaceprivateauctionUpdateproposal =
96+ '["https://www.googleapis.com/auth/adexchange.buyer"]
97+ requestClient
98+ MarketplaceprivateauctionUpdateproposal'{..}
99+ = go _muPrivateAuctionId (Just AltJSON) _muPayload
100+ adExchangeBuyerService
101+ where go
102+ = buildClient
103+ (Proxy ::
104+ Proxy
105+ MarketplaceprivateauctionUpdateproposalResource)
106+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Proposals/Setupcomplete.hsnew file+87
@@ -0,0 +1,87 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Proposals.Setupcomplete
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Update the given proposal to indicate that setup has been completed.
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.proposals.setupcomplete@.
26+module Network.Google.Resource.AdExchangeBuyer.Proposals.Setupcomplete
27+ (
28+ -- * REST Resource
29+ ProposalsSetupcompleteResource
30+
31+ -- * Creating a Request
32+ , proposalsSetupcomplete
33+ , ProposalsSetupcomplete
34+
35+ -- * Request Lenses
36+ , psProposalId
37+ ) where
38+
39+import Network.Google.AdExchangeBuyer.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @adexchangebuyer.proposals.setupcomplete@ method which the
43+-- 'ProposalsSetupcomplete' request conforms to.
44+type ProposalsSetupcompleteResource =
45+ "adexchangebuyer" :>
46+ "v1.4" :>
47+ "proposals" :>
48+ Capture "proposalId" Text :>
49+ "setupcomplete" :>
50+ QueryParam "alt" AltJSON :> Post '[JSON] ()
51+
52+-- | Update the given proposal to indicate that setup has been completed.
53+--
54+-- /See:/ 'proposalsSetupcomplete' smart constructor.
55+newtype ProposalsSetupcomplete = ProposalsSetupcomplete'
56+ { _psProposalId :: Text
57+ } deriving (Eq,Show,Data,Typeable,Generic)
58+
59+-- | Creates a value of 'ProposalsSetupcomplete' with the minimum fields required to make a request.
60+--
61+-- Use one of the following lenses to modify other fields as desired:
62+--
63+-- * 'psProposalId'
64+proposalsSetupcomplete
65+ :: Text -- ^ 'psProposalId'
66+ -> ProposalsSetupcomplete
67+proposalsSetupcomplete pPsProposalId_ =
68+ ProposalsSetupcomplete'
69+ { _psProposalId = pPsProposalId_
70+ }
71+
72+-- | The proposal id for which the setup is complete
73+psProposalId :: Lens' ProposalsSetupcomplete Text
74+psProposalId
75+ = lens _psProposalId (\ s a -> s{_psProposalId = a})
76+
77+instance GoogleRequest ProposalsSetupcomplete where
78+ type Rs ProposalsSetupcomplete = ()
79+ type Scopes ProposalsSetupcomplete =
80+ '["https://www.googleapis.com/auth/adexchange.buyer"]
81+ requestClient ProposalsSetupcomplete'{..}
82+ = go _psProposalId (Just AltJSON)
83+ adExchangeBuyerService
84+ where go
85+ = buildClient
86+ (Proxy :: Proxy ProposalsSetupcompleteResource)
87+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/PubproFiles/List.hsnew file+90
@@ -0,0 +1,90 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.PubproFiles.List
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Gets the requested publisher profile(s) by publisher accountId.
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.pubprofiles.list@.
26+module Network.Google.Resource.AdExchangeBuyer.PubproFiles.List
27+ (
28+ -- * REST Resource
29+ PubproFilesListResource
30+
31+ -- * Creating a Request
32+ , pubproFilesList
33+ , PubproFilesList
34+
35+ -- * Request Lenses
36+ , pflAccountId
37+ ) where
38+
39+import Network.Google.AdExchangeBuyer.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @adexchangebuyer.pubprofiles.list@ method which the
43+-- 'PubproFilesList' request conforms to.
44+type PubproFilesListResource =
45+ "adexchangebuyer" :>
46+ "v1.4" :>
47+ "publisher" :>
48+ Capture "accountId" (Textual Int32) :>
49+ "profiles" :>
50+ QueryParam "alt" AltJSON :>
51+ Get '[JSON] GetPublisherProFilesByAccountIdResponse
52+
53+-- | Gets the requested publisher profile(s) by publisher accountId.
54+--
55+-- /See:/ 'pubproFilesList' smart constructor.
56+newtype PubproFilesList = PubproFilesList'
57+ { _pflAccountId :: Textual Int32
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'PubproFilesList' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'pflAccountId'
65+pubproFilesList
66+ :: Int32 -- ^ 'pflAccountId'
67+ -> PubproFilesList
68+pubproFilesList pPflAccountId_ =
69+ PubproFilesList'
70+ { _pflAccountId = _Coerce # pPflAccountId_
71+ }
72+
73+-- | The accountId of the publisher to get profiles for.
74+pflAccountId :: Lens' PubproFilesList Int32
75+pflAccountId
76+ = lens _pflAccountId (\ s a -> s{_pflAccountId = a})
77+ . _Coerce
78+
79+instance GoogleRequest PubproFilesList where
80+ type Rs PubproFilesList =
81+ GetPublisherProFilesByAccountIdResponse
82+ type Scopes PubproFilesList =
83+ '["https://www.googleapis.com/auth/adexchange.buyer"]
84+ requestClient PubproFilesList'{..}
85+ = go _pflAccountId (Just AltJSON)
86+ adExchangeBuyerService
87+ where go
88+ = buildClient
89+ (Proxy :: Proxy PubproFilesListResource)
90+ mempty
gogol-adexchange-buyer/gogol-adexchange-buyer.cabal+3
@@ -57,6 +57,7 @@ library
57 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
57 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
58 , Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
58 , Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
59 , Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
59 , Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
60+ , Network.Google.Resource.AdExchangeBuyer.Marketplaceprivateauction.Updateproposal
60 , Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
61 , Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
61 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Delete
62 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Delete
62 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Get
63 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Get
@@ -70,7 +71,9 @@ library
70 , Network.Google.Resource.AdExchangeBuyer.Proposals.Insert
71 , Network.Google.Resource.AdExchangeBuyer.Proposals.Insert
71 , Network.Google.Resource.AdExchangeBuyer.Proposals.Patch
72 , Network.Google.Resource.AdExchangeBuyer.Proposals.Patch
72 , Network.Google.Resource.AdExchangeBuyer.Proposals.Search
73 , Network.Google.Resource.AdExchangeBuyer.Proposals.Search
74+ , Network.Google.Resource.AdExchangeBuyer.Proposals.Setupcomplete
73 , Network.Google.Resource.AdExchangeBuyer.Proposals.Update
75 , Network.Google.Resource.AdExchangeBuyer.Proposals.Update
76+ , Network.Google.Resource.AdExchangeBuyer.PubproFiles.List
74
77
75 other-modules:
78 other-modules:
76 Network.Google.AdExchangeBuyer.Types.Product
79 Network.Google.AdExchangeBuyer.Types.Product