te')); return $arr; } /* 遍历用户所有主题 * @param $uid 用户ID * @param int $page 页数 * @param int $pagesize 每页记录条数 * @param bool $desc 排序方式 TRUE降序 FALSE升序 * @param string $key 返回的数组用那一列的值作为 key * @param array $col 查询哪些列 */ function thread_tid_find_by_uid($uid, $page = 1, $pagesize = 1000, $desc = TRUE, $key = 'tid', $col = array()) { if (empty($uid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('uid' => $uid), array('tid' => $orderby), $page, $pagesize, $key, $col); return $arr; } // 遍历栏目下tid 支持数组 $fid = array(1,2,3) function thread_tid_find_by_fid($fid, $page = 1, $pagesize = 1000, $desc = TRUE) { if (empty($fid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('fid' => $fid), array('tid' => $orderby), $page, $pagesize, 'tid', array('tid', 'verify_date')); return $arr; } function thread_tid_delete($tid) { if (empty($tid)) return FALSE; $r = thread_tid__delete(array('tid' => $tid)); return $r; } function thread_tid_count() { $n = thread_tid__count(); return $n; } // 统计用户主题数 大数量下严谨使用非主键统计 function thread_uid_count($uid) { $n = thread_tid__count(array('uid' => $uid)); return $n; } // 统计栏目主题数 大数量下严谨使用非主键统计 function thread_fid_count($fid) { $n = thread_tid__count(array('fid' => $fid)); return $n; } ?>unity game engine - Issues with Connecting Test Device for Admob Testing - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

unity game engine - Issues with Connecting Test Device for Admob Testing - Stack Overflow

programmeradmin2浏览0评论

I’ve encountered issues with Admob, specifically with its test device connection system

A bit of backstory:

I tried to integrate the User Messaging Platform (UMP) panel into my Unity project, but every time I faced the issue that the UMP panel didn’t pop up on the test device. After testing various cases and checking the logs, I discovered that the UMP panel doesn’t show because my device doesn’t require it (ConsentStatus.NotRequired). I started re-reading and double-checking all the Admob documentation

Here’s what I’ve done:

  1. Created GDPR and USA forms
  2. Added a test European regional zone DebugGeography.EEA
  3. Added my cached ID, which I took from logcat: TestDeviceHashedIds = "TEST-DEVICE-HASHED-ID"
  4. Used ConsentInformation.Reset(); before each new UMP request
  5. Double-checked Admob keys
  6. Re-imported Admob
  7. Performed Resolve and Force resolve
  8. Regenerated the manifests
  9. Waited 24+ hours. None of these helped

I decided to use the Admob Ad Inspector to see if I could get any feedback, so I started setting it up:

  1. Registered my device via the Admob Console and entered the advertising ID
  2. Waited 24+ hours

I tried to invoke the inspector with a gesture — it didn’t work. Then, I tried invoking it through code — still nothing. I looked at the logs:

Error: Unity Ad inspector cannot be opened because the device is not in test mode. 
See  for more information

I followed all the documentation — still no success, and now I’m stuck

My main issue: Admob doesn’t recognize my device as a test device. Can anyone point out what I might have missed?

Thanks in advance!

Context:

  • Unity: 2022.3.57f1
  • Min API Level: 25; Target API Level: 35
  • Admob: v9.5.0
  • Test Device: Galaxy M35 5G and BlueStacks emulator (Samsung Galaxy S21 Ultra)
发布评论

评论列表(0)

  1. 暂无评论