Error when using TargetingIdeaService to get STATS

11 views
Skip to first unread message

market...@melbourneit.com.au

unread,
Nov 15, 2017, 2:32:58 AM11/15/17
to AdWords API Forum
Hi,
I've recently setup a test account and am trying to retrieve keyword stats using the targetingIdeaService. The script runs correctly when the RequestType is set to IDEAS. However, when RequestType is changed to STATS, I receive the error:

Fatal error: Uncaught exception 'Google\AdsApi\AdWords\v201710\cm\ApiException' with message '[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.searchParameters[0]; trigger:'CategoryProductsAndServicesSearchParameter']' in C:\www-lib\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php on line 39

Is it not possible to use the CategoryProductsAndServicesSearchParameter when requesting STATS information?

Example code is attached. Relevant lines 57 and 82.

Thanks for any advice.
GetKeywordIdeas.php
Reply all
Reply to author
Forward
0 new messages