Shortcode for Adsense

Posted in: Newspaper
Post count: 135

Hello,

Was wondering if there is a shortcode technique for adsense for this theme.

Reason why I ask this is because I would like to manually place ads I feel works instead of using the inline ad while setting up the number of paragraphs.

Also, if I use the shortcode, will it appear for mobile devices ( I use the mobile plugin theme)?

Post count: 23312

Hello crazydiver,

You can try to use the Inline Ads from Theme panel. For more information about Adsense method, please consult our documentation here -> https://forum.tagdiv.com/article-ads/

Hope this helps!

Thanks for the message!

Post count: 135

Hello Catalin,

As always thanks. However, I’m already using inline ads.

I have some posts that are long, and some with only five paragraphs or less. Using inline ads doesn’t make it practical as it sets all ads to appear within a set number of paragraphs for all my posts.

This is why, I want to manually add a short code to these post instead of using the inline ad option.

I read the documentation you gave and the last part got my interest:

[shortcodes] – the spot will run do_shortcode() on the ad. Using shortcodes you can add adRotate ads to that spot.

How do you yo do this exactly?

Post count: 23312

Hello crazydiver,

Please notice that you can use the do_shortcode method for adding your Custom Ad 1 where you want using this snippet of the code -> echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); Also, please ensure that you have add your add code in Custom Ad 1 in order to achieve as you wish.

Thanks for your understanding!

Post count: 135

Hello Catalin,

I’m not quite sure how to administer the shortcode using the custom ad 1 you mentioned. Could you please provide me more documentation or an example screenshot if you don’t mind?

Post count: 23312

Hello crazydiver,

Please refer to the following topic here -> https://forum.tagdiv.com/topic/ads-in-between-posts/ because there you will find an example on how you can use this shortcode. If you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!

Thanks for your understanding!

Post count: 135

I checked and it’s abit close to what I’m looking for.

Just to be clear; if I want an ad to appear within the article, all I have to do is add [td_block_ad_box spot_id="custom_ad_1"] to anywhere I want within the article. I did this and it works for desktops but not mobile (I’m using the mobile plugin theme).

Is there anyway to get this working with the mobile theme?

Thanks.

  • This reply was modified 10 years by crazydiver. Reason: added an update
Post count: 23312

Hello crazydiver,

Unfortunately, the mobile theme has not been designed to recognize all the Visual Composer shortcode because this concept has been thought to have very basic structure, clear, fast and use for using.

Thanks for your understanding!

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.