Testing the Integration – Android Cocos2d-x

Rất tiếc, mục này chỉ tồn tại ở English. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

The SDK Integration can be tested by either setting your integration to test mode for certain devices or by using the Test Adspots provided by VMAX.

Validating the SDK Integration

The SDK Integration Tool helps you in checking the integrity of the APK file with VMAX integration on Microsoft Windows. You can download the Integration Validator Tool here.

After downloading, extract the archive to a folder.

Navigate to the folder IntegrationApps and place one or more APK files in it for validation.

Open SDKIntegrationValidator.exe. The result of this validation is saved in the file log.txt located in the folder logs. After evaluating and fixing the bugs if any, you should proceed with the on-device testing.

Enabling the Test Mode

In Test Mode Settings, enable Agency Campaigns or Ad Networks, or both.
In Ad Networks, choose one or more ad networks and a fallback network.

Adding Test Devices

The SDK allows you to set one or more devices as test devices by passing their AdvertisingID to the SDK. You can add test devices using the setTestDevices (int testMode, String… testDeviceIds) method which allows comma separated ids as parameters.

To add test devices

1

vmaxplugin.setTestDevices(inttestMode,StringtestDeviceIds);

where the possible test mode values are as follows

1

2

3

4

5

vmaxplugin.setTestDevices(VmaxAdView.TEST_FOR_ALL_DEVICES,null);// To enable testing on all devices

// OR

vmaxplugin.setTestDevices(VmaxAdView.TEST_via_ADVID,"<Advertiser ID>");// To enable testing on all devices with the specified advertiser ids

// OR

vmaxplugin.setTestDevices(VmaxAdView.TEST_via_ID_FROM_NETWORKS,"<ID from network>");// To enable testing on all devices with the specified network ids