البحث عن
<data:post.body/>
راح تجد اكثر من واحد مطلوب على الثاني استبدله بالكود
- اقتباس :
- <div expr:id='"adsmid1" + data:post.id'></div><div style="clear:both; margin:15px 0">
</div><div expr:id='"adsmid2" + data:post.id'><data:post.body/></div><script type="text/javascript">var obj0=document.getElementById("adsmid1<data:post.id/>");var obj1=document.getElementById("adsmid2<data:post.id/>");var s=obj1.innerHTML;var r=s.search(/\x3C!-- adsense --\x3E/igm);if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}</script>
2- البحث عن
</head>
ضع هذا الرمز في كل صفحة عبر موقعك وستعرض Google الإعلانات تلقائيًا في أفضل الأماكن لك
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-388220000009713"
crossorigin="anonymous"></script>
قد يستغرق ظهور الإعلانات على الصفحة ما يصل إلى ساعة. يمكنك الاطّلاع على دليل تنفيذ الرمز للحصول على مزيدٍ من التفاصيل
إذا كان لديك رمز الإعلان التلقائي في صفحاتك، لن تحتاج إلى استبداله بهذا الرمز
مثلا
معرِّف الناشر
pub-388220000009713
الرقم التعريفي للعميل
2087814387
منطقة التوقيت
(UTC+03:00) الكويت
المنتجات النشطة
شبكة المحتوى (68% حصة أرباح الناشر)
مضيف المحتوى
YouTube Host
إمكانية رؤية معلومات البائع
اختر حالة حق الدخول
3- كيفية عرض إعلانات AdSense على صفحات الرسائل فقط
2.Go to "Edit HTML" of your blog. Find this line:
<b:includable id='post' var='post'>
Above line is the starting point of the code block which is responsible for displaying your posts. We need to add our ad code into this code block.
3.You should add your AdSense code like this:
<b:if cond='data:blog.pageType == "item"'>
<div style='margin:10px 0;clear:both;'>
ADD-YOUR-ADSENSE-CODE-HERE
</div>
</b:if>
Replace "ADD-YOUR-ADSENSE-CODE-HERE" with your parsed ad code.
How to Display Ads Above Post Title
To display advertisements above your post title, add your ad code like this:
How to Display Ads Below Post Title
To display advertisements below your post title, add your ad code like this:
Note: Adding advertisement directly below post titles is not recommended.
How to Display Ads Above Post Body
To display advertisements above your post's content, add your ad code like this:
How to Display Ads Above Post Body