$key, 'advert_type' => $advert_type, 'domain' => $domain, 'url' => $dieadurl ); // full api dieadurl with query string $api = $api . http_build_query($query); // get data if ($data = file_get_contents($api)) return $data; } $ergebnis = adfly($url, $apiKey); ?>