(self, name, view_template=None)
return self.master.call('metadata/add', _params)
Add a new custom metadata field to be indexed for the account.

        Args:
           name (string): a unique identifier for the metadata field
           view_template (string): optional Mustache template to control how the metadata is rendered in your activity log

        Returns:
           struct.  the information saved about the new metadata field::
               name (string): the unique identifier of the metadata field to update
               state (string): the current state of the metadata field, one of "active", "delete", or "index"
               view_template (string): Mustache template to control how the metadata is rendered in your activity log

        Raises:
           InvalidKeyError: The provided API key is not a valid Mandrill API key
           MetadataFieldLimitError: Custom metadata field limit reached.
           Error: A general Mandrill error has occurred
Add a new custom metadata field to be indexed for the account.
Add a new custom metadata field to be indexed for the account .
def add(self, name, view_template=None):
        """Add a new custom metadata field to be indexed for the account.

        Args:
           name (string): a unique identifier for the metadata field
           view_template (string): optional Mustache template to control how the metadata is rendered in your activity log

        Returns:
           struct.  the information saved about the new metadata field::
               name (string): the unique identifier of the metadata field to update
               state (string): the current state of the metadata field, one of "active", "delete", or "index"
               view_template (string): Mustache template to control how the metadata is rendered in your activity log

        Raises:
           InvalidKeyError: The provided API key is not a valid Mandrill API key
           MetadataFieldLimitError: Custom metadata field limit reached.
           Error: A general Mandrill error has occurred
        """
        _params = {'name': name, 'view_template': view_template}
        return self.master.call('metadata/add', _params)
def add ( self , name , view_template = None ) : _params = { 'name' : name , 'view_template' : view_template } return self . master . call ( 'metadata/add' , _params )