{
  "id": 14693,
  "title": "LocationID Missing in AdsInfo?",
  "url": "/competitions/avito-context-ad-clicks/discussion/14693",
  "author_name": "",
  "post_date": "2015-06-12T04:08:19.313Z",
  "votes": 1,
  "comment_count": 1,
  "views": 477,
  "content": "<p>What seems weird to me is that LocationID is missing in AdsInfo.tsv for all contextual records in the trainSearchStream.tsv, &nbsp;well data for records not of interest seems quite complete, is there something wrong?</p>\n<p>Here's an example, I checked many other records and observed the same.</p>\n<p><code>&nbsp; &nbsp; conn = sqlite3.connect(&quot;database.sqlite&quot;)<br>&nbsp; &nbsp; c = conn.cursor()<br>&nbsp; &nbsp; c.execute(&quot;SELECT * FROM AdsInfo WHERE AdID &gt; 22224900 AND AdID &lt; 22224910&quot;)<br>&nbsp; &nbsp; result = c.fetchall() <br>&nbsp; &nbsp; conn.close()</code><code>&nbsp; &nbsp; for item in result:<br>&nbsp; &nbsp; &nbsp; &nbsp; print(&quot;{}\\t{}&quot;.format(item[0], item[1]))</code></p>\n<p><code>Output:<br>&nbsp; &nbsp; 22224901 3960<br>&nbsp; &nbsp;&nbsp;22224902 2230<br>&nbsp; &nbsp;&nbsp;22224903 3953<br>&nbsp; &nbsp; 22224904 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; this record is in trainSearchStream<br>&nbsp; &nbsp; 22224905 1990<br>&nbsp; &nbsp; 22224906 2277<br>&nbsp; &nbsp; 22224907 743<br>&nbsp; &nbsp; 22224908 2430<br>&nbsp; &nbsp; 22224909 44</code></p>\n<p>The above code used the database file, the LocationID is also missing in the flatfile.</p>",
  "messages": [
    {
      "id": "81661",
      "postDate": "06/12/2015 04:08:19",
      "content": "<p>What seems weird to me is that LocationID is missing in AdsInfo.tsv for all contextual records in the trainSearchStream.tsv, &nbsp;well data for records not of interest seems quite complete, is there something wrong?</p>\n<p>Here's an example, I checked many other records and observed the same.</p>\n<p><code>&nbsp; &nbsp; conn = sqlite3.connect(&quot;database.sqlite&quot;)<br>&nbsp; &nbsp; c = conn.cursor()<br>&nbsp; &nbsp; c.execute(&quot;SELECT * FROM AdsInfo WHERE AdID &gt; 22224900 AND AdID &lt; 22224910&quot;)<br>&nbsp; &nbsp; result = c.fetchall() <br>&nbsp; &nbsp; conn.close()</code><code>&nbsp; &nbsp; for item in result:<br>&nbsp; &nbsp; &nbsp; &nbsp; print(&quot;{}\\t{}&quot;.format(item[0], item[1]))</code></p>\n<p><code>Output:<br>&nbsp; &nbsp; 22224901 3960<br>&nbsp; &nbsp;&nbsp;22224902 2230<br>&nbsp; &nbsp;&nbsp;22224903 3953<br>&nbsp; &nbsp; 22224904 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; this record is in trainSearchStream<br>&nbsp; &nbsp; 22224905 1990<br>&nbsp; &nbsp; 22224906 2277<br>&nbsp; &nbsp; 22224907 743<br>&nbsp; &nbsp; 22224908 2430<br>&nbsp; &nbsp; 22224909 44</code></p>\n<p>The above code used the database file, the LocationID is also missing in the flatfile.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "81664",
      "postDate": "06/12/2015 04:56:34",
      "content": "<p>Contextual ads do not have single location. That is true. For contextual ads user can specify location targeting that can include many locations.</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 81664,
      "author_name": "ivanguz",
      "author_url": "",
      "post_date": "06/12/2015 04:56:34",
      "content": "<p>Contextual ads do not have single location. That is true. For contextual ads user can specify location targeting that can include many locations.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "81661": "",
    "81664": ""
  },
  "source": "meta"
}