Hello,
I have downloaded a googleads-php-lib-master on my server with PHP 5.3.
In my code in PHP i have added example like this:
require_once
'googleads-php-lib-master/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
$user = new AdWordsUser();
$campaignService = $user->GetService('CampaignService', 'v201603');
// Create selector.
$selector = new Selector();
$selector->fields = array('Id', 'Name');
$selector->ordering[] = new OrderBy('Name', 'ASCENDING');
// Create paging controls.
$selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE);
// Make the get request.
$page = $campaignService->get($selector);
// Do something with the $page.
var_dump($page);
But i get an error:
require_once(Google/Api/Ads/Common/Util/AdsUtilityRegistry.php): failed to open
stream: No such file or directory in <my subdirectory absolute
path>/googleads-php-lib-master/src/Google/Api/Ads/Common/Lib/AdsUser.php on
line 28
PHP Fatal error: require_once(): Failed opening required
'Google/Api/Ads/Common/Util/AdsUtilityRegistry.php'
(include_path='.:/usr/local/php53/lib/php') in <my subdirectory relative
path>/googleads-php-lib-master/src/Google/Api/Ads/Common/Lib/AdsUser.php on
line 28
Do i need to set up somewhere in settings.ini or other file a correct path to
the place on my server where the library is located?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/f405548d-1a49-4103-ad39-584d9d8f3e40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.