# Amazon Affiliate ads without iframe

**URL:** https://meta.discourse.org/t/amazon-affiliate-ads-without-iframe/134765
**Category:** Support
**Tags:** advertising
**Created:** [November 30, 2019, 7:37pm UTC](https://meta.discourse.org/t/amazon-affiliate-ads-without-iframe/134765 "2019-11-30T19:37:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aaronpk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aaronpk/32/149994_2.png) [@aaronpk](https://meta.discourse.org/u/aaronpk)
#### Post date: [November 30, 2019, 7:37pm UTC](https://meta.discourse.org/t/amazon-affiliate-ads-without-iframe/134765/1 "2019-11-30T19:37:53Z")

</div>

It appears Amazon is no longer providing the iframe code for their ads. I only get the option to copy Javascript code now.

Is there a plan to update the advertising plugin to support the new Javascript ads?

 ![32](https://global.discourse-cdn.com/meta/original/3X/b/5/b53797c7177c5ab10d29bf688eec0102b8a0caa6.png)

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [December 2, 2019, 3:33pm UTC](https://meta.discourse.org/t/amazon-affiliate-ads-without-iframe/134765/2 "2019-12-02T15:33:55Z")

</div>

That’s interesting. So the plugin’s amazon support needs to be completely rewritten.

It looks like you don’t need a plugin for this though. Can you try using theme components to place the ad code wherever you want? I wrote about it here:

> [@Request: House Ads Plugin](https://meta.discourse.org/t/request-house-ads-plugin/75532/3):
>
> I thought of this request again, and it turns out that it’s fairly simple to implement without a plugin now by using [Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-b). The code for placing an ad above topics, and after every 3 posts: \<script type="text/x-handlebars" data-template-name="/connectors/topic-above-post-stream/my-house-ads"\> \<div style="margin-bottom:10px;"\> \<a href="http://www.discourse.org/buy"\> Discourse Hosting For YOU! \</a\> \</div\> \</script\> …

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 6, 2023, 10:52pm UTC](https://meta.discourse.org/t/amazon-affiliate-ads-without-iframe/134765/3 "2023-09-06T22:52:37Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 7, 2023, 3:12am UTC](https://meta.discourse.org/t/amazon-affiliate-ads-without-iframe/134765/4 "2023-09-07T03:12:42Z")

</div>


