engage-sdk-integration
यह क्या करती है
यह स्किल Google Play Engage SDK को Android ऐप में जोड़ने का मार्गदर्शन देती है। यह सही vertical और entities चुनने, प्रकाशन कोड लिखने और SDK त्रुटियाँ ठीक करने में मदद करती है। यह उन Android डेवलपरों के लिए है जो चाहते हैं कि उनका कंटेंट Google Play की सिफ़ारिश वाली जगहों पर दिखे।
कब इस्तेमाल करें
- ✓जब आप Engage SDK से अपने ऐप का कंटेंट Google Play पर प्रकाशित करना चाहते हैं।
- ✓जब आपको अपने ऐप के डेटा क्लास को अपने vertical के Engage entities से मैप करना हो।
- ✓जब Engage SDK से कोई त्रुटि आए और आपको उसे ठीक करने में मदद चाहिए।
Skill का लिंक
https://github.com/android/skills/blob/main/play/engage-sdk-integration/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे food ऐप में Play Engage SDK जोड़िए, ताकि मेरी रेसिपी Google Play पर प्रकाशित हो सकें।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल पूछती है कि आपका ऐप कौन सा vertical और cluster इस्तेमाल करता है, फिर उससे मेल खाने वाला schema पढ़ती है, जिसमें entities और client class होते हैं। फिर वह अनुरोध की ज़रूरी संरचना के साथ प्रकाशन कोड लिखती है और त्रुटियाँ डीबग करने में मदद करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
This skill guides you through integrating the Play Engage SDK into an Android app. It ensures that the code follows the mandatory structure and uses the required Engage entities for each vertical.
Workflow
Follow these steps to assist the developer:
Identify vertical and cluster:
- Ask the developer which vertical their app belongs to based on references/schemas/.
- Check if the integration is for TV or mobile. If the integration is for TV, read the TV-specific sections in patterns.md as well.
- Use
{VERTICAL}.mdin the references/schemas/ directory to identify the corresponding Engage entities and theclientclass name. Theclientfield in the JSON provides the full class name. For example,com.google.android.engage.food.service.AppEngageFoodClient. - Note: Initializing the client class requires a
Contextparameter. For example,AppEngageFoodClient(context). - Always refer to common.md for common entities.
- Ask which cluster type they want to publish from the supported cluster types for that vertical.
- Find the method to call from
{VERTICAL}.mdin the references/schemas/ directory for the specified cluster. Each method will specify the request it expects. - Get the request structure from requests.md and clusters from clusters.md. Then suggest and use sources to fill the fields in the request structure correctly, along with the required entities and clusters.
Generate structured boilerplate code:
- Create a new directory for all Engage-related code. Name the directory to match the naming convention of the existing codebase.
- Generate the following classes using templates in patterns.md:
Constants: holds constant values such as attempt counts and publish types.ItemToEntityConverter: converts the app's local models to Engage's Entity models.ClusterRequestFactory: constructs the publish requests.EngageWorker: handles the actual publishing and publish errors using WorkManager.EngagePublisher: orchestrates periodic and one-time jobs.EngageBroadcastReceiver: listens for AppEngageService intents and starts a one-time publish job fromEngagePublisher. Important : Implement both static registration and dynamic registration patterns, including the companion objectregistermethod inside theEngageBroadcastReceiverclass.
Suggest entity mapping:
- Ask the developer to provide their local model schema (for example, a data class or a JSON snippet).
- If they haven't provided one, share entities from
{VERTICAL}.mdin the references/schemas/ directory as a guide. - Once the local model is identified, suggest a mapping to the corresponding Engage entity.
- Generate the conversion logic using the
ItemToEntityConverterpattern in patterns.md and add it to the generated{ENGAGE_CODE_DIR}/ItemToEntityConverter.
Suggest data source:
- Ask the developer to provide the source of actual data you'll publish.
- Once you identify the data source, use it to fetch the data in the app's local model schema.
- Use
{ENGAGE_CODE_DIR}/ItemToEntityConverterto convert this data to an Engage entity. - Use obtained Engage entity model data with
{ENGAGE_CODE_DIR}/ ClusterRequestFactoryto get cluster requests. - Call corresponding cluster publishing method obtained from
{VERTICAL}.mdin the references/schemas/ directory with the obtained request in previous step in{ENGAGE_CODE_DIR}/EngageWorker.
Gradle and manifest updates:
- Suggest updates to
build.gradleandAndroidManifest.xml. - For mobile apps, use patterns.md.
- For TV apps, use the TV-specific sections in patterns.md.
- Provide the necessary
implementationdependencies forbuild.gradleorbuild.gradle.ktsfrom patterns.md. - Provide the
<receiver>and<service>declarations forAndroidManifest.xml. - Note: Except for TV, there aren't any vertical-specific imports. For all other verticals,
com.google.android.engage:engage-core:1.6.0is sufficient.
- Suggest updates to
Debugging and verification:
- **S
अक्सर पूछे जाने वाले सवाल
क्या यह TV ऐप को भी कवर करती है?
हाँ। अगर इंटीग्रेशन TV के लिए है, तो स्किल TV वाला मार्गदर्शन भी इस्तेमाल करती है।
क्या यह पहले मुझसे सवाल पूछेगी?
हाँ। यह पूछती है कि आपका ऐप किस vertical का है और आप कौन सा cluster प्रकाशित करना चाहते हैं।
क्या इसे मेरे Google Play खाते की ज़रूरत है?
स्किल कोड पर केंद्रित है। आपका अपना खाता और console सेटअप इसके दायरे से बाहर है।
जानकारी
लेखक का मूल विवरण
Helps developers integrate, debug, and resolve Play Engage SDK implementation issues. Use when adding Engage SDK support, generating publishing code, mapping data classes to entities, or fixing SDK-related errors.
repo: android/skills
लोकप्रियता
- GitHub स्टार
- 10k
- रैंकिंग में स्थान
- #11928
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 29/10/2026
कमेंट
- …
इस repository की और skills
agp-9-upgrade
10kआपके एजेंट को Android ऐप को Android Gradle Plugin 9 पर ले जाने और उसके breaking changes सुधारने में मदद करती है। मल्टीप्लेटफ़ॉर्म प्रोजेक्ट के लिए नहीं।
camerax
10kआपके एजेंट को CameraX से Android कैमरा फ़ीचर बनाने में मदद करती है, जिसमें वीडियो रिकॉर्डिंग, हार्डवेयर कंट्रोल, ML Kit और Media3 इफ़ेक्ट शामिल हैं।
android-for-cars-parked-apps
10kआपके एजेंट को Android वीडियो, गेम या ब्राउज़र ऐप को Android Auto और Android Automotive पर parked ऐप के रूप में चलाने के लिए ढालने में मदद करती है।
appfunctions
10kआपके एजेंट को Android ऐप के मुख्य काम ढूँढकर उन्हें AppFunctions के रूप में देने में मदद करती है, ताकि AI एजेंट और वॉइस कमांड उन्हें चला सकें।
मिलती-जुलती skills
android-clean-architecture
280kयह आपके एजेंट को Android projects को व्यवस्थित तरीके से संभालने देता है। यह code को ऐसा ढांचा देता है कि उसकी देखभाल और नए features जोड़ना आसान हो।
compose-multiplatform-patterns
280kKMP projects में Compose Multiplatform और Jetpack Compose patterns इस्तेमाल करने में आपके एजेंट की मदद करता है। इसमें state, navigation, theming और performance शामिल हैं।
dart-flutter-patterns
280kयह आपके एजेंट को Dart और Flutter apps के लिए code लिखने देता है। यह आधुनिक patterns इस्तेमाल करके मज़बूत और आसानी से संभलने वाले apps बनाता है।