Hi,

extimateKeywordList soap xml request not returning any data. It was
working fine before 5 days.

# Estimate keyword traffic.
        $request_xml =
          '<estimateKeywordList>' .
        $listkeyword .'</estimateKeywordList>';
        $estimates = $estimator_service->call('estimateKeywordList',
$request_xml);
        $estimates = $estimates['estimateKeywordListReturn'];

Plz check the above code and let me know if need to change any thing.


On May 24, 7:37 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hi,
>
> What does the SOAP XML look like for these requests?  Is data being
> returned there?
>
> Best,
> - Eric
>
> On May 24, 1:03 am, "freesystems.t...@gmail.com" <adwo...@kutenda.com>
> wrote:
>
>
>
> > Hi,
>
> > Thanks for reply.
>
> > Still i am not getting estimateKeywordList.
> > As you reply i have replace KeywordToolService by TargetingIdeaService
> > and passing the list of keywords to TrafficEstimatorService of v13
> > but not getting estimates data.
> > my code is below.
>
> >        $user = new AdWordsUser(NULL, $email, $password,
> > $developer_token, $application_token, $useragent, $client_email);
>
> >         // Get the TargetingIdeaService.
> >         $targetingIdeaService = $user-
>
> > >GetTargetingIdeaService('v200909');
>
> >         // Create seed keyword.
> >         $keyword = new Keyword();
> >         $keyword->text = $word;
> >         $keyword->matchType = 'BROAD';
>
> >         // Create selector.
> >         $selector = new TargetingIdeaSelector();
> >         $selector->requestType = 'IDEAS';
> >         $selector->ideaType = 'KEYWORD';
> >         $selector->requestedAttributeTypes = array('KEYWORD');
>
> >         // Set selector paging (required for targeting idea service).
> >         $paging = new Paging();
> >         $paging->startIndex = 0;
> >         $paging->numberResults = 1000;
> >         $selector->paging = $paging;
>
> >         // Create related to keyword search parameter.
> >         $relatedToKeywordSearchParameter = new
> > RelatedToKeywordSearchParameter();
> >         $relatedToKeywordSearchParameter->keywords = array($keyword);
> >         $selector->searchParameters =
> > array($relatedToKeywordSearchParameter);
>
> >         // Get related keywords.
> >         $page = $targetingIdeaService->get($selector);
>
> >         $listkeyword = '';
> >         if (isset($page->entries))
> >         {
> >             foreach ($page->entries as $targetingIdea)
> >             {
> >                 $keyword = $targetingIdea->data[0]->value->value;
> >                 //print_r($keyword);
> >                 $kWord = (string)$keyword->text;
> >                 $mType = (string)$keyword->matchType;
> >                 if(trim($mType) == 'BROAD')
> >                 {
> >                     $listkeyword = $listkeyword.'<keywordRequests>'.
> >                     '<text>'.$kWord.'</text>' .
> >                     '<maxCpc>10000000</maxCpc>' .
> >                     '<type>BROAD</type>'.'</keywordRequests>';
> >                 }
> >             }
> >         }
>
> >         # 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>';
>
> >         $estimator_service = SoapClientFactory1::GetClient(
> >             $namespace . '/TrafficEstimatorService?wsdl', 'wsdl');
> >         $estimator_service->setHeaders($headers);
>
> >         # Estimate keyword traffic.
> >         $request_xml =
> >           '<estimateKeywordList>' .
> >         $listkeyword .'</estimateKeywordList>';
> >         $estimates = $estimator_service->call('estimateKeywordList',
> > $request_xml);
> >         $estimates = $estimates['estimateKeywordListReturn'];
>
> > Plz reply me solutions for the same.
>
> > Thanks
>
> > On May 21, 10:48 pm, AdWords API Advisor
>
> > <adwordsapiadvi...@google.com> wrote:
> > > Hi,
>
> > > The v13 KeywordToolService has been replaced by the v200909
> > > TargetingIdeaService.  An example of how to use this service in PHP is
> > > available here:
>
> > >  http://code.google.com/p/google-api-adwords-php/source/browse/trunk/e...
>
> > > The TrafficEstimatorService is not yet available in v200909, and you
> > > can continue to use the v13 service for CPC estimates.
>
> > > Best,
> > > - Eric Koleda, AdWords API Team
>
> > > On May 21, 3:11 am, "freesystems.t...@gmail.com" <adwo...@kutenda.com>
> > > wrote:
>
> > > > Hi,
>
> > > > What is methods for getting suggested keywords in new version.
>
> > > > Old version code is as below
>
> > > >         $namespace = 'https://adwords.google.com/api/adwords/v13';
> > > >         $keyword_tool_service = SoapClientFactory1::GetClient(
> > > >           $namespace . '/KeywordToolService?wsdl', 'wsdl');
> > > >         $keyword_tool_service->setHeaders($headers);
>
> > > >         //###########
>
> > > >         # Create seed keyword structure.
> > > >         $seed_keyword =
> > > >           '<negative>false</negative>' .
> > > >           '<text>'.$word.'</text>' .
> > > >           '<type>Broad</type>';
> > > >         $use_synonyms = '<useSynonyms>true</useSynonyms>';
>
> > > >         # Get keyword variations.
> > > >         $request_xml =
> > > >           '<getKeywordVariations>' .
> > > >           '<seedKeywords>' . $seed_keyword . '</seedKeywords>' .
> > > >           $use_synonyms .
> > > >           '<languages>en</languages>' .
> > > >           '<countries>US</countries>' .
> > > >           '</getKeywordVariations>';
> > > >         $variation_lists =
> > > >           $keyword_tool_service->call('getKeywordVariations',
> > > > $request_xml);
> > > >         $variation_lists =
> > > > $variation_lists['getKeywordVariationsReturn'];
>
> > > >         ////////////////
>
> > > >         $more_specific = $variation_lists['moreSpecific'];
> > > >         $keyword="";
> > > >         for ($i = 0; $i < count($more_specific); $i ++)
> > > >         {
> > > >             $keyword = $keyword.'<keywordRequests>'.
> > > >             '<text>'.$more_specific[$i]['text'].'</text>' .
> > > >             '<maxCpc>10000000</maxCpc>' .
> > > >             '<type>Broad</type>'.'</keywordRequests>';
> > > >         }
>
> > > >         $estimator_service = SoapClientFactory1::GetClient(
> > > >           $namespace . '/TrafficEstimatorService?wsdl', 'wsdl');
> > > >         $estimator_service->setHeaders($headers);
>
> > > >         # Estimate keyword traffic.
> > > >         $request_xml =
> > > >           '<estimateKeywordList>' .
> > > >           $keyword .'</estimateKeywordList>';
> > > >         $estimates = $estimator_service->call('estimateKeywordList',
> > > > $request_xml);
> > > >         $estimates = $estimates['estimateKeywordListReturn'];
>
> > > >         # Convert to a list if we get back a single object.
> > > >         if (!$estimates[0]) {
> > > >           $estimates = array($estimates);
> > > >         }
>
> > > >         # Display estimate info.
> > > >         for ($i = 0; $i < count($estimates); $i++) {
>
> > > >             $lCpc = round($estimates[$i]['lowerCpc']/1000000, 3);
> > > >             $uCpc = round($estimates[$i]['upperCpc']/1000000, 3);
> > > >             $lClicks = round($estimates[$i]['lowerClicksPerDay'], 3);
> > > >             $uClicks = round($estimates[$i]['upperClicksPerDay'], 3);
>
> > > >             $keywordLists[] = array(
> > > >                     "text" => $more_specific[$i]['text'],
> > > >                     "lowerAvgPosition" => $estimates[$i]
> > > > ['lowerAvgPosition'],
> > > >                     "upperAvgPosition" => $estimates[$i]
> > > > ['upperAvgPosition'],
> > > >                     "lowerClicksPerDay" => $lClicks,
> > > >                     "upperClicksPerDay" => $uClicks,
> > > >                     "lowerCpc" => $lCpc,
> > > >                     "upperCpc" => $uCpc,
> > > >                     "avgSearchVolume" => $more_specific[$i]
> > > > ['avgSearchVolume'],
> > > >                     "lastMonthSearchVolume" => $more_specific[$i]
> > > > ['lastMonthSearchVolume'],
> > > >                     "competionOfKeywords" => $more_specific[$i]
> > > > ['advertiserCompetitionScale']
> > > >             );
> > > >         }
>
> > > > I am using getKeywordVariations, estimateKeywordList these mothods in
> > > > old api version code
>
> > > > i need lower/upper avgposition, cpc, avg search volumn, last month
> > > > search volumns etc in return
>
> > > > so plz reply me solution of the above thing
> > > > i am not getting how to solve this.
>
> > > > waiting for reply.
>
> > > > Thanks
>
> > > > --
> > > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > > > Also find us on our blog and discussion 
> > > > group:http://adwordsapi.blogspot.comhttp://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 
> > > > athttp://groups.google.com/group/adwords-api?hl=en
>
> > > --
> > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > > Also find us on our blog and discussion 
> > > group:http://adwordsapi.blogspot.comhttp://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,
>
> ...
>
> read more »

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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