title: Google shopping API: How to update shippingsettings incrementally?
body: <p>I have a large dataset that I need to push to the account-level shipping settings in Google Merchant Center. I am using the Google Shopping API via the PHP Client Library. </p>
  
  <p>If I load a subset of the data and call it once at the end, it works fine:</p>
  
  <pre><code>$settings = $clientservice-&gt;shippingsettings-&gt;get('XXXXXX', 'XXXXXX');
  
  for each data point that represents a service
      for each data point that represents a rate group
          create weight/destination state table
      next
  next
  
  $settings-&gt;setServices($services);
  $updatedSettings = $clientservice-&gt;shippingsettings-&gt;update('XXXXXX', 'XXXXXX', $settings);
  </code></pre>
  
  <p>However, if I load the entire set of data and try to apply it at once, I get a 413 Request Too Large response. So I would like to load it incrementally, one service at a time. I tried this:</p>
  
  <pre><code>$settings = $clientservice-&gt;shippingsettings-&gt;get('XXXXXX', 'XXXXXX');
  
  for each data point that represents a service
      for each data point that represents a rate group
          create weight/destination state table
      next
      $settings-&gt;setServices([$service]);
      $updatedSettings = $clientservice-&gt;shippingsettings-&gt;patch('XXXXXX', 'XXXXXX', $settings);
  next
  </code></pre>
  
  <p>However, each service just overwrites the previous one. "patch" seems to operate just like "update", as best I can tell. Anyone know how to make this work?</p>