问题描述
您好,
我愿意使用PHP暂停帐户的所有广告系列。是否可以在帐户中使用单个PHP请求暂停所有正在运行的广告系列?
I am willing to pause all campaigns of an account using PHP. is it possible to pause all running campaigns with a single PHP request in an account?
谢谢,
MasudMoni。
MasudMoni.
推荐答案
您可以使用批量API或广告系列管理API 。使用批量API,您可以通过上传一个Csv文件来更新帐户中所有广告系列的状态。以下示例显示了更新批量
所需的字段:
You could use either the Bulk API or Campaign Management API. With the Bulk API you could update the status of all campaigns in an account by uploading one Csv file. The following example shows the required fields for updating a BulkCampaign:
Type,Status,Id,Parent Id,Name
Format Version,,,,4.0
Campaign,Paused,CampaignId1GoesHere,AccountIdGoesHere,
Campaign,Paused,CampaignId2GoesHere,AccountIdGoesHere,
Campaign,Paused,CampaignId3GoesHere,AccountIdGoesHere,
有关的更多信息使用批量服务下载和上传广告系列设置,请参阅此技术指南 PHP
代码示例。
For more information about using the Bulk service to download and upload campaign settings, please see this technical guide and PHP code example.
如果您使用Campaign Management服务,即
UpdateCampaigns ,然后您只能在每次通话时更新100个广告系列。
If you use the Campaign Management service i.e. UpdateCampaigns, then you are limited to updating 100 campaigns per call.
我希望这会有所帮助!
这篇关于批量更新广告系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!