Hello,

 I'm not sure that what you're reporting is an issue with the AdWords
API--you may not find the rather coarse-grained results returned by
checkKeywordTraffic() useful for your purpose though. If you're
looking to determine a more fine-grained estimate of the amount of
traffic keywords receive, you might want to try getKeywordVariations
(). See

  
http://adwordsapi.blogspot.com/2008/11/v13s-new-keyword-search-volume-info.html

and

  http://adwordsapi.blogspot.com/2009/01/keyword-match-type-and.html

as well as the documentation page

  
http://code.google.com/apis/adwords/docs/developer/KeywordToolService.html#getKeywordVariations

for more info.

Cheers,
-Jeff Posnick, AdWords API Team


On May 16, 11:37 am, adwords_apis <[email protected]> wrote:
> hi
> I have verified adwords api center account and devoloper key but my
> all KeywordTraffic requests returned   "HasTraffic" . I'm using
> example api code $debug = 1 my code and result
>
> My code
>
> <?php// Copyright 2009, Google Inc. All Rights Reserved.
> //
> // Licensed under the Apache License, Version 2.0 (the "License");
> // you may not use this file except in compliance with the License.
> // You may obtain a copy of the License at
> //
> //    http://www.apache.org/licenses/LICENSE-2.0
> //
> // Unless required by applicable law or agreed to in writing, software
> // distributed under the License is distributed on an "AS IS" BASIS,
> // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> // See the License for the specific language governing permissions and
> // limitations under the License.
>
> /** This code sample checks a keyword to see whether it will get any
> traffic.*/
>
> require_once('soapclientfactory.php');
>
> # Provide AdWords login information.
> $email = '[email protected]';
> $password = 'xxxxxxxxxxxx';
> $client_email = '';
> $useragent = 'xxxxx Corp.';
> $developer_token = 'xxxxxxxxxxxxxxxxxxxxxx';
> $application_token = 'xxxxxxxxxxxxxxxxxxxxxx';
>
> # Define SOAP headers.
> $headers =
>   '<email>' . $email . '</email>'.
>   '<password>' . $password . '</password>' .
>   '<clientEmail>' . $client_email . '</clientEmail>' .
>   '<useragent>' . $useragent . '</useragent>' .
>   '<developerToken>' . $developer_token . '</developerToken>' .
>   '<applicationToken>' . $application_token . '</applicationToken>';
>
> # Set up service connection. To view XML request/response, change
> value of
> # $debug to 1. To send requests to production environment, replace
> # "sandbox.google.com" with "adwords.google.com".
> $namespace = 'https://adwords.google.com/api/adwords/v13';
> $estimator_service = SoapClientFactory::GetClient(
>   $namespace . '/TrafficEstimatorService?wsdl', 'wsdl');
> $estimator_service->setHeaders($headers);
> $debug = 1;
>
> # Create keyword structure.
> $keyword =
>   '<keywordText>analystic</keywordText>' .
>   '<keywordType>Phrase</keywordType>' .
>   '<language>en</language>';
>
> # Check keyword traffic.
> $request_xml =
>   '<checkKeywordTraffic>' .
>   '<requests>' . $keyword . '</requests>' .
>   '</checkKeywordTraffic>';
> $estimates = $estimator_service->call('checkKeywordTraffic',
> $request_xml);
> $estimates = $estimates['checkKeywordTrafficReturn'];
> if ($debug) show_xml($estimator_service);
> if ($estimator_service->fault) show_fault($estimator_service);
>
> # Display estimate.
> echo 'Estimate for keyword "mars cruise" is "' . $estimates . '".' .
> "\n";
>
> function show_xml($service) {
>   echo $service->request;
>   echo $service->response;
>   echo "\n";
>
> }
>
> function show_fault($service) {
>   echo "\n";
>   echo 'Fault: ' . $service->fault . "\n";
>   echo 'Code: ' . $service->faultcode . "\n";
>   echo 'String: ' . $service->faultstring . "\n";
>   echo 'Detail: ' . $service->faultdetail . "\n";
>   exit(0);}
>
> ?>
>
> //////////////////////////returned
> result///////////////////////////////
>
> POST /api/adwords/v13/TrafficEstimatorService HTTP/1.0
> Host: adwords.google.com
> User-Agent: NuSOAP/0.7.3 (1.114)
> Content-Type: text/xml; charset=ISO-8859-1
> SOAPAction: ""
> Content-Length: 799
>
> <?xml version="1.0" encoding="ISO-8859-1"?><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:ns8370="http://
> tempuri.org"><SOAP-ENV:Header><email>[email protected]</
> email><password>mypassword</password><clientEmail></
> clientEmail><useragent>xxxxxx Corp.</
> useragent><developerToken>xxxxxxxxxxxxxxxxxxxxxx</
> developerToken><applicationToken>xxxxxxxxxxxxxxxxxxxxxx</
> applicationToken></SOAP-ENV:Header><SOAP-
> ENV:Body><checkKeywordTraffic><requests><keywordText>analystic</
> keywordText><keywordType>Phrase</keywordType><language>en</language></
> requests></checkKeywordTraffic></SOAP-ENV:Body></SOAP-
> ENV:Envelope>HTTP/1.1 200 OK
> Content-Type: text/xml; charset=iso-8859-1
> Date: Sat, 16 May 2009 15:27:32 GMT
> Expires: Sat, 16 May 2009 15:27:32 GMT
> Cache-Control: private, max-age=0
> X-Content-Type-Options: nosniff
> Content-Length: 1160
> Server: GFE/2.0
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  <soapenv:Header>
>   <responseTime soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
> next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
> adwords/v13">335</responseTime>
>   <operations soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
> next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
> adwords/v13">1</operations>
>   <units soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
> soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
> adwords/v13">1</units>
>   <requestId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
> next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
> adwords/v13">62e73003a1f95ffba1da5ca826a1fbbe</requestId>
>  </soapenv:Header>
>  <soapenv:Body>
>   <checkKeywordTrafficResponse xmlns="">
>    <ns1:checkKeywordTrafficReturn xmlns:ns1="https://
> adwords.google.com/api/adwords/v13">HasTraffic</
> ns1:checkKeywordTrafficReturn>
>   </checkKeywordTrafficResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Estimate for keyword "mars cruise" is "HasTraffic".
--~--~---------~--~----~------------~-------~--~----~
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