Title: How to get javascript code instead of the shortcode
Last modified: July 24, 2021

---

# How to get javascript code instead of the shortcode

 *  Resolved [henmore](https://wordpress.org/support/users/henmore/)
 * (@henmore)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/how-to-get-javascript-code-instead-of-the-shortcode/)
 * Hi!
    How to get javascript code instead of the shortcode? I need to display the
   ad group using Javascript using DIVI theme Thanks

Viewing 1 replies (of 1 total)

 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/how-to-get-javascript-code-instead-of-the-shortcode/#post-14700979)
 * Hi henmore,
 * Thanks for reaching out.
 * You can insert ads, groups, and (manual) placements either via shortcode or PHP
   function, but there is no JS option in the basic version.
 * Advanced Ads Pro provides an [ad server module](https://wpadvancedads.com/ad-server-wordpress/)
   that we originally developed to show ads from your website on other external 
   websites.
 * You can use the JS snippets of this placement to inject ads on your main site
   using JS. But this is a workaround, and it should not be necessary to integrate
   ads into Divi.
 * Feel free to provide more information about where on your website you want to
   inject the ad group. We might find an easier way than JS.
 * Best regards,
    Joachim

Viewing 1 replies (of 1 total)

The topic ‘How to get javascript code instead of the shortcode’ is closed to new
replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

## Tags

 * [divi](https://wordpress.org/support/topic-tag/divi/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/how-to-get-javascript-code-instead-of-the-shortcode/#post-14700979)
 * Status: resolved