PHP Класс ProductService, googleads-php-lib

Автор: Xie Haozhe ([email protected])
Наследование: extends Service
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$classmap array Default class map for wsdl=>php
$endpoint string The endpoint of the service
$locale string
$text string

Открытые методы

Метод Описание
__construct ( $text = null, $locale = null, $id = null, $type = null, $CriterionType = null )
__construct ( string $wsdl, array $options, $user ) Constructor using wsdl location and options array
getNamespace ( ) : string Gets the namesapce of this class
getProductsByStatement ( $statement ) : the Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by given {@link Statement#query}.
getXsiTypeName ( ) : string Gets the xsi:type name of this class
performProductAction ( $productAction, $filterStatement ) : the Performs action on {@link Product} objects that satisfy the given {@link Statement}.
updateProducts ( $products ) : the Updates the specified {@link Product} objects.

Описание методов

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

public __construct ( $text = null, $locale = null, $id = null, $type = null, $CriterionType = null )

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

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

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

Gets the namesapce of this class
public getNamespace ( ) : string
Результат string the namespace of this class

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

When using sales management, the following fields are supported for filtering and/or sorting.

PQL Property Object Property Filterable Sortable
{@code rateCardId} Rate card ID which the product is associated with Yes No
{@code status} {@link Product#status} Yes Yes
{@code lineItemType} {@link Product#lineItemType} Yes Yes
{@code productType} {@link Product#productType} Yes Yes
{@code rateType} {@link Product#rateType} Yes Yes
{@code productTemplateId} {@link Product#productTemplateId} Yes No
{@code name} {@link Product#name} Yes Yes
{@code description} {@link Product#description} Yes No
{@code id} {@link Product#id} Yes Yes
{@code lastModifiedDateTime} {@link Product#lastModifiedDateTime} Yes Yes
When using programmatic guaranteed and not sales management, the following fields are supported for filtering and/or sorting.
PQL Property Object Property Filterable Sortable
{@code status} {@link Product#status} Yes Yes
{@code rateType} {@link Product#rateType} Yes Yes
{@code name} {@link Product#name} Yes Yes
{@code id} {@link Product#id} Yes Yes
{@code lastModifiedDateTime} {@link Product#lastModifiedDateTime} Yes Yes
public getProductsByStatement ( $statement ) : the
Результат the products that match the given statement

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

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
Результат string the xsi:type name of this class

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

Performs action on {@link Product} objects that satisfy the given {@link Statement}.
public performProductAction ( $productAction, $filterStatement ) : the
Результат the result of the action performed

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

Note non-updatable fields will not be backfilled.
public updateProducts ( $products ) : the
Результат the updated products

Описание свойств

$classmap публичное статическое свойство

Default class map for wsdl=>php
public static array $classmap
Результат array

$endpoint публичное статическое свойство

The endpoint of the service
public static string $endpoint
Результат string

$locale публичное свойство

public string $locale
Результат string

$text публичное свойство

public string $text
Результат string