How to retrieve bounces via the SOAP-API

Anonymous
Not applicable

How to retrieve bounces via the SOAP-API

Hi,
we have tried to select bounces via the SOAP API as described in the documentation. It does not seem to work. Where is our mistake:

$authHdr = $this->_getAuthenticationHeader();
$options = array( 'connection_timeout' => 15, 'location' => $this->soap_end_point );
if( self::DEBUG ) {
$options['trace'] = 1;
}
 
// Create Request
$params = new stdClass();
$filter = new stdClass();
 
$keyValues                  = array( 'Email Bounced', 'Email Bounced Soft' );
$filter->stringItem         = $keyValues;
$params->activityNameFilter = $filter;
 
// ListName
$leadSel                 = new stdClass();
$leadSel->staticListName = $list;
$leadSelSoap             = new SoapVar( $leadSel, SOAP_ENC_OBJECT, 'StaticListSelector', $this->namespace );
$params->leadSelector    = $leadSelSoap;
 
$streamPos                    = new stdClass();
$streamPos->activityCreatedAt = "2014-08-01";
$params->startPosition = $streamPos;
$params->batchSize     = 10;
$doPage = true;
$success               = $this->soapClient->__soapCall( 'getLeadChanges', array( $params ), $options, $authHdr );
Tags (1)
5 REPLIES 5
Anonymous
Not applicable

Re: How to retrieve bounces via the SOAP-API

Could you please post the Request XML that this code produces? 
Anonymous
Not applicable

Re: How to retrieve bounces via the SOAP-API

We receive an empty response.

0EM50000000SFU7.jpg
If I try to get the activity list for one person  (via "getLeadActivity"), it works fine.
Anonymous
Not applicable

Re: How to retrieve bounces via the SOAP-API

  1. Could you please provide your Request XML, as you shown below? It will help figure out what is producing this error.
  2.  
  3. <?xml version="1.0" encoding="UTF-8"?>
  4. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.marketo.com/mktows/">
  5.   <SOAP-ENV:Header>
  6.     <ns1:AuthenticationHeader>
  7.       <mktowsUserId>demo17_1_809939874BFABAE58E5D27</mktowsUserId>
  8.       <requestSignature>04c4f6df99a2271e0fc42dde67939defd2528a74</requestSignature>
  9.       <requestTimestamp>2013-07-31T17:34:01-07:00</requestTimestamp>
  10.     </ns1:AuthenticationHeader>
  11.   </SOAP-ENV:Header>
  12.   <SOAP-ENV:Body>
  13.     <ns1:paramsGetLeadActivity>
  14.       <leadKey>
  15.         <keyType>EMAIL</keyType>
  16.         <keyValue>leademail@company.com</keyValue>
  17.       </leadKey>
  18.       <activityFilter>
  19.         <includeTypes>
  20.           <activityType>VisitWebpage</activityType>
  21.           <activityType>FillOutForm</activityType>
  22.         </includeTypes>
  23.       </activityFilter>
  24.       <startPosition>
  25.         <latestCreatedAt />
  26.         <offset />
  27.       </startPosition>
  28.       <batchSize>10</batchSize>
  29.     </ns1:paramsGetLeadActivity>
  30.   </SOAP-ENV:Body>
  31. </SOAP-ENV:Envelope>
Anonymous
Not applicable

Re: How to retrieve bounces via the SOAP-API

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.marketo.com/mktows/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:AuthenticationHeader>
<mktowsUserId>XXX</mktowsUserId>
<requestSignature>XXX</requestSignature>
<requestTimestamp>2014-08-04T23:12:13-07:00</requestTimestamp>
</ns1:AuthenticationHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:paramsGetLeadChanges>
<startPosition>
<latestCreatedAt>2014-08-05</latestCreatedAt>
<oldestCreatedAt>2014-08-01</oldestCreatedAt>
</startPosition>
<activityNameFilter>
<stringItem>Change Data Value</stringItem>
</activityNameFilter>
<batchSize>10</batchSize>
<leadSelector xsi:type="ns1:StaticListSelector">
<staticListName>Michel List</staticListName>
</leadSelector>
</ns1:paramsGetLeadChanges>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Anonymous
Not applicable

Re: How to retrieve bounces via the SOAP-API

Any answer on this so far?