Mappatura da enumerazione a ID
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Nelle API e nei protocolli di offerta in tempo reale precedenti, gli attributi delle creatività sono identificati da ID numerici. L'API Real-time Bidding utilizza l'e
CreativeAttribute
.
La tabella seguente fornisce una mappatura tra i valori enum e gli ID corrispondenti.
acquirente-dichiarato-creatività-attributi.txt.
Valore di enumerazione CreativeAttribute |
ID numerico equivalente |
IMAGE_RICH_MEDIA |
2 |
ADOBE_FLASH_FLV |
3 |
IS_TAGGED |
7 |
IS_COOKIE_TARGETED |
8 |
IS_USER_INTEREST_TARGETED |
9 |
EXPANDING_DIRECTION_NONE |
12 |
EXPANDING_DIRECTION_UP |
13 |
EXPANDING_DIRECTION_DOWN |
14 |
EXPANDING_DIRECTION_LEFT |
15 |
EXPANDING_DIRECTION_RIGHT |
16 |
EXPANDING_DIRECTION_UP_LEFT |
17 |
EXPANDING_DIRECTION_UP_RIGHT |
18 |
EXPANDING_DIRECTION_DOWN_LEFT |
19 |
EXPANDING_DIRECTION_DOWN_RIGHT |
20 |
CREATIVE_TYPE_HTML |
21 |
CREATIVE_TYPE_VAST_VIDEO |
22 |
EXPANDING_DIRECTION_UP_OR_DOWN |
25 |
EXPANDING_DIRECTION_LEFT_OR_RIGHT |
26 |
EXPANDING_DIRECTION_ANY_DIAGONAL |
27 |
EXPANDING_ACTION_ROLLOVER_TO_EXPAND |
28 |
INSTREAM_VAST_VIDEO_TYPE_VPAID_FLASH |
30 |
RICH_MEDIA_CAPABILITY_TYPE_MRAID |
32 |
RICH_MEDIA_CAPABILITY_TYPE_FLASH |
34 |
RICH_MEDIA_CAPABILITY_TYPE_HTML5 |
39 |
SKIPPABLE_INSTREAM_VIDEO |
44 |
RICH_MEDIA_CAPABILITY_TYPE_SSL |
47 |
RICH_MEDIA_CAPABILITY_TYPE_NON_SSL |
48 |
RICH_MEDIA_CAPABILITY_TYPE_INTERSTITIAL |
51 |
NON_SKIPPABLE_INSTREAM_VIDEO |
69 |
NATIVE_ELIGIBILITY_ELIGIBLE |
70 |
NON_VPAID |
71 |
NATIVE_ELIGIBILITY_NOT_ELIGIBLE |
72 |
ANY_INTERSTITIAL |
73 |
NON_INTERSTITIAL |
74 |
IN_BANNER_VIDEO |
95 |
RENDERING_SIZELESS_ADX |
105 |
OMSDK_1_0 |
114 |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eEarlier APIs and Real-time Bidding protocols used numerical IDs to identify creative attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe Real-time Bidding API now utilizes the \u003ccode\u003eCreativeAttribute\u003c/code\u003e enum for this purpose.\u003c/p\u003e\n"],["\u003cp\u003eA comprehensive mapping table is provided to link enum values with their corresponding numerical IDs for easy reference and transition.\u003c/p\u003e\n"],["\u003cp\u003eThe table covers a wide range of creative attributes, including rich media, video, and expanding ad formats.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can find the complete mapping table \u003ca href=\"//storage.googleapis.com/adx-rtb-dictionaries/buyer-declarable-creative-attributes.txt\"\u003ehere\u003c/a\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum to ID mapping\n\nIn earlier APIs and Real-time Bidding protocols, creative attributes are\nidentified by numerical IDs. The Real-time Bidding API uses the\n[`CreativeAttribute`](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.creatives#creativeattribute)\nenum.\n\nThe following table provides a mapping between the enum values and their\ncorresponding IDs.\n\n[buyer-declarable-creative-attributes.txt](//storage.googleapis.com/adx-rtb-dictionaries/buyer-declarable-creative-attributes.txt).\n\n| CreativeAttribute enum value | Numerical ID equivalent |\n|-------------------------------------------|-------------------------|\n| `IMAGE_RICH_MEDIA` | 2 |\n| `ADOBE_FLASH_FLV` | 3 |\n| `IS_TAGGED` | 7 |\n| `IS_COOKIE_TARGETED` | 8 |\n| `IS_USER_INTEREST_TARGETED` | 9 |\n| `EXPANDING_DIRECTION_NONE` | 12 |\n| `EXPANDING_DIRECTION_UP` | 13 |\n| `EXPANDING_DIRECTION_DOWN` | 14 |\n| `EXPANDING_DIRECTION_LEFT` | 15 |\n| `EXPANDING_DIRECTION_RIGHT` | 16 |\n| `EXPANDING_DIRECTION_UP_LEFT` | 17 |\n| `EXPANDING_DIRECTION_UP_RIGHT` | 18 |\n| `EXPANDING_DIRECTION_DOWN_LEFT` | 19 |\n| `EXPANDING_DIRECTION_DOWN_RIGHT` | 20 |\n| `CREATIVE_TYPE_HTML` | 21 |\n| `CREATIVE_TYPE_VAST_VIDEO` | 22 |\n| `EXPANDING_DIRECTION_UP_OR_DOWN` | 25 |\n| `EXPANDING_DIRECTION_LEFT_OR_RIGHT` | 26 |\n| `EXPANDING_DIRECTION_ANY_DIAGONAL` | 27 |\n| `EXPANDING_ACTION_ROLLOVER_TO_EXPAND` | 28 |\n| `INSTREAM_VAST_VIDEO_TYPE_VPAID_FLASH` | 30 |\n| `RICH_MEDIA_CAPABILITY_TYPE_MRAID` | 32 |\n| `RICH_MEDIA_CAPABILITY_TYPE_FLASH` | 34 |\n| `RICH_MEDIA_CAPABILITY_TYPE_HTML5` | 39 |\n| `SKIPPABLE_INSTREAM_VIDEO` | 44 |\n| `RICH_MEDIA_CAPABILITY_TYPE_SSL` | 47 |\n| `RICH_MEDIA_CAPABILITY_TYPE_NON_SSL` | 48 |\n| `RICH_MEDIA_CAPABILITY_TYPE_INTERSTITIAL` | 51 |\n| `NON_SKIPPABLE_INSTREAM_VIDEO` | 69 |\n| `NATIVE_ELIGIBILITY_ELIGIBLE` | 70 |\n| `NON_VPAID` | 71 |\n| `NATIVE_ELIGIBILITY_NOT_ELIGIBLE` | 72 |\n| `ANY_INTERSTITIAL` | 73 |\n| `NON_INTERSTITIAL` | 74 |\n| `IN_BANNER_VIDEO` | 95 |\n| `RENDERING_SIZELESS_ADX` | 105 |\n| `OMSDK_1_0` | 114 |"]]