PHP Class AdRuleService, googleads-php-lib

Inheritance: extends DfpSoapClient
Show file Open project: googleads/googleads-php-lib

Public Properties

Property Type Description
$classmap array Default class map for wsdl=>php
$endpoint string The endpoint of the service

Public Methods

Method Description
__construct ( string $wsdl, array $options, $user ) Constructor using wsdl location and options array
createAdRules ( $adRules ) : the Creates new {@link AdRule} objects.
getAdRulesByStatement ( $statement ) : the Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given {@link Statement#query}. The following fields are supported for filtering:
performAdRuleAction ( $adRuleAction, $filterStatement ) : the Performs actions on {@link AdRule} objects that match the given {@link Statement#query}.
updateAdRules ( $adRules ) : the Updates the specified {@link AdRule} objects.

Method Details

__construct() public method

Constructor using wsdl location and options array
public __construct ( string $wsdl, array $options, $user )
$wsdl string WSDL location for this service
$options array Options for the SoapClient

createAdRules() public method

Creates new {@link AdRule} objects.
public createAdRules ( $adRules ) : the
return the created ad rules with their IDs filled in

getAdRulesByStatement() public method

PQL Property Object Property
{@code id} {@link AdRule#id}
{@code name} {@link AdRule#name}
{@code priority} {@link AdRule#priority}
{@code status} {@link AdRule#status}
public getAdRulesByStatement ( $statement ) : the
return the ad rules that match the given filter

performAdRuleAction() public method

Performs actions on {@link AdRule} objects that match the given {@link Statement#query}.
public performAdRuleAction ( $adRuleAction, $filterStatement ) : the
return the result of the action performed

updateAdRules() public method

Updates the specified {@link AdRule} objects.
public updateAdRules ( $adRules ) : the
return the updated ad rules

Property Details

$classmap public static property

Default class map for wsdl=>php
public static array $classmap
return array

$endpoint public static property

The endpoint of the service
public static string $endpoint
return string