on develop help sign in
Regenerating gogol-doubleclick-bids from latest service definition
commit065628ce400632410d027e2225803fcf38f1fa1a authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parentc57926a
8 files changed+656−354
gen/model/doubleclickbidmanager/v1/doubleclickbidmanager-api.json+160−67 gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids.hs+26−22 gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types.hs+22−18 gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Product.hs+148−158 gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Sum.hs+214−1 gogol-doubleclick-bids/gen/Network/Google/Resource/DoubleClickBidManager/Rubicon/Notifyproposalchange.hs−87 gogol-doubleclick-bids/gen/Network/Google/Resource/DoubleClickBidManager/Sdf/Download.hs+85 gogol-doubleclick-bids/gogol-doubleclick-bids.cabal+1−1
gen/model/doubleclickbidmanager/v1/doubleclickbidmanager-api.json+160−67
@@ -1,12 +1,12 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/Vzy4iZtubPXOlXG51HH4XZMfqLU\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/HF5Y_4KNN3jjkTN_0xoqvh78Ux0\"",
44 "discoveryVersion": "v1",
55 "id": "doubleclickbidmanager:v1",
66 "name": "doubleclickbidmanager",
77 "canonicalName": "DoubleClick Bid Manager",
88 "version": "v1",
9− "revision": "20160426",
9+ "revision": "20161010",
1010 "title": "DoubleClick Bid Manager API",
1111 "description": "API for viewing and managing your reports in DoubleClick Bid Manager.",
1212 "ownerDomain": "google.com",
@@ -133,6 +133,81 @@
133133 }
134134 }
135135 },
136+ "DownloadRequest": {
137+ "id": "DownloadRequest",
138+ "type": "object",
139+ "description": "Request to fetch stored insertion orders, line items, TrueView ad groups and ads.",
140+ "properties": {
141+ "fileTypes": {
142+ "type": "array",
143+ "description": "File types that will be returned.",
144+ "items": {
145+ "type": "string",
146+ "enum": [
147+ "AD",
148+ "AD_GROUP",
149+ "INSERTION_ORDER",
150+ "LINE_ITEM"
151+ ],
152+ "enumDescriptions": [
153+ "",
154+ "",
155+ "",
156+ ""
157+ ]
158+ }
159+ },
160+ "filterIds": {
161+ "type": "array",
162+ "description": "The IDs of the specified filter type. This is used to filter entities to fetch. At least one ID must be specified. Only one ID is allowed for the ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter types all IDs must be from the same Advertiser.",
163+ "items": {
164+ "type": "string",
165+ "format": "int64"
166+ }
167+ },
168+ "filterType": {
169+ "type": "string",
170+ "description": "Filter type used to filter line items to fetch.",
171+ "enum": [
172+ "ADVERTISER_ID",
173+ "INSERTION_ORDER_ID",
174+ "LINE_ITEM_ID"
175+ ],
176+ "enumDescriptions": [
177+ "",
178+ "",
179+ ""
180+ ]
181+ },
182+ "version": {
183+ "type": "string",
184+ "description": "SDF Version (column names, types, order) in which the entities will be returned. Default to 3."
185+ }
186+ }
187+ },
188+ "DownloadResponse": {
189+ "id": "DownloadResponse",
190+ "type": "object",
191+ "description": "Download response.",
192+ "properties": {
193+ "adGroups": {
194+ "type": "string",
195+ "description": "Retrieved ad groups in SDF format."
196+ },
197+ "ads": {
198+ "type": "string",
199+ "description": "Retrieved ads in SDF format."
200+ },
201+ "insertionOrders": {
202+ "type": "string",
203+ "description": "Retrieved insertion orders in SDF format."
204+ },
205+ "lineItems": {
206+ "type": "string",
207+ "description": "Retrieved line items in SDF format."
208+ }
209+ }
210+ },
136211 "FilterPair": {
137212 "id": "FilterPair",
138213 "type": "object",
@@ -179,6 +254,7 @@
179254 "FILTER_LINE_ITEM_DAILY_FREQUENCY",
180255 "FILTER_LINE_ITEM_LIFETIME_FREQUENCY",
181256 "FILTER_LINE_ITEM_TYPE",
257+ "FILTER_MEDIA_PLAN",
182258 "FILTER_MOBILE_DEVICE_MAKE",
183259 "FILTER_MOBILE_DEVICE_MAKE_MODEL",
184260 "FILTER_MOBILE_DEVICE_TYPE",
@@ -189,6 +265,7 @@
189265 "FILTER_NIELSEN_COUNTRY_CODE",
190266 "FILTER_NIELSEN_DEVICE_ID",
191267 "FILTER_NIELSEN_GENDER",
268+ "FILTER_NOT_SUPPORTED",
192269 "FILTER_ORDER_ID",
193270 "FILTER_OS",
194271 "FILTER_PAGE_CATEGORY",
@@ -207,8 +284,11 @@
207284 "FILTER_TRUEVIEW_AD_GROUP_ID",
208285 "FILTER_TRUEVIEW_AGE",
209286 "FILTER_TRUEVIEW_CATEGORY",
287+ "FILTER_TRUEVIEW_CITY",
210288 "FILTER_TRUEVIEW_CONVERSION_TYPE",
289+ "FILTER_TRUEVIEW_COUNTRY",
211290 "FILTER_TRUEVIEW_CUSTOM_AFFINITY",
291+ "FILTER_TRUEVIEW_DMA",
212292 "FILTER_TRUEVIEW_GENDER",
213293 "FILTER_TRUEVIEW_IAR_AGE",
214294 "FILTER_TRUEVIEW_IAR_CATEGORY",
@@ -221,12 +301,17 @@
221301 "FILTER_TRUEVIEW_IAR_REGION",
222302 "FILTER_TRUEVIEW_IAR_REMARKETING_LIST",
223303 "FILTER_TRUEVIEW_IAR_TIME_OF_DAY",
304+ "FILTER_TRUEVIEW_IAR_YOUTUBE_CHANNEL",
305+ "FILTER_TRUEVIEW_IAR_YOUTUBE_VIDEO",
224306 "FILTER_TRUEVIEW_IAR_ZIPCODE",
225307 "FILTER_TRUEVIEW_INTEREST",
226308 "FILTER_TRUEVIEW_KEYWORD",
227309 "FILTER_TRUEVIEW_PARENTAL_STATUS",
228310 "FILTER_TRUEVIEW_PLACEMENT",
311+ "FILTER_TRUEVIEW_REGION",
229312 "FILTER_TRUEVIEW_REMARKETING_LIST",
313+ "FILTER_TRUEVIEW_URL",
314+ "FILTER_TRUEVIEW_ZIPCODE",
230315 "FILTER_UNKNOWN",
231316 "FILTER_USER_LIST",
232317 "FILTER_USER_LIST_FIRST_PARTY",
@@ -353,6 +438,16 @@
353438 "",
354439 "",
355440 "",
441+ "",
442+ "",
443+ "",
444+ "",
445+ "",
446+ "",
447+ "",
448+ "",
449+ "",
450+ "",
356451 ""
357452 ]
358453 },
@@ -400,65 +495,6 @@
400495 }
401496 }
402497 },
403− "Note": {
404− "id": "Note",
405− "type": "object",
406− "description": "Publisher comment from Rubicon.",
407− "properties": {
408− "id": {
409− "type": "string",
410− "description": "Note id.",
411− "format": "int64"
412− },
413− "message": {
414− "type": "string",
415− "description": "Message from publisher."
416− },
417− "source": {
418− "type": "string",
419− "description": "Equals \"publisher\" for notification from Rubicon."
420− },
421− "timestamp": {
422− "type": "string",
423− "description": "Time when the note was added, e.g. \"2015-12-16T17:25:35.000-08:00\"."
424− },
425− "username": {
426− "type": "string",
427− "description": "Publisher user name."
428− }
429− }
430− },
431− "NotifyProposalChangeRequest": {
432− "id": "NotifyProposalChangeRequest",
433− "type": "object",
434− "description": "NotifyProposalChange request.",
435− "properties": {
436− "action": {
437− "type": "string",
438− "description": "Action taken by publisher. One of: Accept, Decline, Append"
439− },
440− "href": {
441− "type": "string",
442− "description": "URL to access proposal detail."
443− },
444− "id": {
445− "type": "string",
446− "description": "Below are contents of notification from Rubicon. Proposal id.",
447− "format": "int64"
448− },
449− "notes": {
450− "type": "array",
451− "description": "Notes from publisher",
452− "items": {
453− "$ref": "Note"
454− }
455− },
456− "token": {
457− "type": "string",
458− "description": "Deal token, available when proposal is accepted by publisher."
459− }
460− }
461− },
462498 "Parameters": {
463499 "id": "Parameters",
464500 "type": "object",
@@ -514,6 +550,7 @@
514550 "FILTER_LINE_ITEM_DAILY_FREQUENCY",
515551 "FILTER_LINE_ITEM_LIFETIME_FREQUENCY",
516552 "FILTER_LINE_ITEM_TYPE",
553+ "FILTER_MEDIA_PLAN",
517554 "FILTER_MOBILE_DEVICE_MAKE",
518555 "FILTER_MOBILE_DEVICE_MAKE_MODEL",
519556 "FILTER_MOBILE_DEVICE_TYPE",
@@ -524,6 +561,7 @@
524561 "FILTER_NIELSEN_COUNTRY_CODE",
525562 "FILTER_NIELSEN_DEVICE_ID",
526563 "FILTER_NIELSEN_GENDER",
564+ "FILTER_NOT_SUPPORTED",
527565 "FILTER_ORDER_ID",
528566 "FILTER_OS",
529567 "FILTER_PAGE_CATEGORY",
@@ -542,8 +580,11 @@
542580 "FILTER_TRUEVIEW_AD_GROUP_ID",
543581 "FILTER_TRUEVIEW_AGE",
544582 "FILTER_TRUEVIEW_CATEGORY",
583+ "FILTER_TRUEVIEW_CITY",
545584 "FILTER_TRUEVIEW_CONVERSION_TYPE",
585+ "FILTER_TRUEVIEW_COUNTRY",
546586 "FILTER_TRUEVIEW_CUSTOM_AFFINITY",
587+ "FILTER_TRUEVIEW_DMA",
547588 "FILTER_TRUEVIEW_GENDER",
548589 "FILTER_TRUEVIEW_IAR_AGE",
549590 "FILTER_TRUEVIEW_IAR_CATEGORY",
@@ -556,12 +597,17 @@
556597 "FILTER_TRUEVIEW_IAR_REGION",
557598 "FILTER_TRUEVIEW_IAR_REMARKETING_LIST",
558599 "FILTER_TRUEVIEW_IAR_TIME_OF_DAY",
600+ "FILTER_TRUEVIEW_IAR_YOUTUBE_CHANNEL",
601+ "FILTER_TRUEVIEW_IAR_YOUTUBE_VIDEO",
559602 "FILTER_TRUEVIEW_IAR_ZIPCODE",
560603 "FILTER_TRUEVIEW_INTEREST",
561604 "FILTER_TRUEVIEW_KEYWORD",
562605 "FILTER_TRUEVIEW_PARENTAL_STATUS",
563606 "FILTER_TRUEVIEW_PLACEMENT",
607+ "FILTER_TRUEVIEW_REGION",
564608 "FILTER_TRUEVIEW_REMARKETING_LIST",
609+ "FILTER_TRUEVIEW_URL",
610+ "FILTER_TRUEVIEW_ZIPCODE",
565611 "FILTER_UNKNOWN",
566612 "FILTER_USER_LIST",
567613 "FILTER_USER_LIST_FIRST_PARTY",
@@ -688,6 +734,16 @@
688734 "",
689735 "",
690736 "",
737+ "",
738+ "",
739+ "",
740+ "",
741+ "",
742+ "",
743+ "",
744+ "",
745+ "",
746+ "",
691747 ""
692748 ]
693749 }
@@ -702,6 +758,17 @@
702758 "items": {
703759 "type": "string",
704760 "enum": [
761+ "METRIC_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME",
762+ "METRIC_ACTIVE_VIEW_DISTRIBUTION_UNMEASURABLE",
763+ "METRIC_ACTIVE_VIEW_DISTRIBUTION_UNVIEWABLE",
764+ "METRIC_ACTIVE_VIEW_DISTRIBUTION_VIEWABLE",
765+ "METRIC_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS",
766+ "METRIC_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS",
767+ "METRIC_ACTIVE_VIEW_PCT_MEASURABLE_IMPRESSIONS",
768+ "METRIC_ACTIVE_VIEW_PCT_VIEWABLE_IMPRESSIONS",
769+ "METRIC_ACTIVE_VIEW_UNMEASURABLE_IMPRESSIONS",
770+ "METRIC_ACTIVE_VIEW_UNVIEWABLE_IMPRESSIONS",
771+ "METRIC_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS",
705772 "METRIC_BID_REQUESTS",
706773 "METRIC_BILLABLE_COST_ADVERTISER",
707774 "METRIC_BILLABLE_COST_PARTNER",
@@ -870,6 +937,7 @@
870937 "METRIC_PROFIT_VIEWABLE_ECPM_ADVERTISER",
871938 "METRIC_PROFIT_VIEWABLE_ECPM_PARTNER",
872939 "METRIC_PROFIT_VIEWABLE_ECPM_USD",
940+ "METRIC_REACH_COOKIE_REACH",
873941 "METRIC_REVENUE_ADVERTISER",
874942 "METRIC_REVENUE_ECPAPC_ADVERTISER",
875943 "METRIC_REVENUE_ECPAPC_PARTNER",
@@ -931,6 +999,9 @@
931999 "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_ADVERTISER",
9321000 "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_PARTNER",
9331001 "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_USD",
1002+ "METRIC_TRUEVIEW_AVERAGE_CPE_ADVERTISER",
1003+ "METRIC_TRUEVIEW_AVERAGE_CPE_PARTNER",
1004+ "METRIC_TRUEVIEW_AVERAGE_CPE_USD",
9341005 "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_ADVERTISER",
9351006 "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_PARTNER",
9361007 "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_USD",
@@ -956,6 +1027,8 @@
9561027 "METRIC_TRUEVIEW_EARNED_SHARES",
9571028 "METRIC_TRUEVIEW_EARNED_SUBSCRIBERS",
9581029 "METRIC_TRUEVIEW_EARNED_VIEWS",
1030+ "METRIC_TRUEVIEW_ENGAGEMENTS",
1031+ "METRIC_TRUEVIEW_ENGAGEMENT_RATE",
9591032 "METRIC_TRUEVIEW_IMPRESSION_SHARE",
9601033 "METRIC_TRUEVIEW_LOST_IS_BUDGET",
9611034 "METRIC_TRUEVIEW_LOST_IS_RANK",
@@ -1247,6 +1320,23 @@
12471320 "",
12481321 "",
12491322 "",
1323+ "",
1324+ "",
1325+ "",
1326+ "",
1327+ "",
1328+ "",
1329+ "",
1330+ "",
1331+ "",
1332+ "",
1333+ "",
1334+ "",
1335+ "",
1336+ "",
1337+ "",
1338+ "",
1339+ "",
12501340 ""
12511341 ]
12521342 }
@@ -1969,15 +2059,18 @@
19692059 }
19702060 }
19712061 },
1972− "rubicon": {
2062+ "sdf": {
19732063 "methods": {
1974− "notifyproposalchange": {
1975− "id": "doubleclickbidmanager.rubicon.notifyproposalchange",
1976− "path": "rubicon/notifyproposalchange",
2064+ "download": {
2065+ "id": "doubleclickbidmanager.sdf.download",
2066+ "path": "sdf/download",
19772067 "httpMethod": "POST",
1978− "description": "Update proposal upon actions of Rubicon publisher.",
2068+ "description": "Retrieves entities in SDF format.",
19792069 "request": {
1980− "$ref": "NotifyProposalChangeRequest"
2070+ "$ref": "DownloadRequest"
2071+ },
2072+ "response": {
2073+ "$ref": "DownloadResponse"
19812074 }
19822075 }
19832076 }
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids.hs+26−22
@@ -50,8 +50,8 @@ module Network.Google.DoubleClickBids
5050 -- ** doubleclickbidmanager.reports.listreports
5151 , module Network.Google.Resource.DoubleClickBidManager.Reports.Listreports
5252
53− -- ** doubleclickbidmanager.rubicon.notifyproposalchange
54− , module Network.Google.Resource.DoubleClickBidManager.Rubicon.Notifyproposalchange
53+ -- ** doubleclickbidmanager.sdf.download
54+ , module Network.Google.Resource.DoubleClickBidManager.Sdf.Download
5555
5656 -- * Types
5757
@@ -106,6 +106,9 @@ module Network.Google.DoubleClickBids
106106 -- ** DownloadLineItemsRequestFilterType
107107 , DownloadLineItemsRequestFilterType (..)
108108
109+ -- ** DownloadRequestFilterType
110+ , DownloadRequestFilterType (..)
111+
109112 -- ** DownloadLineItemsRequest
110113 , DownloadLineItemsRequest
111114 , downloadLineItemsRequest
@@ -114,6 +117,17 @@ module Network.Google.DoubleClickBids
114117 , dlirFileSpec
115118 , dlirFilterIds
116119
120+ -- ** DownloadRequestFileTypesItem
121+ , DownloadRequestFileTypesItem (..)
122+
123+ -- ** DownloadRequest
124+ , DownloadRequest
125+ , downloadRequest
126+ , drFileTypes
127+ , drFilterType
128+ , drVersion
129+ , drFilterIds
130+
117131 -- ** ListQueriesResponse
118132 , ListQueriesResponse
119133 , listQueriesResponse
@@ -125,15 +139,6 @@ module Network.Google.DoubleClickBids
125139 , uploadLineItemsResponse
126140 , ulirUploadStatus
127141
128− -- ** Note
129− , Note
130− , note
131− , nUsername
132− , nSource
133− , nId
134− , nMessage
135− , nTimestamp
136−
137142 -- ** QueryMetadataDataRange
138143 , QueryMetadataDataRange (..)
139144
@@ -199,6 +204,14 @@ module Network.Google.DoubleClickBids
199204 , downloadLineItemsResponse
200205 , dlirLineItems
201206
207+ -- ** DownloadResponse
208+ , DownloadResponse
209+ , downloadResponse
210+ , drInsertionOrders
211+ , drLineItems
212+ , drAdGroups
213+ , drAds
214+
202215 -- ** ReportStatus
203216 , ReportStatus
204217 , reportStatus
@@ -237,15 +250,6 @@ module Network.Google.DoubleClickBids
237250 -- ** ReportStatusState
238251 , ReportStatusState (..)
239252
240− -- ** NotifyProposalChangeRequest
241− , NotifyProposalChangeRequest
242− , notifyProposalChangeRequest
243− , npcrToken
244− , npcrAction
245− , npcrHref
246− , npcrId
247− , npcrNotes
248−
249253 -- ** ParametersGroupBysItem
250254 , ParametersGroupBysItem (..)
251255
@@ -274,7 +278,7 @@ import Network.Google.Resource.DoubleClickBidManager.Queries.GetQuery
274278import Network.Google.Resource.DoubleClickBidManager.Queries.Listqueries
275279import Network.Google.Resource.DoubleClickBidManager.Queries.RunQuery
276280import Network.Google.Resource.DoubleClickBidManager.Reports.Listreports
277−import Network.Google.Resource.DoubleClickBidManager.Rubicon.Notifyproposalchange
281+import Network.Google.Resource.DoubleClickBidManager.Sdf.Download
278282
279283{- $resources
280284TODO
@@ -289,4 +293,4 @@ type DoubleClickBidsAPI =
289293 :<|> ReportsListreportsResource
290294 :<|> LineitemsUploadlineitemsResource
291295 :<|> LineitemsDownloadlineitemsResource
292− :<|> RubiconNotifyproposalchangeResource
296+ :<|> SdfDownloadResource
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types.hs+22−18
@@ -70,6 +70,9 @@ module Network.Google.DoubleClickBids.Types
7070 -- * DownloadLineItemsRequestFilterType
7171 , DownloadLineItemsRequestFilterType (..)
7272
73+ -- * DownloadRequestFilterType
74+ , DownloadRequestFilterType (..)
75+
7376 -- * DownloadLineItemsRequest
7477 , DownloadLineItemsRequest
7578 , downloadLineItemsRequest
@@ -78,6 +81,17 @@ module Network.Google.DoubleClickBids.Types
7881 , dlirFileSpec
7982 , dlirFilterIds
8083
84+ -- * DownloadRequestFileTypesItem
85+ , DownloadRequestFileTypesItem (..)
86+
87+ -- * DownloadRequest
88+ , DownloadRequest
89+ , downloadRequest
90+ , drFileTypes
91+ , drFilterType
92+ , drVersion
93+ , drFilterIds
94+
8195 -- * ListQueriesResponse
8296 , ListQueriesResponse
8397 , listQueriesResponse
@@ -89,15 +103,6 @@ module Network.Google.DoubleClickBids.Types
89103 , uploadLineItemsResponse
90104 , ulirUploadStatus
91105
92− -- * Note
93− , Note
94− , note
95− , nUsername
96− , nSource
97− , nId
98− , nMessage
99− , nTimestamp
100−
101106 -- * QueryMetadataDataRange
102107 , QueryMetadataDataRange (..)
103108
@@ -163,6 +168,14 @@ module Network.Google.DoubleClickBids.Types
163168 , downloadLineItemsResponse
164169 , dlirLineItems
165170
171+ -- * DownloadResponse
172+ , DownloadResponse
173+ , downloadResponse
174+ , drInsertionOrders
175+ , drLineItems
176+ , drAdGroups
177+ , drAds
178+
166179 -- * ReportStatus
167180 , ReportStatus
168181 , reportStatus
@@ -201,15 +214,6 @@ module Network.Google.DoubleClickBids.Types
201214 -- * ReportStatusState
202215 , ReportStatusState (..)
203216
204− -- * NotifyProposalChangeRequest
205− , NotifyProposalChangeRequest
206− , notifyProposalChangeRequest
207− , npcrToken
208− , npcrAction
209− , npcrHref
210− , npcrId
211− , npcrNotes
212−
213217 -- * ParametersGroupBysItem
214218 , ParametersGroupBysItem (..)
215219
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Product.hs+148−158
@@ -496,6 +496,85 @@ instance ToJSON DownloadLineItemsRequest where
496496 ("fileSpec" .=) <$> _dlirFileSpec,
497497 ("filterIds" .=) <$> _dlirFilterIds])
498498
499+-- | Request to fetch stored insertion orders, line items, TrueView ad groups
500+-- and ads.
501+--
502+-- /See:/ 'downloadRequest' smart constructor.
503+data DownloadRequest = DownloadRequest'
504+ { _drFileTypes :: !(Maybe [DownloadRequestFileTypesItem])
505+ , _drFilterType :: !(Maybe DownloadRequestFilterType)
506+ , _drVersion :: !(Maybe Text)
507+ , _drFilterIds :: !(Maybe [Textual Int64])
508+ } deriving (Eq,Show,Data,Typeable,Generic)
509+
510+-- | Creates a value of 'DownloadRequest' with the minimum fields required to make a request.
511+--
512+-- Use one of the following lenses to modify other fields as desired:
513+--
514+-- * 'drFileTypes'
515+--
516+-- * 'drFilterType'
517+--
518+-- * 'drVersion'
519+--
520+-- * 'drFilterIds'
521+downloadRequest
522+ :: DownloadRequest
523+downloadRequest =
524+ DownloadRequest'
525+ { _drFileTypes = Nothing
526+ , _drFilterType = Nothing
527+ , _drVersion = Nothing
528+ , _drFilterIds = Nothing
529+ }
530+
531+-- | File types that will be returned.
532+drFileTypes :: Lens' DownloadRequest [DownloadRequestFileTypesItem]
533+drFileTypes
534+ = lens _drFileTypes (\ s a -> s{_drFileTypes = a}) .
535+ _Default
536+ . _Coerce
537+
538+-- | Filter type used to filter line items to fetch.
539+drFilterType :: Lens' DownloadRequest (Maybe DownloadRequestFilterType)
540+drFilterType
541+ = lens _drFilterType (\ s a -> s{_drFilterType = a})
542+
543+-- | SDF Version (column names, types, order) in which the entities will be
544+-- returned. Default to 3.
545+drVersion :: Lens' DownloadRequest (Maybe Text)
546+drVersion
547+ = lens _drVersion (\ s a -> s{_drVersion = a})
548+
549+-- | The IDs of the specified filter type. This is used to filter entities to
550+-- fetch. At least one ID must be specified. Only one ID is allowed for the
551+-- ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter
552+-- types all IDs must be from the same Advertiser.
553+drFilterIds :: Lens' DownloadRequest [Int64]
554+drFilterIds
555+ = lens _drFilterIds (\ s a -> s{_drFilterIds = a}) .
556+ _Default
557+ . _Coerce
558+
559+instance FromJSON DownloadRequest where
560+ parseJSON
561+ = withObject "DownloadRequest"
562+ (\ o ->
563+ DownloadRequest' <$>
564+ (o .:? "fileTypes" .!= mempty) <*>
565+ (o .:? "filterType")
566+ <*> (o .:? "version")
567+ <*> (o .:? "filterIds" .!= mempty))
568+
569+instance ToJSON DownloadRequest where
570+ toJSON DownloadRequest'{..}
571+ = object
572+ (catMaybes
573+ [("fileTypes" .=) <$> _drFileTypes,
574+ ("filterType" .=) <$> _drFilterType,
575+ ("version" .=) <$> _drVersion,
576+ ("filterIds" .=) <$> _drFilterIds])
577+
499578-- | List queries response.
500579--
501580-- /See:/ 'listQueriesResponse' smart constructor.
@@ -584,83 +663,6 @@ instance ToJSON UploadLineItemsResponse where
584663 (catMaybes
585664 [("uploadStatus" .=) <$> _ulirUploadStatus])
586665
587−-- | Publisher comment from Rubicon.
588−--
589−-- /See:/ 'note' smart constructor.
590−data Note = Note'
591− { _nUsername :: !(Maybe Text)
592− , _nSource :: !(Maybe Text)
593− , _nId :: !(Maybe (Textual Int64))
594− , _nMessage :: !(Maybe Text)
595− , _nTimestamp :: !(Maybe Text)
596− } deriving (Eq,Show,Data,Typeable,Generic)
597−
598−-- | Creates a value of 'Note' with the minimum fields required to make a request.
599−--
600−-- Use one of the following lenses to modify other fields as desired:
601−--
602−-- * 'nUsername'
603−--
604−-- * 'nSource'
605−--
606−-- * 'nId'
607−--
608−-- * 'nMessage'
609−--
610−-- * 'nTimestamp'
611−note
612− :: Note
613−note =
614− Note'
615− { _nUsername = Nothing
616− , _nSource = Nothing
617− , _nId = Nothing
618− , _nMessage = Nothing
619− , _nTimestamp = Nothing
620− }
621−
622−-- | Publisher user name.
623−nUsername :: Lens' Note (Maybe Text)
624−nUsername
625− = lens _nUsername (\ s a -> s{_nUsername = a})
626−
627−-- | Equals \"publisher\" for notification from Rubicon.
628−nSource :: Lens' Note (Maybe Text)
629−nSource = lens _nSource (\ s a -> s{_nSource = a})
630−
631−-- | Note id.
632−nId :: Lens' Note (Maybe Int64)
633−nId
634− = lens _nId (\ s a -> s{_nId = a}) . mapping _Coerce
635−
636−-- | Message from publisher.
637−nMessage :: Lens' Note (Maybe Text)
638−nMessage = lens _nMessage (\ s a -> s{_nMessage = a})
639−
640−-- | Time when the note was added, e.g. \"2015-12-16T17:25:35.000-08:00\".
641−nTimestamp :: Lens' Note (Maybe Text)
642−nTimestamp
643− = lens _nTimestamp (\ s a -> s{_nTimestamp = a})
644−
645−instance FromJSON Note where
646− parseJSON
647− = withObject "Note"
648− (\ o ->
649− Note' <$>
650− (o .:? "username") <*> (o .:? "source") <*>
651− (o .:? "id")
652− <*> (o .:? "message")
653− <*> (o .:? "timestamp"))
654−
655−instance ToJSON Note where
656− toJSON Note'{..}
657− = object
658− (catMaybes
659− [("username" .=) <$> _nUsername,
660− ("source" .=) <$> _nSource, ("id" .=) <$> _nId,
661− ("message" .=) <$> _nMessage,
662− ("timestamp" .=) <$> _nTimestamp])
663−
664666-- | Report metadata.
665667--
666668-- /See:/ 'reportMetadata' smart constructor.
@@ -1103,6 +1105,75 @@ instance ToJSON DownloadLineItemsResponse where
11031105 = object
11041106 (catMaybes [("lineItems" .=) <$> _dlirLineItems])
11051107
1108+-- | Download response.
1109+--
1110+-- /See:/ 'downloadResponse' smart constructor.
1111+data DownloadResponse = DownloadResponse'
1112+ { _drInsertionOrders :: !(Maybe Text)
1113+ , _drLineItems :: !(Maybe Text)
1114+ , _drAdGroups :: !(Maybe Text)
1115+ , _drAds :: !(Maybe Text)
1116+ } deriving (Eq,Show,Data,Typeable,Generic)
1117+
1118+-- | Creates a value of 'DownloadResponse' with the minimum fields required to make a request.
1119+--
1120+-- Use one of the following lenses to modify other fields as desired:
1121+--
1122+-- * 'drInsertionOrders'
1123+--
1124+-- * 'drLineItems'
1125+--
1126+-- * 'drAdGroups'
1127+--
1128+-- * 'drAds'
1129+downloadResponse
1130+ :: DownloadResponse
1131+downloadResponse =
1132+ DownloadResponse'
1133+ { _drInsertionOrders = Nothing
1134+ , _drLineItems = Nothing
1135+ , _drAdGroups = Nothing
1136+ , _drAds = Nothing
1137+ }
1138+
1139+-- | Retrieved insertion orders in SDF format.
1140+drInsertionOrders :: Lens' DownloadResponse (Maybe Text)
1141+drInsertionOrders
1142+ = lens _drInsertionOrders
1143+ (\ s a -> s{_drInsertionOrders = a})
1144+
1145+-- | Retrieved line items in SDF format.
1146+drLineItems :: Lens' DownloadResponse (Maybe Text)
1147+drLineItems
1148+ = lens _drLineItems (\ s a -> s{_drLineItems = a})
1149+
1150+-- | Retrieved ad groups in SDF format.
1151+drAdGroups :: Lens' DownloadResponse (Maybe Text)
1152+drAdGroups
1153+ = lens _drAdGroups (\ s a -> s{_drAdGroups = a})
1154+
1155+-- | Retrieved ads in SDF format.
1156+drAds :: Lens' DownloadResponse (Maybe Text)
1157+drAds = lens _drAds (\ s a -> s{_drAds = a})
1158+
1159+instance FromJSON DownloadResponse where
1160+ parseJSON
1161+ = withObject "DownloadResponse"
1162+ (\ o ->
1163+ DownloadResponse' <$>
1164+ (o .:? "insertionOrders") <*> (o .:? "lineItems") <*>
1165+ (o .:? "adGroups")
1166+ <*> (o .:? "ads"))
1167+
1168+instance ToJSON DownloadResponse where
1169+ toJSON DownloadResponse'{..}
1170+ = object
1171+ (catMaybes
1172+ [("insertionOrders" .=) <$> _drInsertionOrders,
1173+ ("lineItems" .=) <$> _drLineItems,
1174+ ("adGroups" .=) <$> _drAdGroups,
1175+ ("ads" .=) <$> _drAds])
1176+
11061177-- | Report status.
11071178--
11081179-- /See:/ 'reportStatus' smart constructor.
@@ -1382,87 +1453,6 @@ instance ToJSON Parameters where
13821453 ("groupBys" .=) <$> _pGroupBys,
13831454 ("type" .=) <$> _pType])
13841455
1385−-- | NotifyProposalChange request.
1386−--
1387−-- /See:/ 'notifyProposalChangeRequest' smart constructor.
1388−data NotifyProposalChangeRequest = NotifyProposalChangeRequest'
1389− { _npcrToken :: !(Maybe Text)
1390− , _npcrAction :: !(Maybe Text)
1391− , _npcrHref :: !(Maybe Text)
1392− , _npcrId :: !(Maybe (Textual Int64))
1393− , _npcrNotes :: !(Maybe [Note])
1394− } deriving (Eq,Show,Data,Typeable,Generic)
1395−
1396−-- | Creates a value of 'NotifyProposalChangeRequest' with the minimum fields required to make a request.
1397−--
1398−-- Use one of the following lenses to modify other fields as desired:
1399−--
1400−-- * 'npcrToken'
1401−--
1402−-- * 'npcrAction'
1403−--
1404−-- * 'npcrHref'
1405−--
1406−-- * 'npcrId'
1407−--
1408−-- * 'npcrNotes'
1409−notifyProposalChangeRequest
1410− :: NotifyProposalChangeRequest
1411−notifyProposalChangeRequest =
1412− NotifyProposalChangeRequest'
1413− { _npcrToken = Nothing
1414− , _npcrAction = Nothing
1415− , _npcrHref = Nothing
1416− , _npcrId = Nothing
1417− , _npcrNotes = Nothing
1418− }
1419−
1420−-- | Deal token, available when proposal is accepted by publisher.
1421−npcrToken :: Lens' NotifyProposalChangeRequest (Maybe Text)
1422−npcrToken
1423− = lens _npcrToken (\ s a -> s{_npcrToken = a})
1424−
1425−-- | Action taken by publisher. One of: Accept, Decline, Append
1426−npcrAction :: Lens' NotifyProposalChangeRequest (Maybe Text)
1427−npcrAction
1428− = lens _npcrAction (\ s a -> s{_npcrAction = a})
1429−
1430−-- | URL to access proposal detail.
1431−npcrHref :: Lens' NotifyProposalChangeRequest (Maybe Text)
1432−npcrHref = lens _npcrHref (\ s a -> s{_npcrHref = a})
1433−
1434−-- | Below are contents of notification from Rubicon. Proposal id.
1435−npcrId :: Lens' NotifyProposalChangeRequest (Maybe Int64)
1436−npcrId
1437− = lens _npcrId (\ s a -> s{_npcrId = a}) .
1438− mapping _Coerce
1439−
1440−-- | Notes from publisher
1441−npcrNotes :: Lens' NotifyProposalChangeRequest [Note]
1442−npcrNotes
1443− = lens _npcrNotes (\ s a -> s{_npcrNotes = a}) .
1444− _Default
1445− . _Coerce
1446−
1447−instance FromJSON NotifyProposalChangeRequest where
1448− parseJSON
1449− = withObject "NotifyProposalChangeRequest"
1450− (\ o ->
1451− NotifyProposalChangeRequest' <$>
1452− (o .:? "token") <*> (o .:? "action") <*>
1453− (o .:? "href")
1454− <*> (o .:? "id")
1455− <*> (o .:? "notes" .!= mempty))
1456−
1457−instance ToJSON NotifyProposalChangeRequest where
1458− toJSON NotifyProposalChangeRequest'{..}
1459− = object
1460− (catMaybes
1461− [("token" .=) <$> _npcrToken,
1462− ("action" .=) <$> _npcrAction,
1463− ("href" .=) <$> _npcrHref, ("id" .=) <$> _npcrId,
1464− ("notes" .=) <$> _npcrNotes])
1465−
14661456-- | An explanation of a report failure.
14671457--
14681458-- /See:/ 'reportFailure' smart constructor.
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Sum.hs+214−1
@@ -219,6 +219,71 @@ instance FromJSON DownloadLineItemsRequestFilterType where
219219instance ToJSON DownloadLineItemsRequestFilterType where
220220 toJSON = toJSONText
221221
222+-- | Filter type used to filter line items to fetch.
223+data DownloadRequestFilterType
224+ = DRFTAdvertiserId
225+ -- ^ @ADVERTISER_ID@
226+ | DRFTInsertionOrderId
227+ -- ^ @INSERTION_ORDER_ID@
228+ | DRFTLineItemId
229+ -- ^ @LINE_ITEM_ID@
230+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
231+
232+instance Hashable DownloadRequestFilterType
233+
234+instance FromHttpApiData DownloadRequestFilterType where
235+ parseQueryParam = \case
236+ "ADVERTISER_ID" -> Right DRFTAdvertiserId
237+ "INSERTION_ORDER_ID" -> Right DRFTInsertionOrderId
238+ "LINE_ITEM_ID" -> Right DRFTLineItemId
239+ x -> Left ("Unable to parse DownloadRequestFilterType from: " <> x)
240+
241+instance ToHttpApiData DownloadRequestFilterType where
242+ toQueryParam = \case
243+ DRFTAdvertiserId -> "ADVERTISER_ID"
244+ DRFTInsertionOrderId -> "INSERTION_ORDER_ID"
245+ DRFTLineItemId -> "LINE_ITEM_ID"
246+
247+instance FromJSON DownloadRequestFilterType where
248+ parseJSON = parseJSONText "DownloadRequestFilterType"
249+
250+instance ToJSON DownloadRequestFilterType where
251+ toJSON = toJSONText
252+
253+data DownloadRequestFileTypesItem
254+ = AD
255+ -- ^ @AD@
256+ | AdGroup
257+ -- ^ @AD_GROUP@
258+ | InsertionOrder
259+ -- ^ @INSERTION_ORDER@
260+ | LineItem
261+ -- ^ @LINE_ITEM@
262+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
263+
264+instance Hashable DownloadRequestFileTypesItem
265+
266+instance FromHttpApiData DownloadRequestFileTypesItem where
267+ parseQueryParam = \case
268+ "AD" -> Right AD
269+ "AD_GROUP" -> Right AdGroup
270+ "INSERTION_ORDER" -> Right InsertionOrder
271+ "LINE_ITEM" -> Right LineItem
272+ x -> Left ("Unable to parse DownloadRequestFileTypesItem from: " <> x)
273+
274+instance ToHttpApiData DownloadRequestFileTypesItem where
275+ toQueryParam = \case
276+ AD -> "AD"
277+ AdGroup -> "AD_GROUP"
278+ InsertionOrder -> "INSERTION_ORDER"
279+ LineItem -> "LINE_ITEM"
280+
281+instance FromJSON DownloadRequestFileTypesItem where
282+ parseJSON = parseJSONText "DownloadRequestFileTypesItem"
283+
284+instance ToJSON DownloadRequestFileTypesItem where
285+ toJSON = toJSONText
286+
222287-- | Range of report data.
223288data QueryMetadataDataRange
224289 = QMDRAllTime
@@ -315,7 +380,29 @@ instance ToJSON QueryMetadataDataRange where
315380 toJSON = toJSONText
316381
317382data ParametersMetricsItem
318− = MetricBidRequests
383+ = MetricActiveViewAverageViewableTime
384+ -- ^ @METRIC_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME@
385+ | MetricActiveViewDistributionUnmeasurable
386+ -- ^ @METRIC_ACTIVE_VIEW_DISTRIBUTION_UNMEASURABLE@
387+ | MetricActiveViewDistributionUnviewable
388+ -- ^ @METRIC_ACTIVE_VIEW_DISTRIBUTION_UNVIEWABLE@
389+ | MetricActiveViewDistributionViewable
390+ -- ^ @METRIC_ACTIVE_VIEW_DISTRIBUTION_VIEWABLE@
391+ | MetricActiveViewEligibleImpressions
392+ -- ^ @METRIC_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS@
393+ | MetricActiveViewMeasurableImpressions
394+ -- ^ @METRIC_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS@
395+ | MetricActiveViewPctMeasurableImpressions
396+ -- ^ @METRIC_ACTIVE_VIEW_PCT_MEASURABLE_IMPRESSIONS@
397+ | MetricActiveViewPctViewableImpressions
398+ -- ^ @METRIC_ACTIVE_VIEW_PCT_VIEWABLE_IMPRESSIONS@
399+ | MetricActiveViewUnmeasurableImpressions
400+ -- ^ @METRIC_ACTIVE_VIEW_UNMEASURABLE_IMPRESSIONS@
401+ | MetricActiveViewUnviewableImpressions
402+ -- ^ @METRIC_ACTIVE_VIEW_UNVIEWABLE_IMPRESSIONS@
403+ | MetricActiveViewViewableImpressions
404+ -- ^ @METRIC_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS@
405+ | MetricBidRequests
319406 -- ^ @METRIC_BID_REQUESTS@
320407 | MetricBillableCostAdvertiser
321408 -- ^ @METRIC_BILLABLE_COST_ADVERTISER@
@@ -651,6 +738,8 @@ data ParametersMetricsItem
651738 -- ^ @METRIC_PROFIT_VIEWABLE_ECPM_PARTNER@
652739 | MetricProfitViewableEcpmUsd
653740 -- ^ @METRIC_PROFIT_VIEWABLE_ECPM_USD@
741+ | MetricReachCookieReach
742+ -- ^ @METRIC_REACH_COOKIE_REACH@
654743 | MetricRevenueAdvertiser
655744 -- ^ @METRIC_REVENUE_ADVERTISER@
656745 | MetricRevenueEcpapcAdvertiser
@@ -773,6 +862,12 @@ data ParametersMetricsItem
773862 -- ^ @METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_PARTNER@
774863 | MetricTotalMediaCostViewableEcpmUsd
775864 -- ^ @METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_USD@
865+ | MetricTrueviewAverageCpeAdvertiser
866+ -- ^ @METRIC_TRUEVIEW_AVERAGE_CPE_ADVERTISER@
867+ | MetricTrueviewAverageCpePartner
868+ -- ^ @METRIC_TRUEVIEW_AVERAGE_CPE_PARTNER@
869+ | MetricTrueviewAverageCpeUsd
870+ -- ^ @METRIC_TRUEVIEW_AVERAGE_CPE_USD@
776871 | MetricTrueviewConversionCostManyPerViewAdvertiser
777872 -- ^ @METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_ADVERTISER@
778873 | MetricTrueviewConversionCostManyPerViewPartner
@@ -823,6 +918,10 @@ data ParametersMetricsItem
823918 -- ^ @METRIC_TRUEVIEW_EARNED_SUBSCRIBERS@
824919 | MetricTrueviewEarnedViews
825920 -- ^ @METRIC_TRUEVIEW_EARNED_VIEWS@
921+ | MetricTrueviewEngagements
922+ -- ^ @METRIC_TRUEVIEW_ENGAGEMENTS@
923+ | MetricTrueviewEngagementRate
924+ -- ^ @METRIC_TRUEVIEW_ENGAGEMENT_RATE@
826925 | MetricTrueviewImpressionShare
827926 -- ^ @METRIC_TRUEVIEW_IMPRESSION_SHARE@
828927 | MetricTrueviewLostIsBudget
@@ -865,6 +964,17 @@ instance Hashable ParametersMetricsItem
865964
866965instance FromHttpApiData ParametersMetricsItem where
867966 parseQueryParam = \case
967+ "METRIC_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME" -> Right MetricActiveViewAverageViewableTime
968+ "METRIC_ACTIVE_VIEW_DISTRIBUTION_UNMEASURABLE" -> Right MetricActiveViewDistributionUnmeasurable
969+ "METRIC_ACTIVE_VIEW_DISTRIBUTION_UNVIEWABLE" -> Right MetricActiveViewDistributionUnviewable
970+ "METRIC_ACTIVE_VIEW_DISTRIBUTION_VIEWABLE" -> Right MetricActiveViewDistributionViewable
971+ "METRIC_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS" -> Right MetricActiveViewEligibleImpressions
972+ "METRIC_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS" -> Right MetricActiveViewMeasurableImpressions
973+ "METRIC_ACTIVE_VIEW_PCT_MEASURABLE_IMPRESSIONS" -> Right MetricActiveViewPctMeasurableImpressions
974+ "METRIC_ACTIVE_VIEW_PCT_VIEWABLE_IMPRESSIONS" -> Right MetricActiveViewPctViewableImpressions
975+ "METRIC_ACTIVE_VIEW_UNMEASURABLE_IMPRESSIONS" -> Right MetricActiveViewUnmeasurableImpressions
976+ "METRIC_ACTIVE_VIEW_UNVIEWABLE_IMPRESSIONS" -> Right MetricActiveViewUnviewableImpressions
977+ "METRIC_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS" -> Right MetricActiveViewViewableImpressions
868978 "METRIC_BID_REQUESTS" -> Right MetricBidRequests
869979 "METRIC_BILLABLE_COST_ADVERTISER" -> Right MetricBillableCostAdvertiser
870980 "METRIC_BILLABLE_COST_PARTNER" -> Right MetricBillableCostPartner
@@ -1033,6 +1143,7 @@ instance FromHttpApiData ParametersMetricsItem where
10331143 "METRIC_PROFIT_VIEWABLE_ECPM_ADVERTISER" -> Right MetricProfitViewableEcpmAdvertiser
10341144 "METRIC_PROFIT_VIEWABLE_ECPM_PARTNER" -> Right MetricProfitViewableEcpmPartner
10351145 "METRIC_PROFIT_VIEWABLE_ECPM_USD" -> Right MetricProfitViewableEcpmUsd
1146+ "METRIC_REACH_COOKIE_REACH" -> Right MetricReachCookieReach
10361147 "METRIC_REVENUE_ADVERTISER" -> Right MetricRevenueAdvertiser
10371148 "METRIC_REVENUE_ECPAPC_ADVERTISER" -> Right MetricRevenueEcpapcAdvertiser
10381149 "METRIC_REVENUE_ECPAPC_PARTNER" -> Right MetricRevenueEcpapcPartner
@@ -1094,6 +1205,9 @@ instance FromHttpApiData ParametersMetricsItem where
10941205 "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_ADVERTISER" -> Right MetricTotalMediaCostViewableEcpmAdvertiser
10951206 "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_PARTNER" -> Right MetricTotalMediaCostViewableEcpmPartner
10961207 "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_USD" -> Right MetricTotalMediaCostViewableEcpmUsd
1208+ "METRIC_TRUEVIEW_AVERAGE_CPE_ADVERTISER" -> Right MetricTrueviewAverageCpeAdvertiser
1209+ "METRIC_TRUEVIEW_AVERAGE_CPE_PARTNER" -> Right MetricTrueviewAverageCpePartner
1210+ "METRIC_TRUEVIEW_AVERAGE_CPE_USD" -> Right MetricTrueviewAverageCpeUsd
10971211 "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_ADVERTISER" -> Right MetricTrueviewConversionCostManyPerViewAdvertiser
10981212 "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_PARTNER" -> Right MetricTrueviewConversionCostManyPerViewPartner
10991213 "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_USD" -> Right MetricTrueviewConversionCostManyPerViewUsd
@@ -1119,6 +1233,8 @@ instance FromHttpApiData ParametersMetricsItem where
11191233 "METRIC_TRUEVIEW_EARNED_SHARES" -> Right MetricTrueviewEarnedShares
11201234 "METRIC_TRUEVIEW_EARNED_SUBSCRIBERS" -> Right MetricTrueviewEarnedSubscribers
11211235 "METRIC_TRUEVIEW_EARNED_VIEWS" -> Right MetricTrueviewEarnedViews
1236+ "METRIC_TRUEVIEW_ENGAGEMENTS" -> Right MetricTrueviewEngagements
1237+ "METRIC_TRUEVIEW_ENGAGEMENT_RATE" -> Right MetricTrueviewEngagementRate
11221238 "METRIC_TRUEVIEW_IMPRESSION_SHARE" -> Right MetricTrueviewImpressionShare
11231239 "METRIC_TRUEVIEW_LOST_IS_BUDGET" -> Right MetricTrueviewLostIsBudget
11241240 "METRIC_TRUEVIEW_LOST_IS_RANK" -> Right MetricTrueviewLostIsRank
@@ -1141,6 +1257,17 @@ instance FromHttpApiData ParametersMetricsItem where
11411257
11421258instance ToHttpApiData ParametersMetricsItem where
11431259 toQueryParam = \case
1260+ MetricActiveViewAverageViewableTime -> "METRIC_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME"
1261+ MetricActiveViewDistributionUnmeasurable -> "METRIC_ACTIVE_VIEW_DISTRIBUTION_UNMEASURABLE"
1262+ MetricActiveViewDistributionUnviewable -> "METRIC_ACTIVE_VIEW_DISTRIBUTION_UNVIEWABLE"
1263+ MetricActiveViewDistributionViewable -> "METRIC_ACTIVE_VIEW_DISTRIBUTION_VIEWABLE"
1264+ MetricActiveViewEligibleImpressions -> "METRIC_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS"
1265+ MetricActiveViewMeasurableImpressions -> "METRIC_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS"
1266+ MetricActiveViewPctMeasurableImpressions -> "METRIC_ACTIVE_VIEW_PCT_MEASURABLE_IMPRESSIONS"
1267+ MetricActiveViewPctViewableImpressions -> "METRIC_ACTIVE_VIEW_PCT_VIEWABLE_IMPRESSIONS"
1268+ MetricActiveViewUnmeasurableImpressions -> "METRIC_ACTIVE_VIEW_UNMEASURABLE_IMPRESSIONS"
1269+ MetricActiveViewUnviewableImpressions -> "METRIC_ACTIVE_VIEW_UNVIEWABLE_IMPRESSIONS"
1270+ MetricActiveViewViewableImpressions -> "METRIC_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS"
11441271 MetricBidRequests -> "METRIC_BID_REQUESTS"
11451272 MetricBillableCostAdvertiser -> "METRIC_BILLABLE_COST_ADVERTISER"
11461273 MetricBillableCostPartner -> "METRIC_BILLABLE_COST_PARTNER"
@@ -1309,6 +1436,7 @@ instance ToHttpApiData ParametersMetricsItem where
13091436 MetricProfitViewableEcpmAdvertiser -> "METRIC_PROFIT_VIEWABLE_ECPM_ADVERTISER"
13101437 MetricProfitViewableEcpmPartner -> "METRIC_PROFIT_VIEWABLE_ECPM_PARTNER"
13111438 MetricProfitViewableEcpmUsd -> "METRIC_PROFIT_VIEWABLE_ECPM_USD"
1439+ MetricReachCookieReach -> "METRIC_REACH_COOKIE_REACH"
13121440 MetricRevenueAdvertiser -> "METRIC_REVENUE_ADVERTISER"
13131441 MetricRevenueEcpapcAdvertiser -> "METRIC_REVENUE_ECPAPC_ADVERTISER"
13141442 MetricRevenueEcpapcPartner -> "METRIC_REVENUE_ECPAPC_PARTNER"
@@ -1370,6 +1498,9 @@ instance ToHttpApiData ParametersMetricsItem where
13701498 MetricTotalMediaCostViewableEcpmAdvertiser -> "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_ADVERTISER"
13711499 MetricTotalMediaCostViewableEcpmPartner -> "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_PARTNER"
13721500 MetricTotalMediaCostViewableEcpmUsd -> "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_USD"
1501+ MetricTrueviewAverageCpeAdvertiser -> "METRIC_TRUEVIEW_AVERAGE_CPE_ADVERTISER"
1502+ MetricTrueviewAverageCpePartner -> "METRIC_TRUEVIEW_AVERAGE_CPE_PARTNER"
1503+ MetricTrueviewAverageCpeUsd -> "METRIC_TRUEVIEW_AVERAGE_CPE_USD"
13731504 MetricTrueviewConversionCostManyPerViewAdvertiser -> "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_ADVERTISER"
13741505 MetricTrueviewConversionCostManyPerViewPartner -> "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_PARTNER"
13751506 MetricTrueviewConversionCostManyPerViewUsd -> "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_USD"
@@ -1395,6 +1526,8 @@ instance ToHttpApiData ParametersMetricsItem where
13951526 MetricTrueviewEarnedShares -> "METRIC_TRUEVIEW_EARNED_SHARES"
13961527 MetricTrueviewEarnedSubscribers -> "METRIC_TRUEVIEW_EARNED_SUBSCRIBERS"
13971528 MetricTrueviewEarnedViews -> "METRIC_TRUEVIEW_EARNED_VIEWS"
1529+ MetricTrueviewEngagements -> "METRIC_TRUEVIEW_ENGAGEMENTS"
1530+ MetricTrueviewEngagementRate -> "METRIC_TRUEVIEW_ENGAGEMENT_RATE"
13981531 MetricTrueviewImpressionShare -> "METRIC_TRUEVIEW_IMPRESSION_SHARE"
13991532 MetricTrueviewLostIsBudget -> "METRIC_TRUEVIEW_LOST_IS_BUDGET"
14001533 MetricTrueviewLostIsRank -> "METRIC_TRUEVIEW_LOST_IS_RANK"
@@ -1590,6 +1723,8 @@ data FilterPairType
15901723 -- ^ @FILTER_LINE_ITEM_LIFETIME_FREQUENCY@
15911724 | FilterLineItemType
15921725 -- ^ @FILTER_LINE_ITEM_TYPE@
1726+ | FilterMediaPlan
1727+ -- ^ @FILTER_MEDIA_PLAN@
15931728 | FilterMobileDeviceMake
15941729 -- ^ @FILTER_MOBILE_DEVICE_MAKE@
15951730 | FilterMobileDeviceMakeModel
@@ -1610,6 +1745,8 @@ data FilterPairType
16101745 -- ^ @FILTER_NIELSEN_DEVICE_ID@
16111746 | FilterNielsenGender
16121747 -- ^ @FILTER_NIELSEN_GENDER@
1748+ | FilterNotSupported
1749+ -- ^ @FILTER_NOT_SUPPORTED@
16131750 | FilterOrderId
16141751 -- ^ @FILTER_ORDER_ID@
16151752 | FilterOS
@@ -1646,10 +1783,16 @@ data FilterPairType
16461783 -- ^ @FILTER_TRUEVIEW_AGE@
16471784 | FilterTrueviewCategory
16481785 -- ^ @FILTER_TRUEVIEW_CATEGORY@
1786+ | FilterTrueviewCity
1787+ -- ^ @FILTER_TRUEVIEW_CITY@
16491788 | FilterTrueviewConversionType
16501789 -- ^ @FILTER_TRUEVIEW_CONVERSION_TYPE@
1790+ | FilterTrueviewCountry
1791+ -- ^ @FILTER_TRUEVIEW_COUNTRY@
16511792 | FilterTrueviewCustomAffinity
16521793 -- ^ @FILTER_TRUEVIEW_CUSTOM_AFFINITY@
1794+ | FilterTrueviewDma
1795+ -- ^ @FILTER_TRUEVIEW_DMA@
16531796 | FilterTrueviewGender
16541797 -- ^ @FILTER_TRUEVIEW_GENDER@
16551798 | FilterTrueviewIarAge
@@ -1674,6 +1817,10 @@ data FilterPairType
16741817 -- ^ @FILTER_TRUEVIEW_IAR_REMARKETING_LIST@
16751818 | FilterTrueviewIarTimeOfDay
16761819 -- ^ @FILTER_TRUEVIEW_IAR_TIME_OF_DAY@
1820+ | FilterTrueviewIarYouTubeChannel
1821+ -- ^ @FILTER_TRUEVIEW_IAR_YOUTUBE_CHANNEL@
1822+ | FilterTrueviewIarYouTubeVideo
1823+ -- ^ @FILTER_TRUEVIEW_IAR_YOUTUBE_VIDEO@
16771824 | FilterTrueviewIarZipcode
16781825 -- ^ @FILTER_TRUEVIEW_IAR_ZIPCODE@
16791826 | FilterTrueviewInterest
@@ -1684,8 +1831,14 @@ data FilterPairType
16841831 -- ^ @FILTER_TRUEVIEW_PARENTAL_STATUS@
16851832 | FilterTrueviewPlacement
16861833 -- ^ @FILTER_TRUEVIEW_PLACEMENT@
1834+ | FilterTrueviewRegion
1835+ -- ^ @FILTER_TRUEVIEW_REGION@
16871836 | FilterTrueviewRemarketingList
16881837 -- ^ @FILTER_TRUEVIEW_REMARKETING_LIST@
1838+ | FilterTrueviewURL
1839+ -- ^ @FILTER_TRUEVIEW_URL@
1840+ | FilterTrueviewZipcode
1841+ -- ^ @FILTER_TRUEVIEW_ZIPCODE@
16891842 | FilterUnknown
16901843 -- ^ @FILTER_UNKNOWN@
16911844 | FilterUserList
@@ -1769,6 +1922,7 @@ instance FromHttpApiData FilterPairType where
17691922 "FILTER_LINE_ITEM_DAILY_FREQUENCY" -> Right FilterLineItemDailyFrequency
17701923 "FILTER_LINE_ITEM_LIFETIME_FREQUENCY" -> Right FilterLineItemLifetimeFrequency
17711924 "FILTER_LINE_ITEM_TYPE" -> Right FilterLineItemType
1925+ "FILTER_MEDIA_PLAN" -> Right FilterMediaPlan
17721926 "FILTER_MOBILE_DEVICE_MAKE" -> Right FilterMobileDeviceMake
17731927 "FILTER_MOBILE_DEVICE_MAKE_MODEL" -> Right FilterMobileDeviceMakeModel
17741928 "FILTER_MOBILE_DEVICE_TYPE" -> Right FilterMobileDeviceType
@@ -1779,6 +1933,7 @@ instance FromHttpApiData FilterPairType where
17791933 "FILTER_NIELSEN_COUNTRY_CODE" -> Right FilterNielsenCountryCode
17801934 "FILTER_NIELSEN_DEVICE_ID" -> Right FilterNielsenDeviceId
17811935 "FILTER_NIELSEN_GENDER" -> Right FilterNielsenGender
1936+ "FILTER_NOT_SUPPORTED" -> Right FilterNotSupported
17821937 "FILTER_ORDER_ID" -> Right FilterOrderId
17831938 "FILTER_OS" -> Right FilterOS
17841939 "FILTER_PAGE_CATEGORY" -> Right FilterPageCategory
@@ -1797,8 +1952,11 @@ instance FromHttpApiData FilterPairType where
17971952 "FILTER_TRUEVIEW_AD_GROUP_ID" -> Right FilterTrueviewAdGroupId
17981953 "FILTER_TRUEVIEW_AGE" -> Right FilterTrueviewAge
17991954 "FILTER_TRUEVIEW_CATEGORY" -> Right FilterTrueviewCategory
1955+ "FILTER_TRUEVIEW_CITY" -> Right FilterTrueviewCity
18001956 "FILTER_TRUEVIEW_CONVERSION_TYPE" -> Right FilterTrueviewConversionType
1957+ "FILTER_TRUEVIEW_COUNTRY" -> Right FilterTrueviewCountry
18011958 "FILTER_TRUEVIEW_CUSTOM_AFFINITY" -> Right FilterTrueviewCustomAffinity
1959+ "FILTER_TRUEVIEW_DMA" -> Right FilterTrueviewDma
18021960 "FILTER_TRUEVIEW_GENDER" -> Right FilterTrueviewGender
18031961 "FILTER_TRUEVIEW_IAR_AGE" -> Right FilterTrueviewIarAge
18041962 "FILTER_TRUEVIEW_IAR_CATEGORY" -> Right FilterTrueviewIarCategory
@@ -1811,12 +1969,17 @@ instance FromHttpApiData FilterPairType where
18111969 "FILTER_TRUEVIEW_IAR_REGION" -> Right FilterTrueviewIarRegion
18121970 "FILTER_TRUEVIEW_IAR_REMARKETING_LIST" -> Right FilterTrueviewIarRemarketingList
18131971 "FILTER_TRUEVIEW_IAR_TIME_OF_DAY" -> Right FilterTrueviewIarTimeOfDay
1972+ "FILTER_TRUEVIEW_IAR_YOUTUBE_CHANNEL" -> Right FilterTrueviewIarYouTubeChannel
1973+ "FILTER_TRUEVIEW_IAR_YOUTUBE_VIDEO" -> Right FilterTrueviewIarYouTubeVideo
18141974 "FILTER_TRUEVIEW_IAR_ZIPCODE" -> Right FilterTrueviewIarZipcode
18151975 "FILTER_TRUEVIEW_INTEREST" -> Right FilterTrueviewInterest
18161976 "FILTER_TRUEVIEW_KEYWORD" -> Right FilterTrueviewKeyword
18171977 "FILTER_TRUEVIEW_PARENTAL_STATUS" -> Right FilterTrueviewParentalStatus
18181978 "FILTER_TRUEVIEW_PLACEMENT" -> Right FilterTrueviewPlacement
1979+ "FILTER_TRUEVIEW_REGION" -> Right FilterTrueviewRegion
18191980 "FILTER_TRUEVIEW_REMARKETING_LIST" -> Right FilterTrueviewRemarketingList
1981+ "FILTER_TRUEVIEW_URL" -> Right FilterTrueviewURL
1982+ "FILTER_TRUEVIEW_ZIPCODE" -> Right FilterTrueviewZipcode
18201983 "FILTER_UNKNOWN" -> Right FilterUnknown
18211984 "FILTER_USER_LIST" -> Right FilterUserList
18221985 "FILTER_USER_LIST_FIRST_PARTY" -> Right FilterUserListFirstParty
@@ -1878,6 +2041,7 @@ instance ToHttpApiData FilterPairType where
18782041 FilterLineItemDailyFrequency -> "FILTER_LINE_ITEM_DAILY_FREQUENCY"
18792042 FilterLineItemLifetimeFrequency -> "FILTER_LINE_ITEM_LIFETIME_FREQUENCY"
18802043 FilterLineItemType -> "FILTER_LINE_ITEM_TYPE"
2044+ FilterMediaPlan -> "FILTER_MEDIA_PLAN"
18812045 FilterMobileDeviceMake -> "FILTER_MOBILE_DEVICE_MAKE"
18822046 FilterMobileDeviceMakeModel -> "FILTER_MOBILE_DEVICE_MAKE_MODEL"
18832047 FilterMobileDeviceType -> "FILTER_MOBILE_DEVICE_TYPE"
@@ -1888,6 +2052,7 @@ instance ToHttpApiData FilterPairType where
18882052 FilterNielsenCountryCode -> "FILTER_NIELSEN_COUNTRY_CODE"
18892053 FilterNielsenDeviceId -> "FILTER_NIELSEN_DEVICE_ID"
18902054 FilterNielsenGender -> "FILTER_NIELSEN_GENDER"
2055+ FilterNotSupported -> "FILTER_NOT_SUPPORTED"
18912056 FilterOrderId -> "FILTER_ORDER_ID"
18922057 FilterOS -> "FILTER_OS"
18932058 FilterPageCategory -> "FILTER_PAGE_CATEGORY"
@@ -1906,8 +2071,11 @@ instance ToHttpApiData FilterPairType where
19062071 FilterTrueviewAdGroupId -> "FILTER_TRUEVIEW_AD_GROUP_ID"
19072072 FilterTrueviewAge -> "FILTER_TRUEVIEW_AGE"
19082073 FilterTrueviewCategory -> "FILTER_TRUEVIEW_CATEGORY"
2074+ FilterTrueviewCity -> "FILTER_TRUEVIEW_CITY"
19092075 FilterTrueviewConversionType -> "FILTER_TRUEVIEW_CONVERSION_TYPE"
2076+ FilterTrueviewCountry -> "FILTER_TRUEVIEW_COUNTRY"
19102077 FilterTrueviewCustomAffinity -> "FILTER_TRUEVIEW_CUSTOM_AFFINITY"
2078+ FilterTrueviewDma -> "FILTER_TRUEVIEW_DMA"
19112079 FilterTrueviewGender -> "FILTER_TRUEVIEW_GENDER"
19122080 FilterTrueviewIarAge -> "FILTER_TRUEVIEW_IAR_AGE"
19132081 FilterTrueviewIarCategory -> "FILTER_TRUEVIEW_IAR_CATEGORY"
@@ -1920,12 +2088,17 @@ instance ToHttpApiData FilterPairType where
19202088 FilterTrueviewIarRegion -> "FILTER_TRUEVIEW_IAR_REGION"
19212089 FilterTrueviewIarRemarketingList -> "FILTER_TRUEVIEW_IAR_REMARKETING_LIST"
19222090 FilterTrueviewIarTimeOfDay -> "FILTER_TRUEVIEW_IAR_TIME_OF_DAY"
2091+ FilterTrueviewIarYouTubeChannel -> "FILTER_TRUEVIEW_IAR_YOUTUBE_CHANNEL"
2092+ FilterTrueviewIarYouTubeVideo -> "FILTER_TRUEVIEW_IAR_YOUTUBE_VIDEO"
19232093 FilterTrueviewIarZipcode -> "FILTER_TRUEVIEW_IAR_ZIPCODE"
19242094 FilterTrueviewInterest -> "FILTER_TRUEVIEW_INTEREST"
19252095 FilterTrueviewKeyword -> "FILTER_TRUEVIEW_KEYWORD"
19262096 FilterTrueviewParentalStatus -> "FILTER_TRUEVIEW_PARENTAL_STATUS"
19272097 FilterTrueviewPlacement -> "FILTER_TRUEVIEW_PLACEMENT"
2098+ FilterTrueviewRegion -> "FILTER_TRUEVIEW_REGION"
19282099 FilterTrueviewRemarketingList -> "FILTER_TRUEVIEW_REMARKETING_LIST"
2100+ FilterTrueviewURL -> "FILTER_TRUEVIEW_URL"
2101+ FilterTrueviewZipcode -> "FILTER_TRUEVIEW_ZIPCODE"
19292102 FilterUnknown -> "FILTER_UNKNOWN"
19302103 FilterUserList -> "FILTER_USER_LIST"
19312104 FilterUserListFirstParty -> "FILTER_USER_LIST_FIRST_PARTY"
@@ -2154,6 +2327,8 @@ data ParametersGroupBysItem
21542327 -- ^ @FILTER_LINE_ITEM_LIFETIME_FREQUENCY@
21552328 | PGBIFilterLineItemType
21562329 -- ^ @FILTER_LINE_ITEM_TYPE@
2330+ | PGBIFilterMediaPlan
2331+ -- ^ @FILTER_MEDIA_PLAN@
21572332 | PGBIFilterMobileDeviceMake
21582333 -- ^ @FILTER_MOBILE_DEVICE_MAKE@
21592334 | PGBIFilterMobileDeviceMakeModel
@@ -2174,6 +2349,8 @@ data ParametersGroupBysItem
21742349 -- ^ @FILTER_NIELSEN_DEVICE_ID@
21752350 | PGBIFilterNielsenGender
21762351 -- ^ @FILTER_NIELSEN_GENDER@
2352+ | PGBIFilterNotSupported
2353+ -- ^ @FILTER_NOT_SUPPORTED@
21772354 | PGBIFilterOrderId
21782355 -- ^ @FILTER_ORDER_ID@
21792356 | PGBIFilterOS
@@ -2210,10 +2387,16 @@ data ParametersGroupBysItem
22102387 -- ^ @FILTER_TRUEVIEW_AGE@
22112388 | PGBIFilterTrueviewCategory
22122389 -- ^ @FILTER_TRUEVIEW_CATEGORY@
2390+ | PGBIFilterTrueviewCity
2391+ -- ^ @FILTER_TRUEVIEW_CITY@
22132392 | PGBIFilterTrueviewConversionType
22142393 -- ^ @FILTER_TRUEVIEW_CONVERSION_TYPE@
2394+ | PGBIFilterTrueviewCountry
2395+ -- ^ @FILTER_TRUEVIEW_COUNTRY@
22152396 | PGBIFilterTrueviewCustomAffinity
22162397 -- ^ @FILTER_TRUEVIEW_CUSTOM_AFFINITY@
2398+ | PGBIFilterTrueviewDma
2399+ -- ^ @FILTER_TRUEVIEW_DMA@
22172400 | PGBIFilterTrueviewGender
22182401 -- ^ @FILTER_TRUEVIEW_GENDER@
22192402 | PGBIFilterTrueviewIarAge
@@ -2238,6 +2421,10 @@ data ParametersGroupBysItem
22382421 -- ^ @FILTER_TRUEVIEW_IAR_REMARKETING_LIST@
22392422 | PGBIFilterTrueviewIarTimeOfDay
22402423 -- ^ @FILTER_TRUEVIEW_IAR_TIME_OF_DAY@
2424+ | PGBIFilterTrueviewIarYouTubeChannel
2425+ -- ^ @FILTER_TRUEVIEW_IAR_YOUTUBE_CHANNEL@
2426+ | PGBIFilterTrueviewIarYouTubeVideo
2427+ -- ^ @FILTER_TRUEVIEW_IAR_YOUTUBE_VIDEO@
22412428 | PGBIFilterTrueviewIarZipcode
22422429 -- ^ @FILTER_TRUEVIEW_IAR_ZIPCODE@
22432430 | PGBIFilterTrueviewInterest
@@ -2248,8 +2435,14 @@ data ParametersGroupBysItem
22482435 -- ^ @FILTER_TRUEVIEW_PARENTAL_STATUS@
22492436 | PGBIFilterTrueviewPlacement
22502437 -- ^ @FILTER_TRUEVIEW_PLACEMENT@
2438+ | PGBIFilterTrueviewRegion
2439+ -- ^ @FILTER_TRUEVIEW_REGION@
22512440 | PGBIFilterTrueviewRemarketingList
22522441 -- ^ @FILTER_TRUEVIEW_REMARKETING_LIST@
2442+ | PGBIFilterTrueviewURL
2443+ -- ^ @FILTER_TRUEVIEW_URL@
2444+ | PGBIFilterTrueviewZipcode
2445+ -- ^ @FILTER_TRUEVIEW_ZIPCODE@
22532446 | PGBIFilterUnknown
22542447 -- ^ @FILTER_UNKNOWN@
22552448 | PGBIFilterUserList
@@ -2333,6 +2526,7 @@ instance FromHttpApiData ParametersGroupBysItem where
23332526 "FILTER_LINE_ITEM_DAILY_FREQUENCY" -> Right PGBIFilterLineItemDailyFrequency
23342527 "FILTER_LINE_ITEM_LIFETIME_FREQUENCY" -> Right PGBIFilterLineItemLifetimeFrequency
23352528 "FILTER_LINE_ITEM_TYPE" -> Right PGBIFilterLineItemType
2529+ "FILTER_MEDIA_PLAN" -> Right PGBIFilterMediaPlan
23362530 "FILTER_MOBILE_DEVICE_MAKE" -> Right PGBIFilterMobileDeviceMake
23372531 "FILTER_MOBILE_DEVICE_MAKE_MODEL" -> Right PGBIFilterMobileDeviceMakeModel
23382532 "FILTER_MOBILE_DEVICE_TYPE" -> Right PGBIFilterMobileDeviceType
@@ -2343,6 +2537,7 @@ instance FromHttpApiData ParametersGroupBysItem where
23432537 "FILTER_NIELSEN_COUNTRY_CODE" -> Right PGBIFilterNielsenCountryCode
23442538 "FILTER_NIELSEN_DEVICE_ID" -> Right PGBIFilterNielsenDeviceId
23452539 "FILTER_NIELSEN_GENDER" -> Right PGBIFilterNielsenGender
2540+ "FILTER_NOT_SUPPORTED" -> Right PGBIFilterNotSupported
23462541 "FILTER_ORDER_ID" -> Right PGBIFilterOrderId
23472542 "FILTER_OS" -> Right PGBIFilterOS
23482543 "FILTER_PAGE_CATEGORY" -> Right PGBIFilterPageCategory
@@ -2361,8 +2556,11 @@ instance FromHttpApiData ParametersGroupBysItem where
23612556 "FILTER_TRUEVIEW_AD_GROUP_ID" -> Right PGBIFilterTrueviewAdGroupId
23622557 "FILTER_TRUEVIEW_AGE" -> Right PGBIFilterTrueviewAge
23632558 "FILTER_TRUEVIEW_CATEGORY" -> Right PGBIFilterTrueviewCategory
2559+ "FILTER_TRUEVIEW_CITY" -> Right PGBIFilterTrueviewCity
23642560 "FILTER_TRUEVIEW_CONVERSION_TYPE" -> Right PGBIFilterTrueviewConversionType
2561+ "FILTER_TRUEVIEW_COUNTRY" -> Right PGBIFilterTrueviewCountry
23652562 "FILTER_TRUEVIEW_CUSTOM_AFFINITY" -> Right PGBIFilterTrueviewCustomAffinity
2563+ "FILTER_TRUEVIEW_DMA" -> Right PGBIFilterTrueviewDma
23662564 "FILTER_TRUEVIEW_GENDER" -> Right PGBIFilterTrueviewGender
23672565 "FILTER_TRUEVIEW_IAR_AGE" -> Right PGBIFilterTrueviewIarAge
23682566 "FILTER_TRUEVIEW_IAR_CATEGORY" -> Right PGBIFilterTrueviewIarCategory
@@ -2375,12 +2573,17 @@ instance FromHttpApiData ParametersGroupBysItem where
23752573 "FILTER_TRUEVIEW_IAR_REGION" -> Right PGBIFilterTrueviewIarRegion
23762574 "FILTER_TRUEVIEW_IAR_REMARKETING_LIST" -> Right PGBIFilterTrueviewIarRemarketingList
23772575 "FILTER_TRUEVIEW_IAR_TIME_OF_DAY" -> Right PGBIFilterTrueviewIarTimeOfDay
2576+ "FILTER_TRUEVIEW_IAR_YOUTUBE_CHANNEL" -> Right PGBIFilterTrueviewIarYouTubeChannel
2577+ "FILTER_TRUEVIEW_IAR_YOUTUBE_VIDEO" -> Right PGBIFilterTrueviewIarYouTubeVideo
23782578 "FILTER_TRUEVIEW_IAR_ZIPCODE" -> Right PGBIFilterTrueviewIarZipcode
23792579 "FILTER_TRUEVIEW_INTEREST" -> Right PGBIFilterTrueviewInterest
23802580 "FILTER_TRUEVIEW_KEYWORD" -> Right PGBIFilterTrueviewKeyword
23812581 "FILTER_TRUEVIEW_PARENTAL_STATUS" -> Right PGBIFilterTrueviewParentalStatus
23822582 "FILTER_TRUEVIEW_PLACEMENT" -> Right PGBIFilterTrueviewPlacement
2583+ "FILTER_TRUEVIEW_REGION" -> Right PGBIFilterTrueviewRegion
23832584 "FILTER_TRUEVIEW_REMARKETING_LIST" -> Right PGBIFilterTrueviewRemarketingList
2585+ "FILTER_TRUEVIEW_URL" -> Right PGBIFilterTrueviewURL
2586+ "FILTER_TRUEVIEW_ZIPCODE" -> Right PGBIFilterTrueviewZipcode
23842587 "FILTER_UNKNOWN" -> Right PGBIFilterUnknown
23852588 "FILTER_USER_LIST" -> Right PGBIFilterUserList
23862589 "FILTER_USER_LIST_FIRST_PARTY" -> Right PGBIFilterUserListFirstParty
@@ -2442,6 +2645,7 @@ instance ToHttpApiData ParametersGroupBysItem where
24422645 PGBIFilterLineItemDailyFrequency -> "FILTER_LINE_ITEM_DAILY_FREQUENCY"
24432646 PGBIFilterLineItemLifetimeFrequency -> "FILTER_LINE_ITEM_LIFETIME_FREQUENCY"
24442647 PGBIFilterLineItemType -> "FILTER_LINE_ITEM_TYPE"
2648+ PGBIFilterMediaPlan -> "FILTER_MEDIA_PLAN"
24452649 PGBIFilterMobileDeviceMake -> "FILTER_MOBILE_DEVICE_MAKE"
24462650 PGBIFilterMobileDeviceMakeModel -> "FILTER_MOBILE_DEVICE_MAKE_MODEL"
24472651 PGBIFilterMobileDeviceType -> "FILTER_MOBILE_DEVICE_TYPE"
@@ -2452,6 +2656,7 @@ instance ToHttpApiData ParametersGroupBysItem where
24522656 PGBIFilterNielsenCountryCode -> "FILTER_NIELSEN_COUNTRY_CODE"
24532657 PGBIFilterNielsenDeviceId -> "FILTER_NIELSEN_DEVICE_ID"
24542658 PGBIFilterNielsenGender -> "FILTER_NIELSEN_GENDER"
2659+ PGBIFilterNotSupported -> "FILTER_NOT_SUPPORTED"
24552660 PGBIFilterOrderId -> "FILTER_ORDER_ID"
24562661 PGBIFilterOS -> "FILTER_OS"
24572662 PGBIFilterPageCategory -> "FILTER_PAGE_CATEGORY"
@@ -2470,8 +2675,11 @@ instance ToHttpApiData ParametersGroupBysItem where
24702675 PGBIFilterTrueviewAdGroupId -> "FILTER_TRUEVIEW_AD_GROUP_ID"
24712676 PGBIFilterTrueviewAge -> "FILTER_TRUEVIEW_AGE"
24722677 PGBIFilterTrueviewCategory -> "FILTER_TRUEVIEW_CATEGORY"
2678+ PGBIFilterTrueviewCity -> "FILTER_TRUEVIEW_CITY"
24732679 PGBIFilterTrueviewConversionType -> "FILTER_TRUEVIEW_CONVERSION_TYPE"
2680+ PGBIFilterTrueviewCountry -> "FILTER_TRUEVIEW_COUNTRY"
24742681 PGBIFilterTrueviewCustomAffinity -> "FILTER_TRUEVIEW_CUSTOM_AFFINITY"
2682+ PGBIFilterTrueviewDma -> "FILTER_TRUEVIEW_DMA"
24752683 PGBIFilterTrueviewGender -> "FILTER_TRUEVIEW_GENDER"
24762684 PGBIFilterTrueviewIarAge -> "FILTER_TRUEVIEW_IAR_AGE"
24772685 PGBIFilterTrueviewIarCategory -> "FILTER_TRUEVIEW_IAR_CATEGORY"
@@ -2484,12 +2692,17 @@ instance ToHttpApiData ParametersGroupBysItem where
24842692 PGBIFilterTrueviewIarRegion -> "FILTER_TRUEVIEW_IAR_REGION"
24852693 PGBIFilterTrueviewIarRemarketingList -> "FILTER_TRUEVIEW_IAR_REMARKETING_LIST"
24862694 PGBIFilterTrueviewIarTimeOfDay -> "FILTER_TRUEVIEW_IAR_TIME_OF_DAY"
2695+ PGBIFilterTrueviewIarYouTubeChannel -> "FILTER_TRUEVIEW_IAR_YOUTUBE_CHANNEL"
2696+ PGBIFilterTrueviewIarYouTubeVideo -> "FILTER_TRUEVIEW_IAR_YOUTUBE_VIDEO"
24872697 PGBIFilterTrueviewIarZipcode -> "FILTER_TRUEVIEW_IAR_ZIPCODE"
24882698 PGBIFilterTrueviewInterest -> "FILTER_TRUEVIEW_INTEREST"
24892699 PGBIFilterTrueviewKeyword -> "FILTER_TRUEVIEW_KEYWORD"
24902700 PGBIFilterTrueviewParentalStatus -> "FILTER_TRUEVIEW_PARENTAL_STATUS"
24912701 PGBIFilterTrueviewPlacement -> "FILTER_TRUEVIEW_PLACEMENT"
2702+ PGBIFilterTrueviewRegion -> "FILTER_TRUEVIEW_REGION"
24922703 PGBIFilterTrueviewRemarketingList -> "FILTER_TRUEVIEW_REMARKETING_LIST"
2704+ PGBIFilterTrueviewURL -> "FILTER_TRUEVIEW_URL"
2705+ PGBIFilterTrueviewZipcode -> "FILTER_TRUEVIEW_ZIPCODE"
24932706 PGBIFilterUnknown -> "FILTER_UNKNOWN"
24942707 PGBIFilterUserList -> "FILTER_USER_LIST"
24952708 PGBIFilterUserListFirstParty -> "FILTER_USER_LIST_FIRST_PARTY"
gogol-doubleclick-bids/gen/Network/Google/Resource/DoubleClickBidManager/Rubicon/Notifyproposalchange.hsdeleted−87
@@ -1,87 +0,0 @@
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.DoubleClickBidManager.Rubicon.Notifyproposalchange
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 proposal upon actions of Rubicon publisher.
24−--
25−-- /See:/ <https://developers.google.com/bid-manager/ DoubleClick Bid Manager API Reference> for @doubleclickbidmanager.rubicon.notifyproposalchange@.
26−module Network.Google.Resource.DoubleClickBidManager.Rubicon.Notifyproposalchange
27− (
28− -- * REST Resource
29− RubiconNotifyproposalchangeResource
30−
31− -- * Creating a Request
32− , rubiconNotifyproposalchange
33− , RubiconNotifyproposalchange
34−
35− -- * Request Lenses
36− , rnPayload
37− ) where
38−
39−import Network.Google.DoubleClickBids.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @doubleclickbidmanager.rubicon.notifyproposalchange@ method which the
43−-- 'RubiconNotifyproposalchange' request conforms to.
44−type RubiconNotifyproposalchangeResource =
45− "doubleclickbidmanager" :>
46− "v1" :>
47− "rubicon" :>
48− "notifyproposalchange" :>
49− QueryParam "alt" AltJSON :>
50− ReqBody '[JSON] NotifyProposalChangeRequest :>
51− Post '[JSON] ()
52−
53−-- | Update proposal upon actions of Rubicon publisher.
54−--
55−-- /See:/ 'rubiconNotifyproposalchange' smart constructor.
56−newtype RubiconNotifyproposalchange = RubiconNotifyproposalchange'
57− { _rnPayload :: NotifyProposalChangeRequest
58− } deriving (Eq,Show,Data,Typeable,Generic)
59−
60−-- | Creates a value of 'RubiconNotifyproposalchange' 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−-- * 'rnPayload'
65−rubiconNotifyproposalchange
66− :: NotifyProposalChangeRequest -- ^ 'rnPayload'
67− -> RubiconNotifyproposalchange
68−rubiconNotifyproposalchange pRnPayload_ =
69− RubiconNotifyproposalchange'
70− { _rnPayload = pRnPayload_
71− }
72−
73−-- | Multipart request metadata.
74−rnPayload :: Lens' RubiconNotifyproposalchange NotifyProposalChangeRequest
75−rnPayload
76− = lens _rnPayload (\ s a -> s{_rnPayload = a})
77−
78−instance GoogleRequest RubiconNotifyproposalchange
79− where
80− type Rs RubiconNotifyproposalchange = ()
81− type Scopes RubiconNotifyproposalchange = '[]
82− requestClient RubiconNotifyproposalchange'{..}
83− = go (Just AltJSON) _rnPayload doubleClickBidsService
84− where go
85− = buildClient
86− (Proxy :: Proxy RubiconNotifyproposalchangeResource)
87− mempty
gogol-doubleclick-bids/gen/Network/Google/Resource/DoubleClickBidManager/Sdf/Download.hsnew file+85
@@ -0,0 +1,85 @@
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.DoubleClickBidManager.Sdf.Download
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+-- Retrieves entities in SDF format.
24+--
25+-- /See:/ <https://developers.google.com/bid-manager/ DoubleClick Bid Manager API Reference> for @doubleclickbidmanager.sdf.download@.
26+module Network.Google.Resource.DoubleClickBidManager.Sdf.Download
27+ (
28+ -- * REST Resource
29+ SdfDownloadResource
30+
31+ -- * Creating a Request
32+ , sdfDownload
33+ , SdfDownload
34+
35+ -- * Request Lenses
36+ , sdPayload
37+ ) where
38+
39+import Network.Google.DoubleClickBids.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @doubleclickbidmanager.sdf.download@ method which the
43+-- 'SdfDownload' request conforms to.
44+type SdfDownloadResource =
45+ "doubleclickbidmanager" :>
46+ "v1" :>
47+ "sdf" :>
48+ "download" :>
49+ QueryParam "alt" AltJSON :>
50+ ReqBody '[JSON] DownloadRequest :>
51+ Post '[JSON] DownloadResponse
52+
53+-- | Retrieves entities in SDF format.
54+--
55+-- /See:/ 'sdfDownload' smart constructor.
56+newtype SdfDownload = SdfDownload'
57+ { _sdPayload :: DownloadRequest
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'SdfDownload' 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+-- * 'sdPayload'
65+sdfDownload
66+ :: DownloadRequest -- ^ 'sdPayload'
67+ -> SdfDownload
68+sdfDownload pSdPayload_ =
69+ SdfDownload'
70+ { _sdPayload = pSdPayload_
71+ }
72+
73+-- | Multipart request metadata.
74+sdPayload :: Lens' SdfDownload DownloadRequest
75+sdPayload
76+ = lens _sdPayload (\ s a -> s{_sdPayload = a})
77+
78+instance GoogleRequest SdfDownload where
79+ type Rs SdfDownload = DownloadResponse
80+ type Scopes SdfDownload = '[]
81+ requestClient SdfDownload'{..}
82+ = go (Just AltJSON) _sdPayload doubleClickBidsService
83+ where go
84+ = buildClient (Proxy :: Proxy SdfDownloadResource)
85+ mempty
gogol-doubleclick-bids/gogol-doubleclick-bids.cabal+1−1
@@ -47,7 +47,7 @@ library
4747 , Network.Google.Resource.DoubleClickBidManager.Queries.Listqueries
4848 , Network.Google.Resource.DoubleClickBidManager.Queries.RunQuery
4949 , Network.Google.Resource.DoubleClickBidManager.Reports.Listreports
50− , Network.Google.Resource.DoubleClickBidManager.Rubicon.Notifyproposalchange
50+ , Network.Google.Resource.DoubleClickBidManager.Sdf.Download
5151
5252 other-modules:
5353 Network.Google.DoubleClickBids.Types.Product