mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-07-04 04:12:13 +00:00
Ensure CodeFund request is only made if the Property ID is provided
Also updated README with CodeFund instructions and link
This commit is contained in:
parent
eb4f18aaa8
commit
014ee3187b
@ -11,6 +11,7 @@ This is the official Discourse advertising plugin. It allows advertisements to
|
|||||||
* [Google Adsense](http://www.google.com.au/adsense/start/why-adsense.html)
|
* [Google Adsense](http://www.google.com.au/adsense/start/why-adsense.html)
|
||||||
* [Google Double Click for Publishers](https://www.google.com/dfp)
|
* [Google Double Click for Publishers](https://www.google.com/dfp)
|
||||||
* [Amazon Affiliates](http://affiliate-program.amazon.com) - Banner and Product Link Ads
|
* [Amazon Affiliates](http://affiliate-program.amazon.com) - Banner and Product Link Ads
|
||||||
|
* [CodeFund](https://codefund.io) - Ethical Ad Platform for Developers
|
||||||
|
|
||||||
|
|
||||||
## Quick Start in 3 Steps
|
## Quick Start in 3 Steps
|
||||||
@ -58,6 +59,7 @@ There are 2 easy steps for configuring your Discourse settings to enable adverti
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Adsense - if using Adsense as your advertisement platform.</li>
|
<li>Adsense - if using Adsense as your advertisement platform.</li>
|
||||||
<li>DFP - if using the DoubleClick for Publishers advertisement platform.</li>
|
<li>DFP - if using the DoubleClick for Publishers advertisement platform.</li>
|
||||||
|
<li>CodeFund - if using the CodeFund ethical advertisement platform.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -82,7 +84,9 @@ Only for Product Link and Banner Ads.
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
##### CodeFund Embed Tag to Discourse's Site Settings
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Step 3 - See Your Ad
|
### Step 3 - See Your Ad
|
||||||
|
|
||||||
|
@ -49,6 +49,8 @@ export default Ember.Component.extend({
|
|||||||
adDetails: {},
|
adDetails: {},
|
||||||
|
|
||||||
_triggerAds() {
|
_triggerAds() {
|
||||||
|
if (!propertyId) return;
|
||||||
|
|
||||||
this.set('adRequested', true);
|
this.set('adRequested', true);
|
||||||
loadCodeFund().then((data) => {
|
loadCodeFund().then((data) => {
|
||||||
_loaded = false;
|
_loaded = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user