Forum Moderators: buckworks & skibum

Message Too Old, No Replies

dynamic insertion {keyword} in destination url

How to tell if it was broad, phrase, or exact match?

         

fclark

5:57 am on Oct 14, 2004 (gmt 0)

10+ Year Member



Question: how can I format {keyword} in the adwords destination url so it preserves whether broad/phrase/exact match was triggered?

More info...

Adwords allows us to track which keyword was triggered by the original search query, as described in another thread, called dynamic insertion.

Problem: when I use dynamic insertion in the url, the keyword that's passed in the url seems to lose its square brackets or double quotes.

Example:

If I have the following keywords set up:
fuzzy orange (broadmatch)
"fuzzy orange" (phrase match)
[fuzzy orange] (exact match)

and adwords destination url is:
[example.com?kw={keyword}...]

then I simply see fuzzy orange in my tracking database. It loses any info regarding double quotes or square brackets.

nerowolfe

12:27 am on Oct 15, 2004 (gmt 0)

10+ Year Member



That's a good question, to my knowledge it's not possible using just dynamic insertions.

What we've done is to make separate adgroups for each type of matching. Then the destination URLs of each of the adgroups use dynamic insertion but prepend a "B-" or "E-" or "P-" or whatever before the keyword.

One other thing you might want to know, we are seeing some problems when we do this for keywords with spaces in them. URLs aren't supposed to contain unescaped spaces, and if a browser makes a request for such a URL the request will fail. The dynamically generated destination URLs AdWords generates *seem* to be properly escaped, but we are seeing around 30 clicks a day requesting URLs with unescaped spaces, giving those users an error (and wasting our 30 clicks!).

We are not yet sure what's going on.. It's definitely only for a few of our users (maybe some buggy browser or something) but anyway I thought I might warn you that there may be issues. We just opened a support ticket about this, and I'll post results here if anyone is interested.

BTW, if you're running apache and are having this problem there will be entries like the following in the error_log file:

[Thu Oct 14 17:00:59 2004] [error] [client 162.119.232.106] request failed: erroneous characters after protocol string: GET /blahblah/orange widgets HTTP/1.0

eWhisper

1:13 pm on Oct 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[webmasterworld.com...] has the format for dynamically inserting KWs into the destination URL.

I can't find the 'official' G help file on how to do this. If someone finds it in the adwords FAQs, please post it.

fclark

11:13 pm on Oct 17, 2004 (gmt 0)

10+ Year Member



Thanks for your replies. I even tried taking a guess at some mystery parameters they may allow in the destination url (such as {matchtype} etc.). Exhausted that.

Then tried examining the source code on the adwords page on which you input new creative copy. Seems there is a "regular expression" filter and I hoped it may give a hint at other allowable dynamic parameters.

Here is part of the function:
-----------
var
results =
field.value.match(/\{keyword:[^\}]+\}/i);
if (results) {
maxlimit += "{keyword:}".length;
}
results = field.value.match(/\{keyword\}/);
if (results) {
maxlimit += "{keyword}".length - 1;
}

--------
I can decipher the regular expressions, and it suggests that dynamic parameters other than {keyword} and {keyword:blablabla} are not accepted.

freeflight2

1:23 am on Oct 18, 2004 (gmt 0)

10+ Year Member



nerowolfe: there might be a switch in apache to serve such "broken" urls - or you can write a handler ... or patch the source :)

nerowolfe

7:33 am on Oct 18, 2004 (gmt 0)

10+ Year Member



freeflight2: patch the apache source, real funny! :) Your first suggestion on the other hand was much more helpful, as it directly led to my discovery of the "ProtocolReqCheck" directive, which looks like it will do the trick!

In case any Google visitors from the future are having a similar problem and have stumbled across this page, there is a Google Answers thread at [answers.google.com...] that covers this matter in more depth.

anallawalla

1:07 pm on Oct 18, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



We use &gtkw=green+widgets as this is the tag recommended by OnePoint (&gtkw={keyword} also works but is less reliable). The OP reports show whether the keyword was broad/exact/phrase.

For other PPCSEs not managed by OP, we use our own tag the same way, except that we have to analyse the web logs to get the info.