নেটিভ শৈলী
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্ল্যাটফর্ম নির্বাচন করুন: অ্যান্ড্রয়েড আইওএস ফ্লাটার নেটিভ স্টাইল সেটিংস Google বিজ্ঞাপন ম্যানেজারকে আপনার পণ্যের মধ্যে নির্দিষ্ট করা নেটিভ শৈলীর উপর ভিত্তি করে আপনার নেটিভ বিজ্ঞাপনগুলির রেন্ডারিং পরিচালনা করতে সক্ষম করে। প্রথমে, আকার এবং লক্ষ্য নির্ধারণ করুন। তারপর HTML, CSS, এবং JavaScript যোগ করুন বিজ্ঞাপনগুলিকে সংজ্ঞায়িত করতে যেগুলি প্রতিক্রিয়াশীল এবং সমস্ত স্ক্রীন জুড়ে একটি গুণমান প্রদর্শন তৈরি করে৷ আপনাকে রেন্ডারিং কোনটি করতে হবে না; অ্যাড ম্যানেজার স্বয়ংক্রিয়ভাবে গন্তব্যের জন্য সঠিক নেটিভ স্টাইল প্রয়োগ করে। একটি AdManagerAdView
ব্যবহার করে ব্যানার বিজ্ঞাপনের মতোই নেটিভ শৈলী প্রয়োগ করা হয়। এগুলি সময়ের আগে নির্ধারিত একটি নির্দিষ্ট বিজ্ঞাপনের আকার বা রানটাইমে নির্ধারিত একটি তরল বিজ্ঞাপনের আকারের সাথে ব্যবহার করা যেতে পারে।
পূর্বশর্ত
- Google মোবাইল বিজ্ঞাপন ফ্লাটার প্লাগইন সংস্করণ 0.13.6 বা উচ্চতর
এই নির্দেশিকাটি Google মোবাইল বিজ্ঞাপন SDK-এর কিছু কাজের জ্ঞান অনুমান করে। আপনি যদি ইতিমধ্যে এটি না করে থাকেন তবে আমাদের শুরু করুন গাইডের মাধ্যমে চালানোর কথা বিবেচনা করুন।
স্থির আকার
একটি নির্দিষ্ট আকার সহ স্থানীয় শৈলী আপনাকে নেটিভ বিজ্ঞাপনের প্রস্থ এবং উচ্চতা নিয়ন্ত্রণ করতে দেয়। একটি নির্দিষ্ট আকার সেট করতে, এই পদক্ষেপগুলি অনুসরণ করুন:
অ্যাড ম্যানেজার UI-তে একটি লাইন আইটেম তৈরি করুন এবং Size
ফিল্ড ড্রপডাউন থেকে পূর্বনির্ধারিত মাপগুলির মধ্যে একটি নির্বাচন করুন।
আপনি ধাপ 1-এ সেট আপ করেছেন একই আকারের একটি AdManagerBannerAd
লোড করুন৷ কীভাবে একটি বিজ্ঞাপনকে তাৎক্ষণিক এবং লোড করতে হয় তার জন্য ব্যানার বিজ্ঞাপনের ডকুমেন্টেশন দেখুন৷ আপনি ব্যানার আকার বিভাগে আকারের একটি তালিকা এবং তাদের সংশ্লিষ্ট AdSize
ধ্রুবক দেখতে পারেন।
MEDIUM_RECTANGLE
(300x250) বিজ্ঞাপনের আকারের মতো একটি নির্দিষ্ট আকার কীভাবে নির্দিষ্ট করতে হয় তার একটি উদাহরণ এখানে দেওয়া হল:
AdManagerBannerAd ad = AdManagerBannerAd(
adUnitId: '<your-ad-unit>',
sizes: <AdSize>[AdSize.mediumRectangle],
request: AdManagerAdRequest(),
);
তরল আকার
কিছু ক্ষেত্রে, একটি নির্দিষ্ট আকারের অর্থ নাও হতে পারে। উদাহরণস্বরূপ, আপনি বিজ্ঞাপনের প্রস্থ আপনার অ্যাপের বিষয়বস্তুর সাথে মেলে, কিন্তু বিজ্ঞাপনের বিষয়বস্তুর সাথে মানানসই করার জন্য গতিশীলভাবে সামঞ্জস্য করতে এর উচ্চতা প্রয়োজন। এই কেসটি পরিচালনা করার জন্য, আপনি Ad Manager UI-তে বিজ্ঞাপনের আকার হিসাবে Fluid
নির্দিষ্ট করতে পারেন, যা নির্দেশ করে যে অ্যাপের রানটাইমে বিজ্ঞাপনের আকার নির্ধারণ করা হয়। এই কেসটি পরিচালনা করার জন্য SDK একটি বিশেষ AdSize
ধ্রুবক, FLUID
প্রদান করে। তরল বিজ্ঞাপনের আকারের উচ্চতা গতিশীলভাবে প্রকাশকের সংজ্ঞায়িত প্রস্থের উপর ভিত্তি করে নির্ধারণ করা হয়, যার ফলে প্ল্যাটফর্ম বিজ্ঞাপনের উচ্চতা সৃজনশীলের সাথে মেলে।
তরল অনুরোধ
একটি তরল বিজ্ঞাপনের অনুরোধ করতে FluidAdManagerBannerAd
ব্যবহার করুন:
final fluidAd = FluidAdManagerBannerAd(
adUnitId: '<your-ad-unit>',
request: AdManagerAdRequest(),
listener: AdManagerBannerAdListener(
onAdLoaded: (Ad ad) {
print('$_fluidAd loaded.');
},
onAdFailedToLoad: (Ad ad, LoadAdError error) {
print('$_fluidAd failedToLoad: $error');
ad.dispose();
},
),
তরল বিজ্ঞাপন প্রদর্শন করা হচ্ছে
আপনার বিজ্ঞাপন লোড হওয়ার পরে, তরল বিজ্ঞাপন প্রদর্শন করতে FluidAdWidget
ব্যবহার করুন। এটি অন্তর্নিহিত প্ল্যাটফর্ম বিজ্ঞাপন দৃশ্যের সাথে মেলে তার উচ্চতা সামঞ্জস্য করবে:
FluidAdWidget(
width: <your-width>,
ad: fluidAd,
);
Github- এর উদাহরণ অ্যাপে অ্যাড ম্যানেজার ফ্লুইড বিজ্ঞাপনের আকারের একটি উদাহরণ বাস্তবায়ন দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-09-06 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","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-09-06 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eNative style settings in Google Ad Manager allow you to customize the look and feel of your native ads using HTML, CSS, and JavaScript for a seamless user experience.\u003c/p\u003e\n"],["\u003cp\u003eYou can define fixed-size native ads by specifying their dimensions in the Ad Manager UI and using corresponding \u003ccode\u003eAdSize\u003c/code\u003e constants when loading the ad in your app.\u003c/p\u003e\n"],["\u003cp\u003eAlternatively, fluid-size native ads dynamically adjust their height based on the width you provide, ensuring responsiveness across different screens using the \u003ccode\u003eFluidAdManagerBannerAd\u003c/code\u003e and \u003ccode\u003eFluidAdWidget\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo implement native ads, you need Google Mobile Ads Flutter Plugin version 0.13.6 or higher and basic familiarity with the Google Mobile Ads SDK.\u003c/p\u003e\n"]]],["Google Ad Manager renders native ads based on specified styles. Users define ad size and targeting, then add HTML, CSS, and JavaScript for responsive design. Fixed ad sizes are set in the Ad Manager UI and loaded using `AdManagerBannerAd` with corresponding `AdSize` constants. Fluid ads use `Fluid` in the UI and the `FLUID` constant, with `FluidAdManagerBannerAd` for requests and `FluidAdWidget` for display, dynamically adjusting the height.\n"],null,["Select platform: [Android](/ad-manager/mobile-ads-sdk/android/native/styles \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/native/styles \"View this page for the iOS platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/native/styles \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\n[Native style settings](//support.google.com/admanager/answer/6366914)\nenable Google Ad Manager to handle the rendering of your native ads based on native\nstyles you specify within the product. First, specify size and targeting.\nThen add HTML, CSS, and JavaScript to define ads that are responsive\nand produce a quality display across all screens. You don't need to do\nany of the rendering; Ad Manager automatically applies the right native style\nfor the destination. Native styles are implemented just like banner ads,\nusing a `AdManagerAdView`. They can be used with a fixed ad\nsize determined ahead of time, or a fluid ad size determined at runtime.\n\nPrerequisites\n\n- Google Mobile Ads Flutter Plugin version 0.13.6 or higher\n\nThis guide assumes some working knowledge of the Google Mobile Ads SDK.\nIf you haven't already done so, consider running through our\n[Get Started](/ad-manager/mobile-ads-sdk/flutter/quick-start) guide.\n\nFixed size\n\nNative styles with a fixed size allow you to control the width and height\nof the native ad. To set a fixed size, follow these steps:\n\n1. Create a line item in the Ad Manager UI and select one of the\n predefined sizes from the `Size` field dropdown.\n\n2. Load an `AdManagerBannerAd` with the same size you set up in step 1.\n See the [Banner Ad](/ad-manager/mobile-ads-sdk/flutter/banner/get-started#instantiate_ad)\n documentation for how to instantiate and load an ad.\n You can see a list of sizes and their corresponding `AdSize` constants\n in the [Banner size](/ad-manager/mobile-ads-sdk/flutter/banner/get-started#banner_sizes)\n section.\n\nHere's an example of how to specify a fixed size, such as the\n`MEDIUM_RECTANGLE` (300x250) ad size: \n\n AdManagerBannerAd ad = AdManagerBannerAd(\n adUnitId: '\u003cyour-ad-unit\u003e',\n sizes: \u003cAdSize\u003e[AdSize.mediumRectangle],\n request: AdManagerAdRequest(),\n );\n\nFluid size\n\nIn some cases, a fixed size may not make sense. For example, you may\nwant the width of the ad to match your app's content, but need its height\nto dynamically adjust to fit the ad's content. To handle this case,\nyou can specify `Fluid` as the ad size in the Ad Manager UI, which\ndesignates that the size of the ad is determined at runtime in the app.\nThe SDK provides a special `AdSize` constant, `FLUID`, to handle this case.\nThe fluid ad size height is dynamically determined based on the publisher\ndefined width, allowing the platform ad view to adjust its height to match that\nof the creative.\n\nFluid request\n\nUse `FluidAdManagerBannerAd` to request a fluid ad: \n\n final fluidAd = FluidAdManagerBannerAd(\n adUnitId: '\u003cyour-ad-unit\u003e',\n request: AdManagerAdRequest(),\n listener: AdManagerBannerAdListener(\n onAdLoaded: (Ad ad) {\n print('$_fluidAd loaded.');\n },\n onAdFailedToLoad: (Ad ad, LoadAdError error) {\n print('$_fluidAd failedToLoad: $error');\n ad.dispose();\n },\n ),\n\nDisplaying the fluid ad\n\nAfter your ad is loaded, use `FluidAdWidget` to display fluid ads. It will\nadjust its height to match the underlying platform ad view: \n\n FluidAdWidget(\n width: \u003cyour-width\u003e,\n ad: fluidAd,\n );\n\nSee an example implementation of Ad Manager Fluid ad size in the example app\non [Github](https://github.com/googleads/googleads-mobile-flutter/blob/master/packages/google_mobile_ads/example/lib/fluid_example.dart)."]]