com.didabu.adplaying.topon.ofm.unity
v0.6.3
Published
Didabu Unity Ad Topon Ofm
Downloads
5
Readme
Didabu Topon ��ۺ�Unity���
��װ
��װ��ʽһ
����Ŀ��Ŀ¼Packages/manifest.json�ļ���������scopedRegistries��
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org",
"scopes": [
"com.modesttree.zenject",
"com.mogafa",
"com.didabu",
"com.toponad.ofm.core.unity"
]
}
]
Ȼ������dependencies������
"com.didabu.adplaying.topon.ofm.unity": "0.6.1",
��������ͼ��ʾ��
��װ��ʽ��
��Unity�༭����Edit�˵���ѡ��Project Settings����Project Settings���ڣ����������ѡ��Package Manager������һ���µ�Registry����ͼ��
����
- Name��дnpmjs
- Url��дhttps://registry.npmjs.org
- Scope(s)��д�������ݣ�com.modesttree.zenject��com.mogafa��com.didabu��com.toponad.ofm.core.unity
��Package Manager�����ϣ�ѡ��PackagesΪMy Registries
Ȼ���ٴ�didabu������ѡ����Ҫ��Didabu Unity Ad Topon Ofm�汾��װ��
ʹ��
������using��
using DidabuCloud.Unity.AdPlaying.Core;
using DidabuCloud.Unity.AdPlaying.Topon.Ofm;
Ĭ�Ϲ�沥�Ų���
Didabu������и�Ĭ�ϵĹ�沥�Ų��ԣ��������Ҫ̫���ӵĹ�沥�Ų��ԣ�����ֱ��ʹ��Ĭ�ϵĹ�沥�Ų��ԣ���ʼ��һ��ʵ������������˵�����£�
var adPlayingConfig = new DefaultAdPlayingStrategyConfiguration() //Ĭ�Ϲ�沥�Ų�������
{
RewardedMaxTimes = 60,//������Ƶÿ����Ŵ���
AdUnits = new List<AdUnitConfiguration>
{
new AdUnitConfiguration //���ü�����Ƶ��浥Ԫ
{
AdType = Mogafa.Unity.AdPlaying.Core.AdType.Rewarded,//������Ƶ
AdUnitId = "YOUR_AD_UNIT_ID",//�ڹ��ƽ̨�����õļ�����Ƶ��浥ԪID
MaxTimesToPlay = 100,//ÿ����Ŵ���
Priority =1,//���ȼ�
},
new AdUnitConfiguration //���ò�����浥Ԫ
{
AdType = Mogafa.Unity.AdPlaying.Core.AdType.Interstitial,//����
AdUnitId = "YOUR_AD_UNIT_ID",//�ڹ��ƽ̨�����õIJ�����浥ԪID
MaxTimesToPlay = 30, //ÿ����Ŵ���
Priority = 1
}
},
//���Լ���б���ÿ�����Ժ�����ʱ������λΪ����
RetryIntervals = new List<int> { 5000, 10000, 12000, 15000 }
};
var adPlayingStrategy = new DefaultAdPlayingStrategy(adPlayingConfig); //Ĭ�Ϲ�沥�Ų���
����Topon��ۺϹ����
�����´�������Topon��ۺϹ������
//ʹ��Topon��ۺϹ����
Didabu.Application.UseToponOfm("YOUR_TOPON_APPID", "YOUR_TOPON_DEV_KEY", adPlayingStrategy);
//ʹ��Topon��ۺϹ���������ù���¼��ϱ�
Didabu.Application.UseToponOfm("YOUR_TOPON_APPID", "YOUR_TOPON_DEV_KEY", adPlayingStrategy).EnableAdPlayingEvent();
��������˹���¼��ϱ���SDK�����Զ��ϱ�ddb_purchase�¼�,�����¼�����ѡ���Ƿ��ϱ����μ���https://github.com/didabu/unity-adplaying-core/blob/dev/README.md#%E5%85%81%E8%AE%B8%E4%B8%8A%E6%8A%A5%E7%94%A8%E6%88%B7%E5%B9%BF%E5%91%8A%E4%BA%8B%E4%BB%B6