Connect Google Translate URL to 403 Error

2017-01-19 Thread xinfeiniao
Hello all,

I registered the account of the Google translation, and the 
translation of the API key, but in the translation, but reported URL 403 
error, why so, how to solve?
Google translation of URL for 
http://www.googleapis.com/language/translate/v2? 
Key=MyAppKey=en=it  

My Code is:
 private const string TRANSLATE_API_FORMAT = 
"http://www.googleapis.com/language/translate/v2?key={0}={1}={2};;

private string BuildPostData(params string[] source)
{
const string QUERY_PARAM = "q";
StringBuilder data = new StringBuilder();
foreach (var item in source)
{
data.AppendFormat("{0}={1}&", QUERY_PARAM, 
 HttpUtility.UrlEncode(item));
}
if (data.Length > 0)
{
data.Remove(data.Length - 1, 1);
}
return data.ToString();
}

private GoogleTranslateResult PostDataToTranslate(params string[] 
source)
{
string data = BuildPostData(source);

Encoding encoding = Encoding.UTF8;
byte[] bytesToPost = encoding.GetBytes(data);

HttpWebRequest request = 
(HttpWebRequest)WebRequest.Create(TranslateUrl);
request.Headers.Add("X-HTTP-Method-Override", "GET");
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
 
request.ContentLength = bytesToPost.Length;
using (Stream requestStream = request.GetRequestStream())
{
requestStream.Write(bytesToPost, 0, bytesToPost.Length);
requestStream.Close();
}
using (WebResponse response = request.GetResponse())
{
using (Stream stream = response.GetResponseStream())
{
using (StreamReader sr = new StreamReader(stream, 
encoding))
{
string jsonData = sr.ReadToEnd();
GoogleTranslateResult result = 
JsonConvert.DeserializeObject(jsonData);
result.SourceData = source;
return result;
}
}
}
}



Thank you!
   

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/281f7d49-e6a2-43c1-9ba2-3d4acf26157c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get google translate api key ?

2017-01-18 Thread xinfeiniao
Hello all,

   I have register an account for google translate , but I don't know 
how to get the api key for my application . Please tell me how to get it.
Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3bf762c0-4a50-4895-876d-564e0cebc84a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to Get Demo for google Translation using C# language ?

2017-01-18 Thread xinfeiniao
Hello all,

In this 
page,https://cloud.google.com/translate/docs/reference/libraries ,the 
client library language only use go,java,node.js,php,python,ruby ,not use 
C# , How to get the client library for C# ?
Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ee056f85-7f21-43c3-95c1-ed62ab9e3b26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: If I update the manager's account password, API Token certificate and Google need to change it?

2016-11-21 Thread xinfeiniao

Thank you Shwetha。
I haven't changed my manager's password yet.This friday  is Black 
Friday,will be the best time to benefit.But the manager's account has been 
unable to log on,
even so,I have to make sure that change password is not affected  the API 
submission data.If there is any effect, I can only wait for next month for 
a password change。

What is Service account flow 
?
 
I am also a new transfer of the project, the development of the Adwords 
Google is still very understanding, I submit the data of the code as 
follows:

 ShoppingContentService service = GenerateShoppingContentService();
 ProductsCustomBatchResponse  response = 
service.Products.Custombatch(request).Execute();

In the project, we have to use the following Google API 





   


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d382319b-01c8-488b-8c9b-ee7242fd8c29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


If I update the manager's account password, API Token certificate and Google need to change it?

2016-11-21 Thread xinfeiniao
Hello,

   Today, my Account Manager prompt must change the password to be able 
to log in, my Adwords API Manager also uses Account Google to carry on the 
binding. I would, if I change the password for Account Manager, my Api 
certificate and Token need to be updated?
   I checked the code will be used to value GoogleApiAccountEmail, 
GoogleApiCertificateFileName file will be used to, MerchantCenterUserName 
will be used to, but not to use the login password, login password is not 
clear whether as a factor to the encrypted GoogleApiCertificateFileName 
file。

Thank you!



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4cb28580-2bdf-4cd0-b586-9a7f7f3f63fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.