以下是我创建基于自定义受众群体的远程配置条件的步骤 -
- 首先,我创建了一个名为OEM的用户属性
- 我创建了一个动态链接
utm_source
为google-micromax
- 我创建了一个
OEM-Micromax
Spectator ,条件是用户属性OEM
包含google-micromax
- 然后,我根据Micromax受众创建了一个远程配置条件
- 然后我处理动态链接并将用户属性设置为从链接
utm_source
返回的值
AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, this, autoLaunchDeepLink)
.setResultCallback(
new ResultCallback<AppInviteInvitationResult>() {
@Override
public void onResult(AppInviteInvitationResult result) {
if (result.getStatus().isSuccess()) {
//First time user
if (StorageHelper.getBooleanObject(StorageHelper.FIRST_TIME_USER, true)) {
Intent intent = result.getInvitationIntent();
String deepLink = AppInviteReferral.getDeepLink(intent);
Uri uri = Uri.parse(deepLink);
String utm_source = uri.getQueryParameter("utm_source");
FirebaseEvents.setUserProperty(utm_source);
StorageHelper.setBooleanObject(StorageHelper.FIRST_TIME_USER, false);
}
FirebaseEvents.logEventInvite(true);
}
}
});
- 现在,当我从远程配置中获取
oem_admob_banner_unit_id
参数时,它仍然返回 Default 值而不是Micromax受众的值 .
我究竟做错了什么 ?
2 回答
不确定这是否与您的问题有关,但我也无法让受众驱动的远程配置工作 . (我碰巧是基于app事件/参数的 Spectator ,所以这是一个不同的场景,但可能是类似的问题) . 在我通过反复触发我的事件迫使 Spectator 中有足够的用户之后,它终于开始工作了 . 不确定它有多少,可能在10左右 .
拿取后,你应该打电话