mstm is trying to insert Amazon iframes on their Discourse forum, as Onebox doesn’t work properly with Amazon links other than .com. They provided the iframe code and allowed iframe addresses but are having trouble displaying the banner.
simon suggested simplifying the allowed iframe address to //rcm-eu.amazon-adsystem.com, which worked but caused display issues.
merefield recommended using Amazon snippets directly, as iframes may violate Amazon’s affiliate agreement. They also suggested using Markdown tables to add image snippets and disclaimers.
mstm tried the suggested solutions and found that only image snippets work with Amazon, while text+image renders an iframe.
merefield provided a CSS solution to adjust the iframe height, and later suggested using Markdown tables with image snippets and disclaimers to add affiliate links.
merefield shared an example of a Markdown table with an Amazon image snippet and a disclaimer, which mstm found perfect for their needs.
Hello, considering that onebox seems not to work properly with amazon other than .com (since 2019, info), I would like to try using iframes.
The code to insert is: <iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//rcm-eu.amazon-adsystem.com/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=TAG_REMOVED&language=it_IT&o=29&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=B07WHMHLJQ&linkId=69e9808ddc7b121e4fa9d501cdac312e"></iframe>
You could try just entering //rcm-eu.amazon-adsystem.com into the allowed iframes site setting. I think that will display an iframe, but it might not look very good. If you try this, you’ll need to rebuild the HTML for any existing posts that you’ve added the iframe to.
You don’t need an iframe. You can use their snippets directly.
Btw Oneboxing would break your affiliate agreement as they would not be happy with the use of their logo in that way. They once closed my account for that transgression.
Text + Image create only an iframe… for this I was hoping that onebox would work with Amazon other than .com but maybe this is not a priority for developers.
I use image snippets inside a Markdown table. Allows me to add affiliate disclaimer above the link. Lack of a disclaimer is likely to incur Amazon wrath too
<sup>*(NB from admin: As an Amazon Associate I earn from qualifying purchases. Thanks for your support!)*
|Albott Pro Stunt Scooter|
|:-:|
|<AMAZON LARGE IMAGE SNIPPET>|
One of the advantages of this approach btw, is Discourse keeps a counter by the image for the number of times it’s been clicked