{"action":"created","issue":{"url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/496","repository_url":"https://api.github.com/repos/googleads/googleads-php-lib","labels_url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/496/comments","events_url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/496/events","html_url":"https://github.com/googleads/googleads-php-lib/issues/496","id":330161917,"node_id":"MDU6SXNzdWUzMzAxNjE5MTc=","number":496,"title":"TargetingIdeaService : Call to a member function generateHttpHeaders() on null\t","user":{"login":"SnowYou4Times","id":26343885,"node_id":"MDQ6VXNlcjI2MzQzODg1","avatar_url":"https://avatars2.githubusercontent.com/u/26343885?v=4","gravatar_id":"","url":"https://api.github.com/users/SnowYou4Times","html_url":"https://github.com/SnowYou4Times","followers_url":"https://api.github.com/users/SnowYou4Times/followers","following_url":"https://api.github.com/users/SnowYou4Times/following{/other_user}","gists_url":"https://api.github.com/users/SnowYou4Times/gists{/gist_id}","starred_url":"https://api.github.com/users/SnowYou4Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnowYou4Times/subscriptions","organizations_url":"https://api.github.com/users/SnowYou4Times/orgs","repos_url":"https://api.github.com/users/SnowYou4Times/repos","events_url":"https://api.github.com/users/SnowYou4Times/events{/privacy}","received_events_url":"https://api.github.com/users/SnowYou4Times/received_events","type":"User","site_admin":false},"labels":[{"id":798860731,"node_id":"MDU6TGFiZWw3OTg4NjA3MzE=","url":"https://api.github.com/repos/googleads/googleads-php-lib/labels/P2","name":"P2","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"fiboknacky","id":1702801,"node_id":"MDQ6VXNlcjE3MDI4MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/1702801?v=4","gravatar_id":"","url":"https://api.github.com/users/fiboknacky","html_url":"https://github.com/fiboknacky","followers_url":"https://api.github.com/users/fiboknacky/followers","following_url":"https://api.github.com/users/fiboknacky/following{/other_user}","gists_url":"https://api.github.com/users/fiboknacky/gists{/gist_id}","starred_url":"https://api.github.com/users/fiboknacky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fiboknacky/subscriptions","organizations_url":"https://api.github.com/users/fiboknacky/orgs","repos_url":"https://api.github.com/users/fiboknacky/repos","events_url":"https://api.github.com/users/fiboknacky/events{/privacy}","received_events_url":"https://api.github.com/users/fiboknacky/received_events","type":"User","site_admin":false},"assignees":[{"login":"fiboknacky","id":1702801,"node_id":"MDQ6VXNlcjE3MDI4MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/1702801?v=4","gravatar_id":"","url":"https://api.github.com/users/fiboknacky","html_url":"https://github.com/fiboknacky","followers_url":"https://api.github.com/users/fiboknacky/followers","following_url":"https://api.github.com/users/fiboknacky/following{/other_user}","gists_url":"https://api.github.com/users/fiboknacky/gists{/gist_id}","starred_url":"https://api.github.com/users/fiboknacky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fiboknacky/subscriptions","organizations_url":"https://api.github.com/users/fiboknacky/orgs","repos_url":"https://api.github.com/users/fiboknacky/repos","events_url":"https://api.github.com/users/fiboknacky/events{/privacy}","received_events_url":"https://api.github.com/users/fiboknacky/received_events","type":"User","site_admin":false}],"milestone":null,"comments":15,"created_at":"2018-06-07T08:08:45Z","updated_at":"2018-06-07T13:50:46Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI'm new to adWords and I'm trying to get multiple keywords based on one I give to the API.\r\nEx: I give Metal, It returns {Metal, Iron, Copper, Lead...}\r\nFor now, I got this code where I juste setup everything to make the call :\r\n(I'm using the MVC : CakePhp 2.9.5)\r\n\r\n    require_once __DIR__ . '../../Vendor/autoload.php';\r\n    \r\n    use Google\\AdsApi\\AdWords\\v201710\\o\\TargetingIdeaSelector;\r\n    use Google\\AdsApi\\AdWords\\v201710\\o\\TargetingIdeaService;\r\n    use Google\\AdsApi\\AdWords\\v201710\\o\\LanguageSearchParameter;\r\n    use Google\\AdsApi\\AdWords\\v201710\\o\\RelatedToQuerySearchParameter;\r\n    use Google\\AdsApi\\AdWords\\v201710\\cm\\Language;\r\n    use Google\\AdsApi\\AdWords\\v201710\\cm\\Paging;\r\n\r\n    // Create selector.\r\n    $selector = new TargetingIdeaSelector();\r\n    $selector->setRequestType('IDEAS');\r\n    $selector->setIdeaType('KEYWORD');\r\n    $selector->setrequestedAttributeTypes(array(\r\n          'KEYWORD_TEXT','SEARCH_VOLUME','CATEGORY_PRODUCTS_AND_SERVICES'));\r\n    // Create language search parameter (optional).\r\n    // The ID can be found in the documentation:\r\n    //   https://developers.google.com/adwords/api/docs/appendix/languagecodes\r\n    // Note: As of v201302, only a single language parameter is allowed.\r\n    $languageParameter = new LanguageSearchParameter();\r\n    $french = new Language();\r\n    $french->setCode(1002); //english is 1000\r\n    $languageParameter->setLanguages(array($french));\r\n     // Create related to query search parameter.\r\n     $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();\r\n     $relatedToQuerySearchParameter->setQueries(array($word));\r\n     $selector->setSearchParameters(array( \r\n         $relatedToQuerySearchParameter,$languageParameter));\r\n     // Set selector paging (required by this service).\r\n     $paging = new Paging();\r\n     $paging->setStartIndex(0);\r\n     $paging->setNumberResults(10);\r\n     $selector->setPaging($paging);\r\n     // Make the get request.\r\n     $targetingIdeaService = new TargetingIdeaService();\r\n     $content = $targetingIdeaService->get($selector);\r\n\r\nAnd I'm getting the error : \r\nError: Call to a member function generateHttpHeaders() on null\t\r\nFile: C:\\wamp64\\www\\projet\\app\\Vendor\\googleads\\googleads-php-lib\\src\\Google\\AdsApi\\Common\\AdsSoapClient.php\t\r\nLine: 114\r\n\r\nI followed the method on : https://developers.google.com/adwords/api/docs/guides/targeting-idea-service\r\nDid I missed something? Do I need to modify the AdsSoapClient or the TargetingIdeaService ?\r\n"},"comment":{"url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/comments/395427278","html_url":"https://github.com/googleads/googleads-php-lib/issues/496#issuecomment-395427278","issue_url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/496","id":395427278,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTQyNzI3OA==","user":{"login":"SnowYou4Times","id":26343885,"node_id":"MDQ6VXNlcjI2MzQzODg1","avatar_url":"https://avatars2.githubusercontent.com/u/26343885?v=4","gravatar_id":"","url":"https://api.github.com/users/SnowYou4Times","html_url":"https://github.com/SnowYou4Times","followers_url":"https://api.github.com/users/SnowYou4Times/followers","following_url":"https://api.github.com/users/SnowYou4Times/following{/other_user}","gists_url":"https://api.github.com/users/SnowYou4Times/gists{/gist_id}","starred_url":"https://api.github.com/users/SnowYou4Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnowYou4Times/subscriptions","organizations_url":"https://api.github.com/users/SnowYou4Times/orgs","repos_url":"https://api.github.com/users/SnowYou4Times/repos","events_url":"https://api.github.com/users/SnowYou4Times/events{/privacy}","received_events_url":"https://api.github.com/users/SnowYou4Times/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T13:50:46Z","updated_at":"2018-06-07T13:50:46Z","author_association":"NONE","body":"Ok, just changed the adsapi_php.ini file according to what you gave and moved it to a secured location, change the filePath as well to match.\r\n\r\nWhen browsing to this page : https://adwords.google.com/select/ApiCenter\r\nI reach my account, it's a test account but that shouldn't be a problem.\r\nI tried to search for where I could find a valid Developer token but couldn't find it."}}
{"actor":{"display_login":"SnowYou4Times"}}