如何在PHP中获取广告系列/广告系列ID [英] How to Get Campaigns/Campaign ID in PHP

查看:80
本文介绍了如何在PHP中获取广告系列/广告系列ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我目前正在制作bing广告,而且我是新手。我下载了bing ads api的示例php文件。

im currently working on bing ads and im new here. i downloaded the sample php files for bing ads api.

但是没有GetCampaign功能或任何指南。我看到了一些关于这个问题的代码,并且我遇到了一些问题。

but there is no GetCampaign function or any guide. i saw some codes regarding that matter and im having some problem.

每次运行php代码来获取广告系列时,它总会返回此错误。

every time i run the php code to get the campaigns it always return this error.

PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adcenter.microsoft.com/v9/CampaignManagement/CampaignManagementService.svc?wsdl' : Premature end of data in tag html line 2
 in /home/jgeliberte/PHP/Bing Ads API in PHP/v9/testgetCampaign.php on line 103
GetCampaignsByAccountId failed.
WSDL SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adcenter.microsoft.com/v9/CampaignManagement/CampaignManagementService.svc?wsdl' : Premature end of data in tag html line 2
.
Last SOAP request:
PHP Fatal error:  Call to a member function __getLastRequest() on a non-object in /home/jgeliberte/PHP/Bing Ads API in PHP/v9/testgetCampaign.php on line 262

这里是我看到获取广告系列的指南的链接:  https://msdn.microsoft .com / zh-CN / library / bing-ads-campaign-management-php-samples-get-campaigns.aspx



$
希望你们能帮助我。

here is the link where i saw the guide to get the campaigns: https://msdn.microsoft.com/en-us/library/bing-ads-campaign-management-php-samples-get-campaigns.aspx


hope you guys can help me with this.

推荐答案

你好。

有一个例子使用GetCampaignsByAccountId
here 。请确保下载最新的

PHP 类文件
,如果您找到了一些已弃用的版本。 WSDL应为

https:// campaign.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V10/CampaignManagementService.svc?singleWsdl。

There is an example of using GetCampaignsByAccountId here. Please make sure you download the latest PHP class files, in case you have found some deprecated version. The WSDL should be https://campaign.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V10/CampaignManagementService.svc?singleWsdl.

注意 :您找到的其他样本应该已被替换或删除,因为它仍然错误地引用了adcenter。我会跟进解决它。

Note: The other sample you found should have been replaced or removed, as it still incorrectly refers to adcenter. I will follow up to resolve it.

谢谢你,你好b $ b Eric

Thank you,
Eric


这篇关于如何在PHP中获取广告系列/广告系列ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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