Hello
Thanet,
I am using the KeywordMatchType still getting same keywords multiple time.
Please see the code :
$adGroupCriterionService =
$user->GetService('AdGroupCriterionService', ADWORDS_VERSION);
// Create selector.
$selector = new Selector();
$selector->fields = array('Id', 'CriteriaType', 'KeywordMatchType',
'KeywordText','CpcBid','FirstPageCpc');
$selector->ordering[] = new OrderBy('KeywordText', 'ASCENDING');
// Create predicates.
$selector->predicates[] = new Predicate('AdGroupId', 'IN', $adGroupId);
$selector->predicates[] = new Predicate('CriteriaType', 'IN', array('KEYWORD'));
Please see my result.
Keyword with text 'book', match type 'BROAD', criteria type 'KEYWORD', and ID '10005230' was found.
Keyword with text 'book', match type 'BROAD', criteria type 'KEYWORD', and ID '10005230' was found.
Keyword with text 'book', match type 'BROAD', criteria type 'KEYWORD', and ID '10005230' was found.
Keyword with text 'career', match type 'BROAD', criteria type 'KEYWORD', and ID '10346710' was found.
Keyword with text 'career', match type 'BROAD', criteria type 'KEYWORD', and ID '10346710' was found.
Keyword with text 'career', match type 'BROAD', criteria type 'KEYWORD', and ID '10346710' was found.
Keyword with text 'careers', match type 'BROAD', criteria type 'KEYWORD', and ID '11904121' was found.
Keyword with text 'careers', match type 'BROAD', criteria type 'KEYWORD', and ID '11904121' was found.
Keyword with text 'careers', match type 'BROAD', criteria type 'KEYWORD', and ID '11904121' was found.
Keyword with text 'certification', match type 'BROAD', criteria type 'KEYWORD', and ID '11904281' was found.
Keyword with text 'certification', match type 'BROAD', criteria type 'KEYWORD', and ID '11904281' was found.
Keyword with text 'certification', match type 'BROAD', criteria type 'KEYWORD', and ID '11904281' was found.
Is that case, same keywords shared with multiple AdgroupId?
Please advice.
Thanks,