Can I follow the steps here Reverse engineer the Discourse API 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
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.
4 Likes
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 ?
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 adhtml
: the ad’s HTML You will need to url encode the HTML before using it in the request