Closed Larslol140 closed 3 months ago
googleapis
createReadStream
advertisers.assets.upload
This also occurs when using the sample.zip from https://support.google.com/displayvideo/answer/7128959?hl=en#zippy=%2Ccreate-an-html-display-banner
sample.zip
Uploading the same ZIP file manually works.
When uploading via the library it results in: Error: ASSET_HTML_CLICK_TAG_MISSING: Must include at least one click tag in the HTML asset.
Error: ASSET_HTML_CLICK_TAG_MISSING: Must include at least one click tag in the HTML asset.
const stream = createReadStream("example.zip"); dv360.advertisers.assets.upload({ advertiserId: "advertiser-id", requestBody: { filename: "example.zip", }, media: { body: stream, mimeType: "application/zip", }, });
I was missing the name attribute in the creative exitEvents. When I added it with the value clickTag it worked.
name
exitEvents
clickTag
Environment details
googleapis
version: 139.0.0Steps to reproduce
createReadStream
to open the file.advertisers.assets.upload
to upload the file.Additional info
This also occurs when using the
sample.zip
from https://support.google.com/displayvideo/answer/7128959?hl=en#zippy=%2Ccreate-an-html-display-bannerUploading the same ZIP file manually works.
When uploading via the library it results in:
Error: ASSET_HTML_CLICK_TAG_MISSING: Must include at least one click tag in the HTML asset.
Sample snippet