با Play Games Services Publishing API شروع کنید، با Play Games Services Publishing API شروع کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
برای شروع تماس با Publishing API، باید مستقیماً از Google Play Console به یک پروژه API پیوند دهید و Publishing API را برای آن پروژه فعال کنید. پس از راهاندازی پروژه API، میتوان از آن برای مدیریت سایر پروژههای بازی که مالک آن هستید استفاده کرد.
Publishing API را فقط مالک حساب برنامهنویس Google Play شما میتواند پیکربندی کند. دستورالعمل های زیر توضیح می دهد که چگونه:
یک پروژه API جدید یا موجود راه اندازی کنید
مشتریان OAuth را مدیریت کنید
از یک حساب سرویس برای دسترسی به Publishing API استفاده کنید
پروژه API خود را تنظیم کنید
قبل از اینکه بتوانید به Publishing API دسترسی پیدا کنید، باید Google Play Console را به یک پروژه API مرتبط کنید. در بیشتر موارد، شما تشویق میشوید که یک پروژه API جدید ایجاد کنید، اگرچه کاربران فعلی Google Play Developer Publishing API میتوانند به یک پروژه API موجود پیوند دهند. به خاطر داشته باشید که هر پروژه API فقط می تواند به یک حساب کنسول Google Play مرتبط شود.
روی ایجاد پروژه جدید کلیک کنید. یک پروژه API به طور خودکار ایجاد و به کنسول Google Play شما پیوند داده می شود.
گزینه Game Services Publishing API را روی ON قرار دهید.
پروژه API شما اکنون برای دسترسی به Publishing API پیکربندی شده است.
از یک پروژه API موجود استفاده کنید
اگر قبلاً کاربر Google Play Developer API هستید، میتوانید پروژه API موجود خود را با دنبال کردن این مراحل تنظیم کنید. اگر پروژه API که میخواهید راهاندازی کنید در لیست نیست، بررسی کنید که حساب کنسول Google Play شما بهعنوان مالک تعیین شده باشد و API برنامهنویس Google Play فعال باشد.
در بخش حسابهای خدمات ، روی ایجاد حساب سرویس کلیک کنید.
دستورالعمل های موجود در صفحه را برای ایجاد حساب خدمات خود دنبال کنید.
پس از ایجاد حساب سرویس در Google Developers Console، روی Done کلیک کنید. صفحه دسترسی به API به طور خودکار بازخوانی می شود و حساب سرویس شما لیست می شود.
روی Grant Access کلیک کنید تا به حساب سرویس حقوق لازم برای انجام اقدامات ارائه شود.
دسترسی به Google Play Games Services Publishing API
می توانید مستقیماً از طریق HTTP به Publishing API دسترسی داشته باشید. برای اطلاعات بیشتر، مرجع انتشار API و برنامه نمونه را ببینید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Get started with the Play Games Services Publishing API\n\nTo start making calls to the Publishing API, you must link to an API\nproject directly from the\n[Google Play Console](//play.google.com/apps/publish/)\nand enable the Publishing API for that project. Once your API project is\nset up, it can be used to manage other game projects you own.\n\nThe Publishing API can only be configured by the owner of your\n[Google Play Developer account](/distribute/googleplay/developer-console#account-details).\nThe following instructions explain how to:\n\n- Set up a new or existing API project\n- Manage OAuth clients\n- Use a service account to access the Publishing API\n\nSet up your API Project\n-----------------------\n\nBefore you can access the Publishing API, you must link Google Play Console\nto an API project. In most cases, you are encouraged to create a new API\nproject, though current\n[Google Play Developer Publishing API](https://developer.android.com/distribute/googleplay/developer-console.html#account-details)\nusers can link to an existing API project. Keep in mind that each API project\ncan only be linked to a single Google Play Console account.\n\n### Create a new API project\n\n1. Go to the [API Access](https://play.google.com/apps/publish/#ApiAccessPlace) page on the Google Play Console.\n2. Accept the Terms of Service.\n3. Click **Create new project**. An API project is automatically generated and linked to your Google Play Console.\n4. Turn the Game Services Publishing API option to **ON**.\n\nYour API project is now configured to access the Publishing API.\n\n### Use an existing API project\n\nIf you are already a user of the\n[Google Play Developer API](https://developers.google.com/android-publisher),\nyou can set up your existing API project by following these steps. If the API\nproject you want to set up is not listed, verify that your Google Play Console\naccount is designated as an Owner, and the\n[Google Play Developer API](https://developers.google.com/android-publisher/#publishing)\nis enabled.\n\n1. Go to the [API Access](https://play.google.com/apps/publish/#ApiAccessPlace) page on the Google Play Console.\n2. Accept the API Terms of Service.\n3. Choose the project you'd like to set up.\n4. Click **Link**. Your Google Play Console is now linked to the API project.\n5. Turn the Game Services Publishing API option to **ON**.\n\nYour API project is now configured to access the Publishing API.\n\nSet Up API Access Clients\n-------------------------\n\nYou access the Publishing API through an OAuth client or a service account.\n\n### Use OAuth clients\n\nYou can allow users to perform actions via the Publishing API under their\nown credentials using an\n[OAuth](https://developers.google.com/accounts/docs/OAuth2) client.\n| **Note:** Your Oauth client must share the same project as your [service account](#using_a_service_account).\n\nA user's actions are limited to those permitted via the\n[User Accounts \\& Rights](https://play.google.com/apps/publish/#AdminPlace)\npage on the Google Play Console.\n\n1. Go to the [API Access](https://play.google.com/apps/publish/#ApiAccessPlace) page on the Google Play Console.\n2. Under **OAuth Clients** , click **Create OAuth Client**.\n3. Configure your product's branding information, and click **Continue**.\n4. Click **Create Client ID**.\n\nThe details of your new OAuth client are displayed in a list on this page.\n\n### Use a service account\n\nYou can also create a\n[service account](https://developers.google.com/accounts/docs/OAuth2ServiceAccount)\nto access the Publishing API from a build server without providing your personal\nuser credentials:\n\n1. Go to the [API Access](https://play.google.com/apps/publish/#ApiAccessPlace) page on the Google Play Console.\n2. Under **Service Accounts** , click **Create Service Account**.\n3. Follow the instructions on the page to create your service account.\n4. Once you've created the service account on the Google Developers Console, click **Done** . The [API Access](https://play.google.com/apps/publish/#ApiAccessPlace) page automatically refreshes, and your service account will be listed.\n5. Click **Grant Access** to provide the service account the necessary rights to perform actions.\n\nFor more information, see\n[Using OAuth 2.0 for Server to Server Applications](https://developers.google.com/accounts/docs/OAuth2ServiceAccount).\n\nAccessing the Google Play Games Services Publishing API\n-------------------------------------------------------\n\nYou can access the Publishing API directly via HTTP. For more information, see\n[Publishing API reference](https://developers.google.com/games/services/publishing/api)\nand the\n[sample app](//github.com/playgameservices/management-tools)."]]