Hi,

The TrafficEstimatorService is not available in v210108, and if you
are developing a new application this would be the better version to
use:

  
http://adwordsapi.blogspot.com/2010/09/discover-v201008-trafficestimatorservic.html

Best,
- Eric Koleda, AdWords API Team

On Oct 7, 5:58 am, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hi,
>
> I'll ask Eric to help you further troubleshoot this issue, but one
> thing I noticed from your code is that v13 didn't have the concept of
> RequestHeaders and authToken. They were newly introduced in the new
> AdWords API. A sample soap request to the v13 traffic estimator would
> look like:
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>         <soap:Header>
>                 <applicationToken 
> xmlns="https://adwords.google.com/api/adwords/v13"/
>
>                 <clientEmail xmlns="https://adwords.google.com/api/adwords/
> v13">******</clientEmail>
>                 <developerToken xmlns="https://adwords.google.com/api/adwords/
> v13">******</developerToken>
>                 <email 
> xmlns="https://adwords.google.com/api/adwords/v13";>******</
> email>
>                 <password 
> xmlns="https://adwords.google.com/api/adwords/v13";>******</
> password>
>                 <useragent xmlns="https://adwords.google.com/api/adwords/
> v13">******</useragent>
>         </soap:Header>
>         <soap:Body>
>                 <estimateKeywordList 
> xmlns="https://adwords.google.com/api/adwords/
> v13">
>                         <keywordRequests>
>                                 <maxCpc>50000</maxCpc>
>                                 <text>flowers</text>
>                                 <type>Broad</type>
>                         </keywordRequests>
>                 </estimateKeywordList>
>         </soap:Body>
> </soap:Envelope>
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Oct 6, 10:35 am, RusAlex <interpret...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I want to check keywords for CPC. And made small script in PHP
>
> > <?php
> > require_once 'AuthToken.php';
> > $email ='j...@domain.com' ;
> > $password='password';
> > $client_email='j...@domain.com';
> > $userAgent='Ranks';
> > $developerToken='wGT6qnJwn6g';
> > $applicationToken='Ranks';
>
> >         $authToken = new AuthToken($email, $password, 'adwords', 'PHP Code
> > Sample', 'GOOGLE');
> > $wsdl = 'https://adwords.google.com/api/adwords/v13/
> > TrafficEstimatorService?wsdl';
> > $namespace = 'https://adwords.google.com/api/adwords/v13';
> > $options = array(
> >     'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
> >     'encoding' => 'utf-8');
> > $headers = new SoapHeader($namespace, 'RequestHeader', array(
> >     'authToken' => $authToken->GetAuthToken(),
> >     'clientEmail' => $client_email,
> >     'userAgent' => $userAgent,
> >     'developerToken' => $developerToken,
> >     'applicationToken' => $applicationToken));
> > $estimator_service= new SoapClient($wsdl, $options);
> > $estimator_service->__setSoapHeaders($headers);
> >    # Create keyword structure.
> > $keyword =
> >   '<keywordText>mars cruise</keywordText>' .
> >   '<keywordType>Exact</keywordType>' .
> >   '<language>en</language>';
>
> > # Check keyword traffic.
> > $request_xml =
> >   '<checkKeywordTraffic>' .
> >   '<requests>' . $keyword . '</requests>' .
> >   '</checkKeywordTraffic>';
> > $estimates = $estimator_service->call('checkKeywordTraffic',
> > $request_xml);
> > $estimates = $estimates['checkKeywordTrafficReturn'];
> > ?>
>
> > And have this error:
>
> > PHP Fatal error:  Uncaught SoapFault exception: [Client] Function
> > ("call") is not a valid method for this service in /var/www/test.php:36

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to