Hi,

I just tried this using the PHP client library and it worked fine.

  $adParam2 = new AdParam($adGroupId, $keywordId, '£40', 2);

My PHP file is saved as UTF-8, so the pound sign is automatically
being encoded correctly.  If you are working in another encoding can
specify the unicode code point entity of the character and use the
html_entity_decode() method to convert it.

  $adParam2 = new AdParam($adGroupId, $keywordId,
html_entity_decode('£40', ENT_NOQUOTES, 'UTF-8'), 2);

Best,
- Eric

On Mar 16, 5:06 am, Andy <[email protected]> wrote:
> Well,
> I'm trying to post using the php adwords api from Google.
> When trying to post a £ sign i get the error:
>
> xa3...' is not a valid utf-8 string
>
> So, the only ones I can post is &pound; or £.
> But even then im not sure how they will come out when the advert is
> displayed...
>
> On Mar 4, 12:03 pm, Kemal <[email protected]> wrote:
>
>
>
> > It could be that the system would allow for symbols w/ only certain
> > type of encoding (I'm guessing UTF-8) and not others (like 8859-1)
>
> > Just a thought.
>
> > Cheers!
> > Kemal
>
> > On Mar 4, 3:20 am, AdWords API Advisor <[email protected]>
> > wrote:
>
> > > Hi Andy,
>
> > > I was able to send the unencoded pound sign successfully in my
> > > request.  Do you have the SOAP XML request and response that
> > > demonstrates this problem?
>
> > > Best,
> > > - Eric Koleda, AdWords API Team
>
> > > On Mar 3, 7:04 am, Andy <[email protected]> wrote:
>
> > > > Hi,
> > > > I am having trouble posting a GBP £ sign as the currency symbol for an
> > > > ad paramater.
>
> > > > If i try to send the HTML encoded character "&pound;" i get a error
> > > > responce of:
> > > > operations[0].operand.insertionText; trigger:'&pound;230',
>
> > > > If i try to send a non encoded £ sign i get the following:
> > > > SOAP-ERROR: Encoding: string '\xa3...' is not a valid utf-8 string in
>
> > > > The dollar sign posts ok, but im in the UK and its not too useful. ;-)
>
> > > > Is this a known problem or am i missing something here..?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to