守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 2077|回复: 3
打印 上一主题 下一主题

[项目讨论] github上的几个ane 作者:manage

[复制链接]
  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52692
    钢镚
    1422

    开源英雄守望者

    跳转到指定楼层
    楼主
    发表于 2015-3-26 14:05:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    unity-sdk-sample-app
    Manage Unity SDK

    This is the Manage Publisher Mobile Ads SDK for Unity Android/iOS

    Modified: 2014/10 SDK Version: 3.1

    Contains:
    • Manage Unity SDK Frameworks
    • Google Play Services
    • Sample App
    Requirements:
    • A Manage zone ID
    • Android version 2.3 or greater
    • iOS version 6.0 or greater
    • Runs only devices with iOS 6.0 or higher
    • Google Play Services
    • Unity 4.x
    3.1 Change Log:
    • minor bug fixes
    • Added loadAndPresent()
    • Bundled Google Play Services libraries
    • iOS 8 Support
    Sample App:

    This app is a simple implementation of the basic display ad and rewarded ad functionality available in the Manage sdk.

    Legal Requirements:

    You must accept the terms and conditions on the Manage web portal by registering in order to legally use the Manage Publisher SDK.







    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
    收藏收藏 分享分享 支持支持 反对反对 微信
    守望者AIR技术交流社区(www.airmyth.com)
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52692
    钢镚
    1422

    开源英雄守望者

    沙发
     楼主| 发表于 2015-3-26 14:05:53 | 只看该作者
    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52692
    钢镚
    1422

    开源英雄守望者

    板凳
     楼主| 发表于 2015-3-26 14:06:45 | 只看该作者
    ane-sdk

    Manage Adobe Air SDK

    Please refer to our online integration guide.

    A sample app integrated with our SDK can be downloaded here: https://github.com/manage/ane-sdk-sample-app


    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52692
    钢镚
    1422

    开源英雄守望者

    地板
     楼主| 发表于 2015-3-26 14:09:37 | 只看该作者
    ios-sdk


    http://manage.com


    iOS DocumentationAdsAdding the Library

    Add the AppSponserSDK.framework file to the project and add to the Link Binary With Libraries Panel under the projects Targets -> Build Phases Also add the AdSupport framework to the project.

    Use the following import where needed:


    1. #import <AppSponserSDK/ASPopupAdController.h>
    复制代码
    Be sure to add all the images in the "AppSponser Images" folder to your project. These contain the frames and close buttons. Feel free to replace them with similiarly sized images to tailor the experience for your application.Interface
    1. @interface ASPopupAdController : UIViewController
    2. @property (nonatomic, strong) NSString *zoneId;
    3. @property (nonatomic, weak) UIViewController *parentController;
    4. @property (nonatomic, weak) id<ASPopupAdDelegate> delegate;
    5. @property (nonatomic, assign)BOOL testMode;

    6. -(ASPopupAdController*)initWithZoneId:(NSString*)zoneId;
    7. -(void)load;
    8. -(void)presentAd;
    复制代码
    Presenting an ad
    1. NSString *zoneId = @"XXXXXXXXXXXXXXXXXXXXXX";
    2. ASPopupAdController *popupAd = [[ASPopupAdController alloc] initWithZoneId:zoneId];
    3. [popupAd presentAd];
    复制代码
    The ad gets displayed in whatever orientation the ad is at the time it is loaded and does not rotate with the app.The zone id can be found in Setting up an Ad Campaign.Please note: the ASPopupAd does not need to be added to the controller hierarchy. It overlays whatever the top controller is at the time the ad is ready to be displayed.To ignore frequency caps set to a particular ad, enable testMode by adding the following after initializing the ad.
    1. #ifdef DEBUG
    2.     popupAd.testMode = YES;
    3. #endif
    复制代码
    Presenting an ad on startupPlace the ad presentation code (shown above) in the applicationDidBecomeActive method in the application delegate to present the ad on start up.Delegate
    1. @protocol ASPopupAdDelegate <NSObject>
    2. -(void)popoverWillAppear;
    3. -(void)popoverWillDisappear;
    4. @optional -(void)popoverDidFailToLoadWithError:(NSError*)error;
    5. @end
    复制代码
    Hook into the delegate to manage events before and after the popovers appear. Add to your class and set the popupAdController delegate to self.
    1. @interface YourViewController () <ASPopupAdDelegate>

    2. // ...

    3. // Your initialization code
    4. ASPopupAdController *popup = [[ASPopupAdController alloc] initWithZoneId:@"xxxxxxxxxxxxxxxxxxxxxx"];
    5. popup.delegate = self;

    6. // ....

    7. -(void)popoverWillAppear {
    8.     NSLog(@"Do pre-popup code here");
    9. }

    10. -(void)popoverWillDisappear {
    11.     NSLog(@"Do post-popup code here");   
    12. }

    13. -(void)popoverDidFailToLoadWithError:(NSError *)error {
    14.     NSLog(@"Optionally do something when ad fails to load, or fail to show ad silently");   
    15. }
    复制代码
    Examples include: stopping music, pausing levels, etc.CachingThe load method caches the ad for its current orientation. The ad will be cached relative to the current orientation of the screen.
    1. _popup = [[ASPopupAdController alloc] initWithZoneId:@"xxxxxxxxxxxxxxxxxxxxxx"];
    2. [_popup load];

    3. // Somewhere later
    4. [_popup presentAd];
    复制代码
    Setting up an Ad CampaignGo to appsponser.com and login.From "My Apps", click "Create a New App" and fill in all required information.Create a human readable Zone Name corresponding to the location of your app. For example, this could be "On App Start" if you want your ad to load at the beginning of the app. If your ad comes up after level 2, title it "After Level 2".Select the Default Orientation of your app. This is the orientation that your app is set to be when it is first launched. Create the Zone.After you have created the zone, "Your Zone ID" should appear. Copy the value and use that for the initWithZoneId call.



    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    
    关闭

    站长推荐上一条 /4 下一条

    QQ|手机版|Archiver|网站地图|小黑屋|守望者 ( 京ICP备14061876号

    GMT+8, 2024-4-19 11:22 , Processed in 0.052894 second(s), 32 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

    快速回复 返回顶部 返回列表