Notification

Get personalized optimization tips, understand your account health and set up completion on the improved "My AdMob page".

Manage ads

Find the click string of an ad

A click string is the URL that takes a user to an ad. Click strings are also be referred to as "click tags" or "tracking URLs". This article describes 2 options for finding the click string of an ad:

Network tracing is generally preferred because it works on all devices.

Network tracing Label indicating that this is the preferred method

Network tracing allows you to review network activities relating to the Google Mobile Ads SDK. This includes finding the click string of an ad. A key reason to use network tracing instead of tools such as Charles Proxy is that it will work on all Android or iOS versions and devices.

The setup instructions for using network tracing can be found in the developer documentation for Android or iOS.

External web debugging proxy tools

You can use a debugging proxy, such as Charles or Fiddler, to view mobile session traffic logs and find the click string of an ad.

Requirements

  • A web debugging proxy, such as Charles or Fiddler
  • A Wi-Fi network that allows peer-to-peer traffic
  • A desktop or laptop computer
  • An iOS or Android mobile device
Google doesn't endorse Charles or Fiddler HTTP Proxy in any way and you may use it at your own risk. The HTTP proxy software can capture any activity from your device. You should be sure to disable the proxy when finished recording the relevant traffic.

Proxy configuration

  1. Locate and copy your system IP address from your desktop or laptop computer. 
  2. Input your desktop's IP address as the proxy in your mobile device. Shown here is some general guidance on how to do this for Android and iOS devices. However, this may vary based on the device and version.

    For Android devices:

    1. Open your Settings.
    2. Locate the Wi-Fi settings and select your Wi-Fi network.
    3. Select Show advanced options.
    4. Open the proxy settings and select the "Manual" option.
    5. Enter the IP address from step 1 as the proxy hostname.
    6. Enter 8888 as the proxy port.
    7. Save your changes and/or exit the configuration settings.

    For iOS devices:

    1. Open your Settings.
    2. Locate the Wi-Fi settings and select your Wi-Fi network.
    3. Open the HTTP proxy settings and select the "Manual" option.
    4. Enter the IP address from step 1 as the "Server".
    5. Enter 8888 as the "Port".
    6. Save your changes and/or exit the configuration settings.
  3. Configure your web debugging proxy tool:
    1. Set the HTTP proxy port to 8888.
    2. (Charles only) If the "External Proxy Setting" is selected, deselect it.
    3. (Fiddler only) Select the "Allow remote computers to connect" option.
  4. Set up SSL (Charles only):
    1. In the menu bar, go to Proxy, then SSL Proxy Settings.
    2. Click Add and enter the following host and port values:

      • Host: pubads.g.doubleclick.net and googleads.g.doubleclick.net
      • Port: 443

        You may also consider capturing all traffic by entering an asterisk (*) as the "Host" and leaving the "Port" field blank. This can be useful when there's an issue outside the above two domains.

    3. Click OK.
    4. Install the Charles certificate on your machine using Charles SSL setup guidelines.
    5. Once your device is proxying to your desktop/laptop machine, go to your phone's browser and type http://www.charlesproxy.com/getssl to download and install the machine certificate.
  5. Start capturing HTTP traffic from your mobile phone (Charles only).
    • If an alert appears asking you to allow your mobile device to connect, select Allow.
  6. When you have finished capturing network traffic, be sure to turn off the proxy settings on your device by reversing step 2 (set the proxy to None).
  7. Review the log to find the click strings of the viewed ads.

Was this helpful?

How can we improve it?
true
Show your support to promote DEI in Gaming by turning intentions into action!

Check out the newly launched Diversity in Gaming website, where you can find video stories and written pledges from global gaming developers. This campaign centers on 3 pillars: diverse teams, diverse games and diverse audiences showing how diversity is not just good for gamers, but for business as well. Show your support by taking the pledge to promote DEI in Gaming and share it on social!

Learn More

Search
Clear search
Close search
Google apps
Main menu