Facebook C# SDK:什么是 account_id 以及如何获取它?
我正在尝试实现此处找到的 ads.createAdreportSchedules 示例: http://facebooksdk.codeplex.com/wikipage?title=Code%20Examples& ;referringTitle=Documentation
示例中设置了 account_id。但是,我不确定这是什么。我知道我的应用程序 ID 是什么,但不知道我的帐户 ID(我只有用户名/密码)。什么是“account_id”以及如何从我的帐户获取它?
此外,该示例始终抛出异常(“Param Schedule_specs-time_next_ref 必须是未来的时间戳”),即使代码明确设置了未来日期。知道如何修复此错误吗?
I am trying to implement the ads.createAdreportSchedules example found here:
http://facebooksdk.codeplex.com/wikipage?title=Code%20Examples&referringTitle=Documentation
The account_id is set in the example. However, I'm not sure what this is. I know what my Application ID is but not my Account ID (I only have username/password). What is "account_id" and how can I obtain it from my account?
Also, the example always throws an exception ("Param schedule_specs-time_next_ref must be a timestamp in the future") even though the code clearly sets one with a future date. Any idea of how to fix this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,您正在尝试实现 Facebook Ads API 的方法。您可以使用广告 API 作为 Facebook Advertising Manager 工具的替代品。
您可以在此处找到有关广告 APi 的更多信息:http://developers.facebook.com/docs/adsapi
AccountID 是广告帐户的ID。您的应用程序的用户可以拥有多个广告帐户。您可以通过 ads.getAccounts 获取当前会话用户拥有的帐户 ID API 调用。
As far as I know, you're trying to implement method of Facebook Ads API. You can use the Ads API as an alternative to the Facebook Advertising Manager tool.
You can find more information about Ads APi here: http://developers.facebook.com/docs/adsapi
AccountID is an ID of ads account. User of your application can have multiple ads accounts. You can get account ids that the current session user owns by ads.getAccounts API call.
如果您想查找自己的广告帐户 ID,请访问
http://www.facebook.com/ads/manage/accounts.php" rel="nofollow">http://www.facebook.com/ads/manage/accounts.php facebook.com/ads/manage/accounts.php
这将向您显示您有权访问的广告帐户列表。列表中的一列是每个帐户的帐户 ID。希望这有帮助。这是 Facebook 广告 API 所指的 ID。
If you're trying to find your own ads account id, go to
http://www.facebook.com/ads/manage/accounts.php
This will show you a list of ad accounts you have access to. One of the columns in the list is the account id of each account. Hope this helps. This is the id that the Facebook Ads API is referring to.