Re: google account cannot access api

2023-06-02 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for your response.

I could see that you've already an existing case with the subject "The account 
cannot access the API, and our company's development pre research is" that has 
the same questions for your recent response on this thread. For better tracking 
of this issue, we recommend continuing the conversation on the existing thread 
moving forward, as our team already responded to you on the said thread.

This message is in relation to case "ref:_00D1U1174p._5004Q2ltxff:ref"

Thanks,

Google Ads API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/UN4eM0RVN0ZL00cyDv_nakQt6-09N_3uQ6wQ%40sfdc.net.


Re: google account cannot access api

2023-05-31 Thread 世强硬创
hi googl  Ads API 团队,
Please confirm the following issues:
Does Google Advertising API have a Chinese server? Can other Chinese 
customers access Google Advertising API normally? Is their server in Hong 
Kong or mainland China

在2023年5月31日星期三 UTC+8 05:55:24 写道:

> Hi there,
>
> Thanks for reaching out to the Google Ads API Forum.
>
> I can see that you have encountered a SocketTimeoutException, however, 
> note that SocketTimeoutException error is a network related issue. You may 
> refer to this *guide* 
> 
>  
> on how to set timeouts and handle HTTP errors that your code might receive 
> when you use the Google API Client Library for Java.
>
> If the said error still persists, you may provide what specific Google 
> product API you are using so that we can identify the correct route for 
> further assistance.
>
> This message is in relation to case "ref:_00D1U1174p._5004Q2ltxff:ref"
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7c3db571-0977-4e34-a4ab-510da33a0968n%40googlegroups.com.


RE: google account cannot access api

2023-05-30 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi there,

Thanks for reaching out to the Google Ads API Forum.

I can see that you have encountered a SocketTimeoutException, however, note 
that SocketTimeoutException error is a network related issue. You may refer to 
this guide on how to set timeouts and handle HTTP errors that your code might 
receive when you use the Google API Client Library for Java.

If the said error still persists, you may provide what specific Google product 
API you are using so that we can identify the correct route for further 
assistance.

This message is in relation to case "ref:_00D1U1174p._5004Q2ltxff:ref"

Thanks,

Google Ads API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/YBRSN0RVHRJL008fgRyZFhTcuMZjVpNm45cw%40sfdc.net.


Google account cannot access API

2023-05-27 Thread 世强硬创
During our API research, our company found that Google's API is a foreign 
server that transmits data. The Alibaba Cloud server used on our website 
has blocked the other party because it does not comply with laws and 
regulations. Can you confirm if Google's API has a domestic server?
[image: 谷歌访问超时.png]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/54aec53e-9ad5-4a1b-ba69-514dce85689fn%40googlegroups.com.


Re: Invalid grant - cannot access api

2017-06-27 Thread 'Peter Oliquino' via AdWords API Forum
Hi,

The "invalid_grant" error usually indicates that the access or refresh 
token being passed in your request is incorrect or invalid. Before 
proceeding further, could you first confirm if you are indeed using a test 
account 

 to 
estimate keyword traffic? If yes, could you also confirm if you created the 
OAuth2 
credentials 
 while 
logged in to the email address associated to your test MCC account? If not, 
please 
do so and generate a new refresh token then retry your request. Let me know 
if the issue persists.

Thanks and regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0f993d58-7c85-4388-8d2f-8ca2d5095115%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Invalid grant - cannot access api

2017-06-27 Thread LKRPL
Hi,
we have the following error: 

Exception in thread "main" 
com.google.api.ads.common.lib.exception.OAuthException: Credential could 
not be refreshed.
at 
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:178)
at it.reply.fcadda.ForecastGenerator.GetCampaigns.main(GetCampaigns.java:46)
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 400 
Bad Request
{
  "error" : "invalid_grant"
}
at 
com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
at 
com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
at 
com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at 
com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
at 
com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:362)
at 
com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
at 
com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:69)
at 
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:172)

-The code here: 
"https://developers.google.com/adwords/api/docs/samples/java/optimization#estimate-keyword-traffic";
-Ads.properties details: 
a) clientId and clientSecret (associated to this account) 
b) clientCustomerId: account created by a test account
c) developerToken (associated to this account)
d) refreshToken (obtained following 
this:"https://github.com/googleads/googleads-java-lib/wiki/API-access-using-own-credentials-(installed-application-flow)#step-2---setting-up-the-client-library"
 
through the test account).

Can you help us? 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/3b8c0b8d-4fe3-417d-a631-4ad8225cf69d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cannot access API

2017-06-27 Thread LKRPL
Good evening,
we follow the guide to "make the first api call" but as result we obtained:

Exception in thread "main" 
com.google.api.ads.common.lib.exception.OAuthException: Credential could 
not be refreshed.
at 
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:178)
at 
it.reply.fcadda.ForecastGenerator.EstimateKeywordTraffic.main(EstimateKeywordTraffic.java:56)
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 400 
Bad Request
{
  "error" : "invalid_grant"
}
at 
com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
at 
com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
at 
com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at 
com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
at 
com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:362)
at 
com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
at 
com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:69)
at 
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:172)
 

The code used is the "Estimate keyword traffic" sample located here : 
"https://developers.google.com/adwords/api/docs/samples/java/optimization#estimate-keyword-traffic";
 

As ads.properties we have used:
a) clientId, clientSecret (associated to this account)
b) clientCustomerId (an account created and associated to a test account)
c) developer token (associated to this account) 
d) refresh token (obtained following this url 
"https://github.com/googleads/googleads-java-lib/wiki/API-access-using-own-credentials-(installed-application-flow)#step-2---setting-up-the-client-library"
 
through the test account)

Can you help us? 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/2b26828b-f498-4a02-8240-43da01d2e17c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.