Sha256: d642c1ab0e59f5b587c08a431288945ca62ca971a097dd4a440ee673dc4b8e6f
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
#!/usr/bin/env ruby # Use adwords4r in parent dir $LOAD_PATH.unshift '../lib/' require 'adwords4r' begin adwords = AdWords::API.new # Get the units for the last month or so end_date = Date.today start_date = end_date - 31 puts "result = #{adwords.getUnitCount(start_date, end_date).getUnitCountReturn}" rescue AdWords::Error::UnknownAPICall => e puts e rescue AdWords::Error::ApiError => e puts e.code puts e.message end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adwords4r-11.0.2 | examples/get_unit_count.rb |
adwords4r-11.0.3 | examples/get_unit_count.rb |
adwords4r-11.1.0 | examples/old/get_unit_count.rb |