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 creative asset.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.creativeAssets.insert
.
Synopsis
- type CreativeAssetsInsertResource = ("dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("creativeAssets" :> (Capture "advertiserId" (Textual Int64) :> ("creativeAssets" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreativeAssetMetadata :> Post '[JSON] CreativeAssetMetadata))))))))) :<|> ("upload" :> ("dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("creativeAssets" :> (Capture "advertiserId" (Textual Int64) :> ("creativeAssets" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] CreativeAssetMetadata :> Post '[JSON] CreativeAssetMetadata)))))))))))
- creativeAssetsInsert :: Int64 -> Int64 -> CreativeAssetMetadata -> CreativeAssetsInsert
- data CreativeAssetsInsert
- caiAdvertiserId :: Lens' CreativeAssetsInsert Int64
- caiProFileId :: Lens' CreativeAssetsInsert Int64
- caiPayload :: Lens' CreativeAssetsInsert CreativeAssetMetadata
REST Resource
type CreativeAssetsInsertResource = ("dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("creativeAssets" :> (Capture "advertiserId" (Textual Int64) :> ("creativeAssets" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreativeAssetMetadata :> Post '[JSON] CreativeAssetMetadata))))))))) :<|> ("upload" :> ("dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("creativeAssets" :> (Capture "advertiserId" (Textual Int64) :> ("creativeAssets" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] CreativeAssetMetadata :> Post '[JSON] CreativeAssetMetadata))))))))))) Source #
A resource alias for dfareporting.creativeAssets.insert
method which the
CreativeAssetsInsert
request conforms to.
Creating a Request
Creates a value of CreativeAssetsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreativeAssetsInsert Source #
Inserts a new creative asset.
See: creativeAssetsInsert
smart constructor.
Instances
Request Lenses
caiAdvertiserId :: Lens' CreativeAssetsInsert Int64 Source #
Advertiser ID of this creative. This is a required field.
caiProFileId :: Lens' CreativeAssetsInsert Int64 Source #
User profile ID associated with this request.
caiPayload :: Lens' CreativeAssetsInsert CreativeAssetMetadata Source #
Multipart request metadata.