Hello guys.
I have a script that deals with getting Keyword Ideas form Google Adwords. Earlier in the Keyword Planner console there were options for MatchTypes for your keywords(Broad, Phrase, Exact). Now I can't find them in the console, but I think they were replaced with this option: "Only show ideas closely related to my search terms". Although it doesn't return the same results as 'Exact' matchType used to, it is much better then the default setting.
So, I am wondering, how do I do that using the API. How do I set that parameter. I tried using ExcludedKeywordSearchParameter, and excluding 'Broad' and 'Phrase' terms, but the results just aren't the same.
Here is a portion of my code:
$excludeSearchParameter = new ExcludedKeywordSearchParameter();
$kwrd = new Keyword();
$kwrd->text = $keyword;
$kwrd->matchType = 'BROAD';
$kwrd1 = new Keyword();
$kwrd1->text = $keyword;
$kwrd1->matchType = 'PHRASE';
$excludeSearchParameter->keywords = array($kwrd, $kwrd1);
$relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
$relatedToQuerySearchParameter->queries = array($keyword);
$selector->searchParameters[] = $relatedToQuerySearchParameter;
$selector->searchParameters[] = $excludeSearchParameter;
Any help would be appreciated.