PHP Class ProductTemplateService, googleads-php-lib

Inheritance: extends DfpSoapClient
Mostra 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
createProductTemplates ( $productTemplates ) : the Creates new {@link ProductTemplate} objects.
getProductTemplatesByStatement ( $statement ) : the Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects that satisfy the filtering criteria specified by given {@link Statement#query}.
performProductTemplateAction ( $action, $filterStatement ) : the Performs action on {@link ProductTemplate} objects that satisfy the given {@link Statement#query}.
updateProductTemplates ( $productTemplates ) : the Updates the specified {@link ProductTemplate} 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

createProductTemplates() public method

Creates new {@link ProductTemplate} objects.
public createProductTemplates ( $productTemplates ) : the
return the persisted product templates with their Ids filled in

getProductTemplatesByStatement() public method

The following fields are supported for filtering:
PQL Property Object Property
{@code id} {@link ProductTemplate#id}
{@code name} {@link ProductTemplate#name}
{@code nameMacro} {@link ProductTemplate#nameMacro}
{@code description} {@link ProductTemplate#description}
{@code status} {@link ProductTemplate#status}
{@code lastModifiedDateTime} {@link ProductTemplate#lastModifiedDateTime}
{@code lineItemType} {@link LineItemType}
{@code productType} {@link ProductType}
{@code rateType} {@link RateType}
public getProductTemplatesByStatement ( $statement ) : the
return the productTemplates that match the given statement

performProductTemplateAction() public method

Performs action on {@link ProductTemplate} objects that satisfy the given {@link Statement#query}.
public performProductTemplateAction ( $action, $filterStatement ) : the
return the result of the action performed

updateProductTemplates() public method

Updates the specified {@link ProductTemplate} objects.
public updateProductTemplates ( $productTemplates ) : the
return the updated product templates

Property Details

$classmap public_oe static_oe property

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

$endpoint public_oe static_oe property

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