Skip to content

/AWS1/IF_IVS=>GETADCONFIGURATION()

About GetAdConfiguration

Gets the ad configuration represented by the specified ARN.

Method Signature

METHODS /AWS1/IF_IVS~GETADCONFIGURATION
  IMPORTING
    !IV_ARN TYPE /AWS1/IVSADCONFIGURATIONARN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ivsgetadconfresponse
  RAISING
    /AWS1/CX_IVSACCESSDENIEDEX
    /AWS1/CX_IVSINTERNALSERVEREX
    /AWS1/CX_IVSRESOURCENOTFOUNDEX
    /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 retrieved.

RETURNING

oo_output TYPE REF TO /aws1/cl_ivsgetadconfresponse /AWS1/CL_IVSGETADCONFRESPONSE

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->getadconfiguration( |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.