You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: create_debit_for_campaign_and_date_job.rb
    path of file: ./repos/code_fund_ads/app/jobs
    
    the code of the file until where you have to start completion: # Add a daily debit OrganizationTransaction for the passed campaign and date
# This job is idempotent, meaning it's safe to run multiple times with the same
    
  def perform(campaign_id, date_string)
    ScoutApm::Transaction.ignore! if rand > (ENV["SCOUT_SAMPLE_RATE"] || 1).to_f
    date = Date.parse(date_string)
    return unless date.past?

    campaign = Campaign.includes(:organization).available_on(date).find_by(id: campaign_id)
    return unless campaign

    create_debit_for_standard_campaign(campaign, date) if campaign.standard?
    create_debit_for_sponsor_campaign(campaign) if campaign.sponsor?
  rescue => e
    Rollbar.error e
  end