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.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 [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