Anyone, the tool is rather useless if it outputs ASCII....

On Aug 21, 7:31 pm, bramiozo <[EMAIL PROTECTED]> wrote:
> function googleKeywordFromSite($seedUrl,
> $language=0,$locale=0,$includeLinks=0){
> //http://www.google.com/apis/adwords/developer/KeywordToolService.html
>
>         IF($language===0)
>                 $language="";
>         ELSE
>                 $language="<languages>".$language."</languages>";
>
>         IF($locale===0)
>                 $locale="";
>         ELSE
>                 $locale="<countries>".$locale."</countries>";
>
>         IF($includeLinks===0)
>                 $links="<includeLinkedPages>false</includeLinkedPages>";
>         ELSE
>                 $links="<includeLinkedPages>true</includeLinkedPages>";
>
>         $request_xml="<getKeywordsFromSite>".
>         "<url>".$seedUrl."</url>".
>         $links.$language.$locale."</getKeywordsFromSite>";
>
>    $keywords = $this->estimator_service->call('getKeywordsFromSite',
> $request_xml);
>    $keywords = $keywords['getKeywordsFromSiteReturn'];
>
>         if ($this->debug) $this->show_xml($this->estimator_service);
>         if ($this->estimator_service->fault) $this->show_fault($this-
>
> >estimator_service);
>
>         return $keywords;
>
> }
>
> ////////////////////////////////////////////////////////////
> $Keywords=$adRes->googleKeywordFromSite('http://www.naver.com/','ko','KR',1);
>
> FOR($i=0;$i<count($Keywords['keywords']);$i++){
>         echo "<br> group: ".$Keywords['groups'][$Keywords['keywords'][$i]
> ['groupId']];
>         echo "<br> term: ".$Keywords['keywords'][$i]['text'];
>         echo "&nbsp;|&nbsp; advertiser competition: ".$Keywords['keywords']
> [$i]['advertiserCompetitionScale'];
>         echo "&nbsp;|&nbsp; search volume: ".$Keywords['keywords'][$i]
> ['searchVolumeScale'];
>
> }
>
> I get question marks for the keywords....when I check for encoding
> using mb_detect_encoding it gives ASCII which means it's encoded as
> ASCII in the array. The encoding of the seed url is euc-kr btw.
>
> Why aren't I receiving UTF-8 encoded terms ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
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