/AWS1/IF_IVS=>UPDATEADCONFIGURATION()¶
About UpdateAdConfiguration¶
Updates a specified ad configuration.
Method Signature¶
METHODS /AWS1/IF_IVS~UPDATEADCONFIGURATION
IMPORTING
!IV_ARN TYPE /AWS1/IVSADCONFIGURATIONARN OPTIONAL
!IV_NAME TYPE /AWS1/IVSADCONFIGURATIONNAME OPTIONAL
!IT_MEDIATAILORPLAYBACKCONFS TYPE /AWS1/CL_IVSMEDIATAILORPBCONF=>TT_MEDIATAILORPLAYCONFSLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ivsupdateadconfrsp
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:¶
iv_arn TYPE /AWS1/IVSADCONFIGURATIONARN /AWS1/IVSADCONFIGURATIONARN¶
ARN of the ad configuration to be updated.
Optional arguments:¶
iv_name TYPE /AWS1/IVSADCONFIGURATIONNAME /AWS1/IVSADCONFIGURATIONNAME¶
Ad configuration name. The value does not need to be unique.
it_mediatailorplaybackconfs TYPE /AWS1/CL_IVSMEDIATAILORPBCONF=>TT_MEDIATAILORPLAYCONFSLIST TT_MEDIATAILORPLAYCONFSLIST¶
List of integration configurations with MediaTailor resources. The first item in the list is the default playback configuration used for the ad configuration. To select a different configuration per viewing session, see Generate and Sign IVS Playback Tokens.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ivsupdateadconfrsp /AWS1/CL_IVSUPDATEADCONFRSP¶
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->updateadconfiguration(
it_mediatailorplaybackconfs = VALUE /aws1/cl_ivsmediatailorpbconf=>tt_mediatailorplayconfslist(
( new /aws1/cl_ivsmediatailorpbconf( |string| ) )
)
iv_arn = |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.