如何从本地主机运行adword api [英] how to run adword api from localhost

查看:87
本文介绍了如何从本地主机运行adword api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何从本地主机运行google adword api吗? 我正在使用adword(aw_4.6.1版本)php库.

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

我已经使用Windows7在命令提示符下运行了它.

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

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

发生了一个错误:SOAP错误:解析WSDL:无法从中加载 'adwords.google.com/api/adwords/cm/v201309/CampaignService?wsdl':无法加载外部实体 "adwords.google.com/api/adwords/cm/v201309/CampaignService?wsdl"

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.

发生错误:SOAP错误:解析WSDL:无法从'adw加载 ords.google.com/api/adwords/cm/v201309/CampaignService?wsdl':无法加载ex 内部实体" https://adwords.google.com/api/adwords/cm/v201309/CampaignService ?wsdl"

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"

推荐答案

在SOAP调用之前使用:

Use before SOAP call:

libxml_disable_entity_loader(false);

我花了几个小时来寻找解决方案,并且有效.

I spent several hours searching for solution and this works.

这篇关于如何从本地主机运行adword api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