Open GoogleCodeExporter opened 8 years ago
[deleted comment]
Hello,
I have he same problem, i had added a function to gwtdata
public function DownloadCSV_querydetails($site, $savepath = ".", $tokenUri,
$tokenDelimiter, $filenamePrefix, $dlUri, $query = "") {
if (self::IsLoggedIn() === true) {
$uri = self::SERVICEURI . $tokenUri . "?hl=%s&siteUrl=%s";
$_uri = sprintf($uri, $this->_language, $site);
$token = "********";
$filename = parse_url($site, PHP_URL_HOST) . "-" . date("Ymd-His");
$finalName = "$savepath/$filenamePrefix-$filename.csv";
$url = "hl=%s&siteUrl=%s&security_token=%s&prop=web&db=%s&de=%s&more=true&query=%s&type=URLS&format=csv";
$_url = self::SERVICEURI . $dlUri . "?" .sprintf($url, $this->_language, rawurlencode($site), $token, $this->_daterange[0], $this->_daterange[1], rawurlencode($query));
self::SaveData($_url, $finalName);
} else {
return false;
}
}
I still have a probleme with the recuperation of token :( if you have a
solution please help
Original comment by mustapha...@gmail.com
on 17 Apr 2014 at 4:47
can i get the impressions per day??? i simply get total count between two date
ranges.
Original comment by postang...@gmail.com
on 18 Jun 2014 at 1:06
Original issue reported on code.google.com by
aos...@gmail.com
on 21 Apr 2013 at 5:15