Latest 0.0.7.3
Homepage https://github.com/OrisForest/Lomark
License MIT
Platforms ios 8.0, requires ARC
Dependencies AFNetworking
Authors

Lomark

简介:点媒 Lomark 媒体接入平台是媒体流量资源管理框架,旨在通过向移动广告平台提供适宜的移动广告信息,从而达到资源共享、优势互补的目的。

集成方法

关闭ATS,在项目的info.plist文件中加入如下代码

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

自动集成

如果你使用 Cocoapods做项目依赖,只需要在Podfile里添加如下代码

Podfile

platform :ios, '8.0'

target 'TargetName' do
pod 'Lomark'
end

手动集成

  1. 到这个网址项目链接下载最新的示例程序,把 Lomark . framework 文件添加到你的项目中
  2. 由于框架内部依赖了 AFNetworking 网络请求框架,所以你还需要添加 AFNetworking 到你的项目中,否则会发生编译错误
  3. 在项目Target的Build Settings中查找 Other Linker Flags, 添加 ‘-all_load’
  4. 完成上面三步以后如果编译没有错误,就可以开始使用了

使用方法

获取开屏广告

[LMLaunchManager lm_loadAdWithTagId:@"你从媒体方获得的广告的tagid" duration:5 adType:LMAdTypeLaunch];

获取插屏广告

[LMLaunchManager lm_loadAdWithTagId:@"5f97b37c299ef31c3885151307f216c5" duration:3 adType:LMAdTypeAlert];

获取视频广告

[LMLaunchManager lm_loadAdWithTagId:@"a9199f83895101307f19s9" duration:0 adType:LMAdTypeVideo];

获取横幅广告

// 顶部横幅
[LMLaunchManager lm_loadBannerAdWithTagId:@"0f97b37c2c2ef31c3775151307d216c0" adAlignment:LMAdAlignmentTop bannerBlock:nil];
// 底部横幅
[LMLaunchManager lm_loadBannerAdWithTagId:@"0f97b37c2c2ef31c3775151307d216c0" adAlignment:LMAdAlignmentBottom bannerBlock:nil];
// 自定义横幅位置
[LMLaunchManager lm_loadBannerAdWithTagId:@"0f97b37c2c2ef31c3775151307d216c0" adAlignment:LMAdAlignmentCustom bannerBlock:^(LMBannerView *banner) {
    banner.frame = CGRectMake(0, 150, wself.view.frame.size.width,80);
    [self.view addSubview:banner];
}];

Latest podspec

{
    "name": "Lomark",
    "version": "0.0.7.3",
    "summary": "SDK for Advertisement",
    "description": "u70b9u5a92 Lomark u5a92u4f53u63a5u5165u5e73u53f0u662fu5a92u4f53u6d41u91cfu8d44u6e90u7ba1u7406u6846u67b6uff0cu65e8u5728u901au8fc7u5411u79fbu52a8u5e7fu544au5e73u53f0u63d0u4f9bu9002u5b9cu7684u79fbu52a8u5e7fu544au4fe1u606fuff0cu4eceu800cu8fbeu5230u8d44u6e90u5171u4eabu3001u4f18u52bfu4e92u8865u7684u76eeu7684u3002",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/OrisForest/Lomark",
    "authors": {
        "u5d14u9e4f": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/OrisForest/Lomark.git",
        "tag": "0.0.7.3"
    },
    "vendored_frameworks": "Lomark.framework",
    "requires_arc": true,
    "dependencies": {
        "AFNetworking": []
    }
}

Pin It on Pinterest

Share This