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 |
Inserts a new campaign.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.campaigns.insert
.
- type CampaignsInsertResource = "dfareporting" :> ("v2.6" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("campaigns" :> (QueryParam "defaultLandingPageName" Text :> (QueryParam "defaultLandingPageUrl" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Campaign :> Post '[JSON] Campaign))))))))
- campaignsInsert :: Int64 -> Campaign -> Text -> Text -> CampaignsInsert
- data CampaignsInsert
- camProFileId :: Lens' CampaignsInsert Int64
- camPayload :: Lens' CampaignsInsert Campaign
- camDefaultLandingPageURL :: Lens' CampaignsInsert Text
- camDefaultLandingPageName :: Lens' CampaignsInsert Text
REST Resource
type CampaignsInsertResource = "dfareporting" :> ("v2.6" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("campaigns" :> (QueryParam "defaultLandingPageName" Text :> (QueryParam "defaultLandingPageUrl" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Campaign :> Post '[JSON] Campaign)))))))) Source #
A resource alias for dfareporting.campaigns.insert
method which the
CampaignsInsert
request conforms to.
Creating a Request
:: Int64 | |
-> Campaign | |
-> Text | |
-> Text | |
-> CampaignsInsert |
Creates a value of CampaignsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CampaignsInsert Source #
Inserts a new campaign.
See: campaignsInsert
smart constructor.
Request Lenses
camProFileId :: Lens' CampaignsInsert Int64 Source #
User profile ID associated with this request.
camPayload :: Lens' CampaignsInsert Campaign Source #
Multipart request metadata.
camDefaultLandingPageURL :: Lens' CampaignsInsert Text Source #
Default landing page URL for this new campaign.
camDefaultLandingPageName :: Lens' CampaignsInsert Text Source #
Default landing page name for this new campaign. Must be less than 256 characters long.