private String urlWithClickTrackingRedirect(AdView adView, String url) { String clickthroughUrl = adView.getClickthroughUrl(); if (clickthroughUrl == null) return url; else { String encodedUrl = Uri.encode(url); return clickthroughUrl + "&r=" + encodedUrl; } }
public String getClickthroughUrl() { return (mAdView != null) ? mAdView.getClickthroughUrl() : null; }