Results 1 to 3 of 3

Thread: google Ads only for non paying memberships

  1. #1
    Thread Starter
    Member cyberpaul's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    96
    Thanks
    10
    Thanked 2 Times in 2 Posts

    google Ads only for non paying memberships

    Hallo,

    I offer a membership to pay for on my calssipress.
    Also I user Google Ads to give a benefit to the website.

    Now I only like to show that Ads to members of the platform, that did not pay for their membership. So that all free members of the platform (and visitors) see the gorge ads.

    I use the following script to bind google ads to my site.

    <
    Code:
    script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
    	 (adsbygoogle = window.adsbygoogle || []).push({
    		 google_ad_client: "%%caPubId%%",
    		 enable_page_level_ads: true});
    </script>
    Can someone please tell me, what to add in this script, to that payed members will not see this ads by google?

    It should be something like:
    <
    Code:
    script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
    
    if ((active_Membership = true) and (Membership_costs > 0)) 
    
    {
    	 (adsbygoogle = window.adsbygoogle || []).push({
    		 google_ad_client: "%%caPubId%%",
    		 enable_page_level_ads: true});
    }
    </script>
    Thank you for your help!

  2. #2
    Thread Starter
    Member cyberpaul's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    96
    Thanks
    10
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Moderator ovidiubica's Avatar
    Join Date
    Mar 2011
    Posts
    5,284
    Thanks
    198
    Thanked 955 Times in 908 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Paying by Paypal
    By paule in forum Help Using ClassiPress
    Replies: 1
    Last Post: December 17th, 2015, 11:52 AM
  2. Samcy What am I Paying for?
    By graemej in forum Help Using ClassiPress
    Replies: 13
    Last Post: July 28th, 2015, 01:02 AM
  3. Spammers able to put ad on without paying for the ad
    By seantech1 in forum ClassiPress General Discussion
    Replies: 4
    Last Post: June 8th, 2012, 06:13 PM