rock-solid / wordpress-mobile-pack

WordPress Mobile Plugin for Progressive Web Apps & Hybrid Mobile Apps
https://wpmobilepack.com/
MIT License
48 stars 22 forks source link

Add More ADS (Adsense, DFP and Admob) #56

Open bedelboseli opened 5 years ago

bedelboseli commented 5 years ago

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?

anghelalexandra commented 5 years ago

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