Google Adwords API用户身份验证出现问题

| 我正在将广告系列添加到特定帐户,所以我有一组帐户,然后从数据库获取它们,然后将广告系列添加到这些帐户。 我连接到生产环境,得到响应
CONNECTION ESTABLISHED
但是当我尝试添加广告系列后,出现错误
AuthenticationError.NOT_ADS_USER @ ; trigger:\'652428713780\' Service[CampaignService.mutate]
调用此代码的一部分:
 @srv[:campaign]= @adwords.get_service(\'Campaign\',AdWords::Service.latest_version)
 def add_campaign(name, cc = \'HU\', status = nil, budget = nil)
  budget ||= AdWordsConfig.get(\'hu_campaign_budget\').value.to_f
  status ||= @srv[:campaign].module::CampaignStatus::PAUSED

  operation = {
    :operand => {
    :name                        => \"API - #{name}\",
    :status                      => status,
      :biddingStrategy             => @srv[:campaign].module::ManualCPC.new,
      :budget => {
      :period                    => \'DAILY\',
      :amount => {
      :microAmount             => (budget * AMOUNT_MULTIPLIER)
    },
      :deliveryMethod            => \'ACCELERATED\'
    }
  },
    :operator                      => \'ADD\'
  }

  response = @srv[:campaign].mutate([operation])
  response.rval.value.first
  cid = response.rval.value.first.id

  response.rval.value.first
end
我在google API文档中发现此错误意味着
#   NOT_ADS_USER

  User in the cookie is not a valid Ads user.
但我什至不知道如何检查cookie。 我正在执行rake任务,是否可以在连接到adwords google com后检索cookie?     
已邀请:
        您可能需要关注此处的讨论:https://groups.google.com/d/topic/adwords-api/BT8mM1vaSVE/discussion     

要回复问题请先登录注册