Hi goo...,

Try sending this selector instead:

array(1) {
  ["selector"]=>
  array(5) {
    ["requestType"]=>
    string(5) "IDEAS"
    ["ideaType"]=>
    string(7) "KEYWORD"
    ["requestedAttributeTypes"]=>
    array(4) {
      [0]=>
      string(12) "KEYWORD_TEXT"
      [1]=>
      string(13) "SEARCH_VOLUME"
      [2]=>
      string(25) "TARGETED_MONTHLY_SEARCHES"
      [3]=>
      string(30) "CATEGORY_PRODUCTS_AND_SERVICES"
    }
    ["searchParameters"]=>
    object(*SoapVar*)#3 (4) {
      ["enc_type"]=>
      int(999998)
      ["enc_value"]=>
      array(1) {
        ["queries"]=>
        string(14) "sample keyword"
      }
      ["enc_stype"]=>
      string(29) "RelatedToQuerySearchParameter"
      ["enc_ns"]=>
      string(48) "https://adwords.google.com/api/adwords/o/v201302";
    }
    ["paging"]=>
    array(2) {
      ["startIndex"]=>
      int(0)
      ["numberResults"]=>
      int(20)
    }
  }
}

The code for creating this request is as follows:

$namespace = 'https://adwords.google.com/api/adwords/o/v201302';

$selector = array('selector' => array(
  'requestType' => 'IDEAS',
  'ideaType' => 'KEYWORD',
  'requestedAttributeTypes' => array(),
  'searchParameters' => *new SoapVar(*
*    array(*
*      'queries' => 'sample keyword',*
*    ),*
*    null,*
*    'RelatedToQuerySearchParameter',*
*    $namespace*
*  )*,
  'requestedAttributeTypes' => array(
    'KEYWORD_TEXT',
    'SEARCH_VOLUME',
    'TARGETED_MONTHLY_SEARCHES',
    'CATEGORY_PRODUCTS_AND_SERVICES',
  ),
  'paging' => array(
    'startIndex' => 0,
    'numberResults' => 20,
  ),
));

Then you need to call the get method on the soapClient:

$service->*get*($selector);

Regards,

- Paul, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to