Frequently Asked Questions - uc-union/union-ads-sdk-demo GitHub Wiki

FAQ


1. Testing

1.1. Test before Package

Check if Ad SDK is implemented according to the steps described in the document, including AndroidManifest.xml configuration, use of initialization interface, use of each ad interface and whether a correct pub for corresponding ad type is used.

1.2. Test

1.2.1. Things to note

Ad SDK currently supports ads from Facebook, Google and UC Union, and will select ads based on certain strategy and return to users for display. If you want to display ads from a specific source, your test client-side device should satisfy the following requirements on top of certain configuration requirements for SDK backend.

Googel Ad test, install the latest Google-play-service.

Facebook ad test, install the latest version of Facebook and sign in.

1.2.2. How to test

Open mobile network (WiFi or cellular), and test if your device can get ads normally. If you can get ads correctly, you will see the ad content below (native ad display is customized by developer)

  • Example banner ads

    条幅广告示例

  • Interstitial Example

    插屏广告示例

  • Native Ads Example,

    原生广告示例

2.FAQs

2.1 Environment Configuration

2.1.1. Which character encoding does Ad SDK use?

Ad SDK uses UTF-8 encoding, please use UTF-8 programming environment when implementing ads and importing example program, otherwise unreadable codes will occur.

2.1.2. Which version of Android SDK is compatible with Ad SDK?

Android SDK is compatible with SDK for Android 2.3.3 and above (API Level >= 10), there might be some compatibility issues for versions below 2.3.3.

2.1.3. Wrong pub

If a wrong pub is used when displaying ads, error will occur. In the case of error, please check if your pub is correct for the display ad.

For example wwo different pub are needed for banner and interstitial ads to differentiate different types of ads.

2.1.4. Crash at first start-up after a clean install【Pay attention to the following problem in Application.onCreate

On some Android 6.0 devices, crash might occur when you start up the SDK at the first time with a clean install. This is a bug of the Android system. The bug causes crashes because Application.onCreate is not used, and the core initialization process of Ad SDK is not used.

We will solve this problem internally in subsequent SDK version. One solution for developers will be to set allowbackup flag to false of Application in AndroidManifest.xml.

More discussion for this issue and be found here.

2.2. Contact Us

If you encounter any problem when using Android SDK, or should you have any opinion or suggestion for SDK, please contact customer service.

⚠️ **GitHub.com Fallback** ⚠️