/**
  * Use this method to check if this object has all the required parameters
  * present. If this method returns false, the object generated after XML
  * parsing would be discarded.
  * 
  * @return True, If the mandatory params are present.False, otherwise.
  */
 public function isValid()
 {
     $isValid = true;
     if (ResponseValidator::isStringValid($this->CDATA) == false) {
         $isValid = false;
     } else {
         if ($this->adSize == null) {
             $isValid = false;
         } else {
             if ($this->adSize->isValid() == false) {
                 $isValid = false;
             }
         }
     }
     return $isValid;
 }
 /**
  * Use this method to convert the Base64 encoded pubContent to a JsonObject.
  * Please use jsonObject.get("<key-name>") to obtain the required metadata
  * value.
  * 
  * @return
  */
 public function convertPubContentToJsonObject()
 {
     if (ResponseValidator::isStringValid($this->pubContent) == true) {
         return base64_decode($this->pubContent);
     }
     return null;
 }