The mobile applications we develop are sometimes inevitably released to foreign countries and regions, such as AppStore and GooglePlay. In this way, the domestic force of the United States, the multi-League what large advertising platform can not be used. At this time, we recommend the use of a cross-border advertising platform--tapjoy.
Tapjoy is not only the world's largest mobile advertising platform, but has become one of the world's leading advertising technology and application solutions provider, through the acquisition of 5rocks,tapjoy, its industry leader in mobile advertising technology and 5Rocks predictive analytics and marketing automation services successfully converged, Help the application development enterprise to generate revenue and maximize the lifetime value of the product. At present, Tapjoy provides customers with the best mobile analytics, marketing automation and advertising-based traffic monetization solutions, tailored mobile development kits for mobile free value-added application development companies.
Below we will explain the access related issues in four sections: iOS access (Unity), Android access, Tapjoy background operations, FAQs.
1.IOS Access Process:
1> Prepare resources: Open Address http://tapjoy.cn/help/57.htm download Unity SDK; open http://tapjoy.cn/help/96. HTM Download a tool file: Tapjoyxcodeupdatepostbuild.pyc, as shown in figure:
Unzip this after download to get a TAPJOYXCODEUPDATEPOSTBUILD.PYC
2>. Import the downloaded SDK into your Unity project and replace the TAPJOYXCODEUPDATEPOSTBUILD.PYC you just downloaded under the Editor folder in the project root directory.
3>: Hang the TapjoyPlugin.cs on a gameobject, usually hanging on top of the main camera Maincamera. Put the gameobject.name in the Awake method in the Tapjoyplugin class = this. GetType (). ToString () Delete.
4> Follow the example to write your ad code. Ads are divided into three kinds of integration wall, video ads and canvas ads. After writing the code, export the Xcode project file and import Xcode.
5> key point : When the project is imported, the project will error, because the reference Tapjoy.h and other files can not be found. So you also need to add the necessary libraries in Xcode at this point. Come back to see the Unity Project directory, under the Webplayertemplates file below a name called "Tapjoy" folder, copy this folder to the Mac, drag into the Xcode project, select "Copy" on the line.
2.Android Access Process:
1>. Also use Unity's SDK, but cannot export the APK directly, you need to export the Eclipse Project and edit the export in the Eclipse project. After you export the Eclipse project, it's not surprising that there are two project folders, Google-play-services_lib and folders with the same name as your app.
2>: When you open the Eclipse,import project, both projects are imported. The Google-play-services_lib project is essentially a quoted library. Add this code to the Androidmanifest.xml in application to refer to this library:
<uses-library android:name= "Com.google.android.maps"/>
<meta-data android:name= " Com.google.android.gms.version "
android:value=" @integer/google_play_services_version "/>
Therefore, it is also necessary to include in the Androidmanifest.xml:
<activity android:name= "Com.tapjoy.TJCOffersWebView" android:configchanges= "KEYBOARDHIDDEN|ORIENTATION|SC Reensize "/> <activity android:name=" Com.tapjoy.TapjoyFullScreenAdWebView "android:configchanges=" keyb Oardhidden|orientation|screensize "/> <activity android:name=" Com.tapjoy.TapjoyDailyRewardAdWebView "a ndroid:configchanges= "Keyboardhidden|orientation|screensize"/> <activity android:name= " Com.tapjoy.TapjoyVideoView "android:configchanges=" Keyboardhidden|orientation|screensize "/> <activity A Ndroid:name= "Com.tapjoy.TJAdUnitView" android:configchanges= "Keyboardhidden|orientation|screensize" android:th Eme= "@android: Style/theme.translucent.notitlebar.fullscreen" android:hardwareaccelerated= "true"/> < Activity android:name= "Com.tapjoy.mraid.view.ActionHandler" android:configchanges= "keyboardhidden|orientation| ScreenSize "/> <activity android:name=" com.tApjoy.mraid.view.Browser "android:configchanges=" Keyboardhidden|orientation|screensize "/>
3> Add the above code and then sign the export.
3.Tapjoy Background operation:
1> Open Tapjoy Control backstage: https://dashboard.tapjoy.com/login, register and login.
2> After entering the background is all English, not easy to understand the background of the structure, as follows to modify the background language: 1. Click on the account at the top right, and you will be provided with the login information settings screen;
2. Modify preferred language for Simplified Chinese, save it (note: Although it is set to Chinese, only part of it is Chinese, mostly English):
3> Add an app: Click "App" on the left menu bar, then new app, fill in the information, if it is already in GooglePlay or AppStore on-line, fill in the information will automatically display the details. Once saved, you'll get a new app ID and app Secret Key, which will be copied to your ad's project code. At this point, "Integrated?" This option shows "no", that is, it is not audited and needs to wait one business day or so to become "YES".
4> advertising wall: Tapjoy advertising wall of the background control than the domestic multi-union, Limei to be more troublesome, it can not automatically apply through the audit, but need to contact Tapjoy related personnel (such as business) in the background manually audited through. Set up the integration wall background process: Click on the Monetize (monetization) menu bar, add a new app, select the app you just applied, then set up the integration wall and application information in the virtual currency and app details. After the setup is complete, the integration status in the virtual currency is "not enabled" and you need to contact Tapjoy's customer service staff. If you are in the not enabled state, you will not be successful when you display the integration wall, and a black screen will appear.
5>. Tapjoy under the Monetization menu, there are several special functions, namely "new event", "New subdivision" and "new currency", which can better operate the advertisement. The first column of the menu bar "ads", under normal circumstances, this should be used to promote the use of it.
4. Frequently asked questions and precautions:
1>. AppStore recently checked the app with the integration wall, but rejected video ads and canvas ads. So the way to think of the integration wall is: In the submission, the integration wall is hidden: in the open when the detection time, the opening time postponed to 10 days after the submission. If it is a networked app, the server can control the opening time. After doing so, the app must also contain other non-prohibited ads, or the app is quoted in the ads but can not find ads, audit will not pass.
2>. Tapjoy encountered NullPointerException when calling methods in the SDK:
In this case, when the Requesttapjoyconnect (context context, string AppID, String Secretkey) method is called, the advertisement processing method is invoked, and the Tapjoy server does not get the AppID state. So the error will be. So this method must be called at the very beginning.
3> After the android apk is compiled, you will sometimes encounter the following error during installation: Installation error:install_failed_missing_shared_library:
The reason for this kind of error is the phone's own problem. Because the handset's Android system has been modified by the manufacturer, the lack of a series of files, the Google-play-services_lib does not support the result. If you have to change, then you need the root phone, add the missing files in the phone system directory.
4>: Encountered error dllnotfoundexception:jni when using the Android Unity plugin.
Update your Android SDK to have all the latest platforms and updates. This can be done through the ADT plugin for Eclipse or the Android SDK and AVD Manager. Please see article 4>.
5>. Android in the selection of API version, it is best to use more than 5.0 version: mouse Click Project Right-properties-android-Select Level21 and above. If there is no 5.0 API, then the update API is available. Sometimes updating the API does not show the update, because the direct connection to the Google update is not successful, here is an update Androidsdk method: Open tools-options-set the following parameters