Responsive AdSense | NulledTeam UnderGround | The Best Scripts Site In The World
  • Read Our Rules

    Dont forget read our rules Nulled Team UnderGround Rules

  • You may not say thanks or replied bad language in a thread - Your reply will be removed and warning! You must be like us "overview" in the resource. You will be access to download in FREE SECTION ONLY! DO NOT PREMIUM SECTION! Is only upgrade to up account.
  • Please support our site and click on the advertised
  • Complete Installation Service

    Review Our XenForo Complete Installation Service
  • Multiple Accounts

    Dont forget we not allowed Multiple Accounts, so all of your accounts as well as your IP will ban

Responsive AdSense

Responsive AdSense

Admin

Administrator
Staff member
Administrator
Registered
Aug 21, 2015
3,845
34,619
44
Egypt
www.nulledteam.com
Site Script
XenForo
#1
Admin submitted a new resource:

Responsive AdSense - Adverts R Us

One of the biggest concerns with 1.2 has been how to activate the responsive design while still using AdSense.

Obviously as the various page widths are now totally dynamic, simply adding a Google ad slot in the normal manner won't work.
Once the browser width reduces below the width of the advertisement, it will break out of the right hand side, producing a horizontal scrollbar.

This is a simple guide explaining how to display different ad slots based on the screen width.

This is based on...
Read more about this resource...
 

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Nov 22, 2015
4,841
37,903
www.nulledteam.com
Site Script
XenForo
#2
AnimeHaxor updated Responsive AdSense with a new update entry:

An example using if and else.

Here's another example using if and else statements.

This is in the ad_below_content template.

As the width of this area varies depending on whether there is a sidebar or not, we can factor that in to the code.

We can also use a template array (highlighted in green) to stop ads being served on some templates altogether, or to restrict them to specific templates.
Code:
You don't have permission to view the code content. Please Log in or register now.
Read the rest of this update entry...
 

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Nov 22, 2015
4,841
37,903
www.nulledteam.com
Site Script
XenForo
#3
AnimeHaxor updated Responsive AdSense with a new update entry:

Another example using different ad slots for responsive and non-responsive styles

This is another example showing how different styling can be applied to ad slots based on whether the style is responsive or not and the width of the browser window.

If like me you have two styles - a non-responsive and responsive style - you may want to position your ad slots differently.

Let's take a look at the template code first:
Code:
You don't have permission to view the code content. Please Log in or register now.
Read the rest of this update entry...
 

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Nov 22, 2015
4,841
37,903
www.nulledteam.com
Site Script
XenForo
#4
AnimeHaxor updated Responsive AdSense with a new update entry:

Utilising the new asynchronous ad code

Google has created new asynchronous ad code.
This update will explain how to implement it.

See here for more details: https://support.google.com/adsense/answer/3213689

The main difference between the new asynchronous code and the existing code is you only need to create one ad unit.
To use the new code, you must create new ad units and...
Read the rest of this update entry...
 

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Nov 22, 2015
4,841
37,903
www.nulledteam.com
Site Script
XenForo
#5
AnimeHaxor updated Responsive AdSense with a new update entry:

Mix and match

If, like me, you have two styles - one fixed width and one responsive, you may want to use the standard code in the fixed width style and the new asynchronous code in the responsive style.

The benefit of using different code for the fixed and fluid styles is you can specify the ad unit exactly for the fixed width and also benefit from tracking, which the asynchronous code doesn't currently support.

You could of course just enter the different code in the ad templates for each style, but if...
Read the rest of this update entry...
 

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Nov 22, 2015
4,841
37,903
www.nulledteam.com
Site Script
XenForo
#6
AnimeHaxor updated Responsive AdSense with a new update entry:

Prevent advertisements from being displayed on specific pages

In order to avoid breaching Google's ToS for AdSense, certain pages should not have ads displayed on them.
This includes error pages, for example: http://cliptheapex.com/error

This can be achieved by using a standard conditional statement like so:
Code:
You don't have permission to view the code content. Please Log in or register now.
Read the rest of this update entry...
 

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Nov 22, 2015
4,841
37,903
www.nulledteam.com
Site Script
XenForo
#7
AnimeHaxor updated Responsive AdSense with a new update entry:

Full list of templates to prevent advertisements being displayed on in 1.3

There are a few new templates introduced in 1.3 which should also be restricted from having Google AdSense advertisements displayed on them.

They are the aforementioned message_page and also register_twitter and register_google.

So the array of excluded pages should now look something like:
Code:
You don't have permission to view the code content. Please Log in or register now.
Read the rest of this update entry...
 

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Nov 22, 2015
4,841
37,903
www.nulledteam.com
Site Script
XenForo
#8

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Nov 22, 2015
4,841
37,903
www.nulledteam.com
Site Script
XenForo
#9
AnimeHaxor updated Responsive AdSense with a new update entry:

Commonly requested uses and placements

This guide will list some of the most commonly requested uses and placements.

For ease of understanding, the following examples mainly involve using single conditional statements only, although there are some more complex examples towards the end.

In order to combine statements, you can nest them, with each statement on its own line, like so:
Code:
You don't have permission to view the code content. Please Log in or register now.
Or join them together...
Read the rest of this update entry...
 

Dear User!

We found that you are blocking the display of ads on our site.

It looks like you're using an ad blocker. That's okay. Who doesn't?

But without advertising-income, we can't keep making this site awesome.

Thank you for understanding!