Convert an exported rule to a programmatic rule
You can implement hook_default_rules_configuration()


  This hook is invoked when rules configurations are loaded. The implementation should be placed into the file MODULENAME.rules_defaults.inc, which gets automatically included when the hook is invoked.


and use entity_import() to convert the export string into something Rules will understand. e.g.

function MYMODULE_default_rules_configuration() {
  $items['my_rule'] = entity_import('rules_config', 'EXPORT STRING HERE');

  return $items;
}