This is the script we use
$keyword = new Keyword();
$keyword->text = stripslashes($kdata['name']); //$kdata['name'] -
search keyword
$keyword->matchType = 'BROAD';
// Create selector.
$selector = new TargetingIdeaSelector();
$selector->requestType = 'IDEAS'; //STAT//IDEAS
$selector->ideaType = 'KEYWORD';
$selector->requestedAttributeTypes =
array('KEYWORD','AVERAGE_TARGETED_MONTHLY_SEARCHES');
// Set selector paging (required for targeting
idea service).
$paging = new Paging();
$paging->startIndex = 0;
$paging->numberResults = 2;
$selector->paging = $paging;
// Create related to keyword search parameter.
$relatedToKeywordSearchParameter = new
RelatedToKeywordSearchParameter();
$relatedToKeywordSearchParameter->keywords =
array($keyword);
// Create keyword match type search parameter to
ensure unique results.
$keywordMatchTypeSearchParameter = new
KeywordMatchTypeSearchParameter();
$keywordMatchTypeSearchParameter-
>keywordMatchTypes = array('BR
On May 16, 1:00 pm, Romaster <[email protected]> wrote:
> Hello. We have a very weird problem. Our script collects keywords and
> search data via the Adwords API. We use a very simple one, even the
> test scripts from Google. Few weeks ago everything was fine, script
> worked perfect. Then the Creditcard in Adwords Billing expired and I
> updated it a few days later with a new one. Google said explicted that
> NO ACTION is required from my side and that things will work again
> automated. Few days passed, everything turned back green and we
> tested. With the same scripts. NO changes were made. But since that
> interruption of service we get only wrong results to our requests. Its
> hard to explain the results but it seems like the keywords we check
> dont show up in the results (while they have search volume) and others
> show up instead.
> Google charges API credits for these requests but they dont return
> what we check for. The weird thing is that really nohing was changed
> and everything was working fine when we used the script before the
> billing was interrupted for some days.
> There is no pattern in the wrong results. We use the IDEAS setting.
> Using STATS returns the right results but you need to do twice as many
> requests to use it for [exact] and broad.
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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