Re: CriterionError.INVALID_PROXIMITY_ADDRESS when creating a proximity with an apparently correct address

2018-02-05 Thread LKRPL
Hi all,

I have the same iussue. Could someone help me? Thanks,

Anna

On Monday, February 5, 2018 at 7:24:23 AM UTC+1, dcog...@tangocode.com 
wrote:
>
> Hi,
>
> Since this week we are having issues with the CampaignCriterionService 
> when creating Proximities.
> The error we are getting is CriterionError.INVALID_PROXIMITY_ADDRESS, but we 
> are sending a valid Address.
> I’m attaching 2 SOAP requests and responses with the same problem in both.
> This was working correctly a couple of days ago and, as far as I know, we 
> didn’t do any change.
>
> Do you know what’s going on?
> Thank you in advance
>
> Diego
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/58fb6dc9-0b77-4a5c-ad54-7bb211eea735%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


INVALID_PROXIMITY_ADDRESS

2018-02-05 Thread LKRPL


Hello to all,

 

I’m working with API AdWords (201708 version).

>From some days I’m having some problems with Proximity object. 

 

Every address I want to add I have always the same response: 
INVALID_PROXIMITY_ADDRESS

I attach the soap request and the soap response:

 

 

http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance;>



https://adwords.google.com/api/adwords/cm/v201708; 
soapenv:mustUnderstand="0">

555-028-9435

REDACTED

unknown (AwApi-Java, AdWords-Axis/3.8.0, 
Common-Java/3.8.0, Axis/1.4, Java/1.8.0_131, maven)

false

false







https://adwords.google.com/api/adwords/cm/v201708;>



ADD



1053090876

https://adwords.google.com/api/adwords/cm/v201708; xsi:type="ns2:Proximity">


KILOMETERS

5.0



VIA GRAMSCI 
162

CORCIANO

06073

IT















 

2018-02-05 12:51:10 INFO  soapXmlLogger:115 - SOAP response:



http://schemas.xmlsoap.org/soap/envelope/;>



https://adwords.google.com/api/adwords/cm/v201708;>

00056475ad67f9a80a37b806c9004470

CampaignCriterionService

mutate

1

2401









soap:Client

[CriterionError.INVALID_PROXIMITY_ADDRESS @ 
operations[0].operand.criterion.address]



https://adwords.google.com/api/adwords/cm/v201708;>

[CriterionError.INVALID_PROXIMITY_ADDRESS @ 
operations[0].operand.criterion.address]


ApiException

http://www.w3.org/2001/XMLSchema-instance; xsi:type="CriterionError">


operations[0].operand.criterion.address



operations

0





operand





criterion





address






CriterionError.INVALID_PROXIMITY_ADDRESS

CriterionError

INVALID_PROXIMITY_ADDRESS













-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f398a7c5-9729-43a5-80c6-b19379a188f5%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.