google-dfpdouble-click-advertising

how to create a CreativeAsset in dfp api


I'm trying to create an asset (CreativeAsset) to be used in a template Creative later. I cannot find in the documentation any way to create the asset itself, only to provide the base64 bytes, but I'd like to use this asset in multiple places, so I would prefer to load it once..Is there a way to create only a CreativeAsset?

https://developers.google.com/doubleclick-publishers/docs/reference/v201705/CreativeService.CreativeAsset


Solution

  • Here is the solution from the DFP API team:

    A CreativeAsset must be created as a part of a creative. There is no dedicated service to create a CreativeAsset alone. But then, you can use the assetId to copy a CreativeAsset to a new creative. Basically, you can first create a creative, then get the creative asset's assetId and use it to create multiple creatives