/AWS1/IF_IVS=>CREATEADCONFIGURATION()¶
About CreateAdConfiguration¶
Creates a new ad configuration to be used for server-side ad insertion.
Method Signature¶
METHODS /AWS1/IF_IVS~CREATEADCONFIGURATION
IMPORTING
!IV_NAME TYPE /AWS1/IVSADCONFIGURATIONNAME OPTIONAL
!IT_MEDIATAILORPLAYBACKCONFS TYPE /AWS1/CL_IVSMEDIATAILORPBCONF=>TT_MEDIATAILORPLAYCONFSLIST OPTIONAL
!IT_TAGS TYPE /AWS1/CL_IVSTAGS_W=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ivscreateadconfrsp
RAISING
/AWS1/CX_IVSACCESSDENIEDEX
/AWS1/CX_IVSCONFLICTEXCEPTION
/AWS1/CX_IVSINTERNALSERVEREX
/AWS1/CX_IVSPENDINGVERIFICAT00
/AWS1/CX_IVSRESOURCENOTFOUNDEX
/AWS1/CX_IVSSERVICEQUOTAEXCDEX
/AWS1/CX_IVSTHROTTLINGEX
/AWS1/CX_IVSVALIDATIONEX
/AWS1/CX_IVSCLIENTEXC
/AWS1/CX_IVSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_mediatailorplaybackconfs TYPE /AWS1/CL_IVSMEDIATAILORPBCONF=>TT_MEDIATAILORPLAYCONFSLIST TT_MEDIATAILORPLAYCONFSLIST¶
List of integration configurations with media tailor resources.
Optional arguments:¶
iv_name TYPE /AWS1/IVSADCONFIGURATIONNAME /AWS1/IVSADCONFIGURATIONNAME¶
Ad configuration name. Defaults to “”.
it_tags TYPE /AWS1/CL_IVSTAGS_W=>TT_TAGS TT_TAGS¶
Array of 1-50 maps, each of the form
string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ivscreateadconfrsp /AWS1/CL_IVSCREATEADCONFRSP¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->createadconfiguration(
it_mediatailorplaybackconfs = VALUE /aws1/cl_ivsmediatailorpbconf=>tt_mediatailorplayconfslist(
( new /aws1/cl_ivsmediatailorpbconf( |string| ) )
)
it_tags = VALUE /aws1/cl_ivstags_w=>tt_tags(
(
VALUE /aws1/cl_ivstags_w=>ts_tags_maprow(
value = new /aws1/cl_ivstags_w( |string| )
key = |string|
)
)
)
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_adconfiguration = lo_result->get_adconfiguration( ).
IF lo_adconfiguration IS NOT INITIAL.
lv_adconfigurationarn = lo_adconfiguration->get_arn( ).
lv_adconfigurationname = lo_adconfiguration->get_name( ).
LOOP AT lo_adconfiguration->get_mediatailorplaybackconfs( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_mediatailorplaybackconf = lo_row_1->get_playbackconfigurationarn( ).
ENDIF.
ENDLOOP.
LOOP AT lo_adconfiguration->get_tags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.