{"id":328069,"date":"2022-01-15T21:00:25","date_gmt":"2022-01-15T21:00:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=328069"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=328069","title":{"rendered":"<span>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. AdMob \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043c\u043e\u043d\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u0438 &#8212; \u043e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0432\u0430\u0436\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0414\u043e\u0445\u043e\u0434\u0438\u0442 \u0438 \u0434\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u044e\u0442 \u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u043e\u0432\u0443\u044e \u0441\u0445\u0435\u043c\u0443, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0442 \u043d\u0430 \u043d\u0435\u0435 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439. \u0421\u0435\u0439\u0447\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c ARPU (Average Revenue Per User) \u0441\u0432\u043e\u0435\u0439 \u0438\u0433\u0440\u044b: \u043b\u0443\u0442\u0431\u043e\u043a\u0441\u044b, \u0431\u0430\u0442\u043b\u043f\u0430\u0441\u044b, \u043f\u0440\u044f\u043c\u044b\u0435 \u043f\u0440\u043e\u0434\u0430\u0436\u044b \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u043e\u0432 \u0438\u043b\u0438 \u043a\u043e\u0441\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0441\u0442\u0430\u0440\u044b\u0439, \u043d\u043e \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0441 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f &#8212; \u0432\u043d\u0443\u0442\u0440\u0438\u0438\u0433\u0440\u043e\u0432\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0435\u0435 \u0432 Unity \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 Google AdMob.<\/p>\n<h2>\u0427\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u043e\u0432\u0438\u0447\u043a\u0443? Unity Ads vs AdMob<\/h2>\n<p>Unity Ads \u0438 AdMob (Google) &#8212; \u0434\u0432\u0430 \u0441\u0430\u043c\u044b\u0445 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435. \u041f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u043d\u043d\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u043d\u043e \u0441 \u043a\u0435\u043c \u0436\u0435 \u0438\u0437 \u043d\u0438\u0445 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433?<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0447\u0438\u0442\u0430\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 (\u0430 \u0432\u044b \u0435\u0433\u043e \u0447\u0438\u0442\u0430\u043b\u0438), \u0432\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043d\u0430 \u043a\u043e\u0433\u043e \u043f\u0430\u043b \u043c\u043e\u0439 \u0432\u044b\u0431\u043e\u0440. \u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0447\u0438\u043d, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044f \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0432\u0430\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0442 Google:<\/p>\n<ol>\n<li>\n<p>\u0423 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0432\u044b\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 CPC(cost-per-click);<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u044b\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c API;<\/p>\n<\/li>\n<li>\n<p>\u0414\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0432\u0430\u043c \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0437\u0430\u0432\u043e\u0434\u0438\u0442\u044c AdMob-\u0430\u043a\u043a\u0430\u0443\u043d\u0442, \u0442\u0430\u043a \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441;<\/p>\n<\/li>\n<\/ol>\n<h2>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c AdMob<\/h2>\n<p>\u041d\u0430 YouTube \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043f\u043e \u0442\u0435\u043c\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u041b\u0438\u0447\u043d\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"https:\/\/www.youtube.com\/watch?v=C4M823JYq-0\" rel=\"noopener noreferrer nofollow\"><u>\u044d\u0442\u043e\u0442 \u0440\u043e\u043b\u0438\u043a<\/u><\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 <a href=\"https:\/\/developers.google.com\/admob\/unity\/quick-start?hl=lt\" rel=\"noopener noreferrer nofollow\"><u>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/u><\/a>. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438.<\/p>\n<p>\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<ol>\n<li>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u0432 AdMob<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0431\u043b\u043e\u043a\u0438 (\u0440\u0435\u0447\u044c \u043e \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0431\u043b\u043e\u043a\u043e\u0432 \u043f\u043e\u0439\u0434\u0435\u0442 \u043d\u0438\u0436\u0435)<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"289\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/527\/338\/49b\/52733849b4f243a880b39abec270b547.png\" data-width=\"572\"\/><figcaption><\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441 <a href=\"https:\/\/github.com\/googleads\/googleads-mobile-unity\/releases\/tag\/v6.1.2\" rel=\"noopener noreferrer nofollow\"><u>\u0433\u0438\u0442\u0445\u0430\u0431\u0430<\/u><\/a> \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d<\/p>\n<\/li>\n<li>\n<p>\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432 Unity (<strong>Assets<\/strong> &#8212; <strong>Import Package<\/strong>)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 <strong>Assets<\/strong> &#8212; <strong>Google Mobile Ads <\/strong>&#8212; <strong>Settings <\/strong>ID \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041e\u043d\u043e \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 AdMob: <strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/strong> &#8212; <strong>\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/strong><\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"77\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0b7\/e3c\/56e\/0b7e3c56e65813aa19e342b8a50c1ac3.png\" data-width=\"619\"\/><figcaption><\/figcaption><\/figure>\n<ol start=\"6\">\n<li>\n<p>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0440\u0435\u043a\u043b\u0430\u043c\u0443<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"cs\">using GoogleMobileAds.Api; public class AdInitialize : MonoBehaviour {     private void Awake()     {         MobileAds.Initialize(initStatus => { });     } }<\/code><\/pre>\n<ol start=\"7\">\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 (\u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0438\u0436\u0435).<\/p>\n<\/li>\n<\/ol>\n<h2>\u0420\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u0441\u0443\u0434\u0438\u043c, \u043a\u0430\u043a\u0438\u0435 \u0432\u0438\u0434\u044b \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 AdMob. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u043b\u043e\u043a, \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e \u0442\u0438\u043f. \u041d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043d\u0430\u0441 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"440\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d36\/a17\/46a\/d36a1746aecba6cbb4b2a03a1c095877.png\" data-width=\"1625\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0438\u0436\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0432 <a href=\"https:\/\/developers.google.com\/admob\/android\/quick-start?hl=ru\" rel=\"noopener noreferrer nofollow\"><u>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/u><\/a> \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043a\u043e\u0434 (\u043c\u0435\u043d\u044e Ad Formats \u0441\u043b\u0435\u0432\u0430).<\/p>\n<p>\u0412\u0410\u0416\u041d\u041e: \u0412 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u043d\u0438\u0436\u0435 \u0432\u043c\u0435\u0441\u0442\u043e ID \u0441\u0432\u043e\u0438\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 ID, \u043b\u0435\u0436\u0430\u0449\u0438\u0435 <a href=\"https:\/\/developers.google.com\/admob\/unity\/test-ads\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>. \u0418\u043d\u0430\u0447\u0435 \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u0431\u0430\u043d\u044f\u0442. \u0412 \u043c\u043e\u0435\u043c \u043a\u043e\u0434\u0435 \u0432\u0435\u0437\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 ID.<\/p>\n<h3>\u0411\u0430\u043d\u043d\u0435\u0440<\/h3>\n<p>\u041f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0439 \u0431\u043b\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0432\u0438\u0441\u0435\u0442\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435. \u041c\u043e\u0436\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0427\u0430\u0441\u0442\u043e\u0442\u0443 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e (<strong>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/strong> &#8212; <strong>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435<\/strong> &#8212; <strong>\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439<\/strong>). \u0414\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441 BannerView. \u0412 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 (\u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f). \u041e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0446\u0435\u043d\u044b.<\/p>\n<pre><code class=\"cs\">using GoogleMobileAds.Api; public class BannerAd : MonoBehaviour {     private BannerView _bannerAd;     private const string _bannerId = \"ca-app-pub-3940256099942544\/6300978111\";     private void OnEnable()     {         _bannerAd = new BannerView(_bannerId, AdSize.Banner, AdPosition.Top);         AdRequest adRequest = new AdRequest.Builder().Build();         _bannerAd.LoadAd(adRequest);     }     public void ShowAd()     {         _bannerAd.Show();     } }<\/code><\/pre>\n<figure class=\"bordered\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" alt=\"\u0411\u0430\u043d\u043d\u0435\u0440\" title=\"\u0411\u0430\u043d\u043d\u0435\u0440\" height=\"518\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3a9\/6b9\/8f6\/3a96b98f6372b29c7115b5f5963b9eea.png\" data-width=\"292\"\/><figcaption>\u0411\u0430\u043d\u043d\u0435\u0440<\/figcaption><\/figure>\n<h3>\u041c\u0435\u0436\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430. \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c Show(). \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0441\u0442\u0430\u0432\u0438\u0442 \u0438\u0433\u0440\u0443 \u043d\u0430 \u043f\u0430\u0443\u0437\u0443.<\/p>\n<pre><code class=\"cs\">using GoogleMobileAds.Api; public class InterAd : MonoBehaviour {     private InterstitialAd _interAd;     private const string _interstitialId = \"ca-app-pub-3940256099942544\/8691691433\";     private void OnEnable()     {         _interAd = new InterstitialAd(_interstitialId);         AdRequest adRequest = new AdRequest.Builder().Build();         _interAd.LoadAd(adRequest);     }     public void ShowAd()     {         if (_interAd.IsLoaded())         {             _interAd.Show();         }     } }<\/code><\/pre>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"517\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e80\/514\/430\/e805144306c3530bbf49330030a92926.png\" data-width=\"295\"\/><figcaption><\/figcaption><\/figure>\n<h3>\u041c\u0435\u0436\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0441 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435\u043c<\/h3>\n<p>\u0420\u0435\u043a\u043b\u0430\u043c\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0441 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0442\u043b\u0438\u0447\u0438\u0435\u043c &#8212; \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0430\u0433\u0440\u0430\u0434\u0443.<\/p>\n<pre><code class=\"cs\">public class RewardedInterAD : MonoBehaviour {     private RewardedInterstitialAd _rewardAd;     private const string _interstitialId = \"ca-app-pub-3940256099942544\/5354046379\";     private void OnEnable()     {          AdRequest adRequest = new AdRequest.Builder().Build();         RewardedInterstitialAd.LoadAd(_interstitialId, adRequest, adLoadCallback);     }     private void adLoadCallback(RewardedInterstitialAd ad, AdFailedToLoadEventArgs error)     {         if (error == null)         {             _rewardAd = ad;         }     }     public void ShowAd()     {         if (_rewardAd != null)         {             _rewardAd.Show(userEarnedRewardCallback);         }     }      private void userEarnedRewardCallback(Reward reward)     {         \/\/ \u041d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043d\u0430\u0433\u0440\u0430\u0434\u0443     } }<\/code><\/pre>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" alt=\"\u0420\u0435\u043a\u043b\u0430\u043c\u0430 \u0441 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435\u043c\" title=\"\u0420\u0435\u043a\u043b\u0430\u043c\u0430 \u0441 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435\u043c\" height=\"513\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9fa\/ec6\/a58\/9faec6a58e4768d50f164effb506aebf.png\" data-width=\"290\"\/><figcaption>\u0420\u0435\u043a\u043b\u0430\u043c\u0430 \u0441 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435\u043c<\/figcaption><\/figure>\n<h3>\u0421 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435\u043c<\/h3>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.<\/p>\n<pre><code class=\"cs\">public class RewardAd : MonoBehaviour {     private RewardedAd _rewardAd;     private const string _adId = \"ca-app-pub-3940256099942544\/5224354917\";     private void OnEnable()     {         _rewardAd = new RewardedAd(_adId);         AdRequest adRequest = new AdRequest.Builder().Build();         _rewardAd.LoadAd(adRequest);         _rewardAd.OnUserEarnedReward += HandleUserEarnedReward;     }     public void ShowAd()     {         if (_rewardAd.IsLoaded())         {             _rewardAd.Show();         }     }     private void HandleUserEarnedReward(object sender, Reward args)     {         \/\/ \u041d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043d\u0430\u0433\u0440\u0430\u0434\u0443     } }<\/code><\/pre>\n<h3>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435<\/h3>\n<p>\u0420\u0435\u043a\u043b\u0430\u043c\u0430, \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u043f\u0440\u044f\u043c\u043e \u0432 \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u0441\u0446\u0435\u043d\u0443. \u041f\u043e \u043a\u0443\u0441\u043e\u0447\u043a\u0430\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 Get-\u043c\u0435\u0442\u043e\u0434\u044b. \u0421\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/www.youtube.com\/watch?v=M-XdptsCWtQ\" rel=\"noopener noreferrer nofollow\"><u>\u0433\u0430\u0439\u0434 \u043d\u0430 YouTube<\/u><\/a> \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c API <a href=\"https:\/\/developers.google.com\/admob\/unity\/native-advanced-unified?hl=ru\" rel=\"noopener noreferrer nofollow\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>.<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" alt=\"\u041d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430\" title=\"\u041d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430\" height=\"447\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/faa\/8fb\/7ee\/faa8fb7ee62161f0088790203a5df1d4.png\" data-width=\"266\"\/><figcaption>\u041d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430<\/figcaption><\/figure>\n<h3>\u0417\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0420\u0435\u043a\u043b\u0430\u043c\u0430, \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b. \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0431\u0435\u0440\u0435\u043c \u0441 <a href=\"https:\/\/developers.google.com\/admob\/unity\/app-open?hl=ru\" rel=\"noopener noreferrer nofollow\"><u>\u044d\u0442\u043e\u0439<\/u><\/a> \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. <\/p>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"cs\">public class AppOpenAdManager {     private const string AD_UNIT_ID = \"ca-app-pub-3940256099942544\/3419835294\";      private static AppOpenAdManager instance;      private AppOpenAd ad;      private bool isShowingAd = false;      public static AppOpenAdManager Instance     {         get         {             if (instance == null)             {                 instance = new AppOpenAdManager();             }              return instance;         }     }      private bool IsAdAvailable     {         get         {             return ad != null;         }     }      public void LoadAd()     {         AdRequest request = new AdRequest.Builder().Build();          \/\/ Load an app open ad for portrait orientation         AppOpenAd.LoadAd(AD_UNIT_ID, ScreenOrientation.Portrait, request, ((appOpenAd, error) =>         {             if (error != null)             {                 \/\/ Handle the error.                 Debug.LogFormat(\"Failed to load the ad. (reason: {0})\", error.LoadAdError.GetMessage());                 return;             }              \/\/ App open ad is loaded.             ad = appOpenAd;         }));     }     public void ShowAdIfAvailable()     {         if (!IsAdAvailable || isShowingAd)         {             return;         }          ad.OnAdDidDismissFullScreenContent += HandleAdDidDismissFullScreenContent;         ad.OnAdFailedToPresentFullScreenContent += HandleAdFailedToPresentFullScreenContent;         ad.OnAdDidPresentFullScreenContent += HandleAdDidPresentFullScreenContent;         ad.OnAdDidRecordImpression += HandleAdDidRecordImpression;         ad.OnPaidEvent += HandlePaidEvent;          ad.Show();     }      private void HandleAdDidDismissFullScreenContent(object sender, EventArgs args)     {         Debug.Log(\"Closed app open ad\");         \/\/ Set the ad to null to indicate that AppOpenAdManager no longer has another ad to show.         ad = null;         isShowingAd = false;         LoadAd();     }      private void HandleAdFailedToPresentFullScreenContent(object sender, AdErrorEventArgs args)     {         Debug.LogFormat(\"Failed to present the ad (reason: {0})\", args.AdError.GetMessage());         \/\/ Set the ad to null to indicate that AppOpenAdManager no longer has another ad to show.         ad = null;         LoadAd();     }      private void HandleAdDidPresentFullScreenContent(object sender, EventArgs args)     {         Debug.Log(\"Displayed app open ad\");         isShowingAd = true;     }      private void HandleAdDidRecordImpression(object sender, EventArgs args)     {         Debug.Log(\"Recorded ad impression\");     }      private void HandlePaidEvent(object sender, AdValueEventArgs args)     {         Debug.LogFormat(\"Received paid event. (currency: {0}, value: {1}\",                 args.AdValue.CurrencyCode, args.AdValue.Value);     } }<\/code><\/pre>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" alt=\"Open App Ad\" title=\"Open App Ad\" height=\"938\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/772\/cae\/730\/772cae7302e0e80e01b39953f591681d.png\" data-width=\"486\"\/><figcaption>Open App Ad<\/figcaption><\/figure>\n<h3>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u0438\u0440 \u043d\u0435 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 Unity Ads \u0438 AdMob, \u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0432\u044b\u0431\u043e\u0440\u0443 \u0441\u0435\u0442\u0438 \u043d\u0443\u0436\u043d\u043e, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0432\u0430\u0448\u0435\u0439 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438. \u0420\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u043a\u0440\u0443\u0433\u043e\u0437\u043e\u0440 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 <a href=\"https:\/\/zen.yandex.ru\/media\/appfox\/v-kakih-partnerkah-vygodno-monetizirovat-prilojenie-5caf0158ee4f6d00b268eefc\" rel=\"noopener noreferrer nofollow\"><u>\u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e<\/u><\/a>. \u0422\u0430\u043a\u0436\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0433\u0434\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u0435\u0434\u0438\u0430\u0446\u0438\u044f &#8212; \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u044b\u0431\u043e\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u043f\u043b\u0430\u0442\u0438\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u041f\u043e \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438 \u043e\u0442\u0441\u044b\u043b\u0430\u044e \u0432\u0430\u0441 \u043d\u0430 <a href=\"https:\/\/iunity3d.ru\/chto-takoe-reklamnaya-mediacziya\/\" rel=\"noopener noreferrer nofollow\"><u>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/u><\/a>, \u0435\u0441\u043b\u0438 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0430 \u0434\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043c\u0430.<\/p>\n<p>\u0416\u0435\u043b\u0430\u044e \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0441\u043f\u0435\u0445\u043e\u0432!<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/645781\/\"> https:\/\/habr.com\/ru\/post\/645781\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043c\u043e\u043d\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u0438 &#8212; \u043e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0432\u0430\u0436\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0414\u043e\u0445\u043e\u0434\u0438\u0442 \u0438 \u0434\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u044e\u0442 \u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u043e\u0432\u0443\u044e \u0441\u0445\u0435\u043c\u0443, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0442 \u043d\u0430 \u043d\u0435\u0435 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439. \u0421\u0435\u0439\u0447\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c ARPU (Average Revenue Per User) \u0441\u0432\u043e\u0435\u0439 \u0438\u0433\u0440\u044b: \u043b\u0443\u0442\u0431\u043e\u043a\u0441\u044b, \u0431\u0430\u0442\u043b\u043f\u0430\u0441\u044b, \u043f\u0440\u044f\u043c\u044b\u0435 \u043f\u0440\u043e\u0434\u0430\u0436\u044b \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u043e\u0432 \u0438\u043b\u0438 \u043a\u043e\u0441\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0441\u0442\u0430\u0440\u044b\u0439, \u043d\u043e \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0441 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f &#8212; \u0432\u043d\u0443\u0442\u0440\u0438\u0438\u0433\u0440\u043e\u0432\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0435\u0435 \u0432 Unity \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 Google AdMob.<\/p>\n<h2>\u0427\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u043e\u0432\u0438\u0447\u043a\u0443? Unity Ads vs AdMob<\/h2>\n<p>Unity Ads \u0438 AdMob (Google) &#8212; \u0434\u0432\u0430 \u0441\u0430\u043c\u044b\u0445 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435. \u041f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u043d\u043d\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u043d\u043e \u0441 \u043a\u0435\u043c \u0436\u0435 \u0438\u0437 \u043d\u0438\u0445 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433?<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0447\u0438\u0442\u0430\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 (\u0430 \u0432\u044b \u0435\u0433\u043e \u0447\u0438\u0442\u0430\u043b\u0438), \u0432\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043d\u0430 \u043a\u043e\u0433\u043e \u043f\u0430\u043b \u043c\u043e\u0439 \u0432\u044b\u0431\u043e\u0440. \u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0447\u0438\u043d, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044f \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0432\u0430\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0442 Google:<\/p>\n<ol>\n<li>\n<p>\u0423 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0432\u044b\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 CPC(cost-per-click);<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u044b\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c API;<\/p>\n<\/li>\n<li>\n<p>\u0414\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0432\u0430\u043c \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0437\u0430\u0432\u043e\u0434\u0438\u0442\u044c AdMob-\u0430\u043a\u043a\u0430\u0443\u043d\u0442, \u0442\u0430\u043a \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441;<\/p>\n<\/li>\n<\/ol>\n<h2>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c AdMob<\/h2>\n<p>\u041d\u0430 YouTube \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043f\u043e \u0442\u0435\u043c\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u041b\u0438\u0447\u043d\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"https:\/\/www.youtube.com\/watch?v=C4M823JYq-0\" rel=\"noopener noreferrer nofollow\"><u>\u044d\u0442\u043e\u0442 \u0440\u043e\u043b\u0438\u043a<\/u><\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 <a href=\"https:\/\/developers.google.com\/admob\/unity\/quick-start?hl=lt\" rel=\"noopener noreferrer nofollow\"><u>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/u><\/a>. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438.<\/p>\n<p>\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<ol>\n<li>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u0432 AdMob<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0431\u043b\u043e\u043a\u0438 (\u0440\u0435\u0447\u044c \u043e \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0431\u043b\u043e\u043a\u043e\u0432 \u043f\u043e\u0439\u0434\u0435\u0442 \u043d\u0438\u0436\u0435)<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441 <a href=\"https:\/\/github.com\/googleads\/googleads-mobile-unity\/releases\/tag\/v6.1.2\" rel=\"noopener noreferrer nofollow\"><u>\u0433\u0438\u0442\u0445\u0430\u0431\u0430<\/u><\/a> \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d<\/p>\n<\/li>\n<li>\n<p>\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432 Unity (<strong>Assets<\/strong> &#8212; <strong>Import Package<\/strong>)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 <strong>Assets<\/strong> &#8212; <strong>Google Mobile Ads <\/strong>&#8212; <strong>Settings <\/strong>ID \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041e\u043d\u043e \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 AdMob: <strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/strong> &#8212; <strong>\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/strong><\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<ol start=\"6\">\n<li>\n<p>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0440\u0435\u043a\u043b\u0430\u043c\u0443<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"cs\">using GoogleMobileAds.Api; public class AdInitialize : MonoBehaviour {     private void Awake()     {         MobileAds.Initialize(initStatus => { });     } }<\/code><\/pre>\n<ol start=\"7\">\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 (\u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0438\u0436\u0435).<\/p>\n<\/li>\n<\/ol>\n<h2>\u0420\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u0441\u0443\u0434\u0438\u043c, \u043a\u0430\u043a\u0438\u0435 \u0432\u0438\u0434\u044b \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 AdMob. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u043b\u043e\u043a, \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e \u0442\u0438\u043f. \u041d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043d\u0430\u0441 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0438\u0436\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0432 <a href=\"https:\/\/developers.google.com\/admob\/android\/quick-start?hl=ru\" rel=\"noopener noreferrer nofollow\"><u>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/u><\/a> \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043a\u043e\u0434 (\u043c\u0435\u043d\u044e Ad Formats \u0441\u043b\u0435\u0432\u0430).<\/p>\n<p>\u0412\u0410\u0416\u041d\u041e: \u0412 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u043d\u0438\u0436\u0435 \u0432\u043c\u0435\u0441\u0442\u043e ID \u0441\u0432\u043e\u0438\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 ID, \u043b\u0435\u0436\u0430\u0449\u0438\u0435 <a href=\"https:\/\/developers.google.com\/admob\/unity\/test-ads\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>. \u0418\u043d\u0430\u0447\u0435 \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u0431\u0430\u043d\u044f\u0442. \u0412 \u043c\u043e\u0435\u043c \u043a\u043e\u0434\u0435 \u0432\u0435\u0437\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 ID.<\/p>\n<h3>\u0411\u0430\u043d\u043d\u0435\u0440<\/h3>\n<p>\u041f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0439 \u0431\u043b\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0432\u0438\u0441\u0435\u0442\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435. \u041c\u043e\u0436\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0427\u0430\u0441\u0442\u043e\u0442\u0443 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e (<strong>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/strong> &#8212; <strong>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435<\/strong> &#8212; <strong>\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439<\/strong>). \u0414\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441 BannerView. \u0412 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 (\u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f). \u041e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0446\u0435\u043d\u044b.<\/p>\n<pre><code class=\"cs\">using GoogleMobileAds.Api; public class BannerAd : MonoBehaviour {     private BannerView _bannerAd;     private const string _bannerId = \"ca-app-pub-3940256099942544\/6300978111\";     private void OnEnable()     {         _bannerAd = new BannerView(_bannerId, AdSize.Banner, AdPosition.Top);         AdRequest adRequest = new AdRequest.Builder().Build();         _bannerAd.LoadAd(adRequest);     }     public void ShowAd()     {         _bannerAd.Show();     } }<\/code><\/pre>\n<figure class=\"bordered\"><figcaption>\u0411\u0430\u043d\u043d\u0435\u0440<\/figcaption><\/figure>\n<h3>\u041c\u0435\u0436\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430. \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c Show(). \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0441\u0442\u0430\u0432\u0438\u0442 \u0438\u0433\u0440\u0443 \u043d\u0430 \u043f\u0430\u0443\u0437\u0443.<\/p>\n<pre><code class=\"cs\">using GoogleMobileAds.Api; public class InterAd : MonoBehaviour {     private InterstitialAd _interAd;     private const string _interstitialId = \"ca-app-pub-3940256099942544\/8691691433\";     private void OnEnable()     {         _interAd = new InterstitialAd(_interstitialId);         AdRequest adRequest = new AdRequest.Builder().Build();         _interAd.LoadAd(adRequest);     }     public void ShowAd()     {         if (_interAd.IsLoaded())         {             _interAd.Show();         }     } }<\/code><\/pre>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<h3>\u041c\u0435\u0436\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0441 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435\u043c<\/h3>\n<p>\u0420\u0435\u043a\u043b\u0430\u043c\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0441 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0442\u043b\u0438\u0447\u0438\u0435\u043c &#8212; \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0430\u0433\u0440\u0430\u0434\u0443.<\/p>\n<pre><code class=\"cs\">public class RewardedInterAD : MonoBehaviour {     private RewardedInterstitialAd _rewardAd;     private const string _interstitialId = \"ca-app-pub-3940256099942544\/5354046379\";     private void OnEnable()     {          AdRequest adRequest = new AdRequest.Builder().Build();         RewardedInterstitialAd.LoadAd(_interstitialId, adRequest, adLoadCallback);     }     private void adLoadCallback(RewardedInterstitialAd ad, AdFailedToLoadEventArgs error)     {         if (error == null)         {             _rewardAd = ad;         }     }     public void ShowAd()     {         if (_rewardAd != null)         {             _rewardAd.Show(userEarnedRewardCallback);         }     }      private void userEarnedRewardCallback(Reward reward)     {         \/\/ \u041d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043d\u0430\u0433\u0440\u0430\u0434\u0443     } }<\/code><\/pre>\n<figure class=\"\"><figcaption>\u0420\u0435\u043a\u043b\u0430\u043c\u0430 \u0441 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435\u043c<\/figcaption><\/figure>\n<h3>\u0421 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435\u043c<\/h3>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.<\/p>\n<pre><code class=\"cs\">public class RewardAd : MonoBehaviour {     private RewardedAd _rewardAd;     private const string _adId = \"ca-app-pub-3940256099942544\/5224354917\";     private void OnEnable()     {         _rewardAd = new RewardedAd(_adId);         AdRequest adRequest = new AdRequest.Builder().Build();         _rewardAd.LoadAd(adRequest);         _rewardAd.OnUserEarnedReward += HandleUserEarnedReward;     }     public void ShowAd()     {         if (_rewardAd.IsLoaded())         {             _rewardAd.Show();         }     }     private void HandleUserEarnedReward(object sender, Reward args)     {         \/\/ \u041d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043d\u0430\u0433\u0440\u0430\u0434\u0443     } }<\/code><\/pre>\n<h3>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435<\/h3>\n<p>\u0420\u0435\u043a\u043b\u0430\u043c\u0430, \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u043f\u0440\u044f\u043c\u043e \u0432 \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u0441\u0446\u0435\u043d\u0443. \u041f\u043e \u043a\u0443\u0441\u043e\u0447\u043a\u0430\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 Get-\u043c\u0435\u0442\u043e\u0434\u044b. \u0421\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/www.youtube.com\/watch?v=M-XdptsCWtQ\" rel=\"noopener noreferrer nofollow\"><u>\u0433\u0430\u0439\u0434 \u043d\u0430 YouTube<\/u><\/a> \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c API <a href=\"https:\/\/developers.google.com\/admob\/unity\/native-advanced-unified?hl=ru\" rel=\"noopener noreferrer nofollow\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>.<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"\"><figcaption>\u041d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430<\/figcaption><\/figure>\n<h3>\u0417\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0420\u0435\u043a\u043b\u0430\u043c\u0430, \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b. \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0431\u0435\u0440\u0435\u043c \u0441 <a href=\"https:\/\/developers.google.com\/admob\/unity\/app-open?hl=ru\" rel=\"noopener noreferrer nofollow\"><u>\u044d\u0442\u043e\u0439<\/u><\/a> \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. <\/p>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"cs\">public class AppOpenAdManager {     private const string AD_UNIT_ID = \"ca-app-pub-3940256099942544\/3419835294\";      private static AppOpenAdManager instance;      private AppOpenAd ad;      private bool isShowingAd = false;      public static AppOpenAdManager Instance     {         get         {             if (instance == null)             {                 instance = new AppOpenAdManager();             }              return instance;         }     }      private bool IsAdAvailable     {         get         {             return ad != null;         }     }      public void LoadAd()     {         AdRequest request = new AdRequest.Builder().Build();          \/\/ Load an app open ad for portrait orientation         AppOpenAd.LoadAd(AD_UNIT_ID, ScreenOrientation.Portrait, request, ((appOpenAd, error) =>         {             if (error != null)             {                 \/\/ Handle the error.                 Debug.LogFormat(\"Failed to load the ad. (reason: {0})\", error.LoadAdError.GetMessage());                 return;             }              \/\/ App open ad is loaded.             ad = appOpenAd;         }));     }     public void ShowAdIfAvailable()     {         if (!IsAdAvailable || isShowingAd)         {             return;         }          ad.OnAdDidDismissFullScreenContent += HandleAdDidDismissFullScreenContent;         ad.OnAdFailedToPresentFullScreenContent += HandleAdFailedToPresentFullScreenContent;         ad.OnAdDidPresentFullScreenContent += HandleAdDidPresentFullScreenContent;         ad.OnAdDidRecordImpression += HandleAdDidRecordImpression;         ad.OnPaidEvent += HandlePaidEvent;          ad.Show();     }      private void HandleAdDidDismissFullScreenContent(object sender, EventArgs args)     {         Debug.Log(\"Closed app open ad\");         \/\/ Set the ad to null to indicate that AppOpenAdManager no longer has another ad to show.         ad = null;         isShowingAd = false;         LoadAd();     }      private void HandleAdFailedToPresentFullScreenContent(object sender, AdErrorEventArgs args)     {         Debug.LogFormat(\"Failed to present the ad (reason: {0})\", args.AdError.GetMessage());         \/\/ Set the ad to null to indicate that AppOpenAdManager no longer has another ad to show.         ad = null;         LoadAd();     }      private void HandleAdDidPresentFullScreenContent(object sender, EventArgs args)     {         Debug.Log(\"Displayed app open ad\");         isShowingAd = true;     }      private void HandleAdDidRecordImpression(object sender, EventArgs args)     {         Debug.Log(\"Recorded ad impression\");     }      private void HandlePaidEvent(object sender, AdValueEventArgs args)     {         Debug.LogFormat(\"Received paid event. (currency: {0}, value: {1}\",                 args.AdValue.CurrencyCode, args.AdValue.Value);     } }<\/code><\/pre>\n<figure class=\"\"><figcaption>Open App Ad<\/figcaption><\/figure>\n<h3>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u0438\u0440 \u043d\u0435 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 Unity Ads \u0438 AdMob, \u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0432\u044b\u0431\u043e\u0440\u0443 \u0441\u0435\u0442\u0438 \u043d\u0443\u0436\u043d\u043e, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0432\u0430\u0448\u0435\u0439 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438. \u0420\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u043a\u0440\u0443\u0433\u043e\u0437\u043e\u0440 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 <a href=\"https:\/\/zen.yandex.ru\/media\/appfox\/v-kakih-partnerkah-vygodno-monetizirovat-prilojenie-5caf0158ee4f6d00b268eefc\" rel=\"noopener noreferrer nofollow\"><u>\u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e<\/u><\/a>. \u0422\u0430\u043a\u0436\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0433\u0434\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u0435\u0434\u0438\u0430\u0446\u0438\u044f &#8212; \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u044b\u0431\u043e\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u043f\u043b\u0430\u0442\u0438\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u041f\u043e \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438 \u043e\u0442\u0441\u044b\u043b\u0430\u044e \u0432\u0430\u0441 \u043d\u0430 <a href=\"https:\/\/iunity3d.ru\/chto-takoe-reklamnaya-mediacziya\/\" rel=\"noopener noreferrer nofollow\"><u>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/u><\/a>, \u0435\u0441\u043b\u0438 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0430 \u0434\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043c\u0430.<\/p>\n<p>\u0416\u0435\u043b\u0430\u044e \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0441\u043f\u0435\u0445\u043e\u0432!<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/645781\/\"> https:\/\/habr.com\/ru\/post\/645781\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-328069","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/328069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=328069"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/328069\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=328069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=328069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=328069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}