wordpress-mobile-pack icon indicating copy to clipboard operation
wordpress-mobile-pack copied to clipboard

Add More ADS (Adsense, DFP and Admob)

Open bedelboseli opened this issue 7 years ago • 1 comments

I want to add more ads in the article (I use EXTRUDE theme)

1- Showing 1 ad in article. However I want to show at least 3 advertisements. How can I do that? Or where do I add the Adsense codes?

2- Is it possible to add Adsense automatic ad codes?

3- Is it possible to use Admob?

bedelboseli avatar Jan 19 '19 16:01 bedelboseli

Hey @bedelboseli ,

1 - Showing 1 ad in article. However I want to show at least 3 advertisements. How can I do that? Or where do I add the Adsense codes?

Ads are served through Google DoubleClick for Publishers (DFP). For the Extrude web app (for which I already sent you the sources), most of the ads logic is implemented in src/app/core/appticles-ads. The ad block called appticles-ads is inserted into src/app/posts/details/post-details.template.html (which is the template for post details). You'll have to change the implementation to support multiple ads per post.

2 - Is it possible to add Adsense automatic ad codes?

Not that I know off. This is a limitation from AdSense for web apps. Their recommendation is to use DFP which is what we are doing. I don't know if AdSense will change their policy in the future.

3 - Is it possible to use Admob?

I don't know, we haven't tried it. If you want to package the app for the App Stores, it will definitely require changing the ads implementation. Maybe this can help, I haven't tried testing it: https://github.com/appfeel/admob-google-cordova/wiki/Angular.js,-Ionic-apps

anghelalexandra avatar Jan 21 '19 15:01 anghelalexandra