Comments (6)
文档已更新
from gtads.
目前看有两种,一个是优先级、一个是完全随机,是否方便支持按概率?
- GTAdsModel.PRIORITY优先级模式 当前广告位的优先级数值越大越优先加载(当加载失败后从剩余广告中按数值大小依次重试)
- GTAdsModel.RANDOM随机模式 当前广告位出现的概率必须大于0,如果小于0则不会加载该广告,数值越大出现的概率越高(当加载失败后从剩余广告中重新随机加载)
@zeewell
from gtads.
比如,我想70%的概率显示优量汇的广告,而30的概率显示穿山甲,现在就没办法实现。
如果支持按配置概率来展示,比如,我给优量汇设置为7,而穿山甲设置为3,那么就可以了。
from gtads.
@zeewell 随机模式原理是 所有广告位的出现概率总和中取一个随机数,然后依次匹配是在哪个区间内,来决定加载哪个厂商广告。并非完全随机加载广告,仍受probability字段控制。
详细可以看代码 https://github.com/gstory0404/GTAds/blob/master/gtads/lib/gtads_util.dart
from gtads.
优量汇设置为7,穿山甲设置为3,理论上优量汇出现的概率就是无限接近70%
from gtads.
嗯,那可以。这样的话,实际应该理解为就是概率上的哈,不是完全随机。估计得改下文档~~
from gtads.
Related Issues (10)
- 为什么使用StreamSubscription 的地方,优量汇的广告stream 需要被cancel,其它的广告平台却不需要cancel? HOT 2
- 希望支持gromore HOT 1
- 信息流广告拉取失败 HOT 2
- 有支持Admob的计划吗? HOT 3
- [gtads_ylh] 这个插件是否也能够支持 竞价模式 呢? HOT 1
- 编译失败 HOT 3
- 能增加个快手广告嘛? HOT 3
- 信息流广告 HOT 1
- Banner广告ios正常,android不显示 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtads.