142 | | SELECT `mars_adgroupstat`.`ad_group_id`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroup`.`visible_tags`, AVG(`mars_adgroupstat`.`average_position`) AS `_average_position`, SUM(`mars_adgroupstat`.`conversions`) AS `_conversions`, SUM(`mars_adgroupstat`.`clicks`) AS `_clicks`, SUM(`mars_adgroupstat`.`cost`) AS `_cost`, SUM(`mars_adgroupstat`.`revenue`) AS `_revenue`, SUM(`mars_adgroupstat`.`impressions`) AS `_impressions` FROM `mars_adgroupstat` INNER JOIN `mars_adgroup` ON (`mars_adgroupstat`.`ad_group_id` = `mars_adgroup`.`id`) INNER JOIN `mars_campaign` ON (`mars_adgroup`.`campaign_id` = `mars_campaign`.`id`) INNER JOIN `mars_account` ON (`mars_campaign`.`account_id` = `mars_account`.`id`) LEFT OUTER JOIN `mars_biddingrule` ON (`mars_adgroup`.`bidding_rule_id` = `mars_biddingrule`.`id`) |
143 | | GROUP BY `mars_adgroupstat`.`id`, `mars_adgroupstat`.`ad_group_id`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroup`.`visible_tags` ORDER BY NULL |
| 142 | SELECT |
| 143 | `mars_adgroupstat`.`ad_group_id`, |
| 144 | `mars_adgroup`.`engine_id`, |
| 145 | `mars_adgroup`.`ad_group`, |
| 146 | `mars_account`.`engine`, |
| 147 | `mars_campaign`.`campaign`, |
| 148 | `mars_adgroup`.`max_cpc`, |
| 149 | `mars_adgroup`.`content_max_cpc`, |
| 150 | `mars_adgroup`.`status`, |
| 151 | `mars_biddingrule`.`name`, |
| 152 | `mars_adgroup`.`visible_tags`, |
| 153 | AVG(`mars_adgroupstat`.`average_position`) AS `_average_position`, |
| 154 | SUM(`mars_adgroupstat`.`conversions`) AS `_conversions`, |
| 155 | SUM(`mars_adgroupstat`.`clicks`) AS `_clicks`, |
| 156 | SUM(`mars_adgroupstat`.`cost`) AS `_cost`, |
| 157 | SUM(`mars_adgroupstat`.`revenue`) AS `_revenue`, |
| 158 | SUM(`mars_adgroupstat`.`impressions`) AS `_impressions` |
| 159 | FROM |
| 160 | `mars_adgroupstat` |
| 161 | INNER JOIN |
| 162 | `mars_adgroup` ON (`mars_adgroupstat`.`ad_group_id` = `mars_adgroup`.`id`) |
| 163 | INNER JOIN |
| 164 | `mars_campaign` ON (`mars_adgroup`.`campaign_id` = `mars_campaign`.`id`) |
| 165 | INNER JOIN |
| 166 | `mars_account` ON (`mars_campaign`.`account_id` = `mars_account`.`id`) |
| 167 | LEFT OUTER JOIN |
| 168 | `mars_biddingrule` ON (`mars_adgroup`.`bidding_rule_id` = `mars_biddingrule`.`id`) |
| 169 | GROUP BY |
| 170 | `mars_adgroupstat`.`id`, |
| 171 | `mars_adgroupstat`.`ad_group_id`, |
| 172 | `mars_adgroup`.`engine_id`, |
| 173 | `mars_adgroup`.`ad_group`, |
| 174 | `mars_account`.`engine`, |
| 175 | `mars_campaign`.`campaign`, |
| 176 | `mars_adgroup`.`max_cpc`, |
| 177 | `mars_adgroup`.`content_max_cpc`, |
| 178 | `mars_adgroup`.`status`, |
| 179 | `mars_biddingrule`.`name`, |
| 180 | `mars_adgroup`.`visible_tags` |
| 181 | ORDER BY NULL |
147 | | SELECT `mars_adgroupstat`.`ad_group_id`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, AVG(`mars_adgroupstat`.`average_position`) AS `_average_position`, SUM(`mars_adgroupstat`.`conversions`) AS `_conversions`, SUM(`mars_adgroupstat`.`clicks`) AS `_clicks`, SUM(`mars_adgroupstat`.`cost`) AS `_cost`, SUM(`mars_adgroupstat`.`revenue`) AS `_revenue`, SUM(`mars_adgroupstat`.`impressions`) AS `_impressions` FROM `mars_adgroupstat` INNER JOIN `mars_adgroup` ON (`mars_adgroupstat`.`ad_group_id` = `mars_adgroup`.`id`) INNER JOIN `mars_campaign` ON (`mars_adgroup`.`campaign_id` = `mars_campaign`.`id`) INNER JOIN `mars_account` ON (`mars_campaign`.`account_id` = `mars_account`.`id`) LEFT OUTER JOIN `mars_biddingrule` ON (`mars_adgroup`.`bidding_rule_id` = `mars_biddingrule`.`id`) |
148 | | GROUP BY `mars_adgroupstat`.`ad_group_id`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroupstat`.`ad_group_id`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name` ORDER BY NULL |
| 185 | SELECT |
| 186 | `mars_adgroupstat`.`ad_group_id`, |
| 187 | `mars_adgroup`.`engine_id`, |
| 188 | `mars_adgroup`.`ad_group`, |
| 189 | `mars_account`.`engine`, |
| 190 | `mars_campaign`.`campaign`, |
| 191 | `mars_adgroup`.`max_cpc`, |
| 192 | `mars_adgroup`.`content_max_cpc`, |
| 193 | `mars_adgroup`.`status`, |
| 194 | `mars_biddingrule`.`name`, |
| 195 | AVG(`mars_adgroupstat`.`average_position`) AS `_average_position`, |
| 196 | SUM(`mars_adgroupstat`.`conversions`) AS `_conversions`, |
| 197 | SUM(`mars_adgroupstat`.`clicks`) AS `_clicks`, |
| 198 | SUM(`mars_adgroupstat`.`cost`) AS `_cost`, |
| 199 | SUM(`mars_adgroupstat`.`revenue`) AS `_revenue`, |
| 200 | SUM(`mars_adgroupstat`.`impressions`) AS `_impressions` |
| 201 | FROM |
| 202 | `mars_adgroupstat` |
| 203 | INNER JOIN |
| 204 | `mars_adgroup` ON (`mars_adgroupstat`.`ad_group_id` = `mars_adgroup`.`id`) |
| 205 | INNER JOIN |
| 206 | `mars_campaign` ON (`mars_adgroup`.`campaign_id` = `mars_campaign`.`id`) |
| 207 | INNER JOIN |
| 208 | `mars_account` ON (`mars_campaign`.`account_id` = `mars_account`.`id`) |
| 209 | LEFT OUTER JOIN |
| 210 | `mars_biddingrule` ON (`mars_adgroup`.`bidding_rule_id` = `mars_biddingrule`.`id`) |
| 211 | GROUP BY |
| 212 | `mars_adgroupstat`.`ad_group_id`, |
| 213 | `mars_adgroup`.`engine_id`, |
| 214 | `mars_adgroup`.`ad_group`, |
| 215 | `mars_account`.`engine`, |
| 216 | `mars_campaign`.`campaign`, |
| 217 | `mars_adgroup`.`max_cpc`, |
| 218 | `mars_adgroup`.`content_max_cpc`, |
| 219 | `mars_adgroup`.`status`, |
| 220 | `mars_biddingrule`.`name`, |
| 221 | `mars_adgroupstat`.`ad_group_id`, |
| 222 | `mars_adgroup`.`engine_id`, |
| 223 | `mars_adgroup`.`ad_group`, |
| 224 | `mars_account`.`engine`, |
| 225 | `mars_campaign`.`campaign`, |
| 226 | `mars_adgroup`.`max_cpc`, |
| 227 | `mars_adgroup`.`content_max_cpc`, |
| 228 | `mars_adgroup`.`status`, |
| 229 | `mars_biddingrule`.`name` |
| 230 | ORDER BY NULL |
152 | | SELECT `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroup`.`visible_tags`, AVG(`mars_adgroupstat`.`average_position`) AS `_average_position`, SUM(`mars_adgroupstat`.`conversions`) AS `_conversions`, SUM(`mars_adgroupstat`.`clicks`) AS `_clicks`, SUM(`mars_adgroupstat`.`cost`) AS `_cost`, SUM(`mars_adgroupstat`.`revenue`) AS `_revenue`, SUM(`mars_adgroupstat`.`impressions`) AS `_impressions` FROM `mars_adgroupstat` INNER JOIN `mars_adgroup` ON (`mars_adgroupstat`.`ad_group_id` = `mars_adgroup`.`id`) INNER JOIN `mars_campaign` ON (`mars_adgroup`.`campaign_id` = `mars_campaign`.`id`) INNER JOIN `mars_account` ON (`mars_campaign`.`account_id` = `mars_account`.`id`) LEFT OUTER JOIN `mars_biddingrule` ON (`mars_adgroup`.`bidding_rule_id` = `mars_biddingrule`.`id`) |
153 | | GROUP BY `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroup`.`visible_tags`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroup`.`visible_tags` ORDER BY NULL |
| 234 | SELECT |
| 235 | `mars_adgroup`.`engine_id`, |
| 236 | `mars_adgroup`.`ad_group`, |
| 237 | `mars_account`.`engine`, |
| 238 | `mars_campaign`.`campaign`, |
| 239 | `mars_adgroup`.`max_cpc`, |
| 240 | `mars_adgroup`.`content_max_cpc`, |
| 241 | `mars_adgroup`.`status`, |
| 242 | `mars_biddingrule`.`name`, |
| 243 | `mars_adgroup`.`visible_tags`, |
| 244 | AVG(`mars_adgroupstat`.`average_position`) AS `_average_position`, |
| 245 | SUM(`mars_adgroupstat`.`conversions`) AS `_conversions`, |
| 246 | SUM(`mars_adgroupstat`.`clicks`) AS `_clicks`, |
| 247 | SUM(`mars_adgroupstat`.`cost`) AS `_cost`, |
| 248 | SUM(`mars_adgroupstat`.`revenue`) AS `_revenue`, |
| 249 | SUM(`mars_adgroupstat`.`impressions`) AS `_impressions` |
| 250 | FROM |
| 251 | `mars_adgroupstat` |
| 252 | INNER JOIN |
| 253 | `mars_adgroup` ON (`mars_adgroupstat`.`ad_group_id` = `mars_adgroup`.`id`) |
| 254 | INNER JOIN |
| 255 | `mars_campaign` ON (`mars_adgroup`.`campaign_id` = `mars_campaign`.`id`) |
| 256 | INNER JOIN |
| 257 | `mars_account` ON (`mars_campaign`.`account_id` = `mars_account`.`id`) |
| 258 | LEFT OUTER JOIN |
| 259 | `mars_biddingrule` ON (`mars_adgroup`.`bidding_rule_id` = `mars_biddingrule`.`id`) |
| 260 | GROUP BY |
| 261 | `mars_adgroup`.`engine_id`, |
| 262 | `mars_adgroup`.`ad_group`, |
| 263 | `mars_account`.`engine`, |
| 264 | `mars_campaign`.`campaign`, |
| 265 | `mars_adgroup`.`max_cpc`, |
| 266 | `mars_adgroup`.`content_max_cpc`, |
| 267 | `mars_adgroup`.`status`, |
| 268 | `mars_biddingrule`.`name`, |
| 269 | `mars_adgroup`.`visible_tags`, |
| 270 | `mars_adgroup`.`engine_id`, |
| 271 | `mars_adgroup`.`ad_group`, |
| 272 | `mars_account`.`engine`, |
| 273 | `mars_campaign`.`campaign`, |
| 274 | `mars_adgroup`.`max_cpc`, |
| 275 | `mars_adgroup`.`content_max_cpc`, |
| 276 | `mars_adgroup`.`status`, |
| 277 | `mars_biddingrule`.`name`, |
| 278 | `mars_adgroup`.`visible_tags` |
| 279 | ORDER BY NULL |
159 | | GROUP BY `mars_adgroupstat`.`id`, `mars_adgroupstat`.`ad_group_id`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroup`.`visible_tags` |
| 285 | GROUP BY |
| 286 | `mars_adgroupstat`.`id`, |
| 287 | `mars_adgroupstat`.`ad_group_id`, |
| 288 | `mars_adgroup`.`engine_id`, |
| 289 | `mars_adgroup`.`ad_group`, |
| 290 | `mars_account`.`engine`, |
| 291 | `mars_campaign`.`campaign`, |
| 292 | `mars_adgroup`.`max_cpc`, |
| 293 | `mars_adgroup`.`content_max_cpc`, |
| 294 | `mars_adgroup`.`status`, |
| 295 | `mars_biddingrule`.`name`, |
| 296 | `mars_adgroup`.`visible_tags` |
163 | | GROUP BY `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroup`.`visible_tags`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroup`.`visible_tags` |
164 | | |
165 | | GROUP BY `mars_adgroupstat`.`ad_group_id`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name`, `mars_adgroupstat`.`ad_group_id`, `mars_adgroup`.`engine_id`, `mars_adgroup`.`ad_group`, `mars_account`.`engine`, `mars_campaign`.`campaign`, `mars_adgroup`.`max_cpc`, `mars_adgroup`.`content_max_cpc`, `mars_adgroup`.`status`, `mars_biddingrule`.`name` |
| 300 | GROUP BY |
| 301 | `mars_adgroup`.`engine_id`, |
| 302 | `mars_adgroup`.`ad_group`, |
| 303 | `mars_account`.`engine`, |
| 304 | `mars_campaign`.`campaign`, |
| 305 | `mars_adgroup`.`max_cpc`, |
| 306 | `mars_adgroup`.`content_max_cpc`, |
| 307 | `mars_adgroup`.`status`, |
| 308 | `mars_biddingrule`.`name`, |
| 309 | `mars_adgroup`.`visible_tags`, |
| 310 | `mars_adgroup`.`engine_id`, |
| 311 | `mars_adgroup`.`ad_group`, |
| 312 | `mars_account`.`engine`, |
| 313 | `mars_campaign`.`campaign`, |
| 314 | `mars_adgroup`.`max_cpc`, |
| 315 | `mars_adgroup`.`content_max_cpc`, |
| 316 | `mars_adgroup`.`status`, |
| 317 | `mars_biddingrule`.`name`, |
| 318 | `mars_adgroup`.`visible_tags` |
| 319 | |
| 320 | GROUP BY |
| 321 | `mars_adgroupstat`.`ad_group_id`, |
| 322 | `mars_adgroup`.`engine_id`, |
| 323 | `mars_adgroup`.`ad_group`, |
| 324 | `mars_account`.`engine`, |
| 325 | `mars_campaign`.`campaign`, |
| 326 | `mars_adgroup`.`max_cpc`, |
| 327 | `mars_adgroup`.`content_max_cpc`, |
| 328 | `mars_adgroup`.`status`, |
| 329 | `mars_biddingrule`.`name`, |
| 330 | `mars_adgroupstat`.`ad_group_id`, |
| 331 | `mars_adgroup`.`engine_id`, |
| 332 | `mars_adgroup`.`ad_group`, |
| 333 | `mars_account`.`engine`, |
| 334 | `mars_campaign`.`campaign`, |
| 335 | `mars_adgroup`.`max_cpc`, |
| 336 | `mars_adgroup`.`content_max_cpc`, |
| 337 | `mars_adgroup`.`status`, |
| 338 | `mars_biddingrule`.`name` |