Incorrect search volume

2017-06-27 Thread vaibhav Yadav

get($session, TargetingIdeaService::class);

$selector = new TargetingIdeaSelector();
$selector->setRequestType(RequestType::STATS);
$selector->setIdeaType(IdeaType::KEYWORD);
$selector->setRequestedAttributeTypes([
AttributeType::KEYWORD_TEXT,
AttributeType::SEARCH_VOLUME
]);

$searchParameters = [];
   
$keyword = 'Yoga';

$relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
$relatedToQuerySearchParameter->setQueries([$keyword]);
$searchParameters[] = $relatedToQuerySearchParameter;

  
$languageParameter = new LanguageSearchParameter();
$english = new Language();
$english->setId(1000);
$languageParameter->setLanguages([$english]);
$searchParameters[] = $languageParameter;
  
  
$locationData = new LocationSearchParameter();
$india = new Location();
$india->setId(2356);
$locationData->setLocations([$india]);
$searchParameters[] = $locationData;
  
  


$networkSetting = new NetworkSetting();
$networkSetting->setTargetGoogleSearch(true);
$networkSetting->setTargetSearchNetwork(false);
$networkSetting->setTargetContentNetwork(false);
$networkSetting->setTargetPartnerSearchNetwork(false);

$networkSearchParameter = new NetworkSearchParameter();
$networkSearchParameter->setNetworkSetting($networkSetting);
$searchParameters[] = $networkSearchParameter;

$selector->setSearchParameters($searchParameters);
$selector->setPaging(new Paging(0, self::PAGE_LIMIT));

$totalNumEntries = 0;
do {
  
  $page = $targetingIdeaService->get($selector);


  if ($page->getEntries() !== null) {
  
$totalNumEntries = $page->getTotalNumEntries();
foreach ($page->getEntries() as $targetingIdea) {
  $data = MapEntries::toAssociativeArray($targetingIdea->getData());
  $keyword = $data[AttributeType::KEYWORD_TEXT]->getValue();

  $searchVolume =
  ($data[AttributeType::SEARCH_VOLUME]->getValue() !== null)
  ? $data[AttributeType::SEARCH_VOLUME]->getValue() : 0;
 
  printf(
  "Keyword idea with text '%s',  and average "
  . "monthly search volume %d was found.\n",
  $keyword,
  $searchVolume
  );
}
  
  }

  $selector->getPaging()->setStartIndex(
  $selector->getPaging()->getStartIndex() + self::PAGE_LIMIT);
} while ($selector->getPaging()->getStartIndex() < $totalNumEntries);

printf("Number of results found: %d\n", $totalNumEntries);
  }


  public static function main() {
  

$oAuth2Credential = (new OAuth2TokenBuilder())
->fromFile()
->build();


$session = (new AdWordsSessionBuilder())
->fromFile()
->withOAuth2Credential($oAuth2Credential)
->build();
self::runExample(new AdWordsServices(), $session);
  }
}

GetKeywordIdeas::main();



I am getting ridculous search volumes for even keywords such as 
'svvqwegwqqg' which should not have a search volume in millions.
If i use TARGETED_MONTHLY_SEARCHES, the answer is always 1. Please help

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ffd6a2c8-0fab-4756-a654-4e84b7d3f396%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Incorrect search volume

2017-06-27 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Vaibhav, 

Could you check if the clientCustomerId specified in the request header 
belongs to a Test AdWords account? TargetingIdeaService 
<https://developers.google.com/adwords/api/docs/reference/v201705/TargetingIdeaService>
 and TrafficEstimatorService 
<https://developers.google.com/adwords/api/docs/reference/v201705/TrafficEstimatorService>
 return 
dummy data when used with test accounts 
<https://developers.google.com/adwords/api/docs/guides/accounts-overview#test_accounts>.
 
You'll need to make a request against a production account to get actual 
data. If the clientCustomerId is that of a production AdWords account, 
please provide a sample request and response log which returned incorrect 
search volume and I'll take a look. Please use* Reply privately to author* when 
responding.

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/35e581b6-c731-4f3a-8189-170842b15ae1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Targeting idea selector giving incorrect search volume

2017-06-27 Thread vaibhav Yadav
I am getting incorrect search volumes. Even using keywords such as 
'ewrqerqdas' which should absolutely give 0 search volume, it is showing in 
millions. Please guide. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bcc8be0a-d85b-459b-87d2-1758a1d4acd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<>


TargetingIdeaService - requestType IDEAS or STATS - incorrect search volume

2011-02-09 Thread MRL
Hi Guys

When using the TargetingIdeaService for a specific country, exact match, the 
local search volume is different if you toggle between IDEAS or STATS.  In 
other words, when using IDEAS, and iterating through the suggestions, and 
finding the exact match of keyword entered (when the generate related 
keyword matches the input keyword), the search volume is nearly 3 times more 
than when using STATS on that keyword

Which is correct?

Cheers
Mark

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


Re: TargetingIdeaService - requestType IDEAS or STATS - incorrect search volume

2011-02-14 Thread AdWords API Advisor
Hi Mark,

Please follow this existing thread for more information:

  
http://groups.google.com/group/adwords-api/browse_thread/thread/1463ce2cebf157b2/

Best,
- Eric Koleda, AdWords API Team

On Feb 9, 6:50 pm, MRL  wrote:
> Hi Guys
>
> When using the TargetingIdeaService for a specific country, exact match, the
> local search volume is different if you toggle between IDEAS or STATS.  In
> other words, when using IDEAS, and iterating through the suggestions, and
> finding the exact match of keyword entered (when the generate related
> keyword matches the input keyword), the search volume is nearly 3 times more
> than when using STATS on that keyword
>
> Which is correct?
>
> Cheers
> Mark

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