Gem for interacting with Google's Content API for Shopping.
Add this line to your application's Gemfile:
gem 'google-content-api', :require => "google_content_api"
And execute:
$ bundle
Or install it yourself as:
$ gem install google-content-api
And require 'google_content_api'
GoogleContentApi::SubAccount.get_all
# Get all sub accounts for the user_id specified in conf/google_content_api.yml
# Note: _must_ be a multi-user google account id
GoogleContentApi::SubAccount.create(title, adult_content, attributes)
# Create a new subaccount with _title_.
# Use attributes to include 'description', 'link', 'internal_id',
# 'reviews_url' or 'adwords_accounts'.
GoogleContentApi::SubAccount.delete(sub_account_id)
# Deletes a sub account.
GoogleContentApi::Product.create_products(sub_account_id, products, dry_run)
# Creates products for sub_account_id using batch request. dry_run defaults to false (used for debugging)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request