Hi,

Thank you for reporting this issue.  I've dug into it a bit, and it
seems that the COMPETITION value returned in a STATS request for a non-
US country returns the value for "All countries".  I'll work with the
core engineering team to remedy this.

Best,
- Eric

On Sep 20, 12:18 pm, woodentops <adwo...@redsella.com> wrote:
> Hi,
>
> I've a similar problem to Dmitriy.  When comparing results from the
> Keyword Tool and the output from the API I can get the local, global
> and monthly search volumes to agree.  However, the competition index
> is different between the keyword tool and the API.
>
> To keep things simple you can reproduce my error using Dmitry's code.
> Although please note, I had to comment out the line:
>
>  $lang_target->excluded = false;
>
> to make the code function correctly on my machine.
>
> Running it through the Keyword tool the competitive index for
> hochzeitskleid for Germany in German is 0.93 while the API returns
> 0.89.  The API appears to be returning the global competitive index
> rather than the local area, because if you set the keyword tool to
> return results for All Countries/All languages the competitive index
> returned is 0.89.
>
> Could this be a bug in the API or is there a special command to set
> the locale for competitive search over and above the usual settings?
>
> Any help appreciated.
>
> Many Thanks.
>
> =============================== Full test code here...
>
> <?php
>
>           $path = dirname(__FILE__) . '/../../src';
>           set_include_path(get_include_path() . PATH_SEPARATOR . $path);
>           require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
>           require_once 'Google/Api/Ads/Common/Util/MapUtils.php';
>
>           $adwords_user = new AdWordsUser();
>
>           $keyword_service = $adwords_user-
>
> >GetTargetingIdeaService('v201003');
>
>           $keyword            = new Keyword();
>           $keyword->text      = "hochzeitskleid";
>           $keyword->matchType = 'EXACT';
>
>           $targeting_idea_selector = new TargetingIdeaSelector();
>
>           $targeting_idea_selector->ideaType    = 'KEYWORD';
>           $targeting_idea_selector->requestType = 'STATS';
>           $targeting_idea_selector->localeCode  = 'de_DE';
>           $targeting_idea_selector->paging      = new Paging(0,800);
>
>           $attribute_type = array();
>           $attribute_type[] = "AVERAGE_TARGETED_MONTHLY_SEARCHES";
>           //$attribute_type[] = "TARGETED_MONTHLY_SEARCHES";
>           $attribute_type[] = "COMPETITION";
>           $attribute_type[] = "KEYWORD";
>           $targeting_idea_selector->requestedAttributeTypes =
> $attribute_type;
>
>           $targeting_idea_selector->searchParameters = array();
>
>           $related_to_keyword_search_parameter = new
> RelatedToKeywordSearchParameter(array($keyword));
>           $targeting_idea_selector->searchParameters[] =
> $related_to_keyword_search_parameter;
>
>           $keyword_match_type_search_parameter = new
> KeywordMatchTypeSearchParameter();
>           $keyword_match_type_search_parameter->keywordMatchTypes =
> array("EXACT");
>           $targeting_idea_selector->searchParameters[] =
> $keyword_match_type_search_parameter;
>
>           $lang_target = new LanguageTarget();
>           $lang_target->languageCode = 'de';
>           //$lang_target->excluded = false;
>           $langauge_target_search_parameter = new
> LanguageTargetSearchParameter(array($lang_target));
>           $targeting_idea_selector->searchParameters[] =
> $langauge_target_search_parameter;
>
>           $country_target = new CountryTarget();
>           $country_target->countryCode = 'DE';
>           $country_target->excluded = false;
>           $country_target_search_parameter = new
> CountryTargetSearchParameter(array($country_target));
>           $targeting_idea_selector->searchParameters[] =
> $country_target_search_parameter;
>
>           $keyword_page = $keyword_service-
>
> >get($targeting_idea_selector);
>
>           print_r($keyword_page);
> ?>
> =================================================================
> On Sep 20, 10:51 am, Dmitriy <dimitriydevelo...@googlemail.com> wrote:
>
>
>
> > Looks like now everything works fine with same code.
>
> > Something was repaired?
>
> > On 17 сен, 04:58, AdWords API Advisor <adwordsapiadvi...@google.com>
> > wrote:
>
> > > Hi Dmitriy,
>
> > > Your code looks to be correct, perhaps looking at the raw XML will
> > > shed some light.  Can you post the sanitized SOAP XML request and
> > > response, or requestId, for a request that exhibits this behavior?
>
> > > Best,
> > > - Eric Koleda, AdWords API Team
>
> > > On Sep 13, 8:16 am, Dmitriy <dimitriydevelo...@googlemail.com> wrote:
>
> > > > What I need:
> > > > Get Search volume and Competition value of keyword "Hochzeitskleid"
> > > > for country "Germany", language 'German" and EXACT match. I tried to
> > > > do it in Keyword Tool and recieved right result (search volume =
> > > > 8100), but with API I can't apply SearchParameters at all. Looks like
> > > > they doesn't work :(
>
> > > > I tried to do it with follow code:
>
> > > > ==== BEGIN ====
>
> > > >           $adwords_user = new AdWordsUser();
>
> > > >           $keyword_service = $adwords_user-
>
> > > > >GetTargetingIdeaService('v201003');
>
> > > >           $keyword            = new Keyword();
> > > >           $keyword->text      = "Hochzeitskleid";
> > > >           $keyword->matchType = 'EXACT';
>
> > > >           $targeting_idea_selector = new TargetingIdeaSelector();
>
> > > >           $targeting_idea_selector->ideaType    = 'KEYWORD';
> > > >           $targeting_idea_selector->requestType = 'STATS';
> > > >           $targeting_idea_selector->localeCode  = 'de_DE';
> > > >           $targeting_idea_selector->paging      = new Paging(0,800);
>
> > > >           $attribute_type = array();
> > > >           $attribute_type[] = "AVERAGE_TARGETED_MONTHLY_SEARCHES";
> > > >           //$attribute_type[] = "TARGETED_MONTHLY_SEARCHES";
> > > >           $attribute_type[] = "COMPETITION";
> > > >           $attribute_type[] = "KEYWORD";
> > > >           $targeting_idea_selector->requestedAttributeTypes =
> > > > $attribute_type;
>
> > > >           $targeting_idea_selector->searchParameters = array();
>
> > > >           $related_to_keyword_search_parameter = new
> > > > RelatedToKeywordSearchParameter(array($keyword));
> > > >           $targeting_idea_selector->searchParameters[] =
> > > > $related_to_keyword_search_parameter;
>
> > > >           $keyword_match_type_search_parameter = new
> > > > KeywordMatchTypeSearchParameter();
> > > >           $keyword_match_type_search_parameter->keywordMatchTypes =
> > > > array("EXACT");
> > > >           $targeting_idea_selector->searchParameters[] =
> > > > $keyword_match_type_search_parameter;
>
> > > >           $lang_target = new LanguageTarget();
> > > >           $lang_target->languageCode = 'de';
> > > >           $lang_target->excluded = false;
> > > >           $langauge_target_search_parameter = new
> > > > LanguageTargetSearchParameter(array($lang_target));
> > > >           $targeting_idea_selector->searchParameters[] =
> > > > $langauge_target_search_parameter;
>
> > > >           $country_target = new CountryTarget();
> > > >           $country_target->countryCode = 'DE';
> > > >           $country_target->excluded = false;
> > > >           $country_target_search_parameter = new
> > > > CountryTargetSearchParameter(array($country_target));
> > > >           $targeting_idea_selector->searchParameters[] =
> > > > $country_target_search_parameter;
>
> > > >           $keyword_page = $keyword_service-
>
> > > > >get($targeting_idea_selector);
>
> > > > ==== END ====
>
> > > > Any ideas where is the mistake?

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