# Reverse engineer the Discourse adplugin

**URL:** https://meta.discourse.org/t/reverse-engineer-the-discourse-adplugin/255462
**Category:** Development
**Tags:** advertising
**Created:** [February 17, 2023, 11:05am UTC](https://meta.discourse.org/t/reverse-engineer-the-discourse-adplugin/255462 "2023-02-17T11:05:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![josephgodwinke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/josephgodwinke/32/281711_2.png) [@josephgodwinke](https://meta.discourse.org/u/josephgodwinke)
#### Post date: [February 17, 2023, 11:05am UTC](https://meta.discourse.org/t/reverse-engineer-the-discourse-adplugin/255462/1 "2023-02-17T11:05:35Z")

</div>

Can I follow the steps here [Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576) to consume the adplugin requests to create House Ads [GitHub - discourse/discourse-adplugin: Official Discourse Advertising Plugin. Install & Start Serving Ads on Your Discourse Forum · GitHub](https://github.com/discourse/discourse-adplugin#house-ads)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 17, 2023, 7:52pm UTC](https://meta.discourse.org/t/reverse-engineer-the-discourse-adplugin/255462/2 "2023-02-17T19:52:22Z")

</div>

You can make an authenticated API request to `/admin/plugins/pluginad/house_creatives.json` to get the JSON for all your site’s ads, or a request to `/admin/plugins/pluginad/house_creatives/<ad_id>.json` to get the JSON for a specific ad.

If this doesn’t answer your question, give us more details about what you are trying to accomplish.

---

<div class="post-metadata">

### Author: ![josephgodwinke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/josephgodwinke/32/281711_2.png) [@josephgodwinke](https://meta.discourse.org/u/josephgodwinke)
#### Post date: [February 18, 2023, 5:09am UTC](https://meta.discourse.org/t/reverse-engineer-the-discourse-adplugin/255462/3 "2023-02-18T05:09:33Z")

</div>

The request api for creating an ad does not work. How can I make an authenticated API request to create an inhouse ad for example ?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 18, 2023, 10:15am UTC](https://meta.discourse.org/t/reverse-engineer-the-discourse-adplugin/255462/4 "2023-02-18T10:15:15Z")

</div>

> [@josephgodwinke](#):
>
> How can I make an authenticated API request to create an inhouse ad for

Try making a `POST` request to `/admin/plugins/pluginad/house_creatives`

You need to set two parameters for the request:

- `name` : the name of your ad
- `html` : the ad’s HTML You will need to url encode the HTML before using it in the request
