In old api we are use to set MatchType while getting stats using targeting 
idea


$keywordMatchTypeSearchParameter = new KeywordMatchTypeSearchParameter();
$keywordMatchTypeSearchParameter->keywordMatchTypes = array('BROAD');


This is my code for latest api... but I am not able to set MatchType to get 
stats.. could you please help me that how to do in latest api?


 $selector = new TargetingIdeaSelector();
    $selector->setRequestType(RequestType::STATS);
    $selector->setIdeaType(IdeaType::KEYWORD);
    $selector->setRequestedAttributeTypes([
    
    
AttributeType::KEYWORD_TEXT,AttributeType::SEARCH_VOLUME,AttributeType::AVERAGE_CPC]);
    $paging = new Paging();
    $paging->setStartIndex(0);
    $paging->setNumberResults(10);
    $selector->setPaging($paging);
    
    foreach ($kws as $val) {
        $keyword = new Keyword();
        $keyword->setText($val);
        $keyword->setMatchType(KeywordMatchType::BROAD);
        $keywords[] = $keyword;
    }
    
    $searchParameters = [];
    $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
    $relatedToQuerySearchParameter->setQueries($keywords);
    $searchParameters[] = $relatedToQuerySearchParameter;


is it removed in latest adwords apis? what is default match type used in 
google adwords keyword planner tool?

What is default matchtype data returns using adwords api when we are using 
Targetingidea service to get STATS if we dont set any matchType?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
--- 
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 [email protected].
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/cce40860-99a2-4e8b-80e3-395a6616bdd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • TargetingIdea... vj
    • Re: Targ... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum

Reply via email to