try { $wsdl = ‘https://on.exacttarget.com/etframework.wsdl’; $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); $client->username = ‘username’; $client->password = ‘password’; //Define the query definition $query = new ExactTarget_QueryDefinition(); $query->Name = “Test Query”; $query->CustomerKey = “TestQuery”; $query->Description = “Test Query Description”; $query->TargetUpdateType = “Overwrite”; $query->TargetType = “DE”; $query->QueryText = “SELECT * FROM table”; //Set the [...]
Currently Browsing
Tutorials
Microgroove API Wrapper For PHP
API wrappers are nectar of the gods for programmers. Here is yet another one this time for the Microgroove API. Go get you some code! Feel free to advance the code. Remember, it is all open source right?
Retrieve Folder ID Via SOAP API In ExactTarget Using PHP
try{ $wsdl = ‘https://on.exacttarget.com/etframework.wsdl’; //Create the Soap Client $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); //Set the username and password $client->username = ‘username’; $client->password = ‘password’; //First find the parent folder $filter = new ExactTarget_SimpleFilterPart(); $filter->Property = “Name”; $filter->SimpleOperator = ExactTarget_SimpleOperators::equals; $filter->Value = array(‘Data Extensions’); //Other possibilities include Emails, or any [...]
Create Content Area Via SOAP API In ExactTarget Using PHP
try { $wsdl = ‘https://on.exacttarget.com/etframework.wsdl’; $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); $client->username = ‘username’; $client->password = ‘password’; $content_area = new ExactTarget_ContentArea(); $content_area->Name = ‘My Example Content Area’; $content_area->Content = ‘Hello World’; $content_area = new SoapVar($content_area, SOAP_ENC_OBJECT, ‘ContentArea’, “http://exacttarget.com/wsdl/partnerAPI”); //Setup and execute the request $request = new ExactTarget_CreateRequest(); $request->Objects = $content_area; $request->Options [...]
Execute Complex Filter Via SOAP API In ExactTarget Using PHP
$wsdl = ‘https://webservice.exacttarget.com/etframework.wsdl’; /* Create the Soap Client */ $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); /* Set username and password here */ $client->username = ‘username’; $client->password = ‘password’; $rr = new ExactTarget_RetrieveRequest(); $rr->ObjectType = “DataExtensionObject[ExampleDE]“; // ExampleDE is the name of the data extension $rr->Properties = array(); $rr->Properties[] = “SubscriberKey”;//Field you [...]
Create Folder Via SOAP API In ExactTarget Using PHP
try{ $wsdl = ‘https://on.exacttarget.com/etframework.wsdl’; //Create the Soap Client $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); //Set the username and password $client->username = ‘username’; $client->password = ‘password’; $folder = new ExactTarget_Folder(); $folder->Name = ‘My New Folder’; $folder->CustomerKey = ‘My New Folder’; $folder->Description = ‘An Example of a folder created through the API’; $folder->IsActive [...]
Retrieve Account MIDs Via SOAP API In ExactTarget
This code snippet demonstrates how to retrieve all the MIDs for a given ExactTarget account. Likewise, a filter can be added to only search for a given account.
I Know You Hate Math: Understanding A/B Testing
With the advent of ExactTarget releasing an A/B testing suite and Google Analytics providing the same functionality for websites I thought it would be beneficial to go behind the scenes of what A/B testing really is. Like many real world processes, A/B testing grounds itself in the world of mathematics and more specifically statistics. Don’t get scared away already though, there is hope for all. Many applications simplify the testing process to the point that a marketer, designer, or developer simply selects which is performing better. But what do we mean by performing better? And, why would I want to understand it?
Retrieve Tracking Summary In ExactTarget Via SOAP API Using PHP
Sometimes it is nice to create custom views/reports of data that are not given within the ExactTarget environment. The following script retrieves tracking summary data for a given business unit. You can then use the data however you like, whether it is for data warehousing, custom graphs, or custom reports.
Clustering Markers in Google Maps
One issue I recently encountered while developing an application using the Google Maps API was that when the number of markers gets considerably large (approx. 5,000) that the map slows down significantly. This is due to the map being a client-side application, therefore, it is relying on the browser to render the map. Now, imagine or take my example of attempting to map nearly 1 million markers. See the issue? You might as well start plotting them with pins using the map on your wall.