ชื่อแทนที่แชร์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เมื่อทำงานกับ Google Ads API จะมีการใช้อีเมล
ในหลายที่เพื่อการจัดการการติดต่อและการเข้าถึง ซึ่งที่สำคัญที่สุดมีดังนี้
- อีเมลติดต่อของ Google Ads API: นี่คืออีเมลที่ระบุเป็นผู้ติดต่อใน
ศูนย์ API ของ UI ของ Google Ads
- อีเมลบัญชีคอนโซล Google Cloud: อีเมลนี้มีสิทธิ์เข้าถึงระดับผู้ดูแลระบบ
ในบัญชีคอนโซล Google Cloud ที่ใช้สำหรับแอปพลิเคชัน OAuth
2.0
- อีเมลของบัญชีดูแลจัดการ Google Ads: อีเมลเหล่านี้มีสิทธิ์ระดับผู้ดูแลระบบในบัญชี Google Ads ที่ดูแลจัดการที่คุณเข้าถึงผ่าน Google Ads API เมื่อสร้างโทเค็นการรีเฟรชสำหรับแอปพลิเคชัน
โดยปกติแล้วคุณจะตรวจสอบสิทธิ์แอปพลิเคชัน Google Ads API ด้วยอีเมลใดอีเมลหนึ่งต่อไปนี้
เราขอแนะนำอย่างยิ่งให้ใช้นามแฝงของทีมที่แชร์เพื่อไม่ให้เสียสิทธิ์เข้าถึงบัญชีเหล่านี้เมื่อสมาชิกในทีมเปลี่ยนทีมหรือลาออกจากบริษัท
ส่วนที่เหลือของคู่มือนี้จะอธิบายรายละเอียดเกี่ยวกับอีเมลแต่ละฉบับที่แสดงไว้ก่อนหน้านี้ และวิธีอัปเดตเพื่อใช้ชื่อแทนของทีมที่แชร์แทนอีเมลของผู้ใช้แต่ละราย
อีเมลติดต่อของ Google Ads API คืออีเมลที่คุณระบุเมื่อลงชื่อสมัครใช้
Google Ads API คุณควรตรวจสอบว่ามีสิทธิ์เข้าถึงอีเมลแทนนี้และตรวจสอบอีเมลที่ส่งไปยัง
อีเมลนี้เป็นประจำ Google จะใช้อีเมลนี้เพื่อติดต่อทีมของคุณ
ระหว่างการตรวจสอบ API, คำขอตรวจสอบ หรือเหตุฉุกเฉินในการใช้งานจริงที่ต้อง
ได้รับการแก้ไขทันที ใช้อีเมลแทนของทีมที่แชร์เป็นอีเมลติดต่อเพื่อให้มั่นใจว่าทั้งทีมจะได้รับการแจ้งเตือนเหล่านี้
ทำตามขั้นตอนต่อไปนี้เพื่ออัปเดตอีเมลสำหรับติดต่อเกี่ยวกับ API
ลงชื่อเข้าใช้บัญชีดูแลจัดการ Google Ads
คลิกผู้ดูแลระบบที่ด้านซ้ายล่างของหน้าจอ
คลิก API Center ในส่วนการตั้งค่าบัญชีดูแลจัดการ
ในส่วนรายละเอียดนักพัฒนาแอป ให้จดอีเมลติดต่อ API คลิกลูกศรลง
แล้วแก้ไขอีเมล คลิกบันทึก
บัญชี Google Cloud Console
โปรเจ็กต์ Google API Console มีข้อมูลเข้าสู่ระบบ OAuth ของแอปพลิเคชัน
และควบคุมการเข้าถึง Google Ads API ตรวจสอบว่าคุณมีสิทธิ์เข้าถึงบัญชีนี้โดยการตั้งค่า
นามแฝงที่แชร์เป็นเจ้าของบัญชี
ทำตามขั้นตอนต่อไปนี้เพื่ออัปเดตเจ้าของโปรเจ็กต์คอนโซล Google API
- ลงชื่อเข้าใช้ Google API Console
- เลือกโปรเจ็กต์จากเมนูแบบเลื่อนลงที่มุมซ้ายบนของหน้า
- ไปที่ IAM และผู้ดูแลระบบ > IAM จากเมนูด้านซ้าย
- คลิกปุ่มให้สิทธิ์เข้าถึง
- ป้อนอีเมลที่ใช้ร่วมกันในส่วนเพิ่มผู้รับมอบสิทธิ์
- มอบหมายบทบาทเจ้าของ
- คลิกปุ่มบันทึก ดูข้อมูลเพิ่มเติมเกี่ยวกับการให้และเพิกถอนสิทธิ์เข้าถึงได้ในเอกสารประกอบของ Cloud
บัญชีดูแลจัดการ Google Ads
วิธีทั่วไปในการจัดการบัญชีโดยใช้ Google Ads API คือการลิงก์บัญชีทั้งหมดภายใต้บัญชีดูแลจัดการทั่วไป และทำการเรียก API ไปยังบัญชีทั้งหมดโดยใช้ข้อมูลเข้าสู่ระบบของบัญชีดูแลจัดการระดับบนสุด ในการกำหนดค่านี้
- นักพัฒนาแอปจะออกโทเค็นการรีเฟรชโดยใช้ข้อมูลเข้าสู่ระบบของผู้ใช้ที่มี
สิทธิ์เข้าถึงบัญชีดูแลจัดการ Google Ads
- นักพัฒนาแอปตั้งค่าส่วนหัว
login_customer_id
เป็นรหัสลูกค้าของบัญชีดูแลจัดการ Google Ads และส่วนหัว customer_id
เป็นรหัสลูกค้าของบัญชีที่ทำการเรียก API
ความเสี่ยงที่อาจเกิดขึ้นจากการตั้งค่านี้คือหากผู้ใช้ที่ได้รับอนุญาตเสียสิทธิ์เข้าถึง
บัญชีดูแลจัดการ Google Ads โทเค็นการรีเฟรชจะใช้ไม่ได้อีกต่อไปและ
การเรียก API ทั้งหมดจะล้มเหลว หากต้องการหลีกเลี่ยงสถานการณ์นี้ คุณสามารถเชิญนามแฝงอีเมลที่แชร์เพื่อ
จัดการบัญชีดูแลจัดการ Google Ads นี้ด้วยระดับการเข้าถึงที่เหมาะสม
ใช้นามแฝงอีเมลที่แชร์นี้เพื่อออกโทเค็นการรีเฟรชสำหรับการเรียก API
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eWhen working with the Google Ads API, ensure continuous access by using shared team aliases for contact, access management, and authentication purposes instead of individual user emails.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Ads API contact email is used for crucial communications, update it to a shared alias to keep your team informed about API reviews, audit requests, and production emergencies.\u003c/p\u003e\n"],["\u003cp\u003eSafeguard your Google Cloud Console account by granting ownership to a shared team alias, ensuring access to your application's OAuth credentials and control over API access.\u003c/p\u003e\n"],["\u003cp\u003eFor managing multiple Google Ads accounts, link them under a manager account and grant access to a shared alias for refresh token generation and uninterrupted API functionality.\u003c/p\u003e\n"],["\u003cp\u003eRegularly monitor and update these email addresses and access levels to maintain seamless API operations and avoid disruptions caused by personnel changes.\u003c/p\u003e\n"]]],[],null,["# Shared aliases\n\nWhen working with the Google Ads API, there are multiple places where email addresses\nare used for contact and access management, the most important of which are the\nfollowing:\n\n- **Google Ads API contact email**: This is the email listed as the contact in the API Center of the Google Ads UI.\n- **Google Cloud Console account email**: This is the email that has administrator access to the Google Cloud Console account used for your OAuth 2.0 application.\n- **Google Ads manager account email(s)**: These are the emails that have administrator permissions on the manager Google Ads account(s) you access through the Google Ads API. When you generate a refresh token for your application, you usually authenticate your Google Ads API application with one of these emails.\n\nWe strongly recommend using shared team aliases so that you don't lose access to\nthese accounts when individual team members switch teams or leave the company.\nThe rest of this guide elaborates on each of the emails listed earlier and how\nyou can update it to use a shared team alias instead of an individual user's\nemail address.\n\nGoogle Ads API contact email\n----------------------------\n\nThe Google Ads API contact email is an email address you provide when signing up for\nthe Google Ads API. You should ensure access to this alias and monitor emails sent to\nthis address regularly. Google uses this email address to contact your team\nduring API reviews, audit requests, or production emergencies that require\nimmediate attention. Use a shared team alias as the contact email to ensure that\nthe whole team receives these notifications.\n\nFollow these steps to update the API contact email:\n\n1. Sign in to your Google Ads [Manager\n Account](//ads.google.com/home/tools/manager-accounts/).\n\n2. Click **Admin** at the bottom left of the screen.\n\n3. Under **Manager account settings** , click **API center**.\n\n4. Under **Developer details** , note the API contact email. Click the down arrow\n and edit the email. Click **Save**.\n\nGoogle Cloud Console account\n----------------------------\n\nThe **Google API Console** project contains your application's OAuth credentials\nand controls access to the Google Ads API. Ensure access to this account by making a\nshared alias the account owner.\n\nFollow these steps to update the Google API Console project's owner:\n\n- Sign in to [**Google API Console**](//console.developers.google.com).\n- Select your project from the drop-down menu on the top-left corner of the page.\n- Navigate to **IAM and admin \\\u003e IAM** from the left menu.\n- Click the **Grant Access** button.\n- Enter the shared email address under the **Add principals** section.\n- Assign the **Owner** role.\n- Click the **Save** button. Refer to the Cloud documentation to learn more about [granting and revoking access](//cloud.google.com/iam/docs/granting-changing-revoking-access#single-role).\n\nGoogle Ads manager account\n--------------------------\n\nA common method of managing accounts using the Google Ads API is to link all your\naccounts under a common manager account, and make API calls to all the accounts\nusing the top-most manager account's credentials. In this configuration:\n\n- The developer issues a refresh token using the credentials of a user who has access to the Google Ads manager account.\n- The developer sets the [`login_customer_id`](/google-ads/api/docs/get-started/select-account#user_access_login_customer_id_and_customer_id) header as the customer ID of the Google Ads manager account, and the `customer_id` header as the customer ID of the account to which API calls are made.\n\nOne potential risk of this setup is that if the authorized user loses access to\nthe Google Ads manager account, the refresh token is no longer valid and all API\ncalls fail. To avoid this scenario, you can invite a shared email alias to\nmanage this Google Ads manager account with the [appropriate access levels](//support.google.com/google-ads/answer/9978556).\nUse this shared email alias to issue the refresh token for making API calls."]]