title: Reviews in Google API
body: <p>I am using below code to find Google reviews for property. What I am trying to do is, I am fetching review for property then I will compare it with old review of that property (which is in the DB). If it is greater than the system's property, then it sends email.</p>
  
  <p>This file is run for every hour(as a cron file) and i enable the billing in Google API, so max limit is 1,50,000. </p>
  
  <p>But for some reason API does not return the exact count of reviews. 
  For example:<br>
  I run this file for the one property which has 4 reviews, but API returns 0 for 2 or 3 times then after some time it returns 4 reviews.</p>
  
  <p>I don't know the reason behind it. I also noticed that we can see the reviews on google search page and in Google+. Same you can write reviews in multiple places, like in Google+ and in Google Map.</p>
  
  <p>And to check reviews, I am using google plus url. So is it possible that the review does exist, but in another area(like in Google search page but not in Google+)?</p>
  
  <pre><code>/* call api to get review count of Google */
  $url = "https://maps.googleapis.com/maps/api/place/details/json?";
  $params = array(
      "placeid" =&gt; $google_place_id,
      "key" =&gt; $google_api_key
  );
  $url .= http_build_query($params);
  $resjson = file_get_contents($url);
  $msg = $resjson;
  Yii::log($msg,'info', 'application');
  $resjson = json_decode($resjson,true);
  
  $review_count = $resjson['result']['user_ratings_total']=='' ? 0 : $resjson['result']['user_ratings_total'];
  /* If review is greater than 0 then check old review and if it's not same then send email */
  if($review_count&gt;0)
  {
      if(sizeof($ressql)&gt;0)
      {
          /* if google plus review is greater then system's google+ review then send email */
          if($review_count&gt;trim($ressql[0]['google_plus_review']))
          {
              $this-&gt;send_googleplusmail($prop_id);
              $msg = "Google+ Review for property id (Mail Sent):".$prop_id." , New Review:$review_count, Old Review: ".$ressql[0]['google_plus_review'];
              Yii::log($msg,'info', 'application');
          }
      }
  }
  
  $sql=" INSERT INTO tbl_review_alert (propertyid, google_plus_review) VALUES ";
  $sql.="('{$prop_id}','{$review_count}')";
  $sql.=" ON DUPLICATE KEY UPDATE propertyid= {$prop_id},google_plus_review= {$review_count}";
  $this-&gt;insert_review($sql);
  </code></pre>
  
  <p>My Question is:<br>
  (1) Is it possible that the review does exist, but in another area(like in Google search page but not in Google+)?  If yes, then in this case can i obtain the URL where review is posted?<br>
  (2) Are all of the reviews are sync in Google?<br>
  (3) Or i am doing something wrong in my code?</p>