PHP Class AdGroupAdServiceMutate, googleads-php-lib

Applies the list of mutate operations (ie. add, set, remove):

Add - Creates a new {@linkplain AdGroupAd ad group ad}. The {@code adGroupId} must reference an existing ad group. The child {@code Ad} must be sufficiently specified by constructing a concrete ad type (such as {@code TextAd}) and setting its fields accordingly.

Set - Updates an ad group ad. Except for {@code status}, ad group ad fields are not mutable. Status updates are straightforward - the status of the ad group ad is updated as specified. If any other field has changed, it will be ignored. If you want to change any of the fields other than status, you must make a new ad and then delete the old one.

Remove - Removes the link between the specified AdGroup and Ad.

Show file Open project: googleads/googleads-php-lib

Public Properties

Property Type Description
$operations AdGroupAdOperation[]

Public Methods

Method Description
__construct ( $operations = null )
getNamespace ( ) : string Gets the namesapce of this class
getXsiTypeName ( ) : string Gets the xsi:type name of this class

Method Details

__construct() public method

public __construct ( $operations = null )

getNamespace() public method

Gets the namesapce of this class
public getNamespace ( ) : string
return string the namespace of this class

getXsiTypeName() public method

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
return string the xsi:type name of this class

Property Details

$operations public property

public AdGroupAdOperation[] $operations
return AdGroupAdOperation[]