Adwords PHP API Call

44 views
Skip to first unread message

ejay.o...@momentummedia.com.au

unread,
Aug 22, 2017, 1:07:10 AM8/22/17
to AdWords API Forum
Hi Adwords API Team,

  I successfully executed your GetCampaigns.php. But I need to create my own function using the Adwords API call/syntax.,

here is my sample code:











































I located the different required class based on their directory from the php file that I'm using. I also included the adsapi_php.ini in the  home directory of my application, the vendor/autoload.php is also included in my index,php

the main function that I'm running is the "function test()". But unfortunately its not working.

I need to do my own function to make my API calls dynamic and I'm using the sample codes as my guide..

Thank you,




Peter Oliquino

unread,
Aug 22, 2017, 2:14:23 AM8/22/17
to AdWords API Forum
Hi Ejay,

Could you provide more information regarding the issue you are facing? Are you encountering any AdWords API related errors when running the code? If yes, you may send to me (via Reply privately to author) the generated SOAP request and response so I can further investigate. If you haven't enabled logging, you may refer to this guide as to how.

However, if the issue is more related to the PHP client library, I would recommend that you get in touch with the PHP client library owners via this link for better assistance.

Best regards,
Peter
AdWords API Team

ejay.o...@momentummedia.com.au

unread,
Aug 22, 2017, 2:37:02 AM8/22/17
to AdWords API Forum
Hi Peter,

More likely its a PHP client library, not the API because the sample codes are working, I'm just struggling in creating my own function.

Thank you for your recommendation.

I will contacnt the PHP client library owners,

Cheers,
Ejay
Reply all
Reply to author
Forward
0 new messages