Can't set TrackingURL Template with {escapedlpurl+2} using UI or API

116 views
Skip to first unread message

Hunter

unread,
Mar 23, 2016, 11:12:02 AM3/23/16
to AdWords API Forum
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).

To remedy this we were going to switch to {escapedlpurl} and it's +2, +3 variants as documented here: https://support.google.com/adwords/answer/6305348?hl=en&ref_topic=6031980

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-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <SOAP-ENV:Header>
      <RequestHeader xmlns="https://adwords.google.com/api/adwords/mcm/v201601">
         <clientCustomerId xmlns="https://adwords.google.com/api/adwords/cm/v201601">REDACTED</clientCustomerId>
         <developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201601">REDACTED</developerToken>
         <userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201601">REDACTED</userAgent>
         <validateOnly xmlns="https://adwords.google.com/api/adwords/cm/v201601">false</validateOnly>
         <partialFailure xmlns="https://adwords.google.com/api/adwords/cm/v201601">false</partialFailure>
      </RequestHeader>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
      <mutate xmlns="https://adwords.google.com/api/adwords/mcm/v201601">
         <customer>
            <customerId>8132517581</customerId>
            <currencyCode>USD</currencyCode>
            <dateTimeZone>America/New_York</dateTimeZone>
            <descriptiveName>SE - Retail - AdWords</descriptiveName>
            <testAccount>false</testAccount>
            <trackingUrlTemplate>REDACTED</trackingUrlTemplate>
         </customer>
      </mutate>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

<?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. 

Yin Niu

unread,
Mar 23, 2016, 1:11:27 PM3/23/16
to AdWords API Forum
Hi Hunter, 

If it can't get through UI, then it can't get through API too. Please post your question in AdWords product forum instead. There should be more experts knowing about tracking template.

Thanks,
Yin, AdWords API Team. 

Hunter

unread,
Mar 23, 2016, 1:49:48 PM3/23/16
to AdWords API Forum
Hi Yin, 

I don't entirely understand what you mean. This issue is *also* occurring using the API with a documented ValueTrack parameter.

Hunter. 

Yin Niu

unread,
Mar 23, 2016, 1:55:37 PM3/23/16
to AdWords API Forum
Hi Hunter, 

This is a product related question. You should be able to get answer from the experts in AdWords product forum.
Reply all
Reply to author
Forward
0 new messages