title: "AdwordsApp" is not defined
body: <p>As the title says I'm getting the error <code>"AdwordsApp" is not defined</code> when running my Adwords Script. I'm new to Adwords Script and can't figure out what's wrong. I'm running the script in a single account but this account is in a MCC-account. Can that be the reason? </p>
  
  <p>My code looks like this:</p>
  
  <pre><code>var spreadUrl = "xxxxxxx"
  
  function main(){
      var total = 0;
  
      var campaignSelector = AdwordsApp.campaigns()
          .forDateRange("LAST_MONTH");
  
      var campaignIterator = campaignSelector.get();
  
      while(campaignIterator.hasNext()) {
          var campaign = campaignIterator.next();
          var budget = campaign.adGroups.getBudget();
          var budgetAmount = budget.getAmount();
          total += budgetAmount;
      }
  }
  </code></pre>
  
  <p>The code is far from ready... </p>
  
  <p>Thanks</p>