/AWS1/IF_SE2=>GETDOMAINSTATISTICSREPORT()¶
About GetDomainStatisticsReport¶
Retrieve inbox placement and engagement rates for the domains that you use to send email.
Method Signature¶
METHODS /AWS1/IF_SE2~GETDOMAINSTATISTICSREPORT
IMPORTING
!IV_DOMAIN TYPE /AWS1/SE2IDENTITY OPTIONAL
!IV_STARTDATE TYPE /AWS1/SE2TIMESTAMP OPTIONAL
!IV_ENDDATE TYPE /AWS1/SE2TIMESTAMP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_se2getdomstatsrptrsp
RAISING
/AWS1/CX_SE2BADREQUESTEX
/AWS1/CX_SE2NOTFOUNDEXCEPTION
/AWS1/CX_SE2TOOMANYREQUESTSEX
/AWS1/CX_SE2CLIENTEXC
/AWS1/CX_SE2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domain TYPE /AWS1/SE2IDENTITY /AWS1/SE2IDENTITY¶
The domain that you want to obtain deliverability metrics for.
iv_startdate TYPE /AWS1/SE2TIMESTAMP /AWS1/SE2TIMESTAMP¶
The first day (in Unix time) that you want to obtain domain deliverability metrics for.
iv_enddate TYPE /AWS1/SE2TIMESTAMP /AWS1/SE2TIMESTAMP¶
The last day (in Unix time) that you want to obtain domain deliverability metrics for. The
EndDatethat you specify has to be less than or equal to 30 days after theStartDate.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_se2getdomstatsrptrsp /AWS1/CL_SE2GETDOMSTATSRPTRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->getdomainstatisticsreport(
iv_domain = |string|
iv_enddate = '20150101000000.0000000'
iv_startdate = '20150101000000.0000000'
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_overallvolume = lo_result->get_overallvolume( ).
IF lo_overallvolume IS NOT INITIAL.
lo_volumestatistics = lo_overallvolume->get_volumestatistics( ).
IF lo_volumestatistics IS NOT INITIAL.
lv_volume = lo_volumestatistics->get_inboxrawcount( ).
lv_volume = lo_volumestatistics->get_spamrawcount( ).
lv_volume = lo_volumestatistics->get_projectedinbox( ).
lv_volume = lo_volumestatistics->get_projectedspam( ).
ENDIF.
lv_percentage = lo_overallvolume->get_readratepercent( ).
LOOP AT lo_overallvolume->get_domainispplacements( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_ispname = lo_row_1->get_ispname( ).
lv_volume = lo_row_1->get_inboxrawcount( ).
lv_volume = lo_row_1->get_spamrawcount( ).
lv_percentage = lo_row_1->get_inboxpercentage( ).
lv_percentage = lo_row_1->get_spampercentage( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_result->get_dailyvolumes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_timestamp = lo_row_3->get_startdate( ).
lo_volumestatistics = lo_row_3->get_volumestatistics( ).
IF lo_volumestatistics IS NOT INITIAL.
lv_volume = lo_volumestatistics->get_inboxrawcount( ).
lv_volume = lo_volumestatistics->get_spamrawcount( ).
lv_volume = lo_volumestatistics->get_projectedinbox( ).
lv_volume = lo_volumestatistics->get_projectedspam( ).
ENDIF.
LOOP AT lo_row_3->get_domainispplacements( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_ispname = lo_row_1->get_ispname( ).
lv_volume = lo_row_1->get_inboxrawcount( ).
lv_volume = lo_row_1->get_spamrawcount( ).
lv_percentage = lo_row_1->get_inboxpercentage( ).
lv_percentage = lo_row_1->get_spampercentage( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.