I am using Google Ads PHP client library to fetch campaign data in web 
application. Everything is working fine in localhost but when I hosted 
project on server various error where found due to the mismatch in path of 
google_ads_php.ini file. Error are below 

PHP Fatal error: Uncaught InvalidArgumentException: Config file not found 
as specified: 'https://domainname.in/google-ads-php/google_ads_php.ini'. 
Home directory could not be located so it was not searched. in 
/home1/folder/public_html/domain_name.in/google-ads-php/src/Google/Ads/GoogleAds/Lib/ConfigurationLoader.php:72
 
Stack trace: #0 
/home1/folder/public_html/domain_name.in/google-ads-php/src/Google/Ads/GoogleAds/Lib/AbstractGoogleAdsBuilder.php(57):
 
Google\Ads\GoogleAds\Lib\ConfigurationLoader->fromFile('https://domain...') 
#1 
/home1/folder/public_html/domainname.in/google-ads-php/GetCampaigns.php(52): 
Google\Ads\GoogleAds\Lib\AbstractGoogleAdsBuilder->fromFile('https://domainname...')
 
#2 /home1/folder/public_html/domainname.in/ga-get-campaign.php(13): 
Google\Ads\GoogleAds\Examples\BasicOperations\GetCampaigns::main() #3 
{main} thrown in 
/home1/folder/public_html/domainname.in/google-ads-php/src/Google/Ads/GoogleAds/Lib/ConfigurationLoader.php
 
on line 72

What is the best way to solve this thing in the server ?  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/90a22a51-4c2b-4a6d-8cc1-bdae56954e6cn%40googlegroups.com.
  • Go... Khushal Nayani
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to