{"id":261557,"date":"2015-07-15T19:17:02","date_gmt":"2015-07-15T15:17:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=261557"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=261557","title":{"rendered":"OpenAdAdapter \u2014 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0439"},"content":{"rendered":"<p>     \t\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u044f \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0434\u043d\u0443 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u0443\u044e \u0441\u0435\u0442\u044c \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0438 \u0437\u0430\u0441\u0443\u043d\u0443\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0442\u0435\u0439, \u0430 \u044d\u0442\u043e\u0439 \u0437\u0438\u043c\u043e\u0439 \u0440\u0435\u0448\u0438\u043b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u044d\u0442\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043d\u0430 github. \u0422\u0430\u043a \u0438 \u0440\u043e\u0434\u0438\u043b\u0441\u044f OpenAdAdapter. <\/p>\n<p>  <a href=\"https:\/\/github.com\/OpenAdAdapter\">OpenAdAdapter<\/a> \u2014 \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0438\u0433\u0440 (Android \u0438 iOS, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f Apache 2.0). \u042f \u0440\u0435\u0448\u0438\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0434\u043b\u044f \u0438\u0433\u0440, \u0430 \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0447\u0442\u043e\u0431\u044b API \u0431\u044b\u043b \u043f\u0440\u043e\u0449\u0435. \u041f\u043e\u0434 \u0438\u0433\u0440\u043e\u0439 \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d \u043e\u0434\u0438\u043d GL \u043a\u0430\u043d\u0432\u0430\u0441, \u0438 \u0431\u0430\u043d\u043d\u0435\u0440 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0441\u0432\u0435\u0440\u0445\u0443 \u0438\u043b\u0438 \u0441\u043d\u0438\u0437\u0443. \u041a\u043e\u0433\u0434\u0430 \u0431\u0430\u043d\u043d\u0435\u0440 \u0435\u0441\u0442\u044c, \u043a\u0430\u043d\u0432\u0443 \u043d\u0430\u0434\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044c. \u0422\u043e \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442: \u043f\u043e\u043a\u0430\u0436\u0438 \u0431\u0430\u043d\u043d\u0435\u0440 \u0441\u043d\u0438\u0437\u0443, \u0431\u0435\u0437 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043d\u0438\u043a\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0435\u0442\u044c \u0425 \u0437\u0430\u0441\u0443\u043d\u0443\u0442\u044c \u0432 \u043b\u0430\u0439\u043e\u0442. \u041c\u043d\u043e\u0433\u0438\u0435 \u0438\u0433\u0440\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SDK \u0438 \u0434\u0432\u0438\u0436\u043a\u043e\u0432 \u0442\u0438\u043f\u0430 Marmalade \u0438\u043b\u0438 Unity. \u0422\u0430\u043c \u0434\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u044e\u0430\u043d\u0441\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043b\u0431\u0435\u043a\u043e\u0432, \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0434\u0436\u0438\u0442\u0441\u0443. \u041a\u0441\u0442\u0430\u0442\u0438, \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 OpenAdAdapter \u043d\u0435\u0442 \u043a\u043e\u043b\u0431\u0435\u043a\u043e\u0432. <\/p>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e API OpenAdAdapter \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430. (\u042f \u0442\u0430\u043a \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b, \u043d\u043e \u043e\u043f\u0430\u0441\u0430\u044e\u0441\u044c \u0437\u0430\u0440\u0435\u043a\u0430\u0442\u044c\u0441\u044f). \u0412\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435.<\/p>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0435\u0442\u0438:<\/p>\n<h5>Android<\/h5>\n<p>   \u2014 AdColony<br \/>   \u2014 Admob<br \/>   \u2014 AerServ<br \/>   \u2014 Chartboost<br \/>   \u2014 Heyzap<br \/>   \u2014 InMobi<\/p>\n<h5>iOS<\/h5>\n<p>   \u2014 AdColony<br \/>   \u2014 Admob<br \/>   \u2014 AerServ<br \/>   \u2014 Chartboost<br \/>   \u2014 Heyzap<br \/>   \u2014 InMobi<br \/>   \u2014 iAd<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0439 \u0441\u0435\u0442\u0438 \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e. \u042f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0443\u044e WapStart \u0442\u0430\u043a, \u043a\u0430\u043a \u043e\u043d\u0438 \u043c\u043d\u0435 \u0440\u0430\u0437 \u043f\u043b\u0430\u0442\u0438\u043b\u0438 \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u0439 $1 \u0437\u0430 \u043a\u043b\u0438\u043a \u0446\u0435\u043b\u044b\u0445 \u0434\u0432\u0430 \u0434\u043d\u044f \u0437\u0430 \u043c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a, (\u043e\u0431\u044b\u0447\u043d\u043e 5 \u0446\u0435\u043d\u0442\u043e\u0432), \u043f\u043e\u0442\u043e\u043c \u0448\u0442\u0440\u0430\u0444\u0430\u043d\u0443\u043b\u0438 \u043d\u0430 30% \u0438 \u043e\u0442\u0434\u0430\u043b\u0438 \u0434\u0435\u043d\u044c\u0433\u0438, \u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0445 \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u043b\u043e \u0431\u044b \u0432\u0441\u0435 \u043d\u0430 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0435. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u0435\u0442\u0438 \u0434\u0430\u044e\u0442 jar \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438, \u0430 WapStart \u0434\u0430\u0432\u0430\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u0435\u043a\u043b\u0438\u043f\u0441 \u0442\u0430\u043a \u0435\u0449\u0435 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0412\u043e\u0442 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438\u0445 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u043f\u043e\u043a\u0430.<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0438\u0437 JSON \u0444\u0430\u0439\u043b\u0430 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430. <\/p>\n<pre><code class=\"java\">\t\tOpenAdAdapter.initFromUrl( \t\t\t\t\t\tthis, \t\t\t\t\t\t&quot;https:\/\/raw.githubusercontent.com\/sample-data\/oad1\/master\/android-redirect.json&quot;);  <\/code><\/pre>\n<pre><code class=\"objectivec\">    [OpenAdAdapter startWithUrl:@&quot;https:\/\/raw.githubusercontent.com\/sample-data\/oad1\/master\/ios-redir.json&quot;]; <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044e \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0441\u0435\u0442\u0438, \u0438\u043b\u0438 \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0441\u0435\u0442\u044c \u0432\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0431\u0430\u043d\u0438\u0442\u044c.<\/p>\n<p>  OpenAdAdapter \u0443\u043c\u0435\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u0430\u043d\u043d\u0435\u0440 \u0441\u0432\u0435\u0440\u0445\u0443 \u0438\u043b\u0438 \u0441\u043d\u0438\u0437\u0443, \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0431\u0430\u043d\u043d\u0435\u0440, \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d (fullscreen\/interstitial), \u0432\u0438\u0434\u0435\u043e(video) \u0438 \u0432\u0438\u0434\u0435\u043e \u0437\u0430 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435 (rewarded). \u0427\u0442\u043e \u0438 \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 json \u0444\u0430\u0439\u043b\u0435.<\/p>\n<h4>iOS<\/h4>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440 \u0434\u043b\u044f \u0430\u0439\u0444\u043e\u043d\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">#import &quot;ViewController.h&quot; #import &quot;OpenAdAdapter.h&quot;   @interface ViewController () @property (weak, nonatomic) IBOutlet UIButton *btnInit; @property (weak, nonatomic) IBOutlet UILabel *label1; @end  @implementation ViewController {     bool btick;     NSString * rewardText; } - (IBAction)clickChkReward:(id)sender {     OADReward * reward = [OpenAdAdapter reward];     if(reward != nil){         self-&gt;rewardText = [NSString stringWithFormat:@&quot;%@ %f %@&quot;, [reward network], [reward amount], [reward currency]];     }else{         self-&gt;rewardText = @&quot;&quot;;     } } - (IBAction)clickInit:(id)sender {     if(!self-&gt;btick){         self-&gt;btick = true;         [self performSelector:@selector(tick) withObject:nil afterDelay:1.0];     }     self.label1.text = @&quot;Initializing 1&quot;;     [OpenAdAdapter startWithUrl:@&quot;https:\/\/raw.githubusercontent.com\/sample-data\/oad1\/master\/ios-redir.json&quot;];     \/\/    [OpenAdAdapter startWithUrl:@&quot;https:\/\/raw.githubusercontent.com\/sample-data\/oad1\/master\/ios-no-heyzap.json&quot;];     \/\/[OpenAdAdapter startWithUrl:@&quot;https:\/\/raw.githubusercontent.com\/sample-data\/oad1\/master\/ios-heyzap.json&quot;];     self.label1.text = @&quot;Initializing 2&quot;; } -(void)tick{     [self performSelector:@selector(tick) withObject:nil afterDelay:1.0];     NSString * s1 = [NSString stringWithFormat:@&quot;bh %g %g %@&quot;, [OpenAdAdapter bannerHeightPts], [OpenAdAdapter bannerHeightPixels], self-&gt;rewardText];     self.label1.text = s1; } - (IBAction)clickBanner:(id)sender {     [OpenAdAdapter showTopBanner:self]; } - (IBAction)clickBottomBanner:(id)sender {     [OpenAdAdapter showBottomBanner:self]; } - (IBAction)clickHideBanner:(id)sender {     [OpenAdAdapter hideBanner]; } - (IBAction)clickFullscreen:(id)sender {     [OpenAdAdapter showFullscreen:self]; } - (IBAction)clickVideo:(id)sender {     [OpenAdAdapter showVideo:self]; } - (IBAction)clickRewarded:(id)sender {     [OpenAdAdapter showRewarded:self]; } - (IBAction)clickTest:(id)sender {      \/\/    [TestX1 test1];          [OpenAdAdapter test1]; } - (IBAction)clickTest2:(id)sender {     \/\/[OpenAdAdapter test2:self];     [OpenAdAdapter showTopBanner:self]; } - (IBAction)clickTest3:(id)sender {     \/\/[OpenAdAdapter test3:self];     [OpenAdAdapter showBottomBanner:self]; }   - (void)viewDidLoad {     [super viewDidLoad];     \/\/ Do any additional setup after loading the view, typically from a nib. }  - (void)didReceiveMemoryWarning {     [super didReceiveMemoryWarning];     \/\/ Dispose of any resources that can be recreated. }  @end <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e\u0442\u043b\u0438\u0447\u0438\u0435 \u043b\u0438\u043d\u043a\u043e\u0432\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 iOS (\u043e\u0442 Android) \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043e\u0434\u043d\u0443 \u043b\u0438\u0431\u0443, \u0430 \u043e\u0434\u043d\u0443 + \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0435\u0442\u0438.<br \/>  \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d Chartboost, \u0442\u043e \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <\/p>\n<p>   \u2014 libOADAdapterChartboost.a \u2014 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0438\u0437 OpenAdAdapter<br \/>   \u2014 Chartboost.framework \u2014 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043e\u0442 Chartboost<\/p>\n<p>  <a href=\"https:\/\/github.com\/OpenAdAdapter\/OAD-iOS-bin\/tree\/master\/chartboost\">github.com\/OpenAdAdapter\/OAD-iOS-bin\/tree\/master\/chartboost<\/a><\/p>\n<p>   \u2014 libOpenAdAdapter.a \u2014 \u0438 \u0441\u0430\u043c OpenAdAdapter<\/p>\n<p>  \u0421\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u044d\u0442\u043e \u043a\u0438\u043d\u0443\u0442\u044c \u0432\u0441\u0435 \u0441\u0435\u0442\u0438 \u0441\u0440\u0430\u0437\u0443.<\/p>\n<p>  <a href=\"https:\/\/github.com\/OpenAdAdapter\/OAD-iOS-bin\">github.com\/OpenAdAdapter\/OAD-iOS-bin<\/a><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438:<\/p>\n<pre><code class=\"bash\">    AdSupport.framework     StoreKit.framework     MessageUI.framework     libxml2.2.dylib     libz.dylib     libsqlite3.0.dylib     CoreTelephony.framework     EventKit.framework     EventKitUI.framework     Security.framework     Social.framework     WebKit.framework <\/code><\/pre>\n<p>  \u0438 Other Linker Flags: -ObjC<\/p>\n<h4>Android<\/h4>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0410\u043a\u0442\u0438\u0432\u0438\u0442\u0438 \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package com.example.testoad01;  import com.openadadapter.OpenAdAdapter; import com.openadadapter.Reward;  import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.TextView; import android.widget.Toast;  public class MainActivity extends ActionBarActivity {  \tRunnable tick = new Runnable(){  \t\t@Override \t\tpublic void run() { \t\t\ttry{ \t\t\t\tlabel1.setText(&quot;bh &quot; + OpenAdAdapter.getBannerHeightInPoints() + &quot; &quot; +OpenAdAdapter.getBannerHeightInPixels()); \t\t\t} \t\t\tfinally{ \t\t\t\thandler.postDelayed(tick, 1000);  \t\t\t} \t\t}}; \t\tHandler handler = new Handler(Looper.getMainLooper()); \tboolean ticking; \tprivate TextView label1; \t \t@Override \tprotected void onCreate(Bundle savedInstanceState) { \t\t\/\/ TestX.test(); \t\tsuper.onCreate(savedInstanceState); \t\tsetContentView(R.layout.activity_main); \t\tOpenAdAdapter.onCreate(this); \t\tlabel1 = (TextView)findViewById(R.id.textView1); \t}  \t@Override \tpublic boolean onCreateOptionsMenu(Menu menu) { \t\t\/\/ Inflate the menu; this adds items to the action bar if it is present. \t\tgetMenuInflater().inflate(R.menu.main, menu); \t\treturn true; \t}  \t@Override \tpublic boolean onOptionsItemSelected(MenuItem item) { \t\t\/\/ Handle action bar item clicks here. The action bar will \t\t\/\/ automatically handle clicks on the Home\/Up button, so long \t\t\/\/ as you specify a parent activity in AndroidManifest.xml. \t\tint id = item.getItemId(); \t\tif (id == R.id.action_settings) { \t\t\treturn true; \t\t} \t\treturn super.onOptionsItemSelected(item); \t}  \tpublic void butBS(View v) { \t\tToast.makeText(getApplicationContext(), &quot;Bottom Banner Show&quot;, \t\t\t\tToast.LENGTH_LONG).show(); \t\tOpenAdAdapter.showBottomBanner(null); \t}  \tpublic void butBSTop(View v) { \t\tToast.makeText(getApplicationContext(), &quot;Top Banner Show&quot;, \t\t\t\tToast.LENGTH_LONG).show(); \t\tOpenAdAdapter.showTopBanner(null); \t}  \tpublic void butBH(View v) { \t\tToast.makeText(getApplicationContext(), &quot;Banner Hide&quot;, \t\t\t\tToast.LENGTH_LONG).show(); \t\tOpenAdAdapter.hideBanner(); \t}  \tpublic void butF(View v) { \t\tToast.makeText(getApplicationContext(), &quot;Banner Fullscreen&quot;, \t\t\t\tToast.LENGTH_LONG).show(); \t\tOpenAdAdapter.showFullscreen(null); \t}  \tpublic void butVideo(View v) { \t\tToast.makeText(getApplicationContext(), &quot;Banner Video&quot;, \t\t\t\tToast.LENGTH_LONG).show(); \t\tOpenAdAdapter.showVideo(null); \t}  \tpublic void butR(View v) { \t\tToast.makeText(getApplicationContext(), &quot;Rewarded Video&quot;, \t\t\t\tToast.LENGTH_LONG).show(); \t\tOpenAdAdapter.showRewarded(null); \t}  \tpublic void butIU(View v) { \t\tToast.makeText(getApplicationContext(), &quot;Init from URL&quot;, \t\t\t\tToast.LENGTH_LONG).show();  \t\t\/\/ OpenAdAdapter.initFromUrl(this, \t\t\/\/ &quot;https:\/\/raw.githubusercontent.com\/sample-data\/oad1\/master\/data1.json&quot;); \t\tOpenAdAdapter \t\t\t\t.initFromUrl( \t\t\t\t\t\tthis, \t\t\t\t\t\t&quot;https:\/\/raw.githubusercontent.com\/sample-data\/oad1\/master\/android-redirect.json&quot;); \t\tif(!ticking){ \t\t\thandler.postDelayed(tick, 1000); \t\t\tticking = true; \t\t}  \t}  \tpublic void butIF(View v) { \t\tToast.makeText(getApplicationContext(), &quot;Init from File&quot;, \t\t\t\tToast.LENGTH_LONG).show();  \t\t\/\/ OpenAdAdapter.preinit();  \t}  \tpublic void butV(View v) { \t\tToast.makeText(getApplicationContext(), &quot;verify&quot;, Toast.LENGTH_LONG) \t\t\t\t.show();  \t\tOpenAdAdapter.verify();  \t}  \tpublic void butSF(View v) { \t\tToast.makeText(getApplicationContext(), &quot;Show Fullscreen&quot;, \t\t\t\tToast.LENGTH_LONG).show();  \t\tOpenAdAdapter.showMyFullscreen(this);  \t}  \tpublic void clickFetchReward(View v) { \t\tReward reward = OpenAdAdapter.fetchReward();  \t\tif (reward == null) { \t\t\tToast.makeText(getApplicationContext(), &quot;No reward&quot;, \t\t\t\t\tToast.LENGTH_LONG).show(); \t\t} else { \t\t\tToast.makeText( \t\t\t\t\tgetApplicationContext(), \t\t\t\t\t&quot;Reward &quot; + reward.getNetwork() + &quot; &quot; + reward.getAmount() \t\t\t\t\t\t\t+ &quot; &quot; + reward.getCurrency(), Toast.LENGTH_LONG) \t\t\t\t\t.show(); \t\t}  \t}  \t@Override \tpublic void onStart() { \t\tsuper.onStart(); \t\tOpenAdAdapter.onStart(this); \t}  \t@Override \tpublic void onResume() { \t\tsuper.onResume(); \t\tOpenAdAdapter.onResume(this); \t}  \t@Override \tpublic void onPause() { \t\tsuper.onPause(); \t\tOpenAdAdapter.onPause(this); \t}  \t@Override \tpublic void onStop() { \t\tsuper.onStop(); \t\tOpenAdAdapter.onStop(this); \t}  \t@Override \tpublic void onDestroy() { \t\tsuper.onDestroy(); \t\tOpenAdAdapter.onDestroy(this); \t}  \t@Override \tpublic void onBackPressed() { \t\tif (OpenAdAdapter.onBackPressed(this)) \t\t\treturn; \t\tsuper.onBackPressed(); \t}   } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0435\u0442\u0438 \u0445\u043e\u0442\u044f\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 onStart, onPause, onResume \u0438 \u0442.\u0434., \u0442\u043e \u0438 OpenAdAdapter \u043d\u0430 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u044d\u0442\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445.<\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u043f\u0440\u043e \u043a\u0438\u043f\u0443 \u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 <a href=\"https:\/\/github.com\/OpenAdAdapter\/OAD-Android-src\/blob\/master\/TestOAD01\/AndroidManifest.xml\">AndroidManifest.xml<\/a><\/p>\n<p>  \u0418 \u0432\u0441\u0435 jar \u0444\u0430\u0439\u043b\u044b \u043a\u0438\u043d\u0443\u0442\u044c \u0432 \u043f\u0430\u043f\u043a\u0443 lib (\u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c).<br \/>  <a href=\"https:\/\/github.com\/OpenAdAdapter\/OAD-Android-bin\/tree\/master\/lib\">github.com\/OpenAdAdapter\/OAD-Android-bin\/tree\/master\/lib<\/a><\/p>\n<h4>\u041d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u2014 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0435<\/h4>\n<p>  \u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0431\u0430\u043d\u043d\u0435\u0440 \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041a\u0430\u043a \u0440\u0430\u0437 \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438 \u043f\u043e\u0434\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430 \u043c\u0435\u043d\u044f \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041c\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u043b\u043e \u0435\u0441\u0442\u044c \u0438\u043b\u0438 \u043d\u0435\u0442 \u0431\u0430\u043d\u043d\u0435\u0440, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\/\u043a\u043e\u043b\u0431\u0435\u043a\/\u043b\u0438\u0441\u043d\u0435\u0440.<\/p>\n<p>   \u2014 AdShown \u2014 \u044d\u043a\u0440\u0430\u043d \u0441\u0436\u0430\u043b\u0441\u044f<br \/>   \u2014 AdFailed \u2014 \u044d\u043a\u0440\u0430\u043d \u0440\u0430\u0437\u0436\u0430\u043b\u0441\u044f<\/p>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c, \u044f \u043d\u0435 \u0434\u0435\u043b\u0430\u043b \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043b \u043e\u0431\u0440\u0430\u0437 \u0431\u0430\u043d\u043d\u0435\u0440\u0430 \u043d\u0430 \u043d\u0435\u043c, \u043d\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0441\u0430\u043c\u0430\u044f \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u0430\u044f \u0441\u0435\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a, \u043a\u0430\u043a \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b. \u041e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c AdFailed, \u0430 \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442 \u043a\u0430\u043d\u0432\u0443 \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d \u2014 \u0437\u0430\u0431\u0430\u043d\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0442\u0438\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0441\u0442\u0430\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<pre><code class=\"java\">int pt = OpenAdAdapter.getBannerHeightInPoints(); int px = OpenAdAdapter.getBannerHeightInPixels(); <\/code><\/pre>\n<pre><code class=\"objectivec\">int pt = [OpenAdAdapter bannerHeightPts]; int px = [OpenAdAdapter bannerHeightPixels]; <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0 \u2014 \u0431\u0430\u043d\u043d\u0435\u0440\u0430 \u043d\u0435\u0442, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 0 \u2014 \u0431\u0430\u043d\u043d\u0435\u0440 \u0441\u0432\u0435\u0440\u0445\u0443, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 0 \u2014 \u0431\u0430\u043d\u043d\u0435\u0440 \u0441\u043d\u0438\u0437\u0443. \u0412\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0430\u0434\u0440 \u0438\u043b\u0438 \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0433\u0430\u0431\u0430\u0440\u0438\u0442\u044b GL \u043a\u0430\u043d\u0432\u0430\u0441\u0430.<\/p>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c <a href=\"https:\/\/github.com\/OpenAdAdapter\/OAD-Android-src\/commit\/2d72df8c13b2c3a62ccdc183f6e2947199dcb1a9#diff-6f11613d5d7221ae743a9276130cef84R140\">\u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c<\/a> \u0431\u0435\u0437 \u043a\u043e\u043b\u0431\u0435\u043a\u043e\u0432 \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u044f \u0437\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 Rewarded \u0432\u0438\u0434\u0435\u043e.<\/p>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b JSON<\/h4>\n<p>  <a href=\"https:\/\/raw.githubusercontent.com\/sample-data\/oad1\/master\/data1.json\">raw.githubusercontent.com\/sample-data\/oad1\/master\/data1.json<\/a>  <\/p>\n<pre><code class=\"java\">{ \t&quot;debug&quot;:{&quot;verify&quot;:true}, \t&quot;urls&quot;:[&quot;https:\/\/ohohoho.appspot.com\/track&quot;, {&quot;url&quot;:&quot;https:\/\/xman545476.appspot.com\/track&quot;, &quot;priority&quot;: 10}], \t&quot;commands&quot;:[&quot;save&quot;, {&quot;cmd&quot;:&quot;settings&quot;, &quot;settings&quot;:{&quot;reportLocation&quot;:true, &quot;advertisingId&quot;:true, &quot;userId&quot;: true}}], \t&quot;strategy&quot;:{ \t\t&quot;banner&quot;: {&quot;list&quot;:[&quot;admob&quot;, &quot;inmobi&quot;, &quot;wapstart&quot;, &quot;aerserv&quot;], &quot;strategy&quot;:&quot;random&quot;}, \t\t&quot;fullscreen2&quot;: { \t\t\t\t&quot;list&quot;:[ \t\t\t\t\t&quot;aerserv&quot;,  \t\t\t\t\t&quot;inmobi&quot;],  \t\t\t\t&quot;strategy&quot;:&quot;random&quot;}, \t\t&quot;fullscreen&quot;: { \t\t\t\t&quot;list&quot;:[ \t\t\t\t\t&quot;aerserv&quot;,  \t\t\t\t\t&quot;heyzap&quot;,  \t\t\t\t\t&quot;adcolony&quot;, \t\t\t\t\t{&quot;name&quot;:&quot;heyzap&quot;,&quot;type&quot;:&quot;rewarded&quot;, &quot;preload&quot;: &quot;always&quot;},  \t\t\t\t\t&quot;admob&quot;,  \t\t\t\t\t{&quot;name&quot;:&quot;chartboost&quot;,&quot;type&quot;:&quot;video&quot;, &quot;preload&quot;: &quot;low&quot;},  \t\t\t\t\t&quot;inmobi&quot;],  \t\t\t\t&quot;strategy&quot;:&quot;random&quot;}, \t\t&quot;video&quot;: {&quot;list&quot;:[&quot;chartboost&quot;, &quot;heyzap&quot;],&quot;strategy&quot;:&quot;round-robin&quot;}, \t\t&quot;rewarded&quot;: {&quot;list&quot;:[&quot;adcolony&quot;, &quot;chartboost&quot;, &quot;heyzap&quot;],  \t\t\t\t&quot;strategy&quot;:&quot;random&quot;} \t}, \t&quot;networks&quot;:[ \t\t{ \t\t\t&quot;name&quot;:&quot;admob&quot;, \t\t\t&quot;bannerId&quot;:&quot;ca-app-pub-8607147313123654\/8458359243&quot;, \t\t\t&quot;fullscreenId&quot;:&quot;ca-app-pub-8607147313123654\/9935092440&quot; \t\t}, \t\t{ \t\t\t&quot;name&quot;:&quot;inmobi&quot;, \t\t\t&quot;propId&quot;:&quot;d4783f2efd4147499e40cc3540f2d221&quot;, \t\t\t&quot;bannerId&quot;:&quot;d4783f2efd4147499e40cc3540f2d221&quot;, \t\t\t&quot;fullscreenId&quot;:&quot;d4783f2efd4147499e40cc3540f2d221&quot;, \t\t\t&quot;bannerId1&quot;:&quot;1428178968194889&quot;, \t\t\t&quot;fullscreenId1&quot;:&quot;1428178928625995&quot; \t\t}, \t\t{ \t\t\t&quot;name&quot;:&quot;chartboost&quot;, \t\t\t&quot;id&quot;:&quot;5519c460c909a67c4e1e58a4&quot;, \t\t\t&quot;sig&quot;:&quot;e34adc93d56dfcff2a3a34d5f0dcd74204cbaf05&quot;, \t\t\t&quot;video&quot;: &quot;true&quot;, \t\t\t&quot;rewarded&quot;: &quot;true&quot; \t\t}, \t\t{ \t\t\t&quot;name&quot;:&quot;heyzap&quot;, \t\t\t&quot;id&quot;:&quot;e0c44b21d39c921a55f31ea836a70b65&quot;, \t\t\t&quot;video&quot;: &quot;true&quot;, \t\t\t&quot;rewarded&quot;: &quot;true&quot; \t\t}, \t\t{ \t\t\t&quot;name&quot;:&quot;adcolony&quot;, \t\t\t&quot;id&quot;:&quot;app398cb71e4cae463f94&quot;, \t\t\t&quot;videoId&quot;:&quot;vzc71a58270b924c95a0&quot;, \t\t\t&quot;rewardedId&quot;:&quot;vz6669f90f9dbe4e4a89&quot; \t\t}, \t\t{ \t\t\t&quot;name&quot;:&quot;aerserv&quot;, \t\t\t&quot;fullscreenId&quot;:&quot;1000741&quot;, \t\t\t&quot;banner320&quot;:&quot;1000834&quot;, \t\t\t&quot;banner728&quot;:&quot;1000835&quot; \t\t}, \t\t{ \t\t\t&quot;name&quot;:&quot;home&quot;, \t\t\t&quot;bannerId&quot;:&quot;&quot;, \t\t\t&quot;halfId&quot;:&quot;&quot;, \t\t\t&quot;fullscreenId&quot;:&quot;&quot; \t\t}, \t\t{ \t\t\t&quot;name&quot;:&quot;direct&quot;, \t\t\t&quot;bannerId&quot;:&quot;&quot;, \t\t\t&quot;halfId&quot;:&quot;&quot;, \t\t\t&quot;fullscreenId&quot;:&quot;&quot; \t\t} \t] }  <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0435 \u0442\u0440\u0438 \u043a\u043b\u044e\u0447\u0430 debug, urls, commands \u2014 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f. \u0412 \u043a\u043b\u044e\u0447\u0435 networks \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u0441\u0435\u0442\u0438. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0432\u0435 (home, direct) \u0442\u043e\u0436\u0435 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f. \u042f \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c \u0447\u0435\u043c JSON \u0444\u0430\u0439\u043b. <\/p>\n<p>  \u041a\u043b\u044e\u0447 strategy \u0441\u0430\u043c\u044b\u0439 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0435. \u0423 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c 4 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430 \u0434\u043b\u044f 4\u0445 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u2014 banner, fullscreen, video, rewarded. <br \/>  (fullscreen2 \u2014 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f)<\/p>\n<pre><code class=\"javascript\">&quot;banner&quot;: {&quot;list&quot;:[&quot;admob&quot;, &quot;inmobi&quot;, &quot;wapstart&quot;, &quot;aerserv&quot;], &quot;strategy&quot;:&quot;random&quot;} <\/code><\/pre>\n<p>  \u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u0438\u043c\u0435\u0435\u0442 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0434\u0432\u0430 \u043a\u043b\u044e\u0447\u0430 list \u0438 strategy. <\/p>\n<p>   \u2014 list \u2014 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0441\u0435\u0442\u0438;<br \/>   \u2014 strategy \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044e: random, round-robin, failsafe;<\/p>\n<p>  random \u2014 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c;<br \/>  round-robin \u2014 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438;<br \/>  failsafe \u2014 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u043f\u0435\u0440\u0432\u0443\u044e \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430, \u0430 \u0435\u0441\u043b\u0438 \u0442\u0430 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u043e \u0432\u0442\u043e\u0440\u0443\u044e.<\/p>\n<p>  \u041c\u043d\u043e\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 HTML \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430. \u0412\u044b\u043b\u043e\u0436\u0443 \u0435\u0433\u043e \u0432\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438. <\/p>\n<h4>\u041a\u0430\u043a \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f<\/h4>\n<p>  HTML \u2014 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0430 (\u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e);<br \/>  \u0412\u0435\u0431\u0441\u0430\u0439\u0442 \u2014 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0435\u0431\u0441\u0430\u0439\u0442, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0432\u044b\u0431\u0438\u0440\u0430\u043b \u0441\u0435\u0442\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u043b ZIP \u0444\u0430\u0439\u043b (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0434\u043d\u0438\u043c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u0440\u0443\u043a\u0438) \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u043a\u0430\u043a\u0438\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438 \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 AndroidManifest.xml;<br \/>  Unity3D \u2014 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e, \u0432\u0441\u0435 \u0432\u0438\u0434\u044b \u0440\u0435\u043a\u043b\u0430\u043c\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043e\u0431\u0435\u0438\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445, \u043d\u043e \u0442\u0430\u043c \u043d\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 UnityAds;<br \/>  \u0421\u0435\u0440\u0432\u0435\u0440 \u2014 \u0442\u0443\u0442 \u043c\u043d\u043e\u0433\u043e \u0438\u0434\u0435\u0439, \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f;<br \/>  \u0422\u044e\u043d\u0438\u043d\u0433 \u2014 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0431\u0430\u043d\u0435\u0440\u043e\u0432 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u043a\u0440\u0430\u043d\u0430, \u0443\u043c\u043d\u044b\u0439 \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u043f\u0440\u0435\u043b\u043e\u0430\u0434 \u0441\u0435\u0442\u0435\u0439 \u0438 \u0442.\u043f.;<br \/>  \u0421\u0430\u043c\u043e\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u2014 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u043c\u0435\u0442\u043e\u0434 verify. \u0412 \u0442\u0435\u043e\u0440\u0438\u0438 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u043b\u0438 \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438, \u043f\u0435\u0440\u043c\u0438\u0448\u0438\u043d\u044b, \u0440\u0435\u0441\u0438\u0432\u0435\u0440\u044b \u0438 \u043c\u0435\u0442\u0430 \u0442\u0435\u0433 \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 google play services. \u0418 \u043e\u043d \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0434\u0435\u043b\u0430\u0435\u0442, \u043d\u043e \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u044d\u0442\u043e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d;<br \/>  \u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0430 \u041c\u0435\u0433\u0430\u043c\u043e\u0437\u0433 \u2014 \u0441 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f OpenAdAdapter \u043f\u0440\u043e\u0442\u0438\u0432 Mopub, AdTapsy, Appodeal \u0438 \u0434\u0440\u0443\u0433\u0438\u0445, \u043e\u0431\u0435\u0449\u0430\u044e\u0449\u0438\u0445 \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u0439 CTR.     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/262715\/\"> http:\/\/habrahabr.ru\/post\/262715\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u044f \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0434\u043d\u0443 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u0443\u044e \u0441\u0435\u0442\u044c \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0438 \u0437\u0430\u0441\u0443\u043d\u0443\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0442\u0435\u0439, \u0430 \u044d\u0442\u043e\u0439 \u0437\u0438\u043c\u043e\u0439 \u0440\u0435\u0448\u0438\u043b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u044d\u0442\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043d\u0430 github. \u0422\u0430\u043a \u0438 \u0440\u043e\u0434\u0438\u043b\u0441\u044f OpenAdAdapter. <\/p>\n<p>  <a href=\"https:\/\/github.com\/OpenAdAdapter\">OpenAdAdapter<\/a> \u2014 \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0438\u0433\u0440 (Android \u0438 iOS, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f Apache 2.0). \u042f \u0440\u0435\u0448\u0438\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0434\u043b\u044f \u0438\u0433\u0440, \u0430 \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0447\u0442\u043e\u0431\u044b API \u0431\u044b\u043b \u043f\u0440\u043e\u0449\u0435. \u041f\u043e\u0434 \u0438\u0433\u0440\u043e\u0439 \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d \u043e\u0434\u0438\u043d GL \u043a\u0430\u043d\u0432\u0430\u0441, \u0438 \u0431\u0430\u043d\u043d\u0435\u0440 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0441\u0432\u0435\u0440\u0445\u0443 \u0438\u043b\u0438 \u0441\u043d\u0438\u0437\u0443. \u041a\u043e\u0433\u0434\u0430 \u0431\u0430\u043d\u043d\u0435\u0440 \u0435\u0441\u0442\u044c, \u043a\u0430\u043d\u0432\u0443 \u043d\u0430\u0434\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044c. \u0422\u043e \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442: \u043f\u043e\u043a\u0430\u0436\u0438 \u0431\u0430\u043d\u043d\u0435\u0440 \u0441\u043d\u0438\u0437\u0443, \u0431\u0435\u0437 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043d\u0438\u043a\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0435\u0442\u044c \u0425 \u0437\u0430\u0441\u0443\u043d\u0443\u0442\u044c \u0432 \u043b\u0430\u0439\u043e\u0442. \u041c\u043d\u043e\u0433\u0438\u0435 \u0438\u0433\u0440\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SDK \u0438 \u0434\u0432\u0438\u0436\u043a\u043e\u0432 \u0442\u0438\u043f\u0430 Marmalade \u0438\u043b\u0438 Unity. \u0422\u0430\u043c \u0434\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u044e\u0430\u043d\u0441\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043b\u0431\u0435\u043a\u043e\u0432, \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0434\u0436\u0438\u0442\u0441\u0443. \u041a\u0441\u0442\u0430\u0442\u0438, \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 OpenAdAdapter \u043d\u0435\u0442 \u043a\u043e\u043b\u0431\u0435\u043a\u043e\u0432. <\/p>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e API OpenAdAdapter \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430. (\u042f \u0442\u0430\u043a \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b, \u043d\u043e \u043e\u043f\u0430\u0441\u0430\u044e\u0441\u044c \u0437\u0430\u0440\u0435\u043a\u0430\u0442\u044c\u0441\u044f). \u0412\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435.<\/p>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0435\u0442\u0438:<\/p>\n<h5>Android<\/h5>\n<p>   \u2014 AdColony<br \/>   \u2014 Admob<br \/>   \u2014 AerServ<br \/>   \u2014 Chartboost<br \/>   \u2014 Heyzap<br \/>   \u2014 InMobi<\/p>\n<h5>iOS<\/h5>\n<p>   \u2014 AdColony<br \/>   \u2014 Admob<br \/>   \u2014 AerServ<br \/>   \u2014 Chartboost<br \/>   \u2014 Heyzap<br \/>   \u2014 InMobi<br \/>   \u2014 iAd  <\/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-261557","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/261557","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=261557"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/261557\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=261557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=261557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=261557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}