*** SOLVED *** How to Add Adsense in plikli site | General Support | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
*** SOLVED *** How to Add Adsense in plikli site
Avatar
Hariom Balhara
Member
Members
Forum Posts: 9
Member Since:
August 7, 2018
sp_UserOfflineSmall Offline
1
August 7, 2018 - 6:26 pm
sp_Permalink sp_Print

Hi,

I am new on this cms i want to add adsense code on sidebar and after single stroy.

My website is https://balharainfo.com/

Avatar
redwine
Admin
Forum Posts: 184
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
2
August 8, 2018 - 4:25 pm
sp_Permalink sp_Print

What do you mean by "after single stroy" ?
does it mean in the story view, when you click on the story title and view it in full?

Please make your question for support very clear with all the information from the first time, this way we can assist you faster.

Avatar
Hariom Balhara
Member
Members
Forum Posts: 9
Member Since:
August 7, 2018
sp_UserOfflineSmall Offline
3
August 8, 2018 - 5:46 pm
sp_Permalink sp_Print

Yes, Iam say when we will open single story view

Avatar
redwine
Admin
Forum Posts: 184
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
4
August 8, 2018 - 7:59 pm
sp_Permalink sp_Print

Keep in mind that the ads may not display immediately on your site. make sure to register the site in your adsense account and it may take a while until they start displaying.

For the top sidebar adsense ad:

1- Install the Snippets Module
Go to Dashboard -> Uninstalled -> look for the module and click on the intall button

2- Once installed, click on its link from the left sidebar, under Modules.
3- Click on Add New
4- In the Name: field, enter a name for the snippet (name it adsense-sidebar)
5- In the Location field, scroll down until you see this "tpl_plikli_sidebar_start - Start of sidebar" and select it.
6- In the Status field select active
7- In the content feed, enter the following (as is on one line, do not add line breaks):

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-XXXXXXXXXXXXXXXX" data-ad-slot="XXXXXXXXXX" data-ad-format="auto"></ins>{literal}<script> (adsbygoogle = window.adsbygoogle || []).push({});</script>{/literal}

YOU HAVE TO CHANGE THE XXX in ca-pub and data-ad-slot with your keys

8- click Submit.

*****************************

For the story view adsense ad:

3- Click on Add New
4- In the Name: field, enter a name for the snippet (name it adsense-story)
5- In the Location field, scroll down until you see this:
If you want the ad to appear before the content, select "tpl_plikli_story_start - Very beginning of link_summary.tpl"
If you want the ad to appear at the end of the content, select "tpl_plikli_story_end - Very end of link_summary.tpl"
6- In the Status field select active
7- In the content feed, enter the following (as is on one line, do not add line breaks):

{php}
if ($pagename == 'story') {
echo '<hr /><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-XXXXXXXXXXXXXXXX" data-ad-slot="XXXXXXXXXX" data-ad-format="auto"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({});</script><hr /><br />';
}
{/php}

8- click Submit.

Avatar
Nishant kumar
Member
Members
Forum Posts: 21
Member Since:
August 3, 2018
sp_UserOfflineSmall Offline
5
August 9, 2018 - 8:19 am
sp_Permalink sp_Print

I have pasted the adsense code in all above template but it showing blank space only what should I do

Avatar
redwine
Admin
Forum Posts: 184
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
6
August 9, 2018 - 3:21 pm
sp_Permalink sp_Print

First, I started my previous reply with "Keep in mind that the ads may not display immediately on your site. make sure to register the site in your adsense account and it may take a while until they start displaying."

Secondly, you say you pasted the code in all above template!!! It is not in template files you add this code, it should be added in the Snippets module!

Thirdly, Check the story page by right clicking and using the "inspect element" in Firefox and "inspect" in Chrome and go to the console tab. Do you see any error or notifications? The ads won't display if the browser is set to "enable tracking protection"

The code I gave you MUST work (if you have set it correctly as is and if no issues from the browser or Google adsense account).

I implemented the same code and it works well!

https://mymonalisasmile.com/plikli/story.php?title=john-on-solved-i-have-encountered-some-issues-with-the-software-or-script

Avatar
Hariom Balhara
Member
Members
Forum Posts: 9
Member Since:
August 7, 2018
sp_UserOfflineSmall Offline
7
August 9, 2018 - 5:26 pm
sp_Permalink sp_Print

Thanx Admin,

Now Ads Working Properly Nice Work.

Thanks Again for your support 🙂

Avatar
redwine
Admin
Forum Posts: 184
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
8
August 9, 2018 - 5:28 pm
sp_Permalink sp_Print sp_EditHistory

Glad it is working.

But i would like you to share what was the reason that it was not working, was it the browser tracking protection or what exactly. It would be nice so that other users having the same issue know what to do.

