Languages

Menu
Sites
Language
Error in Ad integration in to unity game on tizen

Hi,

I am from Eoxys Systems India Pvt. Ltd. We have relesed the couple of  Unity games on the Tizen Store months ago. I am doing the implimentation of the Ad API's by following the documentation provided by Samsung Team "https://developer.tizen.org/development/tizen-studio/extension-sdk/inmobi-tizen-ad-sdk-programing-guide"   I complted all the steps, but not find any of test cases how to test the implimentation, even tried by calling through button click and getting the erros like:

adlib
UnityEngine.Debug:LogError(Object)
Tizen.AdLib.AdProvider:InitAdlib(String, String, String, String)

adlib
UnityEngine.Debug:LogError(Object)
Tizen.AdLib.AdProvider:AddBannerAd(BannerAdSize, IntPtr&)

adlib
UnityEngine.Debug:LogError(Object)
Tizen.AdLib.AdProvider:BannerAdLoad(IntPtr)

adlib
UnityEngine.Debug:LogError(Object)
Tizen.AdLib.AdProvider:BannerAdSetVisibility(IntPtr, Boolean)

adlib
UnityEngine.Debug:LogError(Object)
Tizen.AdLib.AdProvider:BannerAdEnableAutoRefresh(IntPtr, Boolean)

adlib
UnityEngine.Debug:LogError(Object)
Tizen.AdLib.AdProvider:BannerAdSetRefreshInterval(IntPtr, Int32)

adlib
UnityEngine.Debug:LogError(Object)
Tizen.AdLib.AdProvider:BannerAdSetPosition(IntPtr, BannerAdPosition)

But these errors neither affecting nor disturbing my application, it was running fine.
In the downloaded ZIP I found 1 example application it was also giving me the same error. Can please help us to know are the steps provided in document is ok or anyupdates need. Please notify if any example were found any where for the reference. Want to know why these errors are and how to test the application after implementing the ad api's, is there any suggested document.

Regards,
Raghu DS,
Eoxys Systems India Pvt. Ltd.

Responses

4 Replies
André Reus

hi

Did you follow these steps?

To start off, please follow the below steps to create account and register your app with Inmobi.

Step 1 - Send an email to tizen.onboarding@inmobi.com

Step 2 - You will receive a document stating the terms and conditions for app monetization with InMobi along with a list of details required for account creation and site id approval

Step 3 - Fill in the required details (only to be TYPED, not handwritten) and share a signed copy with InMobi. A scanned copy should be shared on the above mentioned email id and a hard copy should be mailed to the below mentioned address

  Legal Team, INMOBI, 7th Floor, Cessna Business Park,
  Kadubishanahalli, Sarjapur - Outer Ring Road,
  BANGALORE, KARNATAKA 560103
  India

Step 4 - Once the details are approved, the InMobi team will get back to you within 2 working days with account details and site id.

Step 5 - Proceed with technical integration as mentioned in the sections below

Raghu DS

Hi,

We are done with the above steps, using the respective site id's.

I am trying for thr interstitial ad, getting the only 2 errors:
1)  adlib
     UnityEngine.Debug:LogError(Object)
     Tizen.AdLib.AdProvider:InitAdlib(String, String, String, String)

2)  DllNotFoundException: adlib
     Tizen.AdLib.AdProvider.SetInterstitialAdListener (InterstitialAdListener appListener)
      Ad.createInterstitialAd () (at Assets/Scripts/Ad.cs:71)
      UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:153)
      UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:634)
      UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:769)
      UnityEngine.Events.UnityEvent`1[T0].Invoke (.T0 arg0) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_1.cs:53)
      UnityEngine.EventSystems.EventTrigger.Execute (EventTriggerType id, UnityEngine.EventSystems.BaseEventData eventData) (at          
      C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/EventTrigger.cs:67)
     UnityEngine.EventSystems.EventTrigger.OnPointerDown (UnityEngine.EventSystems.PointerEventData eventData (at                                                                                     C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/EventTrigger.cs:93)
     UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerDownHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at                                          C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:38)
    UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerDownHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData                        eventData, UnityEngine.EventSystems.EventFunction`1 functor) (at                                                                                                                                                                            C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:269)

      UnityEngine.EventSystems.EventSystem:Update()

 

Raghu DS

Hi,

In target device the add is coming, but I want know how to set the add visibality position and time. It seems like defaultly enabling.
We are trying for interstitial adds. 

Iqbal Hossain

To hide the bannder, make the parameter false and true to show. 

result = adobject.BannerAdSetVisibility(adhandle, false);

For banner position, 

result = adobject.BannerAdSetPosition(adhandle, BANNER_AD_POS_TOP_CENTER);

By default, the ad is placed at  BANNER_AD_POS_TOP_CENTER

For moving the Banner ad, 

result = adobject.BannerAdSetMove(adhandle, 100, 200);

where x= 100, y=200 are the position of the ad. 

By default, the auto refresh option is enabled for banner ads and the ads are refreshed every 30 seconds provided a new ad is downloaded from the server. The game can control the refresh timer as well as disable the auto refresh option as shown in the following example.

result = adobject.BannerAdEnableAutoRefresh(adhandle, false);
result = adobject.BannerAdSetRefreshInterval(adhandle, 40);