Hello,
We recently realized that {lpurl} and it +2, +3 variants *do not* encode forward slashes or colons and therefore leave http:// un-encoded. This is an issue because we regularly deal with redirects chains or 2 or 3 sites and some of those sites appear confused when http:// is not http%25%3A%252F%252F (encoded twice).
However, we seem unable to set a tracking template with this field using the UI or the API:
SOAP Request/Response pair:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/mcm/v201601" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201601">
<ns2:requestId>00052eb8ad9d81100a81304671065329</ns2:requestId>
<ns2:serviceName>CustomerService</ns2:serviceName>
<ns2:methodName>mutate</ns2:methodName>
<ns2:operations>1</ns2:operations>
<ns2:responseTime>43</ns2:responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[UrlError.MISSING_TRACKING_URL_TEMPLATE_TAG @ customer.trackingUrlTemplate; trigger:'REDACTED']</faultstring>
<detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/mcm/v201601" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201601">
<ns2:message>[UrlError.MISSING_TRACKING_URL_TEMPLATE_TAG @ customer.trackingUrlTemplate; trigger:REDACTED']</ns2:message>
<ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type>
<ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:UrlError">
<ns2:fieldPath>customer.trackingUrlTemplate</ns2:fieldPath>
<ns2:trigger>REDACTED/ns2:trigger>
<ns2:errorString>UrlError.MISSING_TRACKING_URL_TEMPLATE_TAG</ns2:errorString>
<ns2:ApiError.Type>UrlError</ns2:ApiError.Type>
<ns2:reason>MISSING_TRACKING_URL_TEMPLATE_TAG</ns2:reason>
</ns2:errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Any advice on why this happens? I can provide any more needed information.
Thanks.
Hunter.