| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Analytics.Management.Goals.Insert
Description
Create a new goal.
See: Google Analytics API Reference for analytics.management.goals.insert.
Synopsis
- type ManagementGoalsInsertResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("profiles" :> (Capture "profileId" Text :> ("goals" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Goal :> Post '[JSON] Goal)))))))))))
- managementGoalsInsert :: Text -> Text -> Goal -> Text -> ManagementGoalsInsert
- data ManagementGoalsInsert
- mgiWebPropertyId :: Lens' ManagementGoalsInsert Text
- mgiProFileId :: Lens' ManagementGoalsInsert Text
- mgiPayload :: Lens' ManagementGoalsInsert Goal
- mgiAccountId :: Lens' ManagementGoalsInsert Text
REST Resource
type ManagementGoalsInsertResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("profiles" :> (Capture "profileId" Text :> ("goals" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Goal :> Post '[JSON] Goal))))))))))) Source #
A resource alias for analytics.management.goals.insert method which the
ManagementGoalsInsert request conforms to.
Creating a Request
managementGoalsInsert Source #
Arguments
| :: Text | |
| -> Text | |
| -> Goal | |
| -> Text | |
| -> ManagementGoalsInsert |
Creates a value of ManagementGoalsInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ManagementGoalsInsert Source #
Create a new goal.
See: managementGoalsInsert smart constructor.
Instances
Request Lenses
mgiWebPropertyId :: Lens' ManagementGoalsInsert Text Source #
Web property ID to create the goal for.
mgiProFileId :: Lens' ManagementGoalsInsert Text Source #
View (Profile) ID to create the goal for.
mgiPayload :: Lens' ManagementGoalsInsert Goal Source #
Multipart request metadata.
mgiAccountId :: Lens' ManagementGoalsInsert Text Source #
Account ID to create the goal for.