Notice: Undefined index: q in /var/www/html/id2.php on line 94

Fatal error: Uncaught TypeError: Argument 1 passed to Google\AdsApi\AdWords\v201809\o\RelatedToQuerySearchParameter::setQueries() must be of the type array, null given, called in /var/www/html/id2.php on line 99 and defined in /var/www/html/googleads-php-lib/src/Google/AdsApi/AdWords/v201809/o/RelatedToQuerySearchParameter.php:39 Stack trace: #0 /var/www/html/id2.php(99): Google\AdsApi\AdWords\v201809\o\RelatedToQuerySearchParameter->setQueries(NULL) #1 /var/www/html/id2.php(257): Google\AdsApi\Examples\AdWords\v201809\Optimization\GetKeywordIdeas::runExample(Object(Google\AdsApi\AdWords\AdWordsServices), Object(Google\AdsApi\AdWords\AdWordsSession), NULL) #2 /var/www/html/id2.php(261): Google\AdsApi\Examples\AdWords\v201809\Optimization\GetKeywordIdeas::main() #3 /var/www/html/index.php(4): include('/var/www/html/i...') #4 {main} thrown in /var/www/html/googleads-php-lib/src/Google/AdsApi/AdWords/v201809/o/RelatedToQuerySearchParameter.php on line 39