Api\StructType\ApiCampaignGetItem::setNegativeKeywords PHP Метод

setNegativeKeywords() публичный метод

Set NegativeKeywords value This property is removable from request (nillable=true+minOccurs=0), therefore if the value assigned to this property is null, it is removed from this object
public setNegativeKeywords ( ApiArrayOfString $negativeKeywords = null ) : ApiCampaignGetItem
$negativeKeywords Api\ArrayType\ApiArrayOfString
Результат ApiCampaignGetItem
    public function setNegativeKeywords(\Api\ArrayType\ApiArrayOfString $negativeKeywords = null)
    {
        if (is_null($negativeKeywords) || is_array($negativeKeywords) && empty($negativeKeywords)) {
            unset($this->NegativeKeywords);
        } else {
            $this->NegativeKeywords = $negativeKeywords;
        }
        return $this;
    }