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
Post a Comment