Notification

हमने हाल ही में पब्लिकेशन पेजों के लिए एक अपडेट दिया था. कृपया ज़्यादा जानकारी के लिए यहां पढ़ें.

आपने जिस पेज का अनुरोध किया है वह फ़िलहाल आपकी भाषा में उपलब्ध नहीं है. पेज के निचले हिस्से से कोई दूसरी भाषा चुनी जा सकती है. इसके अलावा, किसी भी वेबपेज का अपनी पसंदीदा भाषा में झटपट अनुवाद भी किया जा सकता है. इसके लिए, आपको Google Chrome की पहले से मौजूद अनुवाद करने की सुविधा का इस्तेमाल करना होगा.

Hide ads

Once you have the CMS Sync snippet on the pages of your article, you can modify the default behavior of your script. You can hide ads for existing contributors or subscribers.

Tip: 

  • To hide ads, you must know how to use Javascript.
  • To edit your CMS Sync snippet, insert the setOnEntitlementsResponse function block after initialization. This function calls the swg-basic.js entitlements API to determine if the reader is already a contributor or subscriber, and returns a promise.
  • To check if there are entitlements that have returned, call the dismissSwgUI function to hide the dialog.

Example usage for the updated code snippet

JavaScript

(self.SWG_BASIC = self.SWG_BASIC || []).push(basicSubscriptions => {

    basicSubscriptions.setOnEntitlementsResponse(entitlementsPromise => {

      entitlementsPromise.then(entitlements => {

        // Indicates that the user is subscriber or contributor

        if (entitlements.enablesThisWithCacheableEntitlements()) {

          // hide the SwG dialog

          basicSubscriptions.dismissSwgUI();

    // Insert logic to disable ads, depending on your ad network provider

        }

      });

    });

    basicSubscriptions.init({

      type: "NewsArticle",

      isPartOfType: ["Product"],

      isPartOfProductId: "<your product id>",

      clientOptions: { lang: "en" },

    });

  });

Search
Clear search
Close search
Main menu
17606841887779167495
true
खोज मदद केंद्र
true
true
true
true
true
100499
false
false