【问题标题】:How to create ads using google adwords API?如何使用 google adwords API 创建广告?
【发布时间】:2010-12-08 08:12:25
【问题描述】:

基本上,我有一个关键字列表,例如:

- red balloons
- free red balloons
- buy red balloons
- blue balloons
- ....

对于每个关键字,我有一个包含 3-4 个广告的列表,每个广告由一个标题、第 1 行、第 2 行和一个 url 组成,例如:

标题:免费红气球!

第 1 行:立即购买免费红气球!

第 2 行:无隐藏费用!

网址:http://example.com

每个关键字我都有 3-4 个这样的广告。

使用 API,我想:

1) Create an adgroup for every keyword
2) Under the adgroup, upload all the ads for that particular keyword. 
   So all the ads for `free red balloons` would go under that keyword's adgroup.

我正在寻找一些指向 API 页面的通用指针/链接,以了解我需要用来完成此操作的方法。具体来说,我正在使用 PHP 和 Apility 库,但也非常欢迎非 PHP 特定信息。

【问题讨论】:

    标签: google-ads-api


    【解决方案1】:

    使用 AdGroupService,您必须为每个关键字创建广告组。当然,您需要有该广告组的父广告系列。

    然后使用 AdGroupCriterionService,您必须为每个广告组创建关键字。

    最后使用 AdGroupAdService 将指定的广告放置在适当的广告组下。

    使用默认 AdWords 客户端,这项任务很困难,因为您需要创建所有对象,然后将这些对象序列化为 SOAP 消息。

    如果您在 .NET 平台上构建应用程序,
    您可能想看看 GemBox.Ppc AdWords API for .NET

    它极大地简化了 AdWords 对象的管理。

    【讨论】:

      【解决方案2】:

      APIlity 已被弃用,因为它仅处理 AdWords API 的 v13。为了使您的编码更容易,您可能应该查看新的PHP Client Library,它提供对最新 API 版本 v200909 的全面支持。请务必检查客户端库中的“示例”文件夹中的一些示例。

      【讨论】:

        【解决方案3】:
        【解决方案4】:

        要连接 google adwords api,请使用 client library 并查看 code examples。阅读指南here

        长话短说:

        1. Create campaign
        2. Add AdGroup to campaign 对应每个关键字。
        3. Add Keywords to AdGroups
        4. Add Ads to AdGroups

        【讨论】:

        • 即使链接指向 404 - 这非常有用,因为它说明了正确的工作流程。
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多