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

Автор: Julien BRISWALTER ([email protected])
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
__construct ( string $wsdl, array $options, $user ) Constructor using wsdl location and options array
get ( $serviceSelector ) : A This field is required and should not be {@code null}.
query ( $query ) This field is required and should not be {@code null}.
upload ( $media ) : A Uploads new media. Currently, you can upload {@link Image} files and {@link MediaBundle}s.

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

__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

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

Returns a list of media that meet the criteria specified by the selector.

Note: {@code MediaService} will not return any {@link ImageAd} image files.

public get ( $serviceSelector ) : A
Результат A list of {@code Media} objects.

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

Returns the list of {@link Media} objects that match the query.
public query ( $query )

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

Uploads new media. Currently, you can upload {@link Image} files and {@link MediaBundle}s.
public upload ( $media ) : A
Результат A list of uploaded media in the same order as the argument list.

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

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

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

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

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