使用Java和OAuth2的广告组效果 [英] adgroup performance using Java and OAuth2

查看:65
本文介绍了使用Java和OAuth2的广告组效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hi,


我正在尝试下载使用Java客户端库和Oauth2的adgroup性能报告。我在Java中找不到任何使用Oauth2和Java客户端库来访问API的示例。

I am trying to download adgroup performance report using Java client library and Oauth2. I could not find any examples in Java which uses Oauth2 and Java client library to access the API.


也找不到Java客户端库参考。

Also couldn't find Java client library reference.


有人可以帮忙吗?

Can someone please help ?



谢谢,


-AN

-AN

推荐答案

你好,

以下是Java的一些代码示例。

Here are some code samples for Java.

http://msdn.microsoft.com/en-US/library/bing-ads-java-code-examples.aspx

你是什么 需要记住的是,在代码中使用AuthenticationToken替换"UserName"和"Passoword"。因此,当您发送肥皂时,您的标题不应该包含用户名或密码。只需使用authenticationtoken和其他标题元素。

What you  need to remember is that in the code replace "UserName" and Passoword" with AuthenticationToken. So when you send your soap, your header should not have username or password. Just authenticationtoken and other header elements.

调试此方法的一个好方法是在您发送给服务的代码中打印Soap XML。如果请求不起作用,您可以看到潜在的问题。

A good way to debug this is to print your Soap XML in the code that you send to the service. That way you can see potential issues if the request did not work.

谢谢,

Itai


这篇关于使用Java和OAuth2的广告组效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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