PHP Class MediaService, googleads-php-lib

Author: Julien BRISWALTER ([email protected])
Exibir arquivo Open project: googleads/googleads-php-lib Class Usage Examples

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
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.

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

get() public method

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
return A list of {@code Media} objects.

query() public method

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

upload() public method

Uploads new media. Currently, you can upload {@link Image} files and {@link MediaBundle}s.
public upload ( $media ) : A
return A list of uploaded media in the same order as the argument list.

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