Изтеглих клиентската библиотека на PHP за GoogleAPI на AdWords. Трябва да донесе "ConversionsManyPerClick" данни от API, не мога да намеря опция за същото от библиотеката на клиента. мен.
function DownloadCriteriaReportExample(AdWordsUser $user, $filePath) {
// Load the service, so that the required classes are available.
$user->LoadService("ReportDefinitionService");
// Create selector.
$selector = new Selector();
$selector->fields = array("Headline","Description1","Description2","DisplayUrl","AdGroupName","CampaignName","Clicks","ConversionsManyPerClick");
$selector->predicates[] = new Predicate("Status", "NOT_IN", array("PAUSED"));
$reportDefinition = new ReportDefinition();
$reportDefinition->selector = $selector;
$reportDefinition->reportName = "ad performance report #" . uniqid();
$reportDefinition->dateRangeType = "LAST_30_DAYS";
$reportDefinition->reportType = "AD_PERFORMANCE_REPORT";
$reportDefinition->downloadFormat = "CSV";
$reportDefinition->includeZeroImpressions = FALSE;
$options = array("version" => "v201502");
ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options);
}
Благодаря предварително.
Отговори:
0 за отговор № 1Моля, прочетете следната документация и се опитайте да промените основния плъгин
https://developers.google.com/adwords/api/docs/guides/conversion-tracking