how to run adword api from localhost

喜你入骨 提交于 2020-02-08 07:29:08

问题


Anyone know how to run google adword api from localhost? I am using adword( aw_4.6.1 version) php library.

Besides after setting all the things i got the following error

I have run it from command prompt using windows7.

C:\xampp\1.8.0\php>php C:\Apps\xampp\1.8.0\htdocs\aw_4.6.1\examples\Adx\v201309\BasicOperations\GetCampaigns.php

An error has occurred: SOAP-ERROR: Parsing WSDL: Couldn't load from 'adwords.google.com/api/adwords/cm/v201309/CampaignService?wsdl' : failed to load external entity "adwords.google.com/api/adwords/cm/v201309/CampaignService?wsdl"

Get the following error. Looking for suggestion.

An error has occurred: SOAP-ERROR: Parsing WSDL: Couldn't load from 'adw ords.google.com/api/adwords/cm/v201309/CampaignService?wsdl' : failed to load ex ternal entity "https://adwords.google.com/api/adwords/cm/v201309/CampaignService ?wsdl"


回答1:


Use before SOAP call:

libxml_disable_entity_loader(false);

I spent several hours searching for solution and this works.



来源:https://stackoverflow.com/questions/20343604/how-to-run-adword-api-from-localhost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!