• Resolved Prasanta Ghosh

    (@gamersdunia16)


    Hello there , i have been using this plugin for more than a year but From the last 10 days an error is showing on my adsense.

    the error is like

    “We’ve detected an issue on your IAB TC string on one or more of your sites or apps”

    Adsense also added a error file and a link for help but i cant understand any thing from there. the link is https://support.google.com/adsense/answer/9999955

    Problems that are showing in error file are ( 2.1a , 1.1 , 5.1 ) briefly described in the adsense link.

    basically what i understood from there is in my site my ads are showing before my consent is accepted or rejected.

    Now is there any solution/advise from you guys to solve this problem .

    my site : gamersdunia.com

    thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 16 through 30 (of 33 total)
  • Plugin Author Spacetime

    (@spacetime)

    Uncaught ReferenceError: jQuery is not defined
        at (index):220

    Caused by this script on your page:

    <script>
        jQuery().ready(function jQuery_ready() {
            tdAjaxCount.tdGetViewsCountsAjax("post", "[9228]");
        });
    </script>
    Thread Starter Prasanta Ghosh

    (@gamersdunia16)

    Can You please explain this to me , i am not much familiar to js .

    Plugin Author Spacetime

    (@spacetime)

    You have some javascript code on the page which causes error and this error may prevent ads from showing.

    Very likely this code is inserted by some plugin.
    Try also to disable caching and optimizing plugins if you are using them.
    It seems this plugin doesn’t work well with optimized code.

    Thread Starter Prasanta Ghosh

    (@gamersdunia16)

    i deactivate Most of my plugins along my caching plugin ( wprocket 3.3.6 ) Still same.

    Plugin Author Spacetime

    (@spacetime)

    But why you are using server side device detection?
    You are also using client-side device detection and you have enabled all devices.
    This doesn’t make sense.

    Enable only wanted devices or disable device detection.

    You still have AdSense error. This error prevents inserting blocks with ads.
    Check console in the browser.

    You also have this code on the page:

    <script type="text/javascript">
    var td_screen_width = window.innerWidth;
    
                        if ( td_screen_width >= 1140 ) {
                            /* large monitors */
                            document.write('<ins class="adsbygoogle" style="display:inline-block;width:468px;height:60px" data-ad-client="ca-pub-4819608407830169" data-ad-slot="4254618826"></ins>');
                            (adsbygoogle = window.adsbygoogle || []).push({});
                        }
                
    	                    if ( td_screen_width >= 1019  && td_screen_width < 1140 ) {
    	                        /* landscape tablets */
                            document.write('<ins class="adsbygoogle" style="display:inline-block;width:468px;height:60px" data-ad-client="ca-pub-4819608407830169" data-ad-slot="4254618826"></ins>');
    	                        (adsbygoogle = window.adsbygoogle || []).push({});
    	                    }
    	                
                        if ( td_screen_width >= 768  && td_screen_width < 1019 ) {
                            /* portrait tablets */
                            document.write('<ins class="adsbygoogle" style="display:inline-block;width:468px;height:60px" data-ad-client="ca-pub-4819608407830169" data-ad-slot="4254618826"></ins>');
                            (adsbygoogle = window.adsbygoogle || []).push({});
                        }
                    
                        if ( td_screen_width < 768 ) {
                            /* Phones */
                            document.write('<ins class="adsbygoogle" style="display:inline-block;width:320px;height:50px" data-ad-client="ca-pub-4819608407830169" data-ad-slot="4254618826"></ins>');
                            (adsbygoogle = window.adsbygoogle || []).push({});
                        }
                    </script>
    </div>

    What is this?

    Remove all such adsense codes and use only Ad Inserter to insert ads.

    Make sure the page has no erros otherwise insertions may not be executed.

    Thread Starter Prasanta Ghosh

    (@gamersdunia16)

    I reconfigure my settings , you can check now.

    and i found that when i erase “url parameters viewed_cookie_policy=yes” my ads starts showing. this might help.

    Plugin Author Spacetime

    (@spacetime)

    Yes, but you still have adsense error on the page.

    When you don’t check for the cooke no script is needed and the code is inserted serverside.

    Adsense error breaks scripts needed for insertion.

    If you check page source you’ll seee that you still have adsense code posted above inserted in the page footer.
    If it is not coming from some adsense plugin it must be in the theme settings or hardcoded in the theme files.

    Thread Starter Prasanta Ghosh

    (@gamersdunia16)

    Also in each block there is section called

      device

    under that section i make all the check box unchecked. should i do anything with that?

    Plugin Author Spacetime

    (@spacetime)

    Only when you need to limit the block to some devices.
    https://adinserter.pro/documentation/device-detection

    Normally you should leave unchecked.

    Thread Starter Prasanta Ghosh

    (@gamersdunia16)

    Since Its all started with adsense’s 2.1a 5.1 1.1 problem, which means in my site’s ads are loading before my cookies are accepted. According to google this is a problem which is some how not fixed yet And i am still trying hard To fix it.

    what if i dont use any cookie plugin to accept consent, like i am seeing few of my niches 1 2 are doing This. does it make any problem ?

    Plugin Author Spacetime

    (@spacetime)

    No clue.

    This consent approach and errors for AdSense are new also for me.

    Thread Starter Prasanta Ghosh

    (@gamersdunia16)

    everything was working fine when i left the url parameter blank, as soon as i put that put the code problem are getting start.

    should i chang me cookie plug in what do you suggest ?

    Plugin Author Spacetime

    (@spacetime)

    Please check my explanation above.
    The cookie plugin is irrelevant, it is the adsense error that causes issues.

    Simply remove invalid and outdated adsense code from the pages and then hopefully the error will go away and the cookie chekc will again work.

    You can see the errors in the console in the browser:

    Uncaught L?{message: "adsbygoogle.push() error: No slot size for availableWidth=108", name: "TagError", pbr: true, stack: "TagError: adsbygoogle.push() error: No slot size f…esyndication.com/pagead/js/adsbygoogle.js:71:357)"}
    m.aa @ VM478 adsbygoogle.js:63
    Ke @ VM478 adsbygoogle.js:71
    ol @ VM478 adsbygoogle.js:213
    (anonymous) @ VM486:1906
    VM478 adsbygoogle.js:63 Uncaught L?{message: "adsbygoogle.push() error: Fluid responsive ads must be at least 250px wide: availableWidth=0", name: "TagError", pbr: true, stack: "TagError: adsbygoogle.push() error: Fluid responsi…esyndication.com/pagead/js/adsbygoogle.js:71:357)"}
    
    PermissionManager.js:88 Uncaught (in promise) TypeError: Cannot read property 'pushNotification' of undefined
        at Function.getSafariNotificationPermission (PermissionManager.js:88)
        at _.<anonymous> (PermissionManager.js:69)
        at Generator.next (<anonymous>)
        at tslib.es6.js:65
        at new Promise (<anonymous>)
        at Object.n (tslib.es6.js:61)
        at _.getReportedNotificationPermission (PermissionManager.js:67)
        at _.<anonymous> (PermissionManager.js:39)
        at Generator.next (<anonymous>)
        at tslib.es6.js:65
    Thread Starter Prasanta Ghosh

    (@gamersdunia16)

    I just remove 2 ads Which i causing problems . can you check now?

    Plugin Author Spacetime

    (@spacetime)

    AdSense error is gone, but you again have the error from OneSignal – Web Push Notifications. You need to disable this plugin until the error is fixed.

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘Adsense Error Code 2.1a’ is closed to new replies.