Thanks a lot Jeff
The problem is solved somehow,
I got to change some settings in my referance file nusoap.php.
but know i got another question:
(notice the part marked with ************)
part of my request:
<criteria><adGroupId>5000038615</adGroupId><criterionType>Keyword</
criterionType>
******<text>Akupunkturärztin</text> *****
<maxCpc>0</maxCpc><type>Broad</type><status>Active</
status><language>de</language>
</criteria>
part of response I got back from sandbox
<ns5:addCriteriaReturn xsi:type="ns5:Keyword" xmlns:ns5="https://
adwords.google.com/api/adwords/v12">
<ns5:adGroupId>5000038615</ns5:adGroupId>
<ns5:criterionType>Keyword</ns5:criterionType>
<ns5:id>10105617</ns5:id>
<ns5:language></ns5:language>
<ns5:negative>false</ns5:negative>
<ns5:paused>false</ns5:paused>
<ns5:status>Active</ns5:status>
<ns5:maxCpc>200000</ns5:maxCpc>
<ns5:minCpc>410000</ns5:minCpc>
****** <ns5:text>Akupunkturärztin</ns5:text> ******
<ns5:type>Broad</ns5:type>
</ns5:addCriteriaReturn>
my php code:
$criteria = $criterion_service->call('addCriteria', $request_xml);
$criteria = $criteria['addCriteriaReturn'];
the result in $criteria will display
*******"Akupunktur�rzte"*****
I am wondering if this happen because of sandbox or, i did something
wrong.
coz, my request looks fine to me.
thanks a lot
Best
Rick
Below is full request content:
POST /api/adwords/v12/CriterionService HTTP/1.0
Host: sandbox.google.com
User-Agent: NuSOAP/0.7.3 (1.114)
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Content-Length: 5429
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://
www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns4881="http://tempuri.org"><SOAP-
ENV:Header><email>[email protected]</email><password>comberry</
password><clientEmail>[email protected]</
clientEmail><useragent>comberry</
useragent><developerToken>[email protected]++cny</
developerToken><applicationToken>dMhPaT4n0sCAvaYANBUr4w</
applicationToken></SOAP-ENV:Header><SOAP-
ENV:Body><addCriteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Akupunkteure</
text><maxCpc>0</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Akupunkteur</
text><maxCpc>0</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Akupunkturärzte</
text><maxCpc>100000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Akupunkturarzt</
text><maxCpc>200000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</
criterionType><text>Akupunkturärztin</text><maxCpc>200000</
maxCpc><type>Broad</type><status>Active</status><language>de</
language></criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Akupunktur</
text><maxCpc>200000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Klassische
Akupunktur</text><maxCpc>200000</maxCpc><type>Broad</
type><status>Active</status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Traditionelle
Chinesische Medizin</text><maxCpc>200000</maxCpc><type>Broad</
type><status>Active</status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</
criterionType><text>Allgemeinmediziner</text><maxCpc>300000</
maxCpc><type>Broad</type><status>Active</status><language>de</
language></criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</
criterionType><text>Allgemeinmedizin</text><maxCpc>300000</
maxCpc><type>Broad</type><status>Active</status><language>de</
language></criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Hausarzt</
text><maxCpc>300000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Hausärztin</
text><maxCpc>300000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Praktische
Ärzte</text><maxCpc>300000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Ambulante
Behandlung</text><maxCpc>300000</maxCpc><type>Broad</
type><status>Active</status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Altenpfleger</
text><maxCpc>300000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Altenpflegerin</
text><maxCpc>300000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Altenpflege</
text><maxCpc>300000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Pflege</
text><maxCpc>300000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Pfleger</
text><maxCpc>300000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Pflegerin</
text><maxCpc>300000</maxCpc><type>Broad</type><status>Active</
status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Selbständige
Betreuung</text><maxCpc>300000</maxCpc><type>Broad</
type><status>Active</status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Ganzheitliche
Betreuung</text><maxCpc>300000</maxCpc><type>Broad</
type><status>Active</status><language>de</language></
criteria><criteria><adGroupId>5000038615</
adGroupId><criterionType>Keyword</criterionType><text>Alte</
text><maxCpc>0</maxCpc><type>Broad</type><status>Active</
status><language>de</language></criteria></addCriteria></SOAP-
ENV:Body></SOAP-ENV:Envelope>HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 23 Jan 2009 02:33:32 GMT
X-Content-Type-Options: nosniff
Expires: Fri, 23 Jan 2009 02:33:32 GMT
Cache-Control: private, max-age=0
Server: GFE/1.3
On Jan 23, 4:44 am, AdWords API Advisor <[email protected]>
wrote:
> Hello Rick,
>
> I'm not an expert on how PHP handles UTF-8, but there does seem to be
> a specific method that will convert a string into its UTF-8
> representation:
>
> http://us3.php.net/utf8_encode
>
> Have you tried running your $request_xml string through that
> utf8_encode() method before passing it on to the AdWords API?
>
> I did just try an estimateKeywordList() request to the Sandbox with
> "Akupunkturärzte" and after I made sure that everything was send as
> proper UTF-8 it did go through. This was in Python, though.
>
> Cheers,
> -Jeff Posnick, AdWords API Team
>
> On Jan 21, 10:54 pm, rickey <[email protected]> wrote:
>
> > My request is something like this:
> > <estimateKeywordList>
> > <keywordRequests><text>Akupunkturärzte </text><maxCpc>100000</
> > maxCpc><type>Broad</type></keywordRequests></estimateKeywordList>
> > and my function is write in php, every file is UTF-8 encoded
> > the function is something like:
> > $estimates = $estimator_service->call('estimateKeywordList',
> > $request_xml);
>
> > and it is not possible to use something like <?xml version="1.0"
> > encoding="UTF-8"?> in the request
> > What else should i check.
>
> > thanks a lot
> > Best regards
> > Rick
>
> > On Jan 22, 11:41 am, rickey <[email protected]> wrote:
>
> > > thanks for the reply
> > > I checked all my related files which is UTF-8 encoded but when i used
> > > the word contains non-english in sandbox
> > > it still not working
> > > Akupunkturärzte for example it works only if i remove the letter ä
> > > from the word
> > > Akupunkturärzte is german word
> > > best
> > > Rick
>
> > > On Jan 21, 11:41 pm, AdWords API Advisor
>
> > > <[email protected]> wrote:
> > > > Hello Rick,
>
> > > > Sure. Just make sure that the characters are properly UTF-8 encoded--
> > > > that's the important thing, and the step which leads to the most
> > > > issues. Handling UTF-8 encoding is specific to the language you're
> > > > using and sometimes even the editor you use to enter the non-English
> > > > characters. In some combinations of language and editor it should just
> > > > work out of the box, and for others it will require a bit of Googling
> > > > to find the correct pragmas or other options to use to enable UTF-8.
>
> > > > Cheers,
> > > > -Jeff Posnick, AdWords API Team
>
> > > > On Jan 20, 9:32 pm, rickey <[email protected]> wrote:
>
> > > > > Is it possible to use keywords in other language in sanbox, with some
> > > > > special letters such as
> > > > > "Akupunkturärzte"
>
> > > > > Thanks a lot.
>
> > > > > Rick
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---