php - Adwords API ReportDefinitionService: ReportDefinition not found -


if :

$user->getservice('managedcustomerservice'); $customer = new \managedcustomer(); 

this works, if do:

$user->loadservice('reportdefinitionservice'); $report = new \reportdefinition(); 

i receive error: class 'reportdefinition' not found. (i write on yii2, use api v201607)

what did wrong?

=========== fix =================

i temporary made working adding:

require_once dirname(dirname(dirname(__file__))) . '/vendor/googleads/googleads-php-lib/examples/adwords/v201607/init.php'; require_once adwords_util_version_path . '/reportutils.php'; 

you can't create reports reportdefinitionservice since api version v201109. use ad-hoc reports instead.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -