Api\StructType\ApiAdGroupsSelectionCriteria::addToTags PHP Method

addToTags() public method

Add item to Tags value
public addToTags ( string $item ) : ApiAdGroupsSelectionCriteria
$item string
return ApiAdGroupsSelectionCriteria
    public function addToTags($item)
    {
        // validation for constraint: itemType
        if (!is_string($item)) {
            throw new \InvalidArgumentException(sprintf('The Tags property can only contain items of string, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
        }
        $this->Tags[] = $item;
        return $this;
    }