AdGroupAdService::mutateLabel PHP Method

mutateLabel() public method

Adds labels to the AdGroupAd or removes labels from the AdGroupAd.

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

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

public mutateLabel ( $operations ) : A
return A list of AdGroupAdLabel 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 AdGroupAdLabel contains the AdGroupId, AdId and the LabelId. In the case of a remove operation, the returned AdGroupAdLabel will only have AdGroupId and AdId.
        public function mutateLabel($operations)
        {
            $args = new MutateLabel($operations);
            $result = $this->__soapCall("mutateLabel", array($args));
            return $result->rval;
        }