Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

[Native] not correct replacing placeholders of image and icon

Open naoto0822 opened this issue 7 years ago • 4 comments

Type of issue

With version 2.4.0 and up ( about #3573 ).

Description

If image and icon configured sendId: true in Ad Unit config, placeholders(hb_native_image:adid or hb_native_icon:adid) is not correctly replaced but replaced [object Object]. Placeholders of title, body... is correct replaced.

Please teach me workaround or correct implementation.

reference following: http://prebid.org/dev-docs/show-native-ads.html#sending-asset-placeholders

Steps to reproduce

DFP creative template.html https://gist.github.com/naoto0822/3745224fec29c5992590df5663eb2c8c

DFP creative template css https://gist.github.com/naoto0822/b7bce5104c448e8f444aaefb4c5d1ec5

Ad Unit configure https://gist.github.com/naoto0822/8f5fe2da7c401c2501983689f9e40aad

Actual results

Image didn't displayed. image

and background url is replacing [object Object].

image

Expected results

image

Platform details

prebid.js >= 2.4.0

naoto0822 avatar Mar 04 '19 11:03 naoto0822

@naoto0822 Thanks for the bug report. This issue will be fixed with #3609

matthewlane avatar Mar 04 '19 19:03 matthewlane

@matthewlane Thanks for quick response!

naoto0822 avatar Mar 05 '19 15:03 naoto0822

I'm havving same issue with call to action button (hb_bidder_cta).

cta text is "Try it now!" and DFP doesn't support "!" (exclamation), so I changed to sendId = true and now cta is "undefined".

Screenshot_623

Screenshot_624

lanceloti avatar Oct 21 '19 18:10 lanceloti

@lanceloti Can you open this as a new issue and provide a test page (or a copy of the adUnit config) so we can investigate?

Thanks!

jsnellbaker avatar Oct 21 '19 20:10 jsnellbaker