Apostrophe (or single quote)

222 views
Skip to first unread message

Bob B.

unread,
Aug 2, 2005, 6:13:17 PM8/2/05
to AdWords API Forum
When I attempt to add a URL with a single quote through the SOAP API I
get:

"This is not a valid destination URL"

However when I add it using Google's Adwords interface is doesn't
complain a bit. I'm escaping everything correctly in the SOAP call.
Has anyone run into this type of problem?

Kostas

unread,
Aug 3, 2005, 8:44:20 AM8/3/05
to AdWords API Forum
Yeah, for some reason the API doesn't like it even though it's
perfectly valid character (it doesn't need to be encoded). You should
encode it as %27

Bob B.

unread,
Aug 3, 2005, 12:07:26 PM8/3/05
to AdWords API Forum
XML doesn't require that the apostrophe be encoded at all. Though,
even when I do encode it, the SOAP API won't accept it. I get back
the, oh so explanatory, "try again later" error.

Kostas

unread,
Aug 3, 2005, 12:37:45 PM8/3/05
to AdWords API Forum
I have been able to upload URLs with single quotes as long as they are
encoded as %27. I think this is a different error you are getting now.
If you post the full XML of your request and the response (with blanked
out password and dev token!) we might be able to help you out.

Bob B.

unread,
Aug 3, 2005, 1:55:59 PM8/3/05
to AdWords API Forum
Yes, me too but then I get this:
http://www.bob.com?tracking=bob%27s+teh+best

instead of:
http://www.bob.com?tracking=bob's+teh+best

If I update the url in the AdWords interface it shows me the url
without the encoded apostrophe.

Kostas

unread,
Aug 4, 2005, 4:54:21 AM8/4/05
to AdWords API Forum
It doesn't matter if they look differently in the Adwords interface,
they are the same URL.
Try this:
http://www.google.co.uk/search?hl=en&q=%74%65%73%74
http://www.google.co.uk/search?hl=en&q=test

Bob B.

unread,
Aug 4, 2005, 12:11:56 PM8/4/05
to AdWords API Forum
I absolutely agree. It's just nicer if they agree. Especially if you
have some users that look at the Google Adwords interface and say,
"What's going on, the urls are different on some".

Thanks for the help Kostas.

Reply all
Reply to author
Forward
0 new messages