on develop help sign in
Regenerating gogol-analytics from latest service definition
commitd22ee1808c668f153137a5c12ab749dfbbf6bfca authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parent3c3b1d0
10 files changed+2011−8
gen/model/analytics/v3/analytics-api.json+441−4 gogol-analytics/gen/Network/Google/Analytics.hs+96 gogol-analytics/gen/Network/Google/Analytics/Types.hs+71 gogol-analytics/gen/Network/Google/Analytics/Types/Product.hs+733−4 gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/Get.hs+123 gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/Insert.hs+121 gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/List.hs+148 gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/Patch.hs+137 gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/Update.hs+136 gogol-analytics/gogol-analytics.cabal+5
gen/model/analytics/v3/analytics-api.json+441−4
@@ -1,11 +1,11 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"bRFOOrZKfO9LweMbPqu0kcu6De8/y7JmUhB0GIMusVTZY-o1OGZ6DZQ\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/CEwIV9fdNgUw9Oy31M8HLJeTPyQ\"",
44 "discoveryVersion": "v1",
55 "id": "analytics:v3",
66 "name": "analytics",
77 "version": "v3",
8− "revision": "20160308",
8+ "revision": "20161004",
99 "title": "Google Analytics API",
1010 "description": "Views and manages your Google Analytics data.",
1111 "ownerDomain": "google.com",
@@ -1610,6 +1610,11 @@
16101610 "type": "boolean",
16111611 "description": "Determines if Analytics data contains samples."
16121612 },
1613+ "dataLastRefreshed": {
1614+ "type": "string",
1615+ "description": "The last refreshed time in seconds for Analytics data.",
1616+ "format": "int64"
1617+ },
16131618 "dataTable": {
16141619 "type": "object",
16151620 "properties": {
@@ -2038,6 +2043,86 @@
20382043 }
20392044 }
20402045 },
2046+ "IncludeConditions": {
2047+ "id": "IncludeConditions",
2048+ "type": "object",
2049+ "description": "JSON template for an Analytics Remarketing Include Conditions.",
2050+ "properties": {
2051+ "daysToLookBack": {
2052+ "type": "integer",
2053+ "description": "The look-back window lets you specify a time frame for evaluating the behavior that qualifies users for your audience. For example, if your filters include users from Central Asia, and Transactions Greater than 2, and you set the look-back window to 14 days, then any user from Central Asia whose cumulative transactions exceed 2 during the last 14 days is added to the audience.",
2054+ "format": "int32"
2055+ },
2056+ "isSmartList": {
2057+ "type": "boolean",
2058+ "description": "Boolean indicating whether this segment is a smart list. https://support.google.com/analytics/answer/4628577"
2059+ },
2060+ "kind": {
2061+ "type": "string",
2062+ "description": "Resource type for include conditions.",
2063+ "default": "analytics#includeConditions"
2064+ },
2065+ "membershipDurationDays": {
2066+ "type": "integer",
2067+ "description": "Number of days (in the range 1 to 540) a user remains in the audience.",
2068+ "format": "int32"
2069+ },
2070+ "segment": {
2071+ "type": "string",
2072+ "description": "The segment condition that will cause a user to be added to an audience."
2073+ }
2074+ }
2075+ },
2076+ "LinkedForeignAccount": {
2077+ "id": "LinkedForeignAccount",
2078+ "type": "object",
2079+ "description": "JSON template for an Analytics Remarketing Audience Foreign Link.",
2080+ "properties": {
2081+ "accountId": {
2082+ "type": "string",
2083+ "description": "Account ID to which this linked foreign account belongs."
2084+ },
2085+ "eligibleForSearch": {
2086+ "type": "boolean",
2087+ "description": "Boolean indicating whether this is eligible for search.",
2088+ "readOnly": true
2089+ },
2090+ "id": {
2091+ "type": "string",
2092+ "description": "Entity ad account link ID."
2093+ },
2094+ "internalWebPropertyId": {
2095+ "type": "string",
2096+ "description": "Internal ID for the web property to which this linked foreign account belongs.",
2097+ "readOnly": true
2098+ },
2099+ "kind": {
2100+ "type": "string",
2101+ "description": "Resource type for linked foreign account.",
2102+ "default": "analytics#linkedForeignAccount"
2103+ },
2104+ "linkedAccountId": {
2105+ "type": "string",
2106+ "description": "The foreign account ID. For example the an AdWords `linkedAccountId` has the following format XXX-XXX-XXXX."
2107+ },
2108+ "remarketingAudienceId": {
2109+ "type": "string",
2110+ "description": "Remarketing audience ID to which this linked foreign account belongs."
2111+ },
2112+ "status": {
2113+ "type": "string",
2114+ "description": "The status of this foreign account link."
2115+ },
2116+ "type": {
2117+ "type": "string",
2118+ "description": "The type of the foreign account. For example `ADWORDS_LINKS`."
2119+ },
2120+ "webPropertyId": {
2121+ "type": "string",
2122+ "description": "Web property ID of the form UA-XXXXX-YY to which this linked foreign account belongs."
2123+ }
2124+ }
2125+ },
20412126 "McfData": {
20422127 "id": "McfData",
20432128 "type": "object",
@@ -2277,7 +2362,7 @@
22772362 },
22782363 "currency": {
22792364 "type": "string",
2280− "description": "The currency type associated with this view (profile), defaults to USD. The supported values are:\nARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY, KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, ZAR"
2365+ "description": "The currency type associated with this view (profile), defaults to USD. The supported values are:\nUSD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL"
22812366 },
22822367 "defaultPage": {
22832368 "type": "string",
@@ -2715,6 +2800,154 @@
27152800 }
27162801 }
27172802 },
2803+ "RemarketingAudience": {
2804+ "id": "RemarketingAudience",
2805+ "type": "object",
2806+ "description": "JSON template for an Analytics remarketing audience.",
2807+ "properties": {
2808+ "accountId": {
2809+ "type": "string",
2810+ "description": "Account ID to which this remarketing audience belongs."
2811+ },
2812+ "audienceDefinition": {
2813+ "type": "object",
2814+ "description": "The simple audience definition that will cause a user to be added to an audience.",
2815+ "properties": {
2816+ "includeConditions": {
2817+ "$ref": "IncludeConditions",
2818+ "description": "Defines the conditions to include users to the audience."
2819+ }
2820+ }
2821+ },
2822+ "audienceType": {
2823+ "type": "string",
2824+ "description": "The type of audience, either SIMPLE or STATE_BASED."
2825+ },
2826+ "created": {
2827+ "type": "string",
2828+ "description": "Time this remarketing audience was created.",
2829+ "format": "date-time",
2830+ "readOnly": true
2831+ },
2832+ "description": {
2833+ "type": "string",
2834+ "description": "The description of this remarketing audience.",
2835+ "readOnly": true
2836+ },
2837+ "id": {
2838+ "type": "string",
2839+ "description": "Remarketing Audience ID."
2840+ },
2841+ "internalWebPropertyId": {
2842+ "type": "string",
2843+ "description": "Internal ID for the web property to which this remarketing audience belongs.",
2844+ "readOnly": true
2845+ },
2846+ "kind": {
2847+ "type": "string",
2848+ "description": "Collection type.",
2849+ "default": "analytics#remarketingAudience"
2850+ },
2851+ "linkedAdAccounts": {
2852+ "type": "array",
2853+ "description": "The linked ad accounts associated with this remarketing audience. A remarketing audience can have only one linkedAdAccount currently.",
2854+ "items": {
2855+ "$ref": "LinkedForeignAccount"
2856+ }
2857+ },
2858+ "linkedViews": {
2859+ "type": "array",
2860+ "description": "The views (profiles) that this remarketing audience is linked to.",
2861+ "items": {
2862+ "type": "string"
2863+ }
2864+ },
2865+ "name": {
2866+ "type": "string",
2867+ "description": "The name of this remarketing audience."
2868+ },
2869+ "stateBasedAudienceDefinition": {
2870+ "type": "object",
2871+ "description": "A state based audience definition that will cause a user to be added or removed from an audience.",
2872+ "properties": {
2873+ "excludeConditions": {
2874+ "type": "object",
2875+ "description": "Defines the conditions to exclude users from the audience.",
2876+ "properties": {
2877+ "exclusionDuration": {
2878+ "type": "string",
2879+ "description": "Whether to make the exclusion TEMPORARY or PERMANENT."
2880+ },
2881+ "segment": {
2882+ "type": "string",
2883+ "description": "The segment condition that will cause a user to be removed from an audience."
2884+ }
2885+ }
2886+ },
2887+ "includeConditions": {
2888+ "$ref": "IncludeConditions",
2889+ "description": "Defines the conditions to include users to the audience."
2890+ }
2891+ }
2892+ },
2893+ "updated": {
2894+ "type": "string",
2895+ "description": "Time this remarketing audience was last modified.",
2896+ "format": "date-time",
2897+ "readOnly": true
2898+ },
2899+ "webPropertyId": {
2900+ "type": "string",
2901+ "description": "Web property ID of the form UA-XXXXX-YY to which this remarketing audience belongs."
2902+ }
2903+ }
2904+ },
2905+ "RemarketingAudiences": {
2906+ "id": "RemarketingAudiences",
2907+ "type": "object",
2908+ "description": "A remarketing audience collection lists Analytics remarketing audiences to which the user has access. Each resource in the collection corresponds to a single Analytics remarketing audience.",
2909+ "properties": {
2910+ "items": {
2911+ "type": "array",
2912+ "description": "A list of remarketing audiences.",
2913+ "items": {
2914+ "$ref": "RemarketingAudience"
2915+ }
2916+ },
2917+ "itemsPerPage": {
2918+ "type": "integer",
2919+ "description": "The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
2920+ "format": "int32"
2921+ },
2922+ "kind": {
2923+ "type": "string",
2924+ "description": "Collection type.",
2925+ "default": "analytics#remarketingAudiences"
2926+ },
2927+ "nextLink": {
2928+ "type": "string",
2929+ "description": "Link to next page for this remarketing audience collection."
2930+ },
2931+ "previousLink": {
2932+ "type": "string",
2933+ "description": "Link to previous page for this view (profile) collection."
2934+ },
2935+ "startIndex": {
2936+ "type": "integer",
2937+ "description": "The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
2938+ "format": "int32"
2939+ },
2940+ "totalResults": {
2941+ "type": "integer",
2942+ "description": "The total number of results for the query, regardless of the number of results in the response.",
2943+ "format": "int32"
2944+ },
2945+ "username": {
2946+ "type": "string",
2947+ "description": "Email ID of the authenticated user"
2948+ }
2949+ }
2950+ },
27182951 "Segment": {
27192952 "id": "Segment",
27202953 "type": "object",
@@ -2843,7 +3076,7 @@
28433076 },
28443077 "downloadType": {
28453078 "type": "string",
2846− "description": "The type of download you need to use for the report data file.",
3079+ "description": "The type of download you need to use for the report data file. Possible values include `GOOGLE_DRIVE` and `GOOGLE_CLOUD_STORAGE`. If the value is `GOOGLE_DRIVE`, see the `driveDownloadDetails` field. If the value is `GOOGLE_CLOUD_STORAGE`, see the `cloudStorageDownloadDetails` field.",
28473080 "readOnly": true
28483081 },
28493082 "driveDownloadDetails": {
@@ -5709,6 +5942,210 @@
57095942 }
57105943 }
57115944 },
5945+ "remarketingAudience": {
5946+ "methods": {
5947+ "get": {
5948+ "id": "analytics.management.remarketingAudience.get",
5949+ "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}",
5950+ "httpMethod": "GET",
5951+ "description": "Gets a remarketing audience to which the user has access.",
5952+ "parameters": {
5953+ "accountId": {
5954+ "type": "string",
5955+ "description": "The account ID of the remarketing audience to retrieve.",
5956+ "required": true,
5957+ "location": "path"
5958+ },
5959+ "remarketingAudienceId": {
5960+ "type": "string",
5961+ "description": "The ID of the remarketing audience to retrieve.",
5962+ "required": true,
5963+ "location": "path"
5964+ },
5965+ "webPropertyId": {
5966+ "type": "string",
5967+ "description": "The web property ID of the remarketing audience to retrieve.",
5968+ "required": true,
5969+ "location": "path"
5970+ }
5971+ },
5972+ "parameterOrder": [
5973+ "accountId",
5974+ "webPropertyId",
5975+ "remarketingAudienceId"
5976+ ],
5977+ "response": {
5978+ "$ref": "RemarketingAudience"
5979+ },
5980+ "scopes": [
5981+ "https://www.googleapis.com/auth/analytics.edit",
5982+ "https://www.googleapis.com/auth/analytics.readonly"
5983+ ]
5984+ },
5985+ "insert": {
5986+ "id": "analytics.management.remarketingAudience.insert",
5987+ "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences",
5988+ "httpMethod": "POST",
5989+ "description": "Creates a new remarketing audience.",
5990+ "parameters": {
5991+ "accountId": {
5992+ "type": "string",
5993+ "description": "The account ID for which to create the remarketing audience.",
5994+ "required": true,
5995+ "location": "path"
5996+ },
5997+ "webPropertyId": {
5998+ "type": "string",
5999+ "description": "Web property ID for which to create the remarketing audience.",
6000+ "required": true,
6001+ "location": "path"
6002+ }
6003+ },
6004+ "parameterOrder": [
6005+ "accountId",
6006+ "webPropertyId"
6007+ ],
6008+ "request": {
6009+ "$ref": "RemarketingAudience"
6010+ },
6011+ "response": {
6012+ "$ref": "RemarketingAudience"
6013+ },
6014+ "scopes": [
6015+ "https://www.googleapis.com/auth/analytics.edit"
6016+ ]
6017+ },
6018+ "list": {
6019+ "id": "analytics.management.remarketingAudience.list",
6020+ "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences",
6021+ "httpMethod": "GET",
6022+ "description": "Lists remarketing audiences to which the user has access.",
6023+ "parameters": {
6024+ "accountId": {
6025+ "type": "string",
6026+ "description": "The account ID of the remarketing audiences to retrieve.",
6027+ "required": true,
6028+ "location": "path"
6029+ },
6030+ "max-results": {
6031+ "type": "integer",
6032+ "description": "The maximum number of remarketing audiences to include in this response.",
6033+ "format": "int32",
6034+ "location": "query"
6035+ },
6036+ "start-index": {
6037+ "type": "integer",
6038+ "description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
6039+ "format": "int32",
6040+ "minimum": "1",
6041+ "location": "query"
6042+ },
6043+ "type": {
6044+ "type": "string",
6045+ "default": "all",
6046+ "location": "query"
6047+ },
6048+ "webPropertyId": {
6049+ "type": "string",
6050+ "description": "The web property ID of the remarketing audiences to retrieve.",
6051+ "required": true,
6052+ "location": "path"
6053+ }
6054+ },
6055+ "parameterOrder": [
6056+ "accountId",
6057+ "webPropertyId"
6058+ ],
6059+ "response": {
6060+ "$ref": "RemarketingAudiences"
6061+ },
6062+ "scopes": [
6063+ "https://www.googleapis.com/auth/analytics.edit",
6064+ "https://www.googleapis.com/auth/analytics.readonly"
6065+ ]
6066+ },
6067+ "patch": {
6068+ "id": "analytics.management.remarketingAudience.patch",
6069+ "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}",
6070+ "httpMethod": "PATCH",
6071+ "description": "Updates an existing remarketing audience. This method supports patch semantics.",
6072+ "parameters": {
6073+ "accountId": {
6074+ "type": "string",
6075+ "description": "The account ID of the remarketing audience to update.",
6076+ "required": true,
6077+ "location": "path"
6078+ },
6079+ "remarketingAudienceId": {
6080+ "type": "string",
6081+ "description": "The ID of the remarketing audience to update.",
6082+ "required": true,
6083+ "location": "path"
6084+ },
6085+ "webPropertyId": {
6086+ "type": "string",
6087+ "description": "The web property ID of the remarketing audience to update.",
6088+ "required": true,
6089+ "location": "path"
6090+ }
6091+ },
6092+ "parameterOrder": [
6093+ "accountId",
6094+ "webPropertyId",
6095+ "remarketingAudienceId"
6096+ ],
6097+ "request": {
6098+ "$ref": "RemarketingAudience"
6099+ },
6100+ "response": {
6101+ "$ref": "RemarketingAudience"
6102+ },
6103+ "scopes": [
6104+ "https://www.googleapis.com/auth/analytics.edit"
6105+ ]
6106+ },
6107+ "update": {
6108+ "id": "analytics.management.remarketingAudience.update",
6109+ "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}",
6110+ "httpMethod": "PUT",
6111+ "description": "Updates an existing remarketing audience.",
6112+ "parameters": {
6113+ "accountId": {
6114+ "type": "string",
6115+ "description": "The account ID of the remarketing audience to update.",
6116+ "required": true,
6117+ "location": "path"
6118+ },
6119+ "remarketingAudienceId": {
6120+ "type": "string",
6121+ "description": "The ID of the remarketing audience to update.",
6122+ "required": true,
6123+ "location": "path"
6124+ },
6125+ "webPropertyId": {
6126+ "type": "string",
6127+ "description": "The web property ID of the remarketing audience to update.",
6128+ "required": true,
6129+ "location": "path"
6130+ }
6131+ },
6132+ "parameterOrder": [
6133+ "accountId",
6134+ "webPropertyId",
6135+ "remarketingAudienceId"
6136+ ],
6137+ "request": {
6138+ "$ref": "RemarketingAudience"
6139+ },
6140+ "response": {
6141+ "$ref": "RemarketingAudience"
6142+ },
6143+ "scopes": [
6144+ "https://www.googleapis.com/auth/analytics.edit"
6145+ ]
6146+ }
6147+ }
6148+ },
57126149 "segments": {
57136150 "methods": {
57146151 "list": {
gogol-analytics/gen/Network/Google/Analytics.hs+96
@@ -193,6 +193,21 @@ module Network.Google.Analytics
193193 -- ** analytics.management.profiles.update
194194 , module Network.Google.Resource.Analytics.Management.ProFiles.Update
195195
196+ -- ** analytics.management.remarketingAudience.get
197+ , module Network.Google.Resource.Analytics.Management.RemarketingAudience.Get
198+
199+ -- ** analytics.management.remarketingAudience.insert
200+ , module Network.Google.Resource.Analytics.Management.RemarketingAudience.Insert
201+
202+ -- ** analytics.management.remarketingAudience.list
203+ , module Network.Google.Resource.Analytics.Management.RemarketingAudience.List
204+
205+ -- ** analytics.management.remarketingAudience.patch
206+ , module Network.Google.Resource.Analytics.Management.RemarketingAudience.Patch
207+
208+ -- ** analytics.management.remarketingAudience.update
209+ , module Network.Google.Resource.Analytics.Management.RemarketingAudience.Update
210+
196211 -- ** analytics.management.segments.list
197212 , module Network.Google.Resource.Analytics.Management.Segments.List
198213
@@ -307,6 +322,18 @@ module Network.Google.Analytics
307322 , gdqSegment
308323 , gdqStartDate
309324
325+ -- ** RemarketingAudiences
326+ , RemarketingAudiences
327+ , remarketingAudiences
328+ , raNextLink
329+ , raItemsPerPage
330+ , raKind
331+ , raUsername
332+ , raItems
333+ , raTotalResults
334+ , raStartIndex
335+ , raPreviousLink
336+
310337 -- ** GaDataDataTableRowsItem
311338 , GaDataDataTableRowsItem
312339 , gaDataDataTableRowsItem
@@ -353,6 +380,24 @@ module Network.Google.Analytics
353380 , pfplHref
354381 , pfplType
355382
383+ -- ** RemarketingAudience
384+ , RemarketingAudience
385+ , remarketingAudience
386+ , rWebPropertyId
387+ , rKind
388+ , rCreated
389+ , rLinkedAdAccounts
390+ , rAudienceDefinition
391+ , rAudienceType
392+ , rAccountId
393+ , rName
394+ , rStateBasedAudienceDefinition
395+ , rLinkedViews
396+ , rInternalWebPropertyId
397+ , rId
398+ , rUpdated
399+ , rDescription
400+
356401 -- ** GaDataDataTableRowsItemCItem
357402 , GaDataDataTableRowsItemCItem
358403 , gaDataDataTableRowsItemCItem
@@ -654,6 +699,7 @@ module Network.Google.Analytics
654699 , gdColumnHeaders
655700 , gdId
656701 , gdTotalResults
702+ , gdDataLastRefreshed
657703 , gdDataTable
658704 , gdContainsSampledData
659705 , gdTotalsForAllResults
@@ -693,6 +739,20 @@ module Network.Google.Analytics
693739 , wprInternalWebPropertyId
694740 , wprId
695741
742+ -- ** LinkedForeignAccount
743+ , LinkedForeignAccount
744+ , linkedForeignAccount
745+ , lfaStatus
746+ , lfaWebPropertyId
747+ , lfaKind
748+ , lfaEligibleForSearch
749+ , lfaAccountId
750+ , lfaRemarketingAudienceId
751+ , lfaLinkedAccountId
752+ , lfaInternalWebPropertyId
753+ , lfaId
754+ , lfaType
755+
696756 -- ** Goals
697757 , Goals
698758 , goals
@@ -854,6 +914,15 @@ module Network.Google.Analytics
854914 , cdsclHref
855915 , cdsclType
856916
917+ -- ** IncludeConditions
918+ , IncludeConditions
919+ , includeConditions
920+ , icKind
921+ , icDaysToLookBack
922+ , icMembershipDurationDays
923+ , icSegment
924+ , icIsSmartList
925+
857926 -- ** FilterParentLink
858927 , FilterParentLink
859928 , filterParentLink
@@ -1107,6 +1176,12 @@ module Network.Google.Analytics
11071176 , entityAdWordsLinkEntity
11081177 , eawleWebPropertyRef
11091178
1179+ -- ** RemarketingAudienceStateBasedAudienceDefinition
1180+ , RemarketingAudienceStateBasedAudienceDefinition
1181+ , remarketingAudienceStateBasedAudienceDefinition
1182+ , rasbadExcludeConditions
1183+ , rasbadIncludeConditions
1184+
11101185 -- ** GoalURLDestinationDetails
11111186 , GoalURLDestinationDetails
11121187 , goalURLDestinationDetails
@@ -1215,6 +1290,11 @@ module Network.Google.Analytics
12151290 , ccAttributes
12161291 , ccId
12171292
1293+ -- ** RemarketingAudienceAudienceDefinition
1294+ , RemarketingAudienceAudienceDefinition
1295+ , remarketingAudienceAudienceDefinition
1296+ , raadIncludeConditions
1297+
12181298 -- ** GaDataDataTableColsItem
12191299 , GaDataDataTableColsItem
12201300 , gaDataDataTableColsItem
@@ -1231,6 +1311,12 @@ module Network.Google.Analytics
12311311 , eviWon
12321312 , eviName
12331313
1314+ -- ** RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
1315+ , RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
1316+ , remarketingAudienceStateBasedAudienceDefinitionExcludeConditions
1317+ , rasbadecExclusionDuration
1318+ , rasbadecSegment
1319+
12341320 -- ** McfDataTotalsForAllResults
12351321 , McfDataTotalsForAllResults
12361322 , mcfDataTotalsForAllResults
@@ -1322,6 +1408,11 @@ import Network.Google.Resource.Analytics.Management.ProFileUserLinks.D
13221408import Network.Google.Resource.Analytics.Management.ProFileUserLinks.Insert
13231409import Network.Google.Resource.Analytics.Management.ProFileUserLinks.List
13241410import Network.Google.Resource.Analytics.Management.ProFileUserLinks.Update
1411+import Network.Google.Resource.Analytics.Management.RemarketingAudience.Get
1412+import Network.Google.Resource.Analytics.Management.RemarketingAudience.Insert
1413+import Network.Google.Resource.Analytics.Management.RemarketingAudience.List
1414+import Network.Google.Resource.Analytics.Management.RemarketingAudience.Patch
1415+import Network.Google.Resource.Analytics.Management.RemarketingAudience.Update
13251416import Network.Google.Resource.Analytics.Management.Segments.List
13261417import Network.Google.Resource.Analytics.Management.UnSampledReports.Delete
13271418import Network.Google.Resource.Analytics.Management.UnSampledReports.Get
@@ -1367,6 +1458,11 @@ type AnalyticsAPI =
13671458 :<|> ManagementUnSampledReportsListResource
13681459 :<|> ManagementUnSampledReportsGetResource
13691460 :<|> ManagementUnSampledReportsDeleteResource
1461+ :<|> ManagementRemarketingAudienceInsertResource
1462+ :<|> ManagementRemarketingAudienceListResource
1463+ :<|> ManagementRemarketingAudiencePatchResource
1464+ :<|> ManagementRemarketingAudienceGetResource
1465+ :<|> ManagementRemarketingAudienceUpdateResource
13701466 :<|> ManagementAccountsListResource
13711467 :<|> ManagementExperimentsInsertResource
13721468 :<|> ManagementExperimentsListResource
gogol-analytics/gen/Network/Google/Analytics/Types.hs+71
@@ -61,6 +61,18 @@ module Network.Google.Analytics.Types
6161 , gdqSegment
6262 , gdqStartDate
6363
64+ -- * RemarketingAudiences
65+ , RemarketingAudiences
66+ , remarketingAudiences
67+ , raNextLink
68+ , raItemsPerPage
69+ , raKind
70+ , raUsername
71+ , raItems
72+ , raTotalResults
73+ , raStartIndex
74+ , raPreviousLink
75+
6476 -- * GaDataDataTableRowsItem
6577 , GaDataDataTableRowsItem
6678 , gaDataDataTableRowsItem
@@ -107,6 +119,24 @@ module Network.Google.Analytics.Types
107119 , pfplHref
108120 , pfplType
109121
122+ -- * RemarketingAudience
123+ , RemarketingAudience
124+ , remarketingAudience
125+ , rWebPropertyId
126+ , rKind
127+ , rCreated
128+ , rLinkedAdAccounts
129+ , rAudienceDefinition
130+ , rAudienceType
131+ , rAccountId
132+ , rName
133+ , rStateBasedAudienceDefinition
134+ , rLinkedViews
135+ , rInternalWebPropertyId
136+ , rId
137+ , rUpdated
138+ , rDescription
139+
110140 -- * GaDataDataTableRowsItemCItem
111141 , GaDataDataTableRowsItemCItem
112142 , gaDataDataTableRowsItemCItem
@@ -408,6 +438,7 @@ module Network.Google.Analytics.Types
408438 , gdColumnHeaders
409439 , gdId
410440 , gdTotalResults
441+ , gdDataLastRefreshed
411442 , gdDataTable
412443 , gdContainsSampledData
413444 , gdTotalsForAllResults
@@ -447,6 +478,20 @@ module Network.Google.Analytics.Types
447478 , wprInternalWebPropertyId
448479 , wprId
449480
481+ -- * LinkedForeignAccount
482+ , LinkedForeignAccount
483+ , linkedForeignAccount
484+ , lfaStatus
485+ , lfaWebPropertyId
486+ , lfaKind
487+ , lfaEligibleForSearch
488+ , lfaAccountId
489+ , lfaRemarketingAudienceId
490+ , lfaLinkedAccountId
491+ , lfaInternalWebPropertyId
492+ , lfaId
493+ , lfaType
494+
450495 -- * Goals
451496 , Goals
452497 , goals
@@ -608,6 +653,15 @@ module Network.Google.Analytics.Types
608653 , cdsclHref
609654 , cdsclType
610655
656+ -- * IncludeConditions
657+ , IncludeConditions
658+ , includeConditions
659+ , icKind
660+ , icDaysToLookBack
661+ , icMembershipDurationDays
662+ , icSegment
663+ , icIsSmartList
664+
611665 -- * FilterParentLink
612666 , FilterParentLink
613667 , filterParentLink
@@ -861,6 +915,12 @@ module Network.Google.Analytics.Types
861915 , entityAdWordsLinkEntity
862916 , eawleWebPropertyRef
863917
918+ -- * RemarketingAudienceStateBasedAudienceDefinition
919+ , RemarketingAudienceStateBasedAudienceDefinition
920+ , remarketingAudienceStateBasedAudienceDefinition
921+ , rasbadExcludeConditions
922+ , rasbadIncludeConditions
923+
864924 -- * GoalURLDestinationDetails
865925 , GoalURLDestinationDetails
866926 , goalURLDestinationDetails
@@ -969,6 +1029,11 @@ module Network.Google.Analytics.Types
9691029 , ccAttributes
9701030 , ccId
9711031
1032+ -- * RemarketingAudienceAudienceDefinition
1033+ , RemarketingAudienceAudienceDefinition
1034+ , remarketingAudienceAudienceDefinition
1035+ , raadIncludeConditions
1036+
9721037 -- * GaDataDataTableColsItem
9731038 , GaDataDataTableColsItem
9741039 , gaDataDataTableColsItem
@@ -985,6 +1050,12 @@ module Network.Google.Analytics.Types
9851050 , eviWon
9861051 , eviName
9871052
1053+ -- * RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
1054+ , RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
1055+ , remarketingAudienceStateBasedAudienceDefinitionExcludeConditions
1056+ , rasbadecExclusionDuration
1057+ , rasbadecSegment
1058+
9881059 -- * McfDataTotalsForAllResults
9891060 , McfDataTotalsForAllResults
9901061 , mcfDataTotalsForAllResults
gogol-analytics/gen/Network/Google/Analytics/Types/Product.hs+733−4
@@ -364,6 +364,132 @@ instance ToJSON GaDataQuery where
364364 ("segment" .=) <$> _gdqSegment,
365365 ("start-date" .=) <$> _gdqStartDate])
366366
367+-- | A remarketing audience collection lists Analytics remarketing audiences
368+-- to which the user has access. Each resource in the collection
369+-- corresponds to a single Analytics remarketing audience.
370+--
371+-- /See:/ 'remarketingAudiences' smart constructor.
372+data RemarketingAudiences = RemarketingAudiences'
373+ { _raNextLink :: !(Maybe Text)
374+ , _raItemsPerPage :: !(Maybe (Textual Int32))
375+ , _raKind :: !Text
376+ , _raUsername :: !(Maybe Text)
377+ , _raItems :: !(Maybe [RemarketingAudience])
378+ , _raTotalResults :: !(Maybe (Textual Int32))
379+ , _raStartIndex :: !(Maybe (Textual Int32))
380+ , _raPreviousLink :: !(Maybe Text)
381+ } deriving (Eq,Show,Data,Typeable,Generic)
382+
383+-- | Creates a value of 'RemarketingAudiences' with the minimum fields required to make a request.
384+--
385+-- Use one of the following lenses to modify other fields as desired:
386+--
387+-- * 'raNextLink'
388+--
389+-- * 'raItemsPerPage'
390+--
391+-- * 'raKind'
392+--
393+-- * 'raUsername'
394+--
395+-- * 'raItems'
396+--
397+-- * 'raTotalResults'
398+--
399+-- * 'raStartIndex'
400+--
401+-- * 'raPreviousLink'
402+remarketingAudiences
403+ :: RemarketingAudiences
404+remarketingAudiences =
405+ RemarketingAudiences'
406+ { _raNextLink = Nothing
407+ , _raItemsPerPage = Nothing
408+ , _raKind = "analytics#remarketingAudiences"
409+ , _raUsername = Nothing
410+ , _raItems = Nothing
411+ , _raTotalResults = Nothing
412+ , _raStartIndex = Nothing
413+ , _raPreviousLink = Nothing
414+ }
415+
416+-- | Link to next page for this remarketing audience collection.
417+raNextLink :: Lens' RemarketingAudiences (Maybe Text)
418+raNextLink
419+ = lens _raNextLink (\ s a -> s{_raNextLink = a})
420+
421+-- | The maximum number of resources the response can contain, regardless of
422+-- the actual number of resources returned. Its value ranges from 1 to 1000
423+-- with a value of 1000 by default, or otherwise specified by the
424+-- max-results query parameter.
425+raItemsPerPage :: Lens' RemarketingAudiences (Maybe Int32)
426+raItemsPerPage
427+ = lens _raItemsPerPage
428+ (\ s a -> s{_raItemsPerPage = a})
429+ . mapping _Coerce
430+
431+-- | Collection type.
432+raKind :: Lens' RemarketingAudiences Text
433+raKind = lens _raKind (\ s a -> s{_raKind = a})
434+
435+-- | Email ID of the authenticated user
436+raUsername :: Lens' RemarketingAudiences (Maybe Text)
437+raUsername
438+ = lens _raUsername (\ s a -> s{_raUsername = a})
439+
440+-- | A list of remarketing audiences.
441+raItems :: Lens' RemarketingAudiences [RemarketingAudience]
442+raItems
443+ = lens _raItems (\ s a -> s{_raItems = a}) . _Default
444+ . _Coerce
445+
446+-- | The total number of results for the query, regardless of the number of
447+-- results in the response.
448+raTotalResults :: Lens' RemarketingAudiences (Maybe Int32)
449+raTotalResults
450+ = lens _raTotalResults
451+ (\ s a -> s{_raTotalResults = a})
452+ . mapping _Coerce
453+
454+-- | The starting index of the resources, which is 1 by default or otherwise
455+-- specified by the start-index query parameter.
456+raStartIndex :: Lens' RemarketingAudiences (Maybe Int32)
457+raStartIndex
458+ = lens _raStartIndex (\ s a -> s{_raStartIndex = a})
459+ . mapping _Coerce
460+
461+-- | Link to previous page for this view (profile) collection.
462+raPreviousLink :: Lens' RemarketingAudiences (Maybe Text)
463+raPreviousLink
464+ = lens _raPreviousLink
465+ (\ s a -> s{_raPreviousLink = a})
466+
467+instance FromJSON RemarketingAudiences where
468+ parseJSON
469+ = withObject "RemarketingAudiences"
470+ (\ o ->
471+ RemarketingAudiences' <$>
472+ (o .:? "nextLink") <*> (o .:? "itemsPerPage") <*>
473+ (o .:? "kind" .!= "analytics#remarketingAudiences")
474+ <*> (o .:? "username")
475+ <*> (o .:? "items" .!= mempty)
476+ <*> (o .:? "totalResults")
477+ <*> (o .:? "startIndex")
478+ <*> (o .:? "previousLink"))
479+
480+instance ToJSON RemarketingAudiences where
481+ toJSON RemarketingAudiences'{..}
482+ = object
483+ (catMaybes
484+ [("nextLink" .=) <$> _raNextLink,
485+ ("itemsPerPage" .=) <$> _raItemsPerPage,
486+ Just ("kind" .= _raKind),
487+ ("username" .=) <$> _raUsername,
488+ ("items" .=) <$> _raItems,
489+ ("totalResults" .=) <$> _raTotalResults,
490+ ("startIndex" .=) <$> _raStartIndex,
491+ ("previousLink" .=) <$> _raPreviousLink])
492+
367493--
368494-- /See:/ 'gaDataDataTableRowsItem' smart constructor.
369495newtype GaDataDataTableRowsItem = GaDataDataTableRowsItem'
@@ -488,7 +614,11 @@ unSampledReport =
488614 , _uStartDate = Nothing
489615 }
490616
491−-- | The type of download you need to use for the report data file.
617+-- | The type of download you need to use for the report data file. Possible
618+-- values include \`GOOGLE_DRIVE\` and \`GOOGLE_CLOUD_STORAGE\`. If the
619+-- value is \`GOOGLE_DRIVE\`, see the \`driveDownloadDetails\` field. If
620+-- the value is \`GOOGLE_CLOUD_STORAGE\`, see the
621+-- \`cloudStorageDownloadDetails\` field.
492622uDownloadType :: Lens' UnSampledReport (Maybe Text)
493623uDownloadType
494624 = lens _uDownloadType
@@ -778,6 +908,201 @@ instance ToJSON ProFileParentLink where
778908 [("href" .=) <$> _pfplHref,
779909 Just ("type" .= _pfplType)])
780910
911+-- | JSON template for an Analytics remarketing audience.
912+--
913+-- /See:/ 'remarketingAudience' smart constructor.
914+data RemarketingAudience = RemarketingAudience'
915+ { _rWebPropertyId :: !(Maybe Text)
916+ , _rKind :: !Text
917+ , _rCreated :: !(Maybe DateTime')
918+ , _rLinkedAdAccounts :: !(Maybe [LinkedForeignAccount])
919+ , _rAudienceDefinition :: !(Maybe RemarketingAudienceAudienceDefinition)
920+ , _rAudienceType :: !(Maybe Text)
921+ , _rAccountId :: !(Maybe Text)
922+ , _rName :: !(Maybe Text)
923+ , _rStateBasedAudienceDefinition :: !(Maybe RemarketingAudienceStateBasedAudienceDefinition)
924+ , _rLinkedViews :: !(Maybe [Text])
925+ , _rInternalWebPropertyId :: !(Maybe Text)
926+ , _rId :: !(Maybe Text)
927+ , _rUpdated :: !(Maybe DateTime')
928+ , _rDescription :: !(Maybe Text)
929+ } deriving (Eq,Show,Data,Typeable,Generic)
930+
931+-- | Creates a value of 'RemarketingAudience' with the minimum fields required to make a request.
932+--
933+-- Use one of the following lenses to modify other fields as desired:
934+--
935+-- * 'rWebPropertyId'
936+--
937+-- * 'rKind'
938+--
939+-- * 'rCreated'
940+--
941+-- * 'rLinkedAdAccounts'
942+--
943+-- * 'rAudienceDefinition'
944+--
945+-- * 'rAudienceType'
946+--
947+-- * 'rAccountId'
948+--
949+-- * 'rName'
950+--
951+-- * 'rStateBasedAudienceDefinition'
952+--
953+-- * 'rLinkedViews'
954+--
955+-- * 'rInternalWebPropertyId'
956+--
957+-- * 'rId'
958+--
959+-- * 'rUpdated'
960+--
961+-- * 'rDescription'
962+remarketingAudience
963+ :: RemarketingAudience
964+remarketingAudience =
965+ RemarketingAudience'
966+ { _rWebPropertyId = Nothing
967+ , _rKind = "analytics#remarketingAudience"
968+ , _rCreated = Nothing
969+ , _rLinkedAdAccounts = Nothing
970+ , _rAudienceDefinition = Nothing
971+ , _rAudienceType = Nothing
972+ , _rAccountId = Nothing
973+ , _rName = Nothing
974+ , _rStateBasedAudienceDefinition = Nothing
975+ , _rLinkedViews = Nothing
976+ , _rInternalWebPropertyId = Nothing
977+ , _rId = Nothing
978+ , _rUpdated = Nothing
979+ , _rDescription = Nothing
980+ }
981+
982+-- | Web property ID of the form UA-XXXXX-YY to which this remarketing
983+-- audience belongs.
984+rWebPropertyId :: Lens' RemarketingAudience (Maybe Text)
985+rWebPropertyId
986+ = lens _rWebPropertyId
987+ (\ s a -> s{_rWebPropertyId = a})
988+
989+-- | Collection type.
990+rKind :: Lens' RemarketingAudience Text
991+rKind = lens _rKind (\ s a -> s{_rKind = a})
992+
993+-- | Time this remarketing audience was created.
994+rCreated :: Lens' RemarketingAudience (Maybe UTCTime)
995+rCreated
996+ = lens _rCreated (\ s a -> s{_rCreated = a}) .
997+ mapping _DateTime
998+
999+-- | The linked ad accounts associated with this remarketing audience. A
1000+-- remarketing audience can have only one linkedAdAccount currently.
1001+rLinkedAdAccounts :: Lens' RemarketingAudience [LinkedForeignAccount]
1002+rLinkedAdAccounts
1003+ = lens _rLinkedAdAccounts
1004+ (\ s a -> s{_rLinkedAdAccounts = a})
1005+ . _Default
1006+ . _Coerce
1007+
1008+-- | The simple audience definition that will cause a user to be added to an
1009+-- audience.
1010+rAudienceDefinition :: Lens' RemarketingAudience (Maybe RemarketingAudienceAudienceDefinition)
1011+rAudienceDefinition
1012+ = lens _rAudienceDefinition
1013+ (\ s a -> s{_rAudienceDefinition = a})
1014+
1015+-- | The type of audience, either SIMPLE or STATE_BASED.
1016+rAudienceType :: Lens' RemarketingAudience (Maybe Text)
1017+rAudienceType
1018+ = lens _rAudienceType
1019+ (\ s a -> s{_rAudienceType = a})
1020+
1021+-- | Account ID to which this remarketing audience belongs.
1022+rAccountId :: Lens' RemarketingAudience (Maybe Text)
1023+rAccountId
1024+ = lens _rAccountId (\ s a -> s{_rAccountId = a})
1025+
1026+-- | The name of this remarketing audience.
1027+rName :: Lens' RemarketingAudience (Maybe Text)
1028+rName = lens _rName (\ s a -> s{_rName = a})
1029+
1030+-- | A state based audience definition that will cause a user to be added or
1031+-- removed from an audience.
1032+rStateBasedAudienceDefinition :: Lens' RemarketingAudience (Maybe RemarketingAudienceStateBasedAudienceDefinition)
1033+rStateBasedAudienceDefinition
1034+ = lens _rStateBasedAudienceDefinition
1035+ (\ s a -> s{_rStateBasedAudienceDefinition = a})
1036+
1037+-- | The views (profiles) that this remarketing audience is linked to.
1038+rLinkedViews :: Lens' RemarketingAudience [Text]
1039+rLinkedViews
1040+ = lens _rLinkedViews (\ s a -> s{_rLinkedViews = a})
1041+ . _Default
1042+ . _Coerce
1043+
1044+-- | Internal ID for the web property to which this remarketing audience
1045+-- belongs.
1046+rInternalWebPropertyId :: Lens' RemarketingAudience (Maybe Text)
1047+rInternalWebPropertyId
1048+ = lens _rInternalWebPropertyId
1049+ (\ s a -> s{_rInternalWebPropertyId = a})
1050+
1051+-- | Remarketing Audience ID.
1052+rId :: Lens' RemarketingAudience (Maybe Text)
1053+rId = lens _rId (\ s a -> s{_rId = a})
1054+
1055+-- | Time this remarketing audience was last modified.
1056+rUpdated :: Lens' RemarketingAudience (Maybe UTCTime)
1057+rUpdated
1058+ = lens _rUpdated (\ s a -> s{_rUpdated = a}) .
1059+ mapping _DateTime
1060+
1061+-- | The description of this remarketing audience.
1062+rDescription :: Lens' RemarketingAudience (Maybe Text)
1063+rDescription
1064+ = lens _rDescription (\ s a -> s{_rDescription = a})
1065+
1066+instance FromJSON RemarketingAudience where
1067+ parseJSON
1068+ = withObject "RemarketingAudience"
1069+ (\ o ->
1070+ RemarketingAudience' <$>
1071+ (o .:? "webPropertyId") <*>
1072+ (o .:? "kind" .!= "analytics#remarketingAudience")
1073+ <*> (o .:? "created")
1074+ <*> (o .:? "linkedAdAccounts" .!= mempty)
1075+ <*> (o .:? "audienceDefinition")
1076+ <*> (o .:? "audienceType")
1077+ <*> (o .:? "accountId")
1078+ <*> (o .:? "name")
1079+ <*> (o .:? "stateBasedAudienceDefinition")
1080+ <*> (o .:? "linkedViews" .!= mempty)
1081+ <*> (o .:? "internalWebPropertyId")
1082+ <*> (o .:? "id")
1083+ <*> (o .:? "updated")
1084+ <*> (o .:? "description"))
1085+
1086+instance ToJSON RemarketingAudience where
1087+ toJSON RemarketingAudience'{..}
1088+ = object
1089+ (catMaybes
1090+ [("webPropertyId" .=) <$> _rWebPropertyId,
1091+ Just ("kind" .= _rKind),
1092+ ("created" .=) <$> _rCreated,
1093+ ("linkedAdAccounts" .=) <$> _rLinkedAdAccounts,
1094+ ("audienceDefinition" .=) <$> _rAudienceDefinition,
1095+ ("audienceType" .=) <$> _rAudienceType,
1096+ ("accountId" .=) <$> _rAccountId,
1097+ ("name" .=) <$> _rName,
1098+ ("stateBasedAudienceDefinition" .=) <$>
1099+ _rStateBasedAudienceDefinition,
1100+ ("linkedViews" .=) <$> _rLinkedViews,
1101+ ("internalWebPropertyId" .=) <$>
1102+ _rInternalWebPropertyId,
1103+ ("id" .=) <$> _rId, ("updated" .=) <$> _rUpdated,
1104+ ("description" .=) <$> _rDescription])
1105+
7811106--
7821107-- /See:/ 'gaDataDataTableRowsItemCItem' smart constructor.
7831108newtype GaDataDataTableRowsItemCItem = GaDataDataTableRowsItemCItem'
@@ -3016,9 +3341,10 @@ pName :: Lens' ProFile (Maybe Text)
30163341pName = lens _pName (\ s a -> s{_pName = a})
30173342
30183343-- | The currency type associated with this view (profile), defaults to USD.
3019−-- The supported values are: ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK,
3020−-- EUR, GBP, HKD, HUF, IDR, INR, JPY, KRW, LTL, MXN, NOK, NZD, PHP, PLN,
3021−-- RUB, SEK, THB, TRY, TWD, USD, VND, ZAR
3344+-- The supported values are: USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK,
3345+-- RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR,
3346+-- CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP,
3347+-- HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
30223348pCurrency :: Lens' ProFile (Maybe Text)
30233349pCurrency
30243350 = lens _pCurrency (\ s a -> s{_pCurrency = a})
@@ -3594,6 +3920,7 @@ data GaData = GaData'
35943920 , _gdColumnHeaders :: !(Maybe [GaDataColumnHeadersItem])
35953921 , _gdId :: !(Maybe Text)
35963922 , _gdTotalResults :: !(Maybe (Textual Int32))
3923+ , _gdDataLastRefreshed :: !(Maybe (Textual Int64))
35973924 , _gdDataTable :: !(Maybe GaDataDataTable)
35983925 , _gdContainsSampledData :: !(Maybe Bool)
35993926 , _gdTotalsForAllResults :: !(Maybe GaDataTotalsForAllResults)
@@ -3628,6 +3955,8 @@ data GaData = GaData'
36283955--
36293956-- * 'gdTotalResults'
36303957--
3958+-- * 'gdDataLastRefreshed'
3959+--
36313960-- * 'gdDataTable'
36323961--
36333962-- * 'gdContainsSampledData'
@@ -3651,6 +3980,7 @@ gaData =
36513980 , _gdColumnHeaders = Nothing
36523981 , _gdId = Nothing
36533982 , _gdTotalResults = Nothing
3983+ , _gdDataLastRefreshed = Nothing
36543984 , _gdDataTable = Nothing
36553985 , _gdContainsSampledData = Nothing
36563986 , _gdTotalsForAllResults = Nothing
@@ -3734,6 +4064,13 @@ gdTotalResults
37344064 (\ s a -> s{_gdTotalResults = a})
37354065 . mapping _Coerce
37364066
4067+-- | The last refreshed time in seconds for Analytics data.
4068+gdDataLastRefreshed :: Lens' GaData (Maybe Int64)
4069+gdDataLastRefreshed
4070+ = lens _gdDataLastRefreshed
4071+ (\ s a -> s{_gdDataLastRefreshed = a})
4072+ . mapping _Coerce
4073+
37374074gdDataTable :: Lens' GaData (Maybe GaDataDataTable)
37384075gdDataTable
37394076 = lens _gdDataTable (\ s a -> s{_gdDataTable = a})
@@ -3774,6 +4111,7 @@ instance FromJSON GaData where
37744111 <*> (o .:? "columnHeaders" .!= mempty)
37754112 <*> (o .:? "id")
37764113 <*> (o .:? "totalResults")
4114+ <*> (o .:? "dataLastRefreshed")
37774115 <*> (o .:? "dataTable")
37784116 <*> (o .:? "containsSampledData")
37794117 <*> (o .:? "totalsForAllResults")
@@ -3795,6 +4133,7 @@ instance ToJSON GaData where
37954133 ("columnHeaders" .=) <$> _gdColumnHeaders,
37964134 ("id" .=) <$> _gdId,
37974135 ("totalResults" .=) <$> _gdTotalResults,
4136+ ("dataLastRefreshed" .=) <$> _gdDataLastRefreshed,
37984137 ("dataTable" .=) <$> _gdDataTable,
37994138 ("containsSampledData" .=) <$>
38004139 _gdContainsSampledData,
@@ -4122,6 +4461,147 @@ instance ToJSON WebPropertyRef where
41224461 _wprInternalWebPropertyId,
41234462 ("id" .=) <$> _wprId])
41244463
4464+-- | JSON template for an Analytics Remarketing Audience Foreign Link.
4465+--
4466+-- /See:/ 'linkedForeignAccount' smart constructor.
4467+data LinkedForeignAccount = LinkedForeignAccount'
4468+ { _lfaStatus :: !(Maybe Text)
4469+ , _lfaWebPropertyId :: !(Maybe Text)
4470+ , _lfaKind :: !Text
4471+ , _lfaEligibleForSearch :: !(Maybe Bool)
4472+ , _lfaAccountId :: !(Maybe Text)
4473+ , _lfaRemarketingAudienceId :: !(Maybe Text)
4474+ , _lfaLinkedAccountId :: !(Maybe Text)
4475+ , _lfaInternalWebPropertyId :: !(Maybe Text)
4476+ , _lfaId :: !(Maybe Text)
4477+ , _lfaType :: !(Maybe Text)
4478+ } deriving (Eq,Show,Data,Typeable,Generic)
4479+
4480+-- | Creates a value of 'LinkedForeignAccount' with the minimum fields required to make a request.
4481+--
4482+-- Use one of the following lenses to modify other fields as desired:
4483+--
4484+-- * 'lfaStatus'
4485+--
4486+-- * 'lfaWebPropertyId'
4487+--
4488+-- * 'lfaKind'
4489+--
4490+-- * 'lfaEligibleForSearch'
4491+--
4492+-- * 'lfaAccountId'
4493+--
4494+-- * 'lfaRemarketingAudienceId'
4495+--
4496+-- * 'lfaLinkedAccountId'
4497+--
4498+-- * 'lfaInternalWebPropertyId'
4499+--
4500+-- * 'lfaId'
4501+--
4502+-- * 'lfaType'
4503+linkedForeignAccount
4504+ :: LinkedForeignAccount
4505+linkedForeignAccount =
4506+ LinkedForeignAccount'
4507+ { _lfaStatus = Nothing
4508+ , _lfaWebPropertyId = Nothing
4509+ , _lfaKind = "analytics#linkedForeignAccount"
4510+ , _lfaEligibleForSearch = Nothing
4511+ , _lfaAccountId = Nothing
4512+ , _lfaRemarketingAudienceId = Nothing
4513+ , _lfaLinkedAccountId = Nothing
4514+ , _lfaInternalWebPropertyId = Nothing
4515+ , _lfaId = Nothing
4516+ , _lfaType = Nothing
4517+ }
4518+
4519+-- | The status of this foreign account link.
4520+lfaStatus :: Lens' LinkedForeignAccount (Maybe Text)
4521+lfaStatus
4522+ = lens _lfaStatus (\ s a -> s{_lfaStatus = a})
4523+
4524+-- | Web property ID of the form UA-XXXXX-YY to which this linked foreign
4525+-- account belongs.
4526+lfaWebPropertyId :: Lens' LinkedForeignAccount (Maybe Text)
4527+lfaWebPropertyId
4528+ = lens _lfaWebPropertyId
4529+ (\ s a -> s{_lfaWebPropertyId = a})
4530+
4531+-- | Resource type for linked foreign account.
4532+lfaKind :: Lens' LinkedForeignAccount Text
4533+lfaKind = lens _lfaKind (\ s a -> s{_lfaKind = a})
4534+
4535+-- | Boolean indicating whether this is eligible for search.
4536+lfaEligibleForSearch :: Lens' LinkedForeignAccount (Maybe Bool)
4537+lfaEligibleForSearch
4538+ = lens _lfaEligibleForSearch
4539+ (\ s a -> s{_lfaEligibleForSearch = a})
4540+
4541+-- | Account ID to which this linked foreign account belongs.
4542+lfaAccountId :: Lens' LinkedForeignAccount (Maybe Text)
4543+lfaAccountId
4544+ = lens _lfaAccountId (\ s a -> s{_lfaAccountId = a})
4545+
4546+-- | Remarketing audience ID to which this linked foreign account belongs.
4547+lfaRemarketingAudienceId :: Lens' LinkedForeignAccount (Maybe Text)
4548+lfaRemarketingAudienceId
4549+ = lens _lfaRemarketingAudienceId
4550+ (\ s a -> s{_lfaRemarketingAudienceId = a})
4551+
4552+-- | The foreign account ID. For example the an AdWords \`linkedAccountId\`
4553+-- has the following format XXX-XXX-XXXX.
4554+lfaLinkedAccountId :: Lens' LinkedForeignAccount (Maybe Text)
4555+lfaLinkedAccountId
4556+ = lens _lfaLinkedAccountId
4557+ (\ s a -> s{_lfaLinkedAccountId = a})
4558+
4559+-- | Internal ID for the web property to which this linked foreign account
4560+-- belongs.
4561+lfaInternalWebPropertyId :: Lens' LinkedForeignAccount (Maybe Text)
4562+lfaInternalWebPropertyId
4563+ = lens _lfaInternalWebPropertyId
4564+ (\ s a -> s{_lfaInternalWebPropertyId = a})
4565+
4566+-- | Entity ad account link ID.
4567+lfaId :: Lens' LinkedForeignAccount (Maybe Text)
4568+lfaId = lens _lfaId (\ s a -> s{_lfaId = a})
4569+
4570+-- | The type of the foreign account. For example \`ADWORDS_LINKS\`.
4571+lfaType :: Lens' LinkedForeignAccount (Maybe Text)
4572+lfaType = lens _lfaType (\ s a -> s{_lfaType = a})
4573+
4574+instance FromJSON LinkedForeignAccount where
4575+ parseJSON
4576+ = withObject "LinkedForeignAccount"
4577+ (\ o ->
4578+ LinkedForeignAccount' <$>
4579+ (o .:? "status") <*> (o .:? "webPropertyId") <*>
4580+ (o .:? "kind" .!= "analytics#linkedForeignAccount")
4581+ <*> (o .:? "eligibleForSearch")
4582+ <*> (o .:? "accountId")
4583+ <*> (o .:? "remarketingAudienceId")
4584+ <*> (o .:? "linkedAccountId")
4585+ <*> (o .:? "internalWebPropertyId")
4586+ <*> (o .:? "id")
4587+ <*> (o .:? "type"))
4588+
4589+instance ToJSON LinkedForeignAccount where
4590+ toJSON LinkedForeignAccount'{..}
4591+ = object
4592+ (catMaybes
4593+ [("status" .=) <$> _lfaStatus,
4594+ ("webPropertyId" .=) <$> _lfaWebPropertyId,
4595+ Just ("kind" .= _lfaKind),
4596+ ("eligibleForSearch" .=) <$> _lfaEligibleForSearch,
4597+ ("accountId" .=) <$> _lfaAccountId,
4598+ ("remarketingAudienceId" .=) <$>
4599+ _lfaRemarketingAudienceId,
4600+ ("linkedAccountId" .=) <$> _lfaLinkedAccountId,
4601+ ("internalWebPropertyId" .=) <$>
4602+ _lfaInternalWebPropertyId,
4603+ ("id" .=) <$> _lfaId, ("type" .=) <$> _lfaType])
4604+
41254605-- | A goal collection lists Analytics goals to which the user has access.
41264606-- Each view (profile) can have a set of goals. Each resource in the Goal
41274607-- collection corresponds to a single Analytics goal.
@@ -5778,6 +6258,98 @@ instance ToJSON CustomDataSourceChildLink where
57786258 [("href" .=) <$> _cdsclHref,
57796259 ("type" .=) <$> _cdsclType])
57806260
6261+-- | JSON template for an Analytics Remarketing Include Conditions.
6262+--
6263+-- /See:/ 'includeConditions' smart constructor.
6264+data IncludeConditions = IncludeConditions'
6265+ { _icKind :: !Text
6266+ , _icDaysToLookBack :: !(Maybe (Textual Int32))
6267+ , _icMembershipDurationDays :: !(Maybe (Textual Int32))
6268+ , _icSegment :: !(Maybe Text)
6269+ , _icIsSmartList :: !(Maybe Bool)
6270+ } deriving (Eq,Show,Data,Typeable,Generic)
6271+
6272+-- | Creates a value of 'IncludeConditions' with the minimum fields required to make a request.
6273+--
6274+-- Use one of the following lenses to modify other fields as desired:
6275+--
6276+-- * 'icKind'
6277+--
6278+-- * 'icDaysToLookBack'
6279+--
6280+-- * 'icMembershipDurationDays'
6281+--
6282+-- * 'icSegment'
6283+--
6284+-- * 'icIsSmartList'
6285+includeConditions
6286+ :: IncludeConditions
6287+includeConditions =
6288+ IncludeConditions'
6289+ { _icKind = "analytics#includeConditions"
6290+ , _icDaysToLookBack = Nothing
6291+ , _icMembershipDurationDays = Nothing
6292+ , _icSegment = Nothing
6293+ , _icIsSmartList = Nothing
6294+ }
6295+
6296+-- | Resource type for include conditions.
6297+icKind :: Lens' IncludeConditions Text
6298+icKind = lens _icKind (\ s a -> s{_icKind = a})
6299+
6300+-- | The look-back window lets you specify a time frame for evaluating the
6301+-- behavior that qualifies users for your audience. For example, if your
6302+-- filters include users from Central Asia, and Transactions Greater than
6303+-- 2, and you set the look-back window to 14 days, then any user from
6304+-- Central Asia whose cumulative transactions exceed 2 during the last 14
6305+-- days is added to the audience.
6306+icDaysToLookBack :: Lens' IncludeConditions (Maybe Int32)
6307+icDaysToLookBack
6308+ = lens _icDaysToLookBack
6309+ (\ s a -> s{_icDaysToLookBack = a})
6310+ . mapping _Coerce
6311+
6312+-- | Number of days (in the range 1 to 540) a user remains in the audience.
6313+icMembershipDurationDays :: Lens' IncludeConditions (Maybe Int32)
6314+icMembershipDurationDays
6315+ = lens _icMembershipDurationDays
6316+ (\ s a -> s{_icMembershipDurationDays = a})
6317+ . mapping _Coerce
6318+
6319+-- | The segment condition that will cause a user to be added to an audience.
6320+icSegment :: Lens' IncludeConditions (Maybe Text)
6321+icSegment
6322+ = lens _icSegment (\ s a -> s{_icSegment = a})
6323+
6324+-- | Boolean indicating whether this segment is a smart list.
6325+-- https:\/\/support.google.com\/analytics\/answer\/4628577
6326+icIsSmartList :: Lens' IncludeConditions (Maybe Bool)
6327+icIsSmartList
6328+ = lens _icIsSmartList
6329+ (\ s a -> s{_icIsSmartList = a})
6330+
6331+instance FromJSON IncludeConditions where
6332+ parseJSON
6333+ = withObject "IncludeConditions"
6334+ (\ o ->
6335+ IncludeConditions' <$>
6336+ (o .:? "kind" .!= "analytics#includeConditions") <*>
6337+ (o .:? "daysToLookBack")
6338+ <*> (o .:? "membershipDurationDays")
6339+ <*> (o .:? "segment")
6340+ <*> (o .:? "isSmartList"))
6341+
6342+instance ToJSON IncludeConditions where
6343+ toJSON IncludeConditions'{..}
6344+ = object
6345+ (catMaybes
6346+ [Just ("kind" .= _icKind),
6347+ ("daysToLookBack" .=) <$> _icDaysToLookBack,
6348+ ("membershipDurationDays" .=) <$>
6349+ _icMembershipDurationDays,
6350+ ("segment" .=) <$> _icSegment,
6351+ ("isSmartList" .=) <$> _icIsSmartList])
6352+
57816353-- | Parent link for this filter. Points to the account to which this filter
57826354-- belongs.
57836355--
@@ -8212,6 +8784,63 @@ instance ToJSON EntityAdWordsLinkEntity where
82128784 (catMaybes
82138785 [("webPropertyRef" .=) <$> _eawleWebPropertyRef])
82148786
8787+-- | A state based audience definition that will cause a user to be added or
8788+-- removed from an audience.
8789+--
8790+-- /See:/ 'remarketingAudienceStateBasedAudienceDefinition' smart constructor.
8791+data RemarketingAudienceStateBasedAudienceDefinition = RemarketingAudienceStateBasedAudienceDefinition'
8792+ { _rasbadExcludeConditions :: !(Maybe RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions)
8793+ , _rasbadIncludeConditions :: !(Maybe IncludeConditions)
8794+ } deriving (Eq,Show,Data,Typeable,Generic)
8795+
8796+-- | Creates a value of 'RemarketingAudienceStateBasedAudienceDefinition' with the minimum fields required to make a request.
8797+--
8798+-- Use one of the following lenses to modify other fields as desired:
8799+--
8800+-- * 'rasbadExcludeConditions'
8801+--
8802+-- * 'rasbadIncludeConditions'
8803+remarketingAudienceStateBasedAudienceDefinition
8804+ :: RemarketingAudienceStateBasedAudienceDefinition
8805+remarketingAudienceStateBasedAudienceDefinition =
8806+ RemarketingAudienceStateBasedAudienceDefinition'
8807+ { _rasbadExcludeConditions = Nothing
8808+ , _rasbadIncludeConditions = Nothing
8809+ }
8810+
8811+-- | Defines the conditions to exclude users from the audience.
8812+rasbadExcludeConditions :: Lens' RemarketingAudienceStateBasedAudienceDefinition (Maybe RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions)
8813+rasbadExcludeConditions
8814+ = lens _rasbadExcludeConditions
8815+ (\ s a -> s{_rasbadExcludeConditions = a})
8816+
8817+-- | Defines the conditions to include users to the audience.
8818+rasbadIncludeConditions :: Lens' RemarketingAudienceStateBasedAudienceDefinition (Maybe IncludeConditions)
8819+rasbadIncludeConditions
8820+ = lens _rasbadIncludeConditions
8821+ (\ s a -> s{_rasbadIncludeConditions = a})
8822+
8823+instance FromJSON
8824+ RemarketingAudienceStateBasedAudienceDefinition where
8825+ parseJSON
8826+ = withObject
8827+ "RemarketingAudienceStateBasedAudienceDefinition"
8828+ (\ o ->
8829+ RemarketingAudienceStateBasedAudienceDefinition' <$>
8830+ (o .:? "excludeConditions") <*>
8831+ (o .:? "includeConditions"))
8832+
8833+instance ToJSON
8834+ RemarketingAudienceStateBasedAudienceDefinition where
8835+ toJSON
8836+ RemarketingAudienceStateBasedAudienceDefinition'{..}
8837+ = object
8838+ (catMaybes
8839+ [("excludeConditions" .=) <$>
8840+ _rasbadExcludeConditions,
8841+ ("includeConditions" .=) <$>
8842+ _rasbadIncludeConditions])
8843+
82158844-- | Details for the goal of the type URL_DESTINATION.
82168845--
82178846-- /See:/ 'goalURLDestinationDetails' smart constructor.
@@ -9197,6 +9826,48 @@ instance ToJSON Column where
91979826 ("attributes" .=) <$> _ccAttributes,
91989827 ("id" .=) <$> _ccId])
91999828
9829+-- | The simple audience definition that will cause a user to be added to an
9830+-- audience.
9831+--
9832+-- /See:/ 'remarketingAudienceAudienceDefinition' smart constructor.
9833+newtype RemarketingAudienceAudienceDefinition = RemarketingAudienceAudienceDefinition'
9834+ { _raadIncludeConditions :: Maybe IncludeConditions
9835+ } deriving (Eq,Show,Data,Typeable,Generic)
9836+
9837+-- | Creates a value of 'RemarketingAudienceAudienceDefinition' with the minimum fields required to make a request.
9838+--
9839+-- Use one of the following lenses to modify other fields as desired:
9840+--
9841+-- * 'raadIncludeConditions'
9842+remarketingAudienceAudienceDefinition
9843+ :: RemarketingAudienceAudienceDefinition
9844+remarketingAudienceAudienceDefinition =
9845+ RemarketingAudienceAudienceDefinition'
9846+ { _raadIncludeConditions = Nothing
9847+ }
9848+
9849+-- | Defines the conditions to include users to the audience.
9850+raadIncludeConditions :: Lens' RemarketingAudienceAudienceDefinition (Maybe IncludeConditions)
9851+raadIncludeConditions
9852+ = lens _raadIncludeConditions
9853+ (\ s a -> s{_raadIncludeConditions = a})
9854+
9855+instance FromJSON
9856+ RemarketingAudienceAudienceDefinition where
9857+ parseJSON
9858+ = withObject "RemarketingAudienceAudienceDefinition"
9859+ (\ o ->
9860+ RemarketingAudienceAudienceDefinition' <$>
9861+ (o .:? "includeConditions"))
9862+
9863+instance ToJSON RemarketingAudienceAudienceDefinition
9864+ where
9865+ toJSON RemarketingAudienceAudienceDefinition'{..}
9866+ = object
9867+ (catMaybes
9868+ [("includeConditions" .=) <$>
9869+ _raadIncludeConditions])
9870+
92009871--
92019872-- /See:/ 'gaDataDataTableColsItem' smart constructor.
92029873data GaDataDataTableColsItem = GaDataDataTableColsItem'
@@ -9332,6 +10003,64 @@ instance ToJSON ExperimentVariationsItem where
933210003 ("weight" .=) <$> _eviWeight, ("url" .=) <$> _eviURL,
933310004 ("won" .=) <$> _eviWon, ("name" .=) <$> _eviName])
933410005
10006+-- | Defines the conditions to exclude users from the audience.
10007+--
10008+-- /See:/ 'remarketingAudienceStateBasedAudienceDefinitionExcludeConditions' smart constructor.
10009+data RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions = RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions'
10010+ { _rasbadecExclusionDuration :: !(Maybe Text)
10011+ , _rasbadecSegment :: !(Maybe Text)
10012+ } deriving (Eq,Show,Data,Typeable,Generic)
10013+
10014+-- | Creates a value of 'RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions' with the minimum fields required to make a request.
10015+--
10016+-- Use one of the following lenses to modify other fields as desired:
10017+--
10018+-- * 'rasbadecExclusionDuration'
10019+--
10020+-- * 'rasbadecSegment'
10021+remarketingAudienceStateBasedAudienceDefinitionExcludeConditions
10022+ :: RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
10023+remarketingAudienceStateBasedAudienceDefinitionExcludeConditions =
10024+ RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions'
10025+ { _rasbadecExclusionDuration = Nothing
10026+ , _rasbadecSegment = Nothing
10027+ }
10028+
10029+-- | Whether to make the exclusion TEMPORARY or PERMANENT.
10030+rasbadecExclusionDuration :: Lens' RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions (Maybe Text)
10031+rasbadecExclusionDuration
10032+ = lens _rasbadecExclusionDuration
10033+ (\ s a -> s{_rasbadecExclusionDuration = a})
10034+
10035+-- | The segment condition that will cause a user to be removed from an
10036+-- audience.
10037+rasbadecSegment :: Lens' RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions (Maybe Text)
10038+rasbadecSegment
10039+ = lens _rasbadecSegment
10040+ (\ s a -> s{_rasbadecSegment = a})
10041+
10042+instance FromJSON
10043+ RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
10044+ where
10045+ parseJSON
10046+ = withObject
10047+ "RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions"
10048+ (\ o ->
10049+ RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions'
10050+ <$>
10051+ (o .:? "exclusionDuration") <*> (o .:? "segment"))
10052+
10053+instance ToJSON
10054+ RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
10055+ where
10056+ toJSON
10057+ RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions'{..}
10058+ = object
10059+ (catMaybes
10060+ [("exclusionDuration" .=) <$>
10061+ _rasbadecExclusionDuration,
10062+ ("segment" .=) <$> _rasbadecSegment])
10063+
933510064-- | Total values for the requested metrics over all the results, not just
933610065-- the results returned in this response. The order of the metric totals is
933710066-- same as the metric order specified in the request.
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/Get.hsnew file+123
@@ -0,0 +1,123 @@
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.Analytics.Management.RemarketingAudience.Get
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 a remarketing audience to which the user has access.
24+--
25+-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.remarketingAudience.get@.
26+module Network.Google.Resource.Analytics.Management.RemarketingAudience.Get
27+ (
28+ -- * REST Resource
29+ ManagementRemarketingAudienceGetResource
30+
31+ -- * Creating a Request
32+ , managementRemarketingAudienceGet
33+ , ManagementRemarketingAudienceGet
34+
35+ -- * Request Lenses
36+ , mragWebPropertyId
37+ , mragAccountId
38+ , mragRemarketingAudienceId
39+ ) where
40+
41+import Network.Google.Analytics.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @analytics.management.remarketingAudience.get@ method which the
45+-- 'ManagementRemarketingAudienceGet' request conforms to.
46+type ManagementRemarketingAudienceGetResource =
47+ "analytics" :>
48+ "v3" :>
49+ "management" :>
50+ "accounts" :>
51+ Capture "accountId" Text :>
52+ "webproperties" :>
53+ Capture "webPropertyId" Text :>
54+ "remarketingAudiences" :>
55+ Capture "remarketingAudienceId" Text :>
56+ QueryParam "alt" AltJSON :>
57+ Get '[JSON] RemarketingAudience
58+
59+-- | Gets a remarketing audience to which the user has access.
60+--
61+-- /See:/ 'managementRemarketingAudienceGet' smart constructor.
62+data ManagementRemarketingAudienceGet = ManagementRemarketingAudienceGet'
63+ { _mragWebPropertyId :: !Text
64+ , _mragAccountId :: !Text
65+ , _mragRemarketingAudienceId :: !Text
66+ } deriving (Eq,Show,Data,Typeable,Generic)
67+
68+-- | Creates a value of 'ManagementRemarketingAudienceGet' with the minimum fields required to make a request.
69+--
70+-- Use one of the following lenses to modify other fields as desired:
71+--
72+-- * 'mragWebPropertyId'
73+--
74+-- * 'mragAccountId'
75+--
76+-- * 'mragRemarketingAudienceId'
77+managementRemarketingAudienceGet
78+ :: Text -- ^ 'mragWebPropertyId'
79+ -> Text -- ^ 'mragAccountId'
80+ -> Text -- ^ 'mragRemarketingAudienceId'
81+ -> ManagementRemarketingAudienceGet
82+managementRemarketingAudienceGet pMragWebPropertyId_ pMragAccountId_ pMragRemarketingAudienceId_ =
83+ ManagementRemarketingAudienceGet'
84+ { _mragWebPropertyId = pMragWebPropertyId_
85+ , _mragAccountId = pMragAccountId_
86+ , _mragRemarketingAudienceId = pMragRemarketingAudienceId_
87+ }
88+
89+-- | The web property ID of the remarketing audience to retrieve.
90+mragWebPropertyId :: Lens' ManagementRemarketingAudienceGet Text
91+mragWebPropertyId
92+ = lens _mragWebPropertyId
93+ (\ s a -> s{_mragWebPropertyId = a})
94+
95+-- | The account ID of the remarketing audience to retrieve.
96+mragAccountId :: Lens' ManagementRemarketingAudienceGet Text
97+mragAccountId
98+ = lens _mragAccountId
99+ (\ s a -> s{_mragAccountId = a})
100+
101+-- | The ID of the remarketing audience to retrieve.
102+mragRemarketingAudienceId :: Lens' ManagementRemarketingAudienceGet Text
103+mragRemarketingAudienceId
104+ = lens _mragRemarketingAudienceId
105+ (\ s a -> s{_mragRemarketingAudienceId = a})
106+
107+instance GoogleRequest
108+ ManagementRemarketingAudienceGet where
109+ type Rs ManagementRemarketingAudienceGet =
110+ RemarketingAudience
111+ type Scopes ManagementRemarketingAudienceGet =
112+ '["https://www.googleapis.com/auth/analytics.edit",
113+ "https://www.googleapis.com/auth/analytics.readonly"]
114+ requestClient ManagementRemarketingAudienceGet'{..}
115+ = go _mragAccountId _mragWebPropertyId
116+ _mragRemarketingAudienceId
117+ (Just AltJSON)
118+ analyticsService
119+ where go
120+ = buildClient
121+ (Proxy ::
122+ Proxy ManagementRemarketingAudienceGetResource)
123+ mempty
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/Insert.hsnew file+121
@@ -0,0 +1,121 @@
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.Analytics.Management.RemarketingAudience.Insert
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+-- Creates a new remarketing audience.
24+--
25+-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.remarketingAudience.insert@.
26+module Network.Google.Resource.Analytics.Management.RemarketingAudience.Insert
27+ (
28+ -- * REST Resource
29+ ManagementRemarketingAudienceInsertResource
30+
31+ -- * Creating a Request
32+ , managementRemarketingAudienceInsert
33+ , ManagementRemarketingAudienceInsert
34+
35+ -- * Request Lenses
36+ , mraiWebPropertyId
37+ , mraiPayload
38+ , mraiAccountId
39+ ) where
40+
41+import Network.Google.Analytics.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @analytics.management.remarketingAudience.insert@ method which the
45+-- 'ManagementRemarketingAudienceInsert' request conforms to.
46+type ManagementRemarketingAudienceInsertResource =
47+ "analytics" :>
48+ "v3" :>
49+ "management" :>
50+ "accounts" :>
51+ Capture "accountId" Text :>
52+ "webproperties" :>
53+ Capture "webPropertyId" Text :>
54+ "remarketingAudiences" :>
55+ QueryParam "alt" AltJSON :>
56+ ReqBody '[JSON] RemarketingAudience :>
57+ Post '[JSON] RemarketingAudience
58+
59+-- | Creates a new remarketing audience.
60+--
61+-- /See:/ 'managementRemarketingAudienceInsert' smart constructor.
62+data ManagementRemarketingAudienceInsert = ManagementRemarketingAudienceInsert'
63+ { _mraiWebPropertyId :: !Text
64+ , _mraiPayload :: !RemarketingAudience
65+ , _mraiAccountId :: !Text
66+ } deriving (Eq,Show,Data,Typeable,Generic)
67+
68+-- | Creates a value of 'ManagementRemarketingAudienceInsert' with the minimum fields required to make a request.
69+--
70+-- Use one of the following lenses to modify other fields as desired:
71+--
72+-- * 'mraiWebPropertyId'
73+--
74+-- * 'mraiPayload'
75+--
76+-- * 'mraiAccountId'
77+managementRemarketingAudienceInsert
78+ :: Text -- ^ 'mraiWebPropertyId'
79+ -> RemarketingAudience -- ^ 'mraiPayload'
80+ -> Text -- ^ 'mraiAccountId'
81+ -> ManagementRemarketingAudienceInsert
82+managementRemarketingAudienceInsert pMraiWebPropertyId_ pMraiPayload_ pMraiAccountId_ =
83+ ManagementRemarketingAudienceInsert'
84+ { _mraiWebPropertyId = pMraiWebPropertyId_
85+ , _mraiPayload = pMraiPayload_
86+ , _mraiAccountId = pMraiAccountId_
87+ }
88+
89+-- | Web property ID for which to create the remarketing audience.
90+mraiWebPropertyId :: Lens' ManagementRemarketingAudienceInsert Text
91+mraiWebPropertyId
92+ = lens _mraiWebPropertyId
93+ (\ s a -> s{_mraiWebPropertyId = a})
94+
95+-- | Multipart request metadata.
96+mraiPayload :: Lens' ManagementRemarketingAudienceInsert RemarketingAudience
97+mraiPayload
98+ = lens _mraiPayload (\ s a -> s{_mraiPayload = a})
99+
100+-- | The account ID for which to create the remarketing audience.
101+mraiAccountId :: Lens' ManagementRemarketingAudienceInsert Text
102+mraiAccountId
103+ = lens _mraiAccountId
104+ (\ s a -> s{_mraiAccountId = a})
105+
106+instance GoogleRequest
107+ ManagementRemarketingAudienceInsert where
108+ type Rs ManagementRemarketingAudienceInsert =
109+ RemarketingAudience
110+ type Scopes ManagementRemarketingAudienceInsert =
111+ '["https://www.googleapis.com/auth/analytics.edit"]
112+ requestClient
113+ ManagementRemarketingAudienceInsert'{..}
114+ = go _mraiAccountId _mraiWebPropertyId (Just AltJSON)
115+ _mraiPayload
116+ analyticsService
117+ where go
118+ = buildClient
119+ (Proxy ::
120+ Proxy ManagementRemarketingAudienceInsertResource)
121+ mempty
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/List.hsnew file+148
@@ -0,0 +1,148 @@
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.Analytics.Management.RemarketingAudience.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+-- Lists remarketing audiences to which the user has access.
24+--
25+-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.remarketingAudience.list@.
26+module Network.Google.Resource.Analytics.Management.RemarketingAudience.List
27+ (
28+ -- * REST Resource
29+ ManagementRemarketingAudienceListResource
30+
31+ -- * Creating a Request
32+ , managementRemarketingAudienceList
33+ , ManagementRemarketingAudienceList
34+
35+ -- * Request Lenses
36+ , mralWebPropertyId
37+ , mralAccountId
38+ , mralType
39+ , mralStartIndex
40+ , mralMaxResults
41+ ) where
42+
43+import Network.Google.Analytics.Types
44+import Network.Google.Prelude
45+
46+-- | A resource alias for @analytics.management.remarketingAudience.list@ method which the
47+-- 'ManagementRemarketingAudienceList' request conforms to.
48+type ManagementRemarketingAudienceListResource =
49+ "analytics" :>
50+ "v3" :>
51+ "management" :>
52+ "accounts" :>
53+ Capture "accountId" Text :>
54+ "webproperties" :>
55+ Capture "webPropertyId" Text :>
56+ "remarketingAudiences" :>
57+ QueryParam "type" Text :>
58+ QueryParam "start-index" (Textual Int32) :>
59+ QueryParam "max-results" (Textual Int32) :>
60+ QueryParam "alt" AltJSON :>
61+ Get '[JSON] RemarketingAudiences
62+
63+-- | Lists remarketing audiences to which the user has access.
64+--
65+-- /See:/ 'managementRemarketingAudienceList' smart constructor.
66+data ManagementRemarketingAudienceList = ManagementRemarketingAudienceList'
67+ { _mralWebPropertyId :: !Text
68+ , _mralAccountId :: !Text
69+ , _mralType :: !Text
70+ , _mralStartIndex :: !(Maybe (Textual Int32))
71+ , _mralMaxResults :: !(Maybe (Textual Int32))
72+ } deriving (Eq,Show,Data,Typeable,Generic)
73+
74+-- | Creates a value of 'ManagementRemarketingAudienceList' with the minimum fields required to make a request.
75+--
76+-- Use one of the following lenses to modify other fields as desired:
77+--
78+-- * 'mralWebPropertyId'
79+--
80+-- * 'mralAccountId'
81+--
82+-- * 'mralType'
83+--
84+-- * 'mralStartIndex'
85+--
86+-- * 'mralMaxResults'
87+managementRemarketingAudienceList
88+ :: Text -- ^ 'mralWebPropertyId'
89+ -> Text -- ^ 'mralAccountId'
90+ -> ManagementRemarketingAudienceList
91+managementRemarketingAudienceList pMralWebPropertyId_ pMralAccountId_ =
92+ ManagementRemarketingAudienceList'
93+ { _mralWebPropertyId = pMralWebPropertyId_
94+ , _mralAccountId = pMralAccountId_
95+ , _mralType = "all"
96+ , _mralStartIndex = Nothing
97+ , _mralMaxResults = Nothing
98+ }
99+
100+-- | The web property ID of the remarketing audiences to retrieve.
101+mralWebPropertyId :: Lens' ManagementRemarketingAudienceList Text
102+mralWebPropertyId
103+ = lens _mralWebPropertyId
104+ (\ s a -> s{_mralWebPropertyId = a})
105+
106+-- | The account ID of the remarketing audiences to retrieve.
107+mralAccountId :: Lens' ManagementRemarketingAudienceList Text
108+mralAccountId
109+ = lens _mralAccountId
110+ (\ s a -> s{_mralAccountId = a})
111+
112+mralType :: Lens' ManagementRemarketingAudienceList Text
113+mralType = lens _mralType (\ s a -> s{_mralType = a})
114+
115+-- | An index of the first entity to retrieve. Use this parameter as a
116+-- pagination mechanism along with the max-results parameter.
117+mralStartIndex :: Lens' ManagementRemarketingAudienceList (Maybe Int32)
118+mralStartIndex
119+ = lens _mralStartIndex
120+ (\ s a -> s{_mralStartIndex = a})
121+ . mapping _Coerce
122+
123+-- | The maximum number of remarketing audiences to include in this response.
124+mralMaxResults :: Lens' ManagementRemarketingAudienceList (Maybe Int32)
125+mralMaxResults
126+ = lens _mralMaxResults
127+ (\ s a -> s{_mralMaxResults = a})
128+ . mapping _Coerce
129+
130+instance GoogleRequest
131+ ManagementRemarketingAudienceList where
132+ type Rs ManagementRemarketingAudienceList =
133+ RemarketingAudiences
134+ type Scopes ManagementRemarketingAudienceList =
135+ '["https://www.googleapis.com/auth/analytics.edit",
136+ "https://www.googleapis.com/auth/analytics.readonly"]
137+ requestClient ManagementRemarketingAudienceList'{..}
138+ = go _mralAccountId _mralWebPropertyId
139+ (Just _mralType)
140+ _mralStartIndex
141+ _mralMaxResults
142+ (Just AltJSON)
143+ analyticsService
144+ where go
145+ = buildClient
146+ (Proxy ::
147+ Proxy ManagementRemarketingAudienceListResource)
148+ mempty
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/Patch.hsnew file+137
@@ -0,0 +1,137 @@
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.Analytics.Management.RemarketingAudience.Patch
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+-- Updates an existing remarketing audience. This method supports patch
24+-- semantics.
25+--
26+-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.remarketingAudience.patch@.
27+module Network.Google.Resource.Analytics.Management.RemarketingAudience.Patch
28+ (
29+ -- * REST Resource
30+ ManagementRemarketingAudiencePatchResource
31+
32+ -- * Creating a Request
33+ , managementRemarketingAudiencePatch
34+ , ManagementRemarketingAudiencePatch
35+
36+ -- * Request Lenses
37+ , mrapWebPropertyId
38+ , mrapPayload
39+ , mrapAccountId
40+ , mrapRemarketingAudienceId
41+ ) where
42+
43+import Network.Google.Analytics.Types
44+import Network.Google.Prelude
45+
46+-- | A resource alias for @analytics.management.remarketingAudience.patch@ method which the
47+-- 'ManagementRemarketingAudiencePatch' request conforms to.
48+type ManagementRemarketingAudiencePatchResource =
49+ "analytics" :>
50+ "v3" :>
51+ "management" :>
52+ "accounts" :>
53+ Capture "accountId" Text :>
54+ "webproperties" :>
55+ Capture "webPropertyId" Text :>
56+ "remarketingAudiences" :>
57+ Capture "remarketingAudienceId" Text :>
58+ QueryParam "alt" AltJSON :>
59+ ReqBody '[JSON] RemarketingAudience :>
60+ Patch '[JSON] RemarketingAudience
61+
62+-- | Updates an existing remarketing audience. This method supports patch
63+-- semantics.
64+--
65+-- /See:/ 'managementRemarketingAudiencePatch' smart constructor.
66+data ManagementRemarketingAudiencePatch = ManagementRemarketingAudiencePatch'
67+ { _mrapWebPropertyId :: !Text
68+ , _mrapPayload :: !RemarketingAudience
69+ , _mrapAccountId :: !Text
70+ , _mrapRemarketingAudienceId :: !Text
71+ } deriving (Eq,Show,Data,Typeable,Generic)
72+
73+-- | Creates a value of 'ManagementRemarketingAudiencePatch' with the minimum fields required to make a request.
74+--
75+-- Use one of the following lenses to modify other fields as desired:
76+--
77+-- * 'mrapWebPropertyId'
78+--
79+-- * 'mrapPayload'
80+--
81+-- * 'mrapAccountId'
82+--
83+-- * 'mrapRemarketingAudienceId'
84+managementRemarketingAudiencePatch
85+ :: Text -- ^ 'mrapWebPropertyId'
86+ -> RemarketingAudience -- ^ 'mrapPayload'
87+ -> Text -- ^ 'mrapAccountId'
88+ -> Text -- ^ 'mrapRemarketingAudienceId'
89+ -> ManagementRemarketingAudiencePatch
90+managementRemarketingAudiencePatch pMrapWebPropertyId_ pMrapPayload_ pMrapAccountId_ pMrapRemarketingAudienceId_ =
91+ ManagementRemarketingAudiencePatch'
92+ { _mrapWebPropertyId = pMrapWebPropertyId_
93+ , _mrapPayload = pMrapPayload_
94+ , _mrapAccountId = pMrapAccountId_
95+ , _mrapRemarketingAudienceId = pMrapRemarketingAudienceId_
96+ }
97+
98+-- | The web property ID of the remarketing audience to update.
99+mrapWebPropertyId :: Lens' ManagementRemarketingAudiencePatch Text
100+mrapWebPropertyId
101+ = lens _mrapWebPropertyId
102+ (\ s a -> s{_mrapWebPropertyId = a})
103+
104+-- | Multipart request metadata.
105+mrapPayload :: Lens' ManagementRemarketingAudiencePatch RemarketingAudience
106+mrapPayload
107+ = lens _mrapPayload (\ s a -> s{_mrapPayload = a})
108+
109+-- | The account ID of the remarketing audience to update.
110+mrapAccountId :: Lens' ManagementRemarketingAudiencePatch Text
111+mrapAccountId
112+ = lens _mrapAccountId
113+ (\ s a -> s{_mrapAccountId = a})
114+
115+-- | The ID of the remarketing audience to update.
116+mrapRemarketingAudienceId :: Lens' ManagementRemarketingAudiencePatch Text
117+mrapRemarketingAudienceId
118+ = lens _mrapRemarketingAudienceId
119+ (\ s a -> s{_mrapRemarketingAudienceId = a})
120+
121+instance GoogleRequest
122+ ManagementRemarketingAudiencePatch where
123+ type Rs ManagementRemarketingAudiencePatch =
124+ RemarketingAudience
125+ type Scopes ManagementRemarketingAudiencePatch =
126+ '["https://www.googleapis.com/auth/analytics.edit"]
127+ requestClient ManagementRemarketingAudiencePatch'{..}
128+ = go _mrapAccountId _mrapWebPropertyId
129+ _mrapRemarketingAudienceId
130+ (Just AltJSON)
131+ _mrapPayload
132+ analyticsService
133+ where go
134+ = buildClient
135+ (Proxy ::
136+ Proxy ManagementRemarketingAudiencePatchResource)
137+ mempty
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/RemarketingAudience/Update.hsnew file+136
@@ -0,0 +1,136 @@
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.Analytics.Management.RemarketingAudience.Update
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+-- Updates an existing remarketing audience.
24+--
25+-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.remarketingAudience.update@.
26+module Network.Google.Resource.Analytics.Management.RemarketingAudience.Update
27+ (
28+ -- * REST Resource
29+ ManagementRemarketingAudienceUpdateResource
30+
31+ -- * Creating a Request
32+ , managementRemarketingAudienceUpdate
33+ , ManagementRemarketingAudienceUpdate
34+
35+ -- * Request Lenses
36+ , mrauWebPropertyId
37+ , mrauPayload
38+ , mrauAccountId
39+ , mrauRemarketingAudienceId
40+ ) where
41+
42+import Network.Google.Analytics.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @analytics.management.remarketingAudience.update@ method which the
46+-- 'ManagementRemarketingAudienceUpdate' request conforms to.
47+type ManagementRemarketingAudienceUpdateResource =
48+ "analytics" :>
49+ "v3" :>
50+ "management" :>
51+ "accounts" :>
52+ Capture "accountId" Text :>
53+ "webproperties" :>
54+ Capture "webPropertyId" Text :>
55+ "remarketingAudiences" :>
56+ Capture "remarketingAudienceId" Text :>
57+ QueryParam "alt" AltJSON :>
58+ ReqBody '[JSON] RemarketingAudience :>
59+ Put '[JSON] RemarketingAudience
60+
61+-- | Updates an existing remarketing audience.
62+--
63+-- /See:/ 'managementRemarketingAudienceUpdate' smart constructor.
64+data ManagementRemarketingAudienceUpdate = ManagementRemarketingAudienceUpdate'
65+ { _mrauWebPropertyId :: !Text
66+ , _mrauPayload :: !RemarketingAudience
67+ , _mrauAccountId :: !Text
68+ , _mrauRemarketingAudienceId :: !Text
69+ } deriving (Eq,Show,Data,Typeable,Generic)
70+
71+-- | Creates a value of 'ManagementRemarketingAudienceUpdate' with the minimum fields required to make a request.
72+--
73+-- Use one of the following lenses to modify other fields as desired:
74+--
75+-- * 'mrauWebPropertyId'
76+--
77+-- * 'mrauPayload'
78+--
79+-- * 'mrauAccountId'
80+--
81+-- * 'mrauRemarketingAudienceId'
82+managementRemarketingAudienceUpdate
83+ :: Text -- ^ 'mrauWebPropertyId'
84+ -> RemarketingAudience -- ^ 'mrauPayload'
85+ -> Text -- ^ 'mrauAccountId'
86+ -> Text -- ^ 'mrauRemarketingAudienceId'
87+ -> ManagementRemarketingAudienceUpdate
88+managementRemarketingAudienceUpdate pMrauWebPropertyId_ pMrauPayload_ pMrauAccountId_ pMrauRemarketingAudienceId_ =
89+ ManagementRemarketingAudienceUpdate'
90+ { _mrauWebPropertyId = pMrauWebPropertyId_
91+ , _mrauPayload = pMrauPayload_
92+ , _mrauAccountId = pMrauAccountId_
93+ , _mrauRemarketingAudienceId = pMrauRemarketingAudienceId_
94+ }
95+
96+-- | The web property ID of the remarketing audience to update.
97+mrauWebPropertyId :: Lens' ManagementRemarketingAudienceUpdate Text
98+mrauWebPropertyId
99+ = lens _mrauWebPropertyId
100+ (\ s a -> s{_mrauWebPropertyId = a})
101+
102+-- | Multipart request metadata.
103+mrauPayload :: Lens' ManagementRemarketingAudienceUpdate RemarketingAudience
104+mrauPayload
105+ = lens _mrauPayload (\ s a -> s{_mrauPayload = a})
106+
107+-- | The account ID of the remarketing audience to update.
108+mrauAccountId :: Lens' ManagementRemarketingAudienceUpdate Text
109+mrauAccountId
110+ = lens _mrauAccountId
111+ (\ s a -> s{_mrauAccountId = a})
112+
113+-- | The ID of the remarketing audience to update.
114+mrauRemarketingAudienceId :: Lens' ManagementRemarketingAudienceUpdate Text
115+mrauRemarketingAudienceId
116+ = lens _mrauRemarketingAudienceId
117+ (\ s a -> s{_mrauRemarketingAudienceId = a})
118+
119+instance GoogleRequest
120+ ManagementRemarketingAudienceUpdate where
121+ type Rs ManagementRemarketingAudienceUpdate =
122+ RemarketingAudience
123+ type Scopes ManagementRemarketingAudienceUpdate =
124+ '["https://www.googleapis.com/auth/analytics.edit"]
125+ requestClient
126+ ManagementRemarketingAudienceUpdate'{..}
127+ = go _mrauAccountId _mrauWebPropertyId
128+ _mrauRemarketingAudienceId
129+ (Just AltJSON)
130+ _mrauPayload
131+ analyticsService
132+ where go
133+ = buildClient
134+ (Proxy ::
135+ Proxy ManagementRemarketingAudienceUpdateResource)
136+ mempty
gogol-analytics/gogol-analytics.cabal+5
@@ -88,6 +88,11 @@ library
8888 , Network.Google.Resource.Analytics.Management.ProFiles.List
8989 , Network.Google.Resource.Analytics.Management.ProFiles.Patch
9090 , Network.Google.Resource.Analytics.Management.ProFiles.Update
91+ , Network.Google.Resource.Analytics.Management.RemarketingAudience.Get
92+ , Network.Google.Resource.Analytics.Management.RemarketingAudience.Insert
93+ , Network.Google.Resource.Analytics.Management.RemarketingAudience.List
94+ , Network.Google.Resource.Analytics.Management.RemarketingAudience.Patch
95+ , Network.Google.Resource.Analytics.Management.RemarketingAudience.Update
9196 , Network.Google.Resource.Analytics.Management.Segments.List
9297 , Network.Google.Resource.Analytics.Management.UnSampledReports.Delete
9398 , Network.Google.Resource.Analytics.Management.UnSampledReports.Get