Để thảo luận và đưa ra ý kiến phản hồi về các sản phẩm của chúng tôi, hãy tham gia kênh Discord chính thức của AdMob trong máy chủ Cộng đồng quảng cáo và đo lường của Google.
Bạn có thể sử dụng định dạng quảng cáo gốc để tạo quảng cáo với kích thước bất kỳ, bao gồm cả quảng cáo toàn màn hình giống như những quảng cáo phổ biến trong các ứng dụng xã hội và giải trí. Quảng cáo gốc toàn màn hình có thể cải thiện doanh thu và tỷ lệ giữ chân người dùng thông qua việc so khớp kiểu trải nghiệm nội dung toàn màn hình hiện có (chẳng hạn như trong ứng dụng xã hội), hoặc thông qua việc cung cấp phương tiện để đặt quảng cáo trong nguồn cấp dữ liệu "câu chuyện". Dưới đây là một số ví dụ về quảng cáo gốc toàn màn hình:
Bạn không thể gọi API riêng biệt nào để cho phép quảng cáo gốc toàn màn hình phân phát
mà không có hướng dẫn cho Quảng cáo gốc
nâng cao. Tuy nhiên,
bạn vẫn nên áp dụng các phương pháp hay nhất khi tạo trải nghiệm quảng cáo toàn màn hình:
Cho phép người dùng nhấp vào các thành phần trong khi phát video gốc
Theo mặc định, SDK quảng cáo trên thiết bị di động của Google sẽ đặt userInteractionEnabled thành NO trên tất cả các thành phần quảng cáo khác ngoài mediaView trong khi chế độ xem nội dung nghe nhìn đang phát video. Do đó, khi video đang phát, lượt nhấp sẽ xảy ra trên khung hiển thị nằm phía sau khung hiển thị thành phần. Trong một chế độ triển khai gốc toàn màn hình, trong đó các khung hiển thị thành phần được đặt lên trên khung hiển thị nội dung nghe nhìn, khung hiển thị nội dung nghe nhìn sẽ nhận được lượt nhấp. Khung hiển thị nội dung nghe nhìn xử lý hoạt động tương tác của người dùng đối với các nút điều khiển phát video trong quá trình phát video và chỉ nhấp vào URL đích của quảng cáo sau khi video phát xong.
Để các thành phần quảng cáo khác của bạn (chẳng hạn như callToActionView) nhấp vào để chuyển người dùng đến đích đến của quảng cáo trong khi video đang phát, hãy bao bọc từng khung hiển thị thành phần trong một UIView mẹ là khung hiển thị con của khung hiển thị quảng cáo gốc. Cấu trúc khung hiển thị quảng cáo gốc của bạn sẽ có dạng như sau:
-- Native Ad View
-- Media View
-- Container View 1
-- Call To Action View
-- Container View 2
-- Headline View
-- Container View 3
-- Body View
Tuỳ chỉnh vị trí đặt biểu tượng Lựa chọn quảng cáo
Theo mặc định, biểu tượng Lựa chọn quảng cáo được đặt ở góc trên cùng bên phải của quảng cáo, nhưng bạn có thể chỉ định để biểu tượng Lựa chọn quảng cáo xuất hiện ở bất kỳ góc nào bằng cách đặt GADAdChoicesPosition dựa trên vị trí của quảng cáo. Trong 3 hình ảnh ở phần trước, biểu tượng Lựa chọn quảng cáo được đặt ở một góc nằm xa nút Cài đặt, nút trình đơn và các thành phần quảng cáo khác để tránh tạo ra lượt nhấp không chủ ý.
Sử dụng mã đơn vị quảng cáo riêng biệt cho từng vị trí đặt quảng cáo
Nhớ tạo mã đơn vị quảng cáo riêng biệt cho từng vị trí đặt quảng cáo trong ứng dụng của bạn, ngay cả khi tất cả các vị trí đặt quảng cáo đều có cùng định dạng. Ví dụ: Nếu bạn đã tạo vị trí đặt quảng cáo gốc trong ứng dụng của mình để cung cấp trải nghiệm không phải trên toàn màn hình, hãy sử dụng mã đơn vị quảng cáo mới cho trải nghiệm toàn màn hình. Sử dụng các đơn vị quảng cáo riêng biệt:
tối đa hoá hiệu suất
giúp Google trả về những thành phần quảng cáo phù hợp hơn với bố cục của bạn
giúp báo cáo cung cấp thông tin đầy đủ hơn.
Đặt chế độ xem nội dung nghe nhìn ở kích thước nhất quán
Google luôn tìm cách phân phát những thành phần gốc có kích thước phù hợp nhất để giúp bạn đạt được hiệu suất tối ưu. Để hỗ trợ việc này, quảng cáo gốc của bạn phải có kích thước nhất quán và dễ dự đoán. Thành phần chế độ xem nội dung nghe nhìn của bạn nên có cùng kích thước cho
mọi yêu cầu quảng cáo trên cùng một thiết bị. Để làm được điều này, hãy đặt kích thước cố định cho chế độ xem nội dung nghe nhìn hoặc đặt chế độ xem này thành MATCH_PARENT và đặt kích thước cố định cho chế độ xem gốc. Lặp lại bước này cho mọi chế độ xem gốc của chế độ xem nội dung nghe nhìn
có kích thước không cố định.
Bật quảng cáo dạng video
Bật loại nội dung nghe nhìn Video khi định cấu hình quảng cáo gốc trong giao diện người dùng AdMob. Việc cho phép quảng cáo dạng video cạnh tranh để giành được khoảng không quảng cáo của bạn có thể giúp nâng cao hiệu suất đáng kể.
[Không bắt buộc] Yêu cầu đặt tỷ lệ khung hình cụ thể cho thành phần nội dung nghe nhìn
Theo mặc định, hệ thống có thể trả về quảng cáo có tỷ lệ khung hình bất kỳ. Ví dụ: Bạn có thể nhận được một thành phần mẫu quảng cáo chính ở định dạng ngang hoặc vuông khi ứng dụng của bạn được đặt ở chế độ dọc. Tuỳ thuộc vào bố cục của quảng cáo gốc, bạn có thể chỉ cần phân phát quảng cáo ở định dạng dọc, ngang hoặc vuông. Bạn có thể yêu cầu phân phát thành phần có tỷ lệ khung hình cụ thể để phù hợp nhất với bố cục của mình.
Ngang
Hình vuông
Dọc
Swift
letaspectRatioOption=NativeAdMediaAdLoaderOptions()aspectRatioOption.mediaAspectRatio=.portraitadLoader=AdLoader(adUnitID:"<var>your ad unit ID</var>",rootViewController:self,adTypes:adTypes,options:[aspectRatioOption])
Objective-C
GADNativeAdMediaAdLoaderOptions*aspectRatioOption=[[GADNativeAdMediaAdLoaderOptionsalloc]init];aspectRatioOption.mediaAspectRatio=GADMediaAspectRatioPortrait;self.adLoader=[[GADAdLoaderalloc]initWithAdUnitID:@"<var>your ad unit ID</var>"rootViewController:selfadTypes:@[GADAdLoaderAdTypeNative]options:@[aspectRatioOption]];
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eFull-screen native ads, ideal for social and entertainment apps, can enhance revenue and user retention by mirroring existing full-screen content or integrating into "stories" formats.\u003c/p\u003e\n"],["\u003cp\u003eTo optimize full-screen native ads, ensure ad assets remain clickable during video playback by wrapping them in container UIViews within the native ad view.\u003c/p\u003e\n"],["\u003cp\u003eCustomize the AdChoices icon's position to minimize accidental clicks and enhance user experience.\u003c/p\u003e\n"],["\u003cp\u003eUtilize unique ad unit IDs for each ad placement, including full-screen and non-full-screen, to improve performance, ad relevance, and reporting accuracy.\u003c/p\u003e\n"],["\u003cp\u003eMaintain consistent media view sizing by setting it to a fixed size or using \u003ccode\u003eMATCH_PARENT\u003c/code\u003e with a fixed-size parent view to aid optimal ad serving.\u003c/p\u003e\n"]]],["Full-screen native ads can enhance revenue and user retention. To optimize these ads, make all assets clickable during video playback by wrapping them in parent `UIViews`. Customize the AdChoices icon's placement to avoid accidental clicks. Use unique ad unit IDs for each placement to maximize performance and reporting. Ensure the media view has a consistent size, enable video ads, and optionally request specific aspect ratios. Note that setting aspect ratios might reduce ad availability and revenue.\n"],null,["# Full-screen native ads\n\nSelect platform: [Android](/admob/android/native/full-screen \"View this page for the Android platform docs.\") [iOS](/admob/ios/native/full-screen \"View this page for the iOS platform docs.\")\n\n\u003cbr /\u003e\n\nThe [native ad format](/admob/ios/native) can be used\nto create any size of ad, including full-screen ads like those that are highly\npopular in social and entertainment apps. Full-screen native ads can improve\nrevenue and retention, either through matching the style of existing\nfull-screen content experiences such as in social apps, or through providing a\nmeans to place ads in \"stories\" feeds. Here are some examples of\nfull-screen native ads:\n\n\nThere is no separate API to call to enable full-screen native ads to serve\nbeyond the instructions for [Native\nAdvanced](/admob/ios/native/advanced). However,\nthere are best practices we recommend when creating full-screen ad experiences:\n\nMake assets clickable during native video playback\n\n: By default the Google Mobile Ads SDK sets [userInteractionEnabled](//developer.apple.com/documentation/uikit/uiview/1622577-userinteractionenabled)\n to `NO` on all ad assets other than [mediaView](/admob/ios/api/reference/Classes/GADNativeAdView#mediaview)\n while the media view is playing video. As a result, when a video is playing,\n clicks occur on the view sitting behind the asset view. In a full screen\n native implementation, where asset views are placed on top of the media view,\n the media view gets the click. The media view handles user interaction for\n video playback controls during video playback, and only clicks through to the\n ad's destination URL once video completes playback.\n\n To make your other ad assets such as [callToActionView](/admob/ios/api/reference/Classes/GADNativeAdView#calltoactionview)\n click through to the user to the ad's destination while the video is playing,\n wrap each asset view in a parent UIView that is a subview of the native ad\n view. Your native ad view structure should look like this: \n\n -- Native Ad View\n -- Media View\n -- Container View 1\n -- Call To Action View\n -- Container View 2\n -- Headline View\n -- Container View 3\n -- Body View\n\nCustomize the AdChoices icon placement\n: By default, the AdChoices icon is placed at the top-right corner of the ad,\n but you can specify any corner where the AdChoices icon should appear by\n setting the `GADAdChoicesPosition` based on placement of the ad. In the\n three images in the previous section, the AdChoices icon is placed in a\n corner far away from the **Install** button, the menu button and other ad\n assets to avoid accidental clicks.\n\nUse unique ad unit IDs for each placement\n\n: Be sure to [create a unique ad unit\n ID](//support.google.com/admob/answer/7187428) for each different ad placement\n in your app, even if all ad placements are the same format. For example, if\n you have an existing native ad placement in your app for a non-full screen\n experience, use a new ad unit ID for the full screen experience. Using unique\n ad units:\n\n - maximizes performance\n - helps Google return ad assets that better fit your layouts\n - enables more comprehensive reporting.\n\nSet your media view to a consistent size\n\n: Google always tries to serve the best-sized native assets for optimal\n performance. To facilitate this, the sizing for your native ads should be\n predictable and consistent. Your media view asset should be the same size for\n every ad request on the same device. To accomplish this, set your media view\n to a fixed size, or set the media view to `MATCH_PARENT` and make the parent\n view a fixed size. Repeat this step for every parent view of the media view\n that is not a fixed size.\n\nEnable video ads\n\n: Enable the `Video` media type when\n\n [configuring native ads](//support.google.com/admob/answer/7187428)\n\n in the AdMob UI. Allowing video ads to compete for your\n inventory can significantly improve performance.\n\n\\[Optional\\] Request specific aspect ratios for the media asset\n\n: By default, ads of any aspect ratio may be returned. For example, you may get\n a landscape or square main creative asset when your app is in portrait\n mode. Depending on your native ad layout, you may want to serve only\n portrait, landscape, or square ads. You can request assets of specific\n [aspect ratios](/admob/ios/api/reference/Enums/GADMediaAspectRatio) to best suit your\n layout.\n\n |-----------|--------|----------|\n | Landscape | Square | Portrait |\n\n \u003cbr /\u003e\n\n ### Swift\n\n let aspectRatioOption = NativeAdMediaAdLoaderOptions()\n aspectRatioOption.mediaAspectRatio = .portrait\n adLoader = AdLoader(\n adUnitID: \"\u003cvar\u003eyour ad unit ID\u003c/var\u003e\",\n rootViewController: self,\n adTypes: adTypes,\n options: [aspectRatioOption])\n\n ### Objective-C\n\n GADNativeAdMediaAdLoaderOptions *aspectRatioOption = [[GADNativeAdMediaAdLoaderOptions alloc] init];\n aspectRatioOption.mediaAspectRatio = GADMediaAspectRatioPortrait;\n self.adLoader = [[GADAdLoader alloc] initWithAdUnitID:@\"\u003cvar\u003eyour ad unit ID\u003c/var\u003e\"\n rootViewController:self\n adTypes:@[ GADAdLoaderAdTypeNative ]\n options:@[ aspectRatioOption ]];\n\n | **Caution:** Setting media aspect ratio to portrait, landscape, or square will limit ad availability, and may reduce revenue. To optimize revenue, we recommend leaving the media aspect ratio to the default value of `GADMediaAspectRatioAny`.\n\n Additional resources\n --------------------\n\n - Full Screen native examples: [Objective-C](//github.com/googleads/googleads-mobile-ios-examples/tree/main/Objective-C/admob/FullScreenNativeExample)"]]