6 messages in com.googlegroups.adwords-apiRe: Criteria URL Encode issue
FromSent OnAttachments
Albert24 Jan 2008 03:21 
Pete Lavetsky24 Jan 2008 04:27 
Albert24 Jan 2008 05:14 
Rohit24 Jan 2008 14:12 
Albert24 Jan 2008 22:32 
Rohit25 Jan 2008 11:30 
Subject:Re: Criteria URL Encode issue
From:Pete Lavetsky (pete@gmail.com)
Date:01/24/2008 04:27:28 AM
List:com.googlegroups.adwords-api

Albert,

What are the details of "it fails in both AdWords API ... "

Possibly try encoding % into %25

http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

Pete

On Jan 24, 6:21 am, Albert <alb@podium.co.il> wrote:

Hi,

The issue is simple:

Prior to adding/updating criteria I encode the criteria (keyword) destination url. This is required for foreign language characters contained in the url.

I am having an issue with the % character.

Example:

Original value:http://someurl.com/?a=a100%b

Encoded value:http://someurl.com/?a=a100%%20b

Although the encoded value is a valid url if pasted into a browser, it fails both in AdWords API and AdWords UI Client Center interface.

Is this a bug in AdWords or should I somehow escape the original % values?

The encoding type i use yields results like
this:http://someurl.com?a=%d7%90%d7%9c%d7%91%d7%a8%d7%98

that is the % sign is part of the character code -