def schedule(argv)

      report = @account.report do
        name            'boh'
        type            'Url'
        aggregation     'Daily'
        cross_client    true
        zero_impression true

        start_day '2010-01-01'
        end_day   '2010-01-30'

        column "CustomerName"
        column "ExternalCustomerId"
        column "CampaignStatus"
        column "Campaign"
        column "CampaignId"
        column "AdGroup"
        column "AdGroupId"
        column "AdGroupStatus"
        column "QualityScore"
        column "FirstPageCpc"
        column "Keyword"
        column "KeywordId"
        column "KeywordTypeDisplay"
        column "DestinationURL"
        column "Impressions"
        column "Clicks"
        column "CTR"
        column "CPC"
        column "MaximumCPC"
        column "Cost"
        column "AveragePosition"
      end

      unless report.validate
        puts "report not valid"
        exit
      end
      puts "scheduled job"
      job = report.schedule
      job.wait(10) { |report, status| puts "status #{status}" }
      report.download("test_report.xml")
      true
    end
def schedule(argv)

      report = @account.report do
        name            'boh'
        type            'Url'
        aggregation     'Daily'
        cross_client    true
        zero_impression true

        start_day '2010-01-01'
        end_day   '2010-01-30'

        column "CustomerName"
        column "ExternalCustomerId"
        column "CampaignStatus"
        column "Campaign"
        column "CampaignId"
        column "AdGroup"
        column "AdGroupId"
        column "AdGroupStatus"
        column "QualityScore"
        column "FirstPageCpc"
        column "Keyword"
        column "KeywordId"
        column "KeywordTypeDisplay"
        column "DestinationURL"
        column "Impressions"
        column "Clicks"
        column "CTR"
        column "CPC"
        column "MaximumCPC"
        column "Cost"
        column "AveragePosition"
      end

      unless report.validate
        puts "report not valid"
        exit
      end
      puts "scheduled job"
      job = report.schedule
      job.wait(10) { |report, status| puts "status #{status}" }
      report.download("test_report.xml")
      true
    end
schedule and download a v13 report