AdGroupCriterionService::mutateLabel PHP Метод

mutateLabel() публичный Метод

Adds labels to the AdGroupCriterion or removes labels from the AdGroupCriterion

Add - Apply an existing label to an existing {@linkplain AdGroupCriterion ad group criterion}. The {@code adGroupId} and {@code criterionId} must reference an existing {@linkplain AdGroupCriterion ad group criterion}. The {@code labelId} must reference an existing {@linkplain Label label}.

Remove - Removes the link between the specified {@linkplain AdGroupCriterion ad group criterion} and {@linkplain Label label}.

public mutateLabel ( $operations ) : a
Результат a list of AdGroupCriterionLabel where each entry in the list is the result of applying the operation in the input list with the same index. For an add operation, the returned AdGroupCriterionLabel contains the AdGroupId, CriterionId and the LabelId. In the case of a remove operation, the returned AdGroupCriterionLabel will only have AdGroupId and CriterionId.
        public function mutateLabel($operations)
        {
            $args = new MutateLabel($operations);
            $result = $this->__soapCall("mutateLabel", array($args));
            return $result->rval;
        }