Help Center/Details/

Information needed for feedback

In our daily feedback, There are lots of scenarios where developers need to provide relevant request information or advertising materials to us to locate problems. The following content will explain how to get Charles Proxy logs or obtain effective logs.


Usage scenarios include but are not limited to the following scenarios:

  • Ads are not filled,and the error code is 400xx or 20001.
  • The ad is showing abnormally
  • Ads need to be blocked
  • Ads complaint

There are two ways to provide us with effective information

Plan A: Provide Charles Proxy log

Step 1: Client configuration

Please ignore step 1 for iOS devices

Configure the network_config.xml file in Android Studio

<?xml version="1.0" encoding="utf-8"?>
<network-security-config data-tomark-pass >
    <base-config cleartextTrafficPermitted="true" data-tomark-pass >
        <trust-anchors data-tomark-pass >
            <certificates src="user"  data-tomark-pass />
            <certificates src="system"  data-tomark-pass />
        </trust-anchors>
    </base-config>
</network-security-config>

Then update the AndroidManifest.xml file to use the configuration.

<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
    <application ...
                android:networkSecurityConfig="@xml/network_config"
    ... >
        ...
    </application>
</manifest>

Step 2: Proxy configuration

1. Settings on Charles

a. Go to Proxy > SSL Proxying Settings, select Enable SSL Proxying and click Add, then add * and *:443 and click OK.
b. Go to Help > SSL Proxying > Install Charles Root Certificate and then install this certificate.
6.png

2. Settings on Android devices (if you are using iOS devices, please go to step 3)

a. Click Settings > Wi-Fi and select your Wi-Fi network.
b. Click the Show advanced options.
c. Choose Proxy settings, select the manual option and enter the IP address from your desktop/laptop in the Proxy hostname field. Then enter 8888 in the Proxy port field. Then save it.
d. Using your phone then browsers to chls.pro/ssl to download and install the certificate.
e. You should see an alert asking if you want to allow your mobile device to connect in Charles. Select Allow.

3. Settings on iOS devices (if you are using Android devices, please go to step 2)

a. Click Settings > Wi-Fi and select your Wi-Fi network.
b. Select HTTP Proxy, and then click manual button
c. enter the IP address from your desktop/laptop in the host field. Then enter 8888 in the port field. Then save it.
d. Using your phone then browsers to chls.pro/ssl to download and install the certificate.
e. You should see an alert asking if you want to allow your mobile device to connect in Charles. Select Allow.

4. Starting to test the application and try to request ads.

Step 3: Checking Charles Proxy log

The validity of the log can be verified by searching for the pangle field related to settings or get_ads in the path
7.png
8.png

Notice: If you are using bidding ads, it won't have the get_ads log.

Step 4: Necessary information

Please send us the following information to locate the problems.

  1. Application ID and placement ID
  2. The charles proxy log
  3. It would be better if you can send GAID or IDFA to us together.

Plan B: Provide verbose log

We do not currently support the way to provide logs through Xcode

Step 1: Add additional code

Before you initialize the pangle's SDK, please add two lines
TTAdSdk.getAdManager().openDebugMode()
TTAdSdk.getAdManager().debugLog(1)
And try to request an ad
You can see the log printed by pangle in the console
9.png

Step 2: Necessary information

Please send us the following information to locate the problems.

  1. Application ID and placement ID
  2. The complete log output from the Android console
  3. It would be better if you can send GAID or IDFA to us together.
Did the content solve your problem?