コード例 #1
0
 //print_r($result);
 //die();
 /*
  ************* METADATA **************
  */
 $adspacesMeta = getAdspaces($mysqli);
 $campaignsMeta = getCampaigns($mysqli);
 $channelsMeta = getChannels($mysqli);
 $projectsMeta = getProjects($mysqli);
 $creativesMeta = getCreatives($mysqli);
 $adnetworksMeta = getAdnetworks($mysqli);
 $insertionsMeta = getInsertions($mysqli);
 $agesMeta = getAges($mysqli);
 $ispsMeta = getIsps($mysqli);
 $opsMeta = getOps($mysqli);
 $browsersMeta = getBrowsers($mysqli);
 $socialsMeta = getSocials($mysqli);
 $gendersMeta = getGenders($mysqli);
 $GLOBALS["metrics"] = getMetrics($mysqli);
 $metrics = $GLOBALS["metrics"];
 /*
 	        $metadata = $result->body->metadata;
 	        foreach ($metadata as $key => $value) {
 	        	//print_r($key.'/');
 	        	foreach ($value as $idWeborama => $arrValues) {
 	        		//print_r("idWeborama ".$idWeborama.'-');
 	        		//print_r($arrValues);
 	        		$insertData = "";
 	        		
 
 	        		switch ($key) {
コード例 #2
0
 //print_r($result);
 //die();
 /*
  ************* METADATA **************
  */
 $adspacesMeta = getAdspaces($connSqlsrv);
 $campaignsMeta = getCampaigns($connSqlsrv);
 $channelsMeta = getChannels($connSqlsrv);
 $projectsMeta = getProjects($connSqlsrv);
 $creativesMeta = getCreatives($connSqlsrv);
 $adnetworksMeta = getAdnetworks($connSqlsrv);
 $insertionsMeta = getInsertions($connSqlsrv);
 $agesMeta = getAges($connSqlsrv);
 $ispsMeta = getIsps($connSqlsrv);
 $opsMeta = getOps($connSqlsrv);
 $browsersMeta = getBrowsers($connSqlsrv);
 $socialsMeta = getSocials($connSqlsrv);
 $gendersMeta = getGenders($connSqlsrv);
 $GLOBALS["metrics"] = getMetrics($connSqlsrv);
 $metrics = $GLOBALS["metrics"];
 $metadata = $result->body->metadata;
 foreach ($metadata as $key => $value) {
     //print_r($key.'/');
     foreach ($value as $idWeborama => $arrValues) {
         //print_r("idWeborama ".$idWeborama.'-');
         //print_r($arrValues);
         $insertData = "";
         switch ($key) {
             case 'project':
                 if (array_search($idWeborama . "|" . $keyCountry, $projectsMeta)) {
                     echo "\nMeta Project existente: " . $idWeborama;