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

There is a {@link SearchParameter} for each type of input. {@link SearchParameter}s can conceptually be broken down into two types.

  • Input {@link SearchParameter}s provide the seed information from which ideas or stats are to be generated (e.g., {@link RelatedToQuerySearchParameter}, {@link RelatedToUrlSearchParameter}, etc.). This type of {@link SearchParameters} is required in requests.
  • Filter {@link SearchParameter}s (e.g., {@link CompetitionSearchParameter}, etc.) are used to trim down the results based on {@link Attribute}-related information.

A request should only contain one instance of each {@link SearchParameter}. Requests containing multiple instances of the same search parameter will be rejected.

One or more of the following {@link SearchParameter}s are required:

  • {@link CategoryProductsAndServicesSearchParameter}
  • {@link LocationSearchParameter}
  • {@link RelatedToQuerySearchParameter}
  • {@link RelatedToUrlSearchParameter}
  • {@link SeedAdGroupIdSearchParameter}

{@link IdeaType} KEYWORD supports following {@link SearchParameter}s:

  • {@link CategoryProductsAndServicesSearchParameter}
  • {@link CompetitionSearchParameter}
  • {@link IdeaTextFilterSearchParameter}
  • {@link IncludeAdultContentSearchParameter}
  • {@link LanguageSearchParameter}
  • {@link LocationSearchParameter}
  • {@link NetworkSearchParameter}
  • {@link RelatedToQuerySearchParameter}
  • {@link RelatedToUrlSearchParameter}
  • {@link SearchVolumeSearchParameter}
  • {@link SeedAdGroupIdSearchParameter}

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$SearchParameterType string

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

Метод Описание
__construct ( $SearchParameterType = null )
__get ( $var ) : mixed Provided for getting non-php-standard named variables
__set ( $var, $value ) Provided for setting non-php-standard named variables
getNamespace ( ) : string Gets the namesapce of this class
getXsiTypeName ( ) : string Gets the xsi:type name of this class

Защищенные методы

Метод Описание
getParameterMap ( ) : array Provided for getting non-php-standard named variables

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

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

public __construct ( $SearchParameterType = null )

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

Provided for getting non-php-standard named variables
public __get ( $var ) : mixed
$var Variable name to get
Результат mixed Variable value

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

Provided for setting non-php-standard named variables
public __set ( $var, $value )
$var Variable name to set
$value Value to set

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

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

getParameterMap() защищенный Метод

Provided for getting non-php-standard named variables
protected getParameterMap ( ) : array
Результат array parameter map

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

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

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

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

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