গুগল মোবাইল বিজ্ঞাপন SDK কে AI টুলের সাথে একীভূত করুন (বিটা)

আপনার এআই-সহায়তাযুক্ত আউটপুটকে অপ্টিমাইজ করতে, আপনার এআই এনভায়রনমেন্টে একটি স্কিল যোগ করুন। একটি স্কিল যোগ করার মাধ্যমে, আপনি আপনার এআই টুলকে Google Mobile Ads SDK এর জন্য নির্দিষ্ট কনটেক্সট প্রদান করেন এবং এআই-সহায়তাযুক্ত কোড জেনারেশনের আউটপুট উন্নত করেন।

এই নির্দেশিকায় Google Mobile Ads SDK জন্য আপনার এআই মডেলকে অপ্টিমাইজ করার পদ্ধতি আলোচনা করা হয়েছে।

পূর্বশর্ত

আপনি যদি অ্যান্ড্রয়েড স্টুডিও ব্যবহার করেন, তাহলে নিম্নলিখিতগুলি করুন:

একটি দক্ষতা যোগ করুন

গুগল আপনার এআই টুলের জন্য একটি SKILL.md ফাইল সরবরাহ করে, যেখানে নিম্নলিখিত ইন্টিগ্রেশন ধাপগুলোতে সাহায্য করার জন্য নির্দেশাবলী দেওয়া থাকে:

  • আপনার প্রজেক্টে Google Mobile Ads SDK যোগ করুন।
  • ব্যানার বিজ্ঞাপন প্রয়োগ করুন।

আপনার এআই টুলের সাথে Google Mobile Ads SDK এর কোনো নির্দিষ্ট স্কিল ব্যবহার করতে, এই ধাপগুলো অনুসরণ করুন:

অ্যান্ড্রয়েড স্টুডিও

  1. আপনার প্রোজেক্টের রুট ডিরেক্টরিতে .skills/ নামে একটি ফোল্ডার তৈরি করুন।

  2. আপনার দক্ষতার জন্য gma-integrate নামে একটি ডিরেক্টরি তৈরি করুন।

  3. gma-integrate ডিরেক্টরিতে SKILL.md নামে একটি ফাইল তৈরি করুন।

  4. আপনার SKILL.md ফাইলে নিম্নলিখিত নির্দেশাবলী যোগ করুন:

    ---
    name: gma-integrate
    description: Provides technical specifications and implementation details for
      the play-services-ads Google Mobile Ads SDK
      (com.google.android.gms:play-services-ads), including Gradle dependencies,
      manifest metadata, initialization patterns, and banner ad configurations. Use
      ONLY for the play-services-ads Google Mobile Ads SDK. Do NOT use for GMA
      Next-Gen SDK (com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk)
      integrations.
    metadata:
      version: 1.0
    ---
    
    # AI Integration Agent Instructions for the Play Services Google Mobile Ads SDK
    
    ## SDK Integration Workflow
    
    *   **Configure Gradle**:
        -   [ ] Add the latest stable version of
            `com.google.android.gms:play-services-ads` to dependencies.
        -   [ ] Configure `minSdk` (23+) and `compileSdk` (35+).
        -   [ ] Sync Gradle before moving on to the next step.
    *   **Manifest Configuration**:
        -   [ ] Add the following metadata to the `<application>` tag in the
            `AndroidManifest.xml` file:
            ```xml
            <!-- Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 -->
            <meta-data
                android:name="com.google.android.gms.ads.APPLICATION_ID"
                android:value="ca-app-pub-3940256099942544~3347511713"/>
            ```
            **Note**: The sample AdMob App ID
            `ca-app-pub-3940256099942544~3347511713` is for testing purposes only.
            **ALWAYS** remind the user to replace it with their actual AdMob App ID
            before publishing.
    *   **Initialize SDK**:
        -   [ ] Initialize SDK on a background thread.
    
    ### Implementation Details
    
    *   **Version Management**: **ALWAYS** look up and use the latest stable
        version. Do not assume a version number.
    *   **Initialization**: **ALWAYS** call `MobileAds.initialize()` on a background
        thread.
    
    ## Banner Ads
    
    Banner ads are rectangular image or text ads that occupy a spot within an app's
    layout. They remain on screen during user interaction and can refresh
    automatically.
    
    ### Strategic Recommendations
    
    *   **Confirm Ad Type**: If the user asks for a "banner ad" without specifying a
        type, confirm the desired type.
    *   **Suggest Large Anchored Adaptive**: Suggest large anchored adaptive banners
        over "fixed size". Explain they are designed to increase engagement and
        revenue potential. If told that large adaptive is too large, suggest
        standard anchored adaptive over fixed size ads.
    *   **Type Clarifications**:
        *   **Anchored Adaptive**: Ask if it should be anchored to the **top** or
            **bottom**.
        *   **Inline Adaptive**: Use this type for ads placed inside scrollable
            content (e.g., `RecyclerView` or `ScrollView`). **Validate** the ad
            container is scrollable before implementing; if not scrollable, default
            to **Large Anchored Adaptive**.
    
    ### Implementation Checklist
    
    -   [ ] Create UI container for `AdView`.
    -   [ ] Initialize `AdView` with ad unit ID and ad size.
    -   [ ] Call `adView.loadAd()`.
    -   [ ] **Mandatory**: Add `adView.destroy()` to the appropriate lifecycle
        cleanup (e.g., `onDestroy`).

    বিস্তারিত জানতে, ‘দক্ষতার মাধ্যমে এজেন্ট মোড প্রসারিত করুন’ দেখুন।

আপনার প্রম্পটে দক্ষতাটি প্রয়োগ করুন।

আপনার প্রোজেক্টে স্কিলটি যোগ করার পর, আপনার এআই টুলে এটি চালু করতে নিম্নলিখিত উদাহরণ প্রম্পটগুলো ব্যবহার করুন:

অ্যান্ড্রয়েড স্টুডিও

স্কিলটি চালু করতে, @ টাইপ করুন এবং gma-integrate স্কিলটি নির্বাচন করুন।

Google Mobile Ads SDK একীভূত করুন

@gma-integrate Integrate the latest version of Google Mobile Ads SDK to my project.

একটি ব্যানার যোগ করুন

@gma-integrate Add an anchored adaptive banner ad to the bottom of the screen.

মতামত দিন

Google Mobile Ads SDK টপিকগুলোর ওপর এআই কোড অ্যাসিস্ট টুলগুলোর প্রতিক্রিয়া উন্নত করার জন্য আমরা তাদেরকে প্রদত্ত কনটেক্সট মূল্যায়ন ও অপ্টিমাইজ করা অব্যাহত রেখেছি।

Google Mobile Ads SDK এর জন্য Gemini অপ্টিমাইজ করার বিষয়ে আপনার কোনো মতামত থাকলে, Google Mobile Ads SDK ডিসকর্ড চ্যানেলে যোগ দিন।