您的 Google 專案發布狀態為 Testing,因此重新整理權杖會每 7 天過期一次,並收到 invalid_grant 錯誤。前往 Google API 控制台,然後前往 OAuth 同意畫面。然後按照這些操作說明,將發布狀態變更為 In production,以免重新整理權杖在 7 天後到期。
請務必使用有效的 Google Ads 帳戶 (通常是管理員帳戶) 登入 OAuth 流程。您也可以邀請 Google 帳戶存取現有的 Google Ads 帳戶,方法是登入管理員帳戶、選取相關客戶或管理員帳戶、前往 Tools and Settings > Access and security,然後新增 Google 帳戶電子郵件地址。
每個 Google API 控制台專案只能與一個管理員帳戶的開發人員符記建立關聯。提出 Google Ads API 要求後,開發人員權杖就會永久配對至 Google API 控制台專案。如果您未使用新的 Google API 控制台專案,在提出要求時會收到 DEVELOPER_TOKEN_PROHIBITED 錯誤。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-12-02 (世界標準時間)。"],[[["This page provides solutions and preventative measures for common Google Ads API errors."],["For a comprehensive list of errors, refer to the dedicated error references section."],["Additional assistance and community support can be found on the Google Ads API forum."],["Understanding and addressing these errors is crucial for successful API integration and campaign management."]]],[]]