advertisement notice in custom ads

Posted in: Newsmag
Post count: 226

hi guys,
I am having trouble with adsense. They ask me to add “advertizement” title t my ads. The problem is that I am using custom positions 1, 2 and 3 and there is no option in the panel to activate it for them. I have 500 posts so it will take forever to make this work manually. any way to add it for all “custom 1” positions and so on? Please help its is urgent!

Thanks in advance!!!

Post count: 23312

Hello salocharly,

You should use the Ad Box element from Visual Composer because there you have this option available, like this -> https://www.screencast.com/t/LJjbSgLL If you want to insert the Custom Ad on posts, you should generate the shortcode with Ad Box and then, using the do_shortcode method you can inject this code where exactly you want to add this to your post templates. -> https://www.screencast.com/t/jnILe8S2d The generated shortcode is ->
[td_block_ad_box spot_id="custom_ad_1" spot_title="Advertisment" tdc_css=""]

Hope this helps!

Thanks for your understanding!

Post count: 226

I get the suggestion but this will involve changing 500 posts manually. is there not a way to jut make all custom ads include this title? there has to be an easier way….

thanks again

Post count: 9544

Usually with custom ad code you can just wrap that in normal HTML with the element you need to add, with custom CSS.

e.g.

<div>
<div class="mybugcss">- advertisement - </div>
... custom ad code or js here ...
</div>

Post count: 226

so i just add that in theme pannel and it will work? or is there an aditional steap? I am gessing i can use that dive class to edit it in custom css….

Post count: 226

I tryed what cris sugested but it is not working. catalin, ideas?

Post count: 23312

Hello salocharly,

You can add this html code in the ad spot before your add: <span class=”td-adspot-title”>Advertisment</span>
Here is an example: https://www.screencast.com/t/uTL4gR2n

Thank you!

Post count: 226

just did that but is not working. Please help me out I am having serious problems in my adsense acount becuse of this.

Post count: 226

<div>
<span class=”td-adspot-title”>Advertisment</span>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Girlterest Middle –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-x”
data-ad-slot=”x”
data-ad-format=”auto”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

Post count: 23312

Hello salocharly,

Where exactly do you want to use the Custom Ad 1? On homepages, post pages or pages? Provide more information about this so I can be able to provide a more accurate resolution. Above I gave you a method using the do_shortcode method which works as expected which is placed in the right place on your website.

Thanks for your understanding!!

Post count: 226

hi,
I am using custom ad 1 2 5. the shorcodes are in place in posts with lists. i placed them manualy on each post. the problem is there is too much posts to change this manualy.

I don’T know what the do_shortcode method is.

i added the cose in the relevant ads in theme panel but nothing shows up.

i really need to fix this, please help.

thanks again

salo

Post count: 9544

Why not simply add the code above or below the content in one of your post templates you’re using?

Post count: 226

well that would have been smart at the beginning of the project. My excuse Is that my programming skills are limited, didn’t even thought about that, I am not so sure i will look and work the same. But it presents the same problem as I will have to go over all posts and delete manually the codes that were added manually, so I don’t get duplicated ads. As I explained before, there are a ton of posts in the site. any other ideas?

Post count: 22421

Hello,

Such a solution was provided above to place an add in the post template that will affect all posts using that template. (The first reply to this topic) If you placed the ads by hand, there is no solution to remove them all except as they were added. Sorry.

Thank you!

Post count: 226

ok so I am guessing I should go ahead and delete all the manual tags I added manually and then modify the template file so I have more control in the future in case i need to remove it.

so this is an example page, with a list.

http://girlterest.com/acne-face-map-causes-and-solutions/

I just added the shortcodes in the page manually after the list end before the list starts and at the beginning of the post.

can you tell me wich file to modify and where to add the code to get this same results?

Thanks in advance!

Post count: 22421

Hello,

Smart lists have their own separate files as they are different from the normal posts: https://www.screencast.com/t/PNK9BD4ou
You seem to be using smart list 3 so you should edit the file corresponding to that particular smart list.
The names of the files correspond to the smart list name.
The page templates can be edited in the main root folder: https://www.screencast.com/t/ZESTMo2ou

Thank you!

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