No commit activity in last 3 years
No release in over 3 years
Gem for interacting with Google's Content API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
~> 2.13
~> 1.11.0

Runtime

 Project Readme

Google Content API Gem Version

Gem for interacting with Google's Content API for Shopping.

Installation

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'

Example Usage

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)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request