Copyright | (c) 2015 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 |
Updates an existing campaign. This method supports patch semantics.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.campaigns.patch
.
- type CampaignsPatchResource = "dfareporting" :> ("v2.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("campaigns" :> (QueryParam "id" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Campaign :> Patch `[JSON]` Campaign)))))))
- campaignsPatch :: Int64 -> Campaign -> Int64 -> CampaignsPatch
- data CampaignsPatch
- cpProFileId :: Lens' CampaignsPatch Int64
- cpPayload :: Lens' CampaignsPatch Campaign
- cpId :: Lens' CampaignsPatch Int64
REST Resource
type CampaignsPatchResource = "dfareporting" :> ("v2.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("campaigns" :> (QueryParam "id" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Campaign :> Patch `[JSON]` Campaign))))))) Source
A resource alias for dfareporting.campaigns.patch
method which the
CampaignsPatch
request conforms to.
Creating a Request
Creates a value of CampaignsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CampaignsPatch Source
Updates an existing campaign. This method supports patch semantics.
See: campaignsPatch
smart constructor.
Request Lenses
cpProFileId :: Lens' CampaignsPatch Int64 Source
User profile ID associated with this request.
cpPayload :: Lens' CampaignsPatch Campaign Source
Multipart request metadata.
cpId :: Lens' CampaignsPatch Int64 Source
Campaign ID.