PHP 클래스 ProductService, googleads-php-lib

저자: Xie Haozhe ([email protected])
상속: extends Service
파일 보기 프로젝트 열기: googleads/googleads-php-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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