tizen1


SUBMITTED BY: Guest

DATE: Dec. 12, 2016, 8:07 p.m.

FORMAT: Text only

SIZE: 984 Bytes

HITS: 565

  1. <script type="text/javascript">
  2. var ad_id = "00000000-0000-0000-000000000000";
  3. </script>
  4. <script type="text/javascript">
  5. function requestAd(){
  6. var inmobi_conf =
  7. {
  8. siteid: "PLEASE REPLACE", /* Your site ID from InMobi registration */
  9. slot: "15",
  10. test: true,
  11. manual: true,
  12. interval: 30, /* In seconds, the minimum accepted value is 20 */
  13. uIdMap: {
  14. TI: ad_id
  15. }
  16. };
  17. _inmobi.getNewAd(document.getElementById('tizen_15'),inmobi_conf);
  18. }
  19. function onSuccess(ad) {
  20. ad_id = ad.id;
  21. requestAd();
  22. }
  23. function onError(error) {
  24. ad_id = "00000000-0000-0000-0000-000000000000";
  25. requestAd();
  26. }
  27. function getAdId() {
  28. try {
  29. tizen.systeminfo.getPropertyValue("ADS", onSuccess, onError);
  30. }
  31. catch(err) {
  32. ad_id = "00000000-0000-0000-0000-000000000000";
  33. requestAd();
  34. }
  35. }
  36. </script>

comments powered by Disqus