Hi, 

A new ads php client library was released 
<http://googleadsdeveloper.blogspot.com/2016/12/announcing-new-ads-php-client-library.html>
 in 
December 2016. In this library you need construct an API session using the 
AdWordsSessionBuilder.php 
<https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/AdWords/AdWordsSessionBuilder.php>
 and 
obtain a service from the ads services factory, specifying the service 
class using ::class 
<http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class>
 after 
it has been imported. It looks like the example you have in your system 
belongs to the old library which has been moved to a deprecated branch 
<https://github.com/googleads/googleads-php-lib/tree/deprecated>. Please 
try using the GetCampaigns.php 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201705/BasicOperations/GetCampaigns.php>
 example 
from the master branch and let me know if it works. Please see this upgrading 
guide 
<https://github.com/googleads/googleads-php-lib/blob/master/UPGRADING.md> for 
more details. 

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/73ea08be-ccd9-4a1e-aad5-da57ac93c4c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: PHP Client ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
    • Re: PHP Cl... Martin Roettgerding
      • Re: PH... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
        • Re... Martin Roettgerding
        • Re... Martin Roettgerding
          • ... Martin Roettgerding
            • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
              • ... Martin Roettgerding

Reply via email to