Hi Eric, I am using v200909. I think, it doesn't support TARGETED_MONTHLY_SEARCHES. Could you please recommend any alternative to use this?
Thanks, Warm Regards, Saravanan On Feb 12, 11:35 pm, AdWords API Advisor <adwordsapiadvi...@google.com> wrote: > Hi Saravanan, > > As I mentioned, you need to use TARGETED_MONTHLY_SEARCHES instead of > GLOBAL_MONTHLY_SEARCHES. This returned attribute will be of the type > MonthlySearchVolumeAttribute: > > http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde... > > Best, > - Eric > > On Feb 12, 11:14 am, SaravananTopgun <slg.sarava...@gmail.com> wrote: > > > Hi Eric, > > > Ok, thats great. > > > My script gives result for "cricket" as below.. > > > "Keyword with text "live cricket" and match type "EXACT" and Global > > Monthly Search count : "450000" was found. " > > > (For Ex) If i need to get ideas only for the month of Feb-2009 means, > > how can i get? > > > Please help me out on this. > > > I am almost through with the rest !! > > > Below one is my script btw !.. > > > <?php > > /** > > * This example gets keywords related to a seed keyword. > > * > > * PHP version 5 > > * > > * 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. > > * > > * @package GoogleApiAdsAdWords > > * @subpackage v200909 > > * @category WebServices > > * @copyright 2009, Google Inc. All Rights Reserved. > > * @license http://www.apache.org/licenses/LICENSE-2.0Apache > > License, Version 2.0 > > * @author Eric Koleda <api.ekol...@gmail.com> > > * @link > > http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde... > > */ > > > error_reporting(E_STRICT | E_ALL); > > > // You can set the include path to src directory or reference > > // AdWordsUser.php directly via require_once. > > // $path = '/path/to/aw_api_php_lib/src'; > > $path = dirname(__FILE__) . '/../../src'; > > set_include_path(get_include_path() . PATH_SEPARATOR . $path); > > > require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; > > > try { > > // Get AdWordsUser from credentials in "../auth.ini" > > // relative to the AdWordsUser.php file's directory. > > $user = new AdWordsUser(); > > > // Log SOAP XML request and response. > > //$user->LogDefaults(); > > > // Get the TargetingIdeaService. > > $targetingIdeaService = $user->GetTargetingIdeaService('v200909'); > > > // Create seed keyword. > > $input_keyword = $_REQUEST['q']; > > $num_results_per_page = $_REQUEST['number_of_results']; > > $keyword = new Keyword(); > > $keyword->text = $input_keyword; > > $keyword->matchType = 'BROAD'; > > > // Create selector. > > $selector = new TargetingIdeaSelector(); > > $selector->requestType = 'IDEAS'; > > $selector->ideaType = 'KEYWORD'; > > $selector->requestedAttributeTypes = > > array('KEYWORD','GLOBAL_MONTHLY_SEARCHES'); > > > // Set selector paging (required for targeting idea service). > > $paging = new Paging(); > > $paging->startIndex = 0; > > $paging->numberResults = $num_results_per_page; > > $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); > > print "<pre>"; > > //print_r($page->entries); > > print "</pre>"; > > //print_r($keyword); > > // Display related keywords. > > if (isset($page->entries)) { > > foreach ($page->entries as $targetingIdea) { > > $keyword = $targetingIdea->data[0]->value->value; > > $gmv = $targetingIdea->data[1]->value; > > print 'Keyword with text "' . $keyword->text . '" and match type > > "' > > . $keyword->matchType .'" and Global Monthly Search count : > > "' > > . $gmv->value . "\" was found.\n<br>"; > > } > > } else { > > print "No related keywords were found.\n"; > > } > > > } catch (Exception $e) { > > print_r($e); > > } > > > Thanks, > > Warm Regards, > > Saravanan > > > On Feb 12, 8:55 pm, AdWords API Advisor <adwordsapiadvi...@google.com> > > wrote: > > > > Hi Saravanan, > > > > It is only possible to get search volume by month, not by day. I made > > > a mistake above, as the past 12 months are in the attribute > > > TARGETED_MONTHLY_SEARCHES, not GLOBAL_MONTHLY_SEARCHES (which is an > > > average for a single month). You cannot specify a particular month, > > > but they should all be in the list returned. > > > > Best, > > > - Eric > > > > On Feb 12, 2:30 am, SaravananTopgun <slg.sarava...@gmail.com> wrote: > > > > > Hi Eric, > > > > > Is that possible to get the ideas(keywords) specific to individual day/ > > > > month using PHP? > > > > > Thanks, > > > > Warm Regards, > > > > Saravanan > > > > On Jan 20, 10:39 pm, AdWords API Advisor > > > > > <adwordsapiadvi...@google.com> wrote: > > > > > Hi Michal, > > > > > > The first thing to remember is that all data returned from sandbox for > > > > > the TargetingIdeaService will be dummy. As for the number of results > > > > > returned, the numberResults field controls how many ideas (keywords) > > > > > are returned per page. The GLOBAL_MONTHLY_SEARCHES attribute returns > > > > > the search volume for the last 12 months for each keyword, and this > > > > > amount can not be controlled by paging. > > > > > > Best, > > > > > - Eric Koleda, AdWords API Team > > > > > > On Jan 18, 6:23 pm, Michal <hyk.s...@gmail.com> wrote: > > > > > > > I would like to get GLOBAL_MONTHLY_SEARCHES data for a keyword_text. > > > > > > Is that the correct body for this request? > > > > > > > <SOAP-ENV:Body> > > > > > > <get xmlns="https://adwords.google.com/api/adwords/o/v200909"> > > > > > > <selector><searchParameters > > > > > > xsi:type="RelatedToKeywordSearchParameter"><keywords> > > > > > > <ns1:text>keyword_text</ns1:text> > > > > > > <ns1:matchType>EXACT</ns1:matchType> > > > > > > </keywords> > > > > > > </searchParameters> > > > > > > <ideaType>KEYWORD</ideaType> > > > > > > <requestType>STATS</requestType><requestedAttributeTypes>KEYWORD</ > > > > > > requestedAttributeTypes><requestedAttributeTypes>GLOBAL_MONTHLY_SEARCHES</ > > > > > > requestedAttributeTypes><paging><ns1:startIndex>0</ > > > > > > ns1:startIndex><ns1:numberResults>10</ns1:numberResults> > > > > > > </paging> > > > > > > </selector> > > > > > > </get> > > > > > > </SOAP-ENV:Body> > > > > > > > Should sandbox respond with 12 (for each month) dummy LongAttribute > > > > > > numbers ? > > > > > > Why then the paging is needed? > > > > > > > I'm confused because in responses I'm getting from sandbox, the > > > > > > number > > > > > > of results actually corresponds to a numberResults defined. > > > > > > > Thanks, > > > > > > Michal -- 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-...@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.