Hey

I'm having troubles using code similar to this:

# Create paging class
$paging = new Paging();
$paging->startIndex     = 0;
$paging->numberResults  = 25;

# Create selector class
$selector = new TargetingIdeaSelector();
$selector->requestType = 'IDEAS';
$selector->ideaType = 'KEYWORD';
$selector->requestedAttributeTypes = array('KEYWORD',
'GLOBAL_MONTHLY_SEARCHES', 'AVERAGE_TARGETED_MONTHLY_SEARCHES');
$selector->paging = $paging;

$this->_includeWords = array('promotional');
$ideaTextMatchesSearchParameter = new
IdeaTextMatchesSearchParameter();
$ideaTextMatchesSearchParameter->included = $this->_includeWords;
$parameters[] = $ideaTextMatchesSearchParameter;

$keyword = new Keyword();
$keyword -> text = 'promotional pens';
$keyword -> matchType = 'EXACT';

$this->_keywords = array($keyword);
$relatedToKeywordSearchParameter = new
RelatedToKeywordSearchParameter();
$relatedToKeywordSearchParameter->keywords = $this->_keywords;
$parameters[] = $relatedToKeywordSearchParameter;

$this->_types = array('EXACT');
# Create Keyword Match Types
$keywordMatchTypeSearchParameter = new
KeywordMatchTypeSearchParameter();
$keywordMatchTypeSearchParameter->keywordMatchTypes = $this->_types;
$parameters[] = $keywordMatchTypeSearchParameter;

$countryClass = new CountryTarget();
$countryClass->countryCode = 'GB';
$this->_countries = array($countryClass);

# Create Country Target Search Parameter
$countryTargetSearchParameter = new CountryTargetSearchParameter();
$countryTargetSearchParameter->countryTargets = $this->_countries;
$parameters[] = $countryTargetSearchParameter;

$selector->searchParameters = $parameters;
$this->_targetingService->get($selector);

You'd expect the above code to include only matches that include the
word "Promotional" however "personalised pencils" is being returned -
am I doing something wrong here?

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

Reply via email to