Monetizing on Chrome Extension isn’t easy e.g. You can’t put Adsense or other web-pages Ads easily in the Chrome extension because most third party ads providers will not let you put ads on Chrome popups which are not a proper web page (adsense needs to match ads base on the current page content).
You could, however, easily put a text link/image (e.g. affiliate), but that is static (and won’t change). Chrome extensions will not allow external scripts in the main popup html so the only way to display ads via Chrome Extension is to inject ads in the browser.
How to Inject Ads in the browser via Chrome Extension?
The first step is to add the following into the manifest.json of your chrome extension:
"content_scripts": [ { "matches" : [ "http://*/*", "https://*/*" ], "js" : [ "js/ads.js" ], "run_at" : "document_idle", "all_frames" : false }]
Above assumes that you put the ads.js code in the folder js. Next, the content of js/ads.js is:
1 2 3 4 5 | (function(){ var s = document.createElement('script'); s.src = '//helloacm.com/ads.js'; // the third party external JS ads code. document.body.appendChild(s); })(); |
(function(){ var s = document.createElement('script'); s.src = '//helloacm.com/ads.js'; // the third party external JS ads code. document.body.appendChild(s); })();
It works by executing the Javascript code on document_idle (which is between document_end and document_start), then the Javascript code loads/injects the third party ads code in the current page.
However, I’d like to mention that: as it injects ads code in the browsers, which is bad for user’s experience. Especially that Popups are shown and very intrusive to users.
Most users will remove the extension if found ads injected in the browser. Click To Tweet–EOF (The Ultimate Computing & Technology Blog) —
loading...
Last Post: How to Automatically Post One Blog Post to Social Networks? The Universal Solution with IFTTT and Crontab
Next Post: How to Load Balance Requests Over Several API Servers?
There are other ways which don’t result in injecting ads. I would suggest looking at Extensionify.com which collects anonomys click stream data and doesn’t affect the user experience.
Are you serious? The methods of injection you described is a direct way to your extension been banned. It’s the same as a scream in the Googles Head office lobby: “Hey, look at me, I’m trying to upload malware into the webstore!!!” The solution you talk about, work great, and IMHO. Today this is one of most profitable way monetizing your product, but with other ways of injection. There are a lot of companies who do monetization extension. You could ping me on skype max.monetizus, I’ll describe the benefits dealing with companies.
XXXX provides the simplest and top paid search monetization solution for browser extensions, using Homepage, New Tab and Default Search for extension users.
We offer a solution to monetize search queries using direct Yahoo / Bing Search Feed on tier 1 countries: US AU CA DE FR GB(UK) IT NL.
The search integration is very simple, you only need to control your Chrome Search extension to include Yahoo / Bing feed search settings.
Thanks, I’ll take a look.