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 |
Inserts a new ad.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.ads.insert
.
- type AdsInsertResource = "dfareporting" :> ("v2.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("ads" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Ad :> Post `[JSON]` Ad))))))
- adsInsert :: Int64 -> Ad -> AdsInsert
- data AdsInsert
- aiProFileId :: Lens' AdsInsert Int64
- aiPayload :: Lens' AdsInsert Ad
REST Resource
type AdsInsertResource = "dfareporting" :> ("v2.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("ads" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Ad :> Post `[JSON]` Ad)))))) Source
A resource alias for dfareporting.ads.insert
method which the
AdsInsert
request conforms to.
Creating a Request
Creates a value of AdsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Inserts a new ad.
See: adsInsert
smart constructor.
Request Lenses
aiProFileId :: Lens' AdsInsert Int64 Source
User profile ID associated with this request.