Hello Eric,

You are responding to a 2 years old thread. I am closing it to avoid spam 
of the original topic participants.

Please start a new thread describing your issue.


-Danial, AdWords API Team.


On Monday, June 29, 2015 at 5:27:55 PM UTC+2, Eric Berry wrote:
>
> I have tried this with API v201502 and it doesn't return some keyword 
> results.
>
> Here's a screenshot: 
> https://www.evernote.com/l/AAPq0lUVkUFHTIs-cf7aP870j61c2ECRJxcB/image.png
>
> The results set are showing 3 results, but my API call only returns 2 (the 
> ones with monthly searches).
>
> Here's my code for the selector options:
>
> selector = {
>   :idea_type => 'KEYWORD',
>   :request_type => 'STATS',
>   :requested_attribute_types => %w(KEYWORD_TEXT SEARCH_VOLUME 
> TARGETED_MONTHLY_SEARCHES COMPETITION AVERAGE_CPC 
> CATEGORY_PRODUCTS_AND_SERVICES),
>   :search_parameters => [
>     {
>       :xsi_type => 'RelatedToQuerySearchParameter',
>       :queries => _keywords
>     },
>     {
>       :xsi_type => 'IdeaTextFilterSearchParameter',
>       :included => _keywords
>     },
>     {
>       :xsi_type => 'LanguageSearchParameter',
>       :languages => [{:id => 1000}] # English
>     },
>     {
>       :xsi_type => 'LocationSearchParameter',
>       :locations => [
>         {:id => 
> ZipCode::US_STATES[state_keyword_report.state][:location_id]}
>       ]
>     },
>     {
>       :xsi_type => 'NetworkSearchParameter',
>       :network_setting => {
>         :target_google_search => state_keyword_report.target_google_search,
>         :target_search_network => 
> state_keyword_report.target_search_network,
>         # :target_content_network => false, 
> #state_keyword_report.target_content_network,
>         :target_partner_search_network => 
> state_keyword_report.target_partner_search_network
>       }
>     },
>     {
>       :xsi_type => 'ExcludedKeywordSearchParameter',
>       :keywords => negative_keywords
>     },
>   ],
>   :paging => {
>     :start_index => 0,
>     :number_results => PAGE_SIZE
>   }
> }
>
> Am I missing something in order to get the 'possible' keywords?
>
> Thanks!
>
>
>
> On Wednesday, November 20, 2013 at 5:27:26 AM UTC-7, Danial Klimkin wrote:
>>
>> Hello Ismail,
>>
>>
>> Now I understand the question, in order to make an API request with this 
>> option enabled, you need to send both RelatedToQuerySearchParameter and 
>> IdeaTextFilterSearchParameter parameters:
>>
>>   RelatedToQuerySearchParameter, queries = keyword1, keyword2, ...
>>   IdeaTextFilterSearchParameter, included = keyword1, keyword2, ...
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Monday, November 18, 2013 4:12:53 PM UTC+4, Ismail Ansari wrote:
>>>
>>> Hi,
>>>
>>> look at the screenshot i want to get keywords ideas related to my search 
>>> query how can i implement this using adwords api php.
>>> currently i'm using targeting idea service but don't know how to achieve 
>>> this
>>>
>>> my sample code is :
>>>
>>>  $keyword = $search_params['keyword'];
>>>  
>>>   // Create selector.
>>>   $selector = new TargetingIdeaSelector();
>>>   $selector->requestType = 'IDEAS';
>>>   $selector->ideaType = 'KEYWORD';
>>>   $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 
>>> 'SEARCH_VOLUME'
>>>       ,'AVERAGE_CPC','COMPETITION'); //'TARGETED_MONTHLY_SEARCHES'
>>>
>>>   
>>>   $languageParameter = new LanguageSearchParameter();
>>>   $english = new Language();
>>>   $english->id = $search_params['language'];
>>>   $languageParameter->languages = array($english);
>>>   
>>>   $locationParameter = new LocationSearchParameter();
>>>   $location = new Location();
>>>   $location->id = $search_params['country'];
>>>   $locationParameter->locations = array($location);
>>>   
>>>
>>>   $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
>>>   $relatedToQuerySearchParameter->queries = array($keyword);
>>>   $selector->searchParameters[] = $relatedToQuerySearchParameter;
>>>   $selector->searchParameters[] = $languageParameter;
>>>   $selector->searchParameters[] = $locationParameter;
>>>
>>>     $paging = new Paging();
>>>     $paging->startIndex = 0;
>>>     $paging->numberResults = 50;
>>>     $selector->paging = $paging;
>>>
>>>  
>>>     // Make the get request.
>>>     $page = $targetingIdeaService->get($selector);
>>>
>>>
>>> <https://lh4.googleusercontent.com/-hZbGv1tJEw4/UooCa_z6srI/AAAAAAAAAAk/LpIG4hTzoYw/s1600/sample-keyword.png>
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7c78032e-0730-44d8-9dd1-82a1bebda566%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to