simbor / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
Apache License 2.0
0 stars 0 forks source link

Error when get Report from Adwords API #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of the library are you using?
4.5.1

Which version of PHP are you using?
4.5.1

What steps will reproduce the problem?
Get report from Adwords API 

What is the expected output? What do you see instead?
Report form Adwords Reports
I see warning and error on below

Warning: require_once(Google/Api/Ads/Common/Util/Logger.php): failed to open 
stream: No such file or directory in 
C:\xampp\htdocs\PHPDevelopmentAPI\ZumyGoogleAdwordsAPI\adx_api_php_4.5.1\src\Goo
gle\Api\Ads\Common\Lib\AdsUser.php on line 27

Fatal error: require_once(): Failed opening required 
'Google/Api/Ads/Common/Util/Logger.php' (include_path='.;C:\xampp\php\PEAR') in 
C:\xampp\htdocs\PHPDevelopmentAPI\ZumyGoogleAdwordsAPI\adx_api_php_4.5.1\src\Goo
gle\Api\Ads\Common\Lib\AdsUser.php on line 27

Original issue reported on code.google.com by n...@arena.vn on 24 Sep 2013 at 8:39

GoogleCodeExporter commented 8 years ago
Hi Ndly,

Can you confirm that your include_path points to the src directory? Also can 
you confirm that your distribution contains the file Logger in the location 
src/Google/Api/Ads/Common/Util/ ?
https://code.google.com/p/google-api-adwords-php/source/browse/src/Google/Api/Ad
s/Common/Util/Logger.php

Regards,

- Paul, AdWords API Team.

Original comment by api.pmat...@gmail.com on 24 Sep 2013 at 9:41

GoogleCodeExporter commented 8 years ago
This is my include path to the source directory
require_once
'/../adwords_api_php_4.5.1/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
require_once
'/../adwords_api_php_4.5.1/src/Google/Api/Ads/AdWords/ReportUtils.php';

Original comment by n...@arena.vn on 24 Sep 2013 at 10:04

GoogleCodeExporter commented 8 years ago
This is my include path to the source directory
require_once
'/../adwords_api_php_4.5.1/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
require_once
'/../adwords_api_php_4.5.1/src/Google/Api/Ads/AdWords/Util/ReportUtils.php';

2013/9/24 Ly Nguyen Dinh <ndly@arena.vn>

Original comment by n...@arena.vn on 24 Sep 2013 at 10:05

GoogleCodeExporter commented 8 years ago
This is my file :

Original comment by n...@arena.vn on 25 Sep 2013 at 2:57

Attachments:

GoogleCodeExporter commented 8 years ago
Ok, so it seems that you're not setting an include_path. You're simply trying 
to require_once a particular file.

Please configure your include_path to the src directory. For more information 
please see "How do I start" section of the README:
https://code.google.com/p/google-api-adwords-php/source/browse/README#94

Regards,

- Paul, AdWords API Team.

Original comment by api.pmat...@gmail.com on 26 Sep 2013 at 6:17