Testowanie typów kreacji
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wybierz platformę:
Android
iOS
Pakiet SDK do reklam mobilnych Google udostępnia interfejs API, który umożliwia określenie typu kreacji na potrzeby zapytań testowych. Po ustawieniu tego parametru pobierane i renderowane są tylko kreacje określonego typu.
Wykorzystanie
Aby określić typ kreacji, w obiekcie dodatkowym umieść parametr ft_ctype
i przekaż go do żądania reklamy. Może to ograniczyć liczbę dostępnych reklam i spowodować brak wyświetleń.
Swift
let extras = Extras()
extras.additionalParameters = ["ft_ctype": "video_app_install"]
let request = Request()
request.register(extras)
Objective-C
GADExtras *extras = [[GADExtras alloc] init];
extras.additionalParameters = @{@"ft_ctype" : @"video_app_install"};
GADRequest *request = [GADRequest request];
[request registerAdNetworkExtras:extras];
W tabeli poniżej znajdziesz prawidłowe wartości atrybutu ft_ctype
:
Typ reklamy |
ft_ctype |
Format |
HTML5 |
html5 |
Baner, reklama pełnoekranowa, reklama z nagrodą |
Obraz promujący instalację aplikacji |
image_app_install |
Baner, reklama natywna, reklama pełnoekranowa, reklama z nagrodą |
Wyświetlany obraz |
image_display |
Baner, reklama pełnoekranowa |
Wyświetlanie boksu częściowego |
partial_slot |
Baner, reklama natywna, reklama pełnoekranowa |
Tekst reklamy promującej instalację aplikacji |
text_app_install |
Baner, reklama natywna, reklama pełnoekranowa |
Tekst wyświetlany |
text_display |
Baner, reklama natywna, reklama pełnoekranowa |
TrueView |
trueview |
Reklama pełnoekranowa, reklama z nagrodą |
Kreacja wideo promująca instalację aplikacji |
video_app_install |
Baner, reklama natywna, reklama pełnoekranowa, reklama z nagrodą |
Ta funkcja dotyczy tylko reklam Google. Jeśli Twoja jednostka reklamowa umożliwia zapośredniczenie, reklamy zwracane ze źródeł reklam innych firm nie uwzględniają parametru ft_ctype
. Zalecamy testowanie z wykorzystaniem jednostki reklamowej, w której nie jest włączone zapośredniczanie.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-09-02 UTC.
[null,null,["Ostatnia aktualizacja: 2025-09-02 UTC."],[[["\u003cp\u003eGoogle Mobile Ads SDK allows you to specify a desired creative type for test queries using the \u003ccode\u003eft_ctype\u003c/code\u003e request parameter.\u003c/p\u003e\n"],["\u003cp\u003eThis parameter helps to retrieve and render only specific creative types like video, image, or HTML5 during testing.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is only functional in Test Mode and impacts Google ads, not ads from third-party networks through mediation.\u003c/p\u003e\n"],["\u003cp\u003eUsing the \u003ccode\u003eft_ctype\u003c/code\u003e parameter can potentially increase the chances of encountering no fills due to ad restrictions.\u003c/p\u003e\n"],["\u003cp\u003eSeveral creative types including video_app_install, html5, and image_app_install can be specified using the \u003ccode\u003eft_ctype\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],["The Google Mobile Ads SDK allows specifying a creative type for test ad queries using the `ft_ctype` parameter within an extras object during the ad request. This parameter limits the retrieved and rendered ads to the specified type, which may reduce the available ads. Valid `ft_ctype` values include `html5`, `image_app_install`, and `video_app_install`, amongst others, with different supported formats. This feature only works in Test Mode and solely impacts Google ads. Mediation ads do not respect this parameter.\n"],null,["Select platform: [Android](/admob/android/test-creative-types \"View this page for the Android platform docs.\") [iOS](/admob/ios/test-creative-types \"View this page for the iOS platform docs.\")\n\n\u003cbr /\u003e\n\nGoogle Mobile Ads SDK provides an API that lets you specify a creative type\nfor test queries. When the parameter is set, only creatives of the specified\ntype are retrieved and rendered.\n\nUsage\n\nTo specify a creative type, include the `ft_ctype` parameter in an extras object\nand pass it to the ad request. This may restrict which ads are available and\nresult in no fill.\n**Note:** The `ft_ctype` parameter only works in [Test Mode](/admob/ios/test-ads#enable_test_devices). \n\nSwift \n\n let extras = Extras()\n extras.additionalParameters = [\"ft_ctype\": \"video_app_install\"]\n\n let request = Request()\n request.register(extras)\n\nObjective-C \n\n GADExtras *extras = [[GADExtras alloc] init];\n extras.additionalParameters = @{@\"ft_ctype\" : @\"video_app_install\"};\n\n GADRequest *request = [GADRequest request];\n [request registerAdNetworkExtras:extras];\n\nThe following table lists the valid values for `ft_ctype`:\n\n| Creative Type | ft_ctype | Format |\n|----------------------|-------------------|----------------------------------------|\n| HTML5 | html5 | Banner, Interstitial, Rewarded |\n| App install image | image_app_install | Banner, Native, Interstitial, Rewarded |\n| Display image | image_display | Banner, Interstitial |\n| Display partial slot | partial_slot | Banner, Native, Interstitial |\n| App install text | text_app_install | Banner, Native, Interstitial |\n| Display text | text_display | Banner, Native, Interstitial |\n| Trueview | trueview | Interstitial, Rewarded |\n| App install video | video_app_install | Banner, Native, Interstitial, Rewarded |\n\nThis feature impacts Google ads only. If your ad unit enables\n[mediation](/admob/ios/mediation), ads returned from third-party ad sources don't\nrespect the `ft_ctype` parameter. We recommend testing with an ad unit that\ndoesn't have mediation enabled."]]