Api\StructType\ApiAdGroupsSelectionCriteria::setTags PHP Method

setTags() public method

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