Avatar
Nishant kumar
Member
Members
Forum Posts: 21
Member Since:
August 3, 2018
sp_UserOfflineSmall Offline
9
August 10, 2018 - 5:45 am
sp_Permalink sp_Print sp_EditHistory

Thanx Admin, For Your Feedback now it is working after taking sometime

Avatar
redwine
Admin
Forum Posts: 184
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
10
August 10, 2018 - 6:04 am
sp_Permalink sp_Print

I asked you to be kind and post a reply here for other user to see and benefit from, how did it work for you,? Was it one of my instructions that resolved the issue? Please post the solution her.

Avatar
Hariom Balhara
Member
Members
Forum Posts: 9
Member Since:
August 7, 2018
sp_UserOfflineSmall Offline
11
August 10, 2018 - 5:28 pm
sp_Permalink sp_Print

Hi Rewine,

Yes, it Was your instructions that resolved the issue. Thank you for your help. I hope i would help you in near future.

Avatar
Nishant kumar
Member
Members
Forum Posts: 21
Member Since:
August 3, 2018
sp_UserOfflineSmall Offline
12
August 12, 2018 - 8:14 pm
sp_Permalink sp_Print sp_EditHistory

I did not add my new plikli site in my existing adsense account, i have just placed the code. After making the changes ads are showing properly.

Avatar
redwine
Admin
Forum Posts: 184
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
13
August 12, 2018 - 8:24 pm
sp_Permalink sp_Print

But don't forget to add your Plikli site to Adsense authorized sites, otherwise the ads impressions and clicks will not be counted in your account.

Avatar
Zona Info
Member
Members
Forum Posts: 8
Member Since:
August 13, 2018
sp_UserOfflineSmall Offline
14
August 14, 2018 - 3:46 am
sp_Permalink sp_Print sp_EditHistory

I have followed the instructions, but when I press submit, the page is redirected to my site's homepage

I use this code in to my sidebar

{literal}(adsbygoogle = window.adsbygoogle || []).push({});{/literal}

but when i put other text, its worked for example test123 abcd123

How to fix it?

Avatar
Zona Info
Member
Members
Forum Posts: 8
Member Since:
August 13, 2018
sp_UserOfflineSmall Offline
Avatar
redwine
Admin
Forum Posts: 184
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
16
August 14, 2018 - 4:37 am
sp_Permalink sp_Print

I really did not understand the issue you are having. Please explain to me step by step what is happening.

Avatar
Zona Info
Member
Members
Forum Posts: 8
Member Since:
August 13, 2018
sp_UserOfflineSmall Offline
17
August 14, 2018 - 4:46 am
sp_Permalink sp_Print

i try to add my adsense code into sidebar

i put the code like this >>> https://hobiayam.net/wp-content/uploads/2018/08/ads.png

but when i press SUBMIT BUTTON, the page is redirected to my site's homepage like this >>> https://hobiayam.net/wp-content/uploads/2018/08/ads1.png

Avatar
redwine
Admin
Forum Posts: 184
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
18
August 14, 2018 - 4:56 am
sp_Permalink sp_Print sp_EditHistory

I can't replicate the issue to know what is happening. Have you pasted the script on ONE line with no breaks at all?

Have you modified any files? I see that you have done quite a few modifications on your site.

It worked for all other users, and I've been using the same for years now!

Avatar
Zona Info
Member
Members
Forum Posts: 8
Member Since:
August 13, 2018
sp_UserOfflineSmall Offline
19
August 14, 2018 - 5:06 am
sp_Permalink sp_Print

Can you show me an example One line script?
Yes, i have modifications my site

Avatar
Zona Info
Member
Members
Forum Posts: 8
Member Since:
August 13, 2018
sp_UserOfflineSmall Offline
20
August 14, 2018 - 5:19 am
sp_Permalink sp_Print

Hello admin, can you delete attachment 2018/08/ads.png?
I forget to hide my adsense code on the attachment

Forum Timezone: Asia/Beirut

Most Users Ever Online: 8

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

john: 40

Mosage: 25

Martin Gold: 22

Nishant kumar: 21

StaticMove: 13

Hariom Balhara: 9

Zona Info: 8

Mark: 7

ugryzh: 7

Marcus Vinicius: 7

Newest Members:

Sadmir

linkers

Zona Info

Hariom Balhara

Nishant kumar

hari

Ijack

ugryzh

vrack

awoqo

Forum Stats:

Groups: 1

Forums: 8

Topics: 54

Posts: 368

 

Member Stats:

Guest Posters: 0

Members: 32

Moderators: 1

Admins: 1

Administrators: redwine

Moderators: Kshitij Kumar