Re: Can I create campaigns under root manager account directly.

2017-11-09 Thread hari krishna

Thanks Vincent for patiently reading my questions and answering .

Thanks!
Hari. 



On Thursday, November 9, 2017 at 2:31:22 PM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi Hari,
>
> You are correct that the difference with your code is only those methods. 
> However, I am not sure on why you are setting the tokenUrlServer. For the 
> AdWords API itself, the needed fields in order to create an AdWordsSession 
> is your credential (client ID, client secret, refresh token, developer 
> token). These are the four required fields.
>
> For your two questions, please see answers below:
>
> 1)Is it mandatory to have client id , client secret and Refreshtoken to 
> generate access token to connect to adwords APIs or is there any other way 
> to do that.
>
> Yes, it is mandatory to have client ID, client secret and refresh token to 
> generate the access token. As I have said, the access token is 
> automatically generated in the background using the client library. Client 
> ID and client secret are needed to generate the refresh token, and the 
> refresh token is needed to generate the access token, so all these 
> properties are required.
>
>  2)If I have client Id, client sect and developer token, Then can i 
> connect to any account if i have refresh token for that account. Should 
> There be any link between (client id , client secret and developer token) 
> to the refresh token of that account. 
>
> It is not the refresh token alone that is needed to access an AdWords 
> account. Every refresh token is associated to a client ID and secret, so 
> you cannot randomly match your client ID and secret with the refresh token 
> (e.g. from the other email address).
>
> To answer your question, if the refresh token is the* correct refresh 
> token associated to your client ID and secret*, then you can access any 
> AdWords account as long as the *email address (associated to the client 
> ID) is a user with valid permission* in those AdWords accounts. If you 
> will be using a refresh token that is not associated to your client ID, 
> then the API will generate an error. If you'll target an AdWords account 
> and the user is not existing on that account, it will also generate an 
> error.
>
> Thanks,
> Vincent
> 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/686b2203-eac1-46ba-95e0-54d526d67140%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can I create campaigns under root manager account directly.

2017-11-08 Thread hari krishna

Thanks Vincent, 

I will ask them to create separate user for that client and ask them to 
provide Refreshtoken for that user. 


And regarding code : There is no difference in the code which you shown to 
me and which I given  above. If you see closely, I just created separate 
method and put the code which you have shown to me inside. The only 
difference is i have added two more methods i.e 
withTokenUrlServer(dpTokenUrl).withRefreshToken(refreshToken) in the first 
statement,That is required as per my requirement. Can you please check my 
code again and let me know if you think any difference I am doing.

Can you please confirm below things. 

1)Is it mandatory to have client id , client secret and Refreshtoken to 
generate access token to connect to adwords APIs or is there any other way 
to do that. 
2)If I have client Id, client sect and developer token, Then can i connect 
to any account if i have refresh token for that account. Should There be 
any link between (client id , client secret and developer token) to the 
refresh token of that account. 

Thanks!
Hari. 













Thanks!
Hari. 


On Thursday, November 9, 2017 at 11:30:02 AM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi Hari,
>
> In regards to your scenario on which your vendor doesn't want to provide 
> the refresh token of the root/parent MCC for security purposes, then as I 
> have previously mentioned, you can select a user on a client account that 
> has access only to that client account and generate OAuth credentials. This 
> way, the credential will only be used for that client account. If you'll 
> attempt to use the credential to other client accounts, it will generate an 
> error.
>
> In regards to the code you have provided, I can see that you have already 
> talked about this with my colleague, Peter. Since you are using our Java 
> client library, then you don't need to create your own method for 
> generating the AdWords session. Our examples already incorporated the 
> creation of AdWords session as you can see on this line 
> .
>  
> As what Peter previously mentioned, access tokens are also automatically 
> generated (using the refresh token) once it is about to expire using our 
> client libraries. As a recommendation and for simplicity, please follow the 
> examples instead.
>
> Thanks,
> Vincent
> 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/153dd104-c73d-46b0-88ab-bca25770bd69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can I create campaigns under root manager account directly.

2017-11-08 Thread hari krishna

Thanks Vincent for information. 

We want to create refresh tokens for individual accounts because our vendor 
(third party campaign manger who manages our accounts) also managing other 
company account in same hierarchy,he dont want to give root manager account 
refresh token as it will expose other company accounts too which he is 
managing. 

Since we are going to use refresh token per client account. I am going to 
authenticate each refresh token in application startup it self and keep all 
accesstokens in a HashMap to use later point. 

I have seen accessToken expire time is one hour. Java Adwords client 
libraries will automatically refresh access tokens once it expires right. 

Below is the code I am going to use and My HashMap will be like  map(
clientId,AdWordsSession );

public AdWordsSession generateAdwordsSession(final Properties prop,final 
String clientId) {

String dpTokenUrl = (String) prop.getProperty(DP_TOKEN_URL);
String refreshToken = refreshTokenMap.get(clientId);
// Generate a refreshable OAuth2 credential.
Credential oAuth2Credential;
try {
oAuth2Credential = new 
OfflineCredentials.Builder().forApi(Api.ADWORDS).withTokenUrlServer(dpTokenUrl).withRefreshToken(refreshToken).fromFile().build()
.generateCredential();

// Construct an AdWordsSession.
return new 
AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();
} catch (OAuthException | ValidationException | ConfigurationLoadException 
e) {
LOGGER.error("Error in getting AdwordsSession with given credentials", e);
return null;
}

}

Can you please let me know whether above approach works or not ?

Thanks!
Hari. 



  





On Wednesday, November 8, 2017 at 2:29:01 PM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi Hari,
>
> Please see answers below to your questions.
>
> 1) Can I create campaigns under root manager account directly with out 
> child client account. If yes can you please point me to a 
> documentation/guide so that i can create campaigns under direct root 
> manager account.
>
> Campaigns cannot be created in a manager account. It can only be created 
> in a client account. This is true for both AdWords UI and API. You can 
> check this example 
> 
>  (in 
> Java) on how to create campaigns.
>
> For your questions 2 and 3, kindly refer to my answer below.
>
> Refresh token is not campaign based, it is user based or email address 
> based. You can check these users in your *AdWords UI -> Account settings*. 
> For example, if you have 2 users (e.g. a...@example.com , 
> b...@example.com ) in your client account, then you can 
> generate OAuth2 credentials (with client ID, client secret, refresh token) 
> to these two users. The user a@example will have a unique refresh token and 
> b...@example.com  will have a different unique refresh 
> token. The idea here is that OAuth2 credential is associated to an *email 
> address of a user* which is under your client/manager account, and not on 
> a campaign or the client account itself.  
>
> You can check this guide 
>  on 
> how to authenticate in the AdWords API including the generation of refresh 
> token (see this section 
> 
> ). 
>
> Could you confirm on why do you want to generate separate refresh tokens 
> to your campaigns or to your client accounts? If you want to access 
> multiple client accounts under an MCC, then you can select a user from that 
> MCC that has administrative/standard access, and generate the OAuth 
> credential for that user. This way, your credential can access the MCC and 
> all sub MCCs and client accounts under it.
>
> Let me know if you have further clarifications.
>
> Thanks,
> Vincent
> 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/0ffcfc15-a199-47fa-8206-5c0fd40b35ea%40googlegroups.com.
For more options, visit 

Can I create campaigns under root manager account directly.

2017-11-07 Thread hari krishna

Hi,

1) Can I create campaigns under root manager account directly with out 
child client account. If yes can you please point me to a 
documentation/guide so that i can create campaigns under direct root 
manager account.
2)Can I create Refreshtoken for each campaign under root manager 
account. If yes can you please point me to a documentation/guide so that i 
can create Refreshtoken  for each campaign. 

3) If we can't create Refreshtoken for each campaign under root manager 
account,Can we create Refresh token for each client account which is there 
under root manager account.If yes Can you please point me to  a 
documentation/guide so that i can create Refresh token for each client 
account which is there under  root manager account. So that i can access 
each client account with refresh token and other credentials individually. 

Thanks!
Hari. 



 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c1737307-b0f2-4bc3-ab23-a3bccea0f0f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can we create Refreshtoken per account or per client id and client secret?

2017-11-05 Thread hari krishna
Thanks Peter, 

Seems I could not give correct information to you. 

we are not mixing production and test accounts. 

We used different credentials for our test account for testing our code. 
After we are sure that our code is working fine then we planned to move our 
code to production and  we requested our campaign manager(Third party 
vendor who manages our campaigns ) to provide all production credentials 
like clientsecret, clientid,developer token and refresh token so that we 
can automate campaign management through our developed code/apis for our 
production accounts not test accounts. 

I just want to make sure that our approach is correct and it should not 
lock their MCC accounts/Expire refreshtokens/clientids ets.. So that we can 
go back to them and tell that is not our fault. If there is any fault in 
our side then we will correct so that it will not repeat again. 

If there is any on call support then i am very happy and I can call and 
explain in more details, Please let me know if is there anything like this. 

Thanks!
Hari. 









On Mondhanksay, November 6, 2017 at 10:57:59 AM UTC+5:30, Peter Oliquino 
wrote:
>
> Hi Hari,
>
> Regarding the usage of test and production accounts, I'm afraid that it is 
> not possible to link both the test accounts and production accounts as they 
> belong in completely different environments and hierarchies. Also, as 
> mentioned in my previous reply, if you wish to manage all accounts under a 
> certain MCC, you may generate OAuth2 credentials using an email address 
> which has administrative access on the said MCC account.
>
> As for locking accounts, it all depends on the OAuth2 credentials that you 
> use. The said credentials allows users/developers to manage the information 
> of your accounts and users that do not use the correct credentials are not 
> permitted or will be unable to modify the information within the said 
> account. As for locking the account itself, I'm afraid that it currently 
> isn't possible via the AdWords API. As long as the user/developer is using 
> the correct credentials, they may be able to apply changes. Let me know if 
> this helps and feel free to correct me if my understanding is incorrect.
>
> 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/b6b419a0-e0dc-4502-9025-84fd4e684ea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can we create Refreshtoken per account or per client id and client secret?

2017-11-04 Thread hari krishna
Thanks Peter for quick replay,

Below are sequence of event happened in between me and campaign manager of 
our adwords accounts. 

1) We tested few google adwords APIs using our test account with the 
credentials  we created our self and all are working fine. 
2) Then  we requested campaign manager of adwords accounts (third party 
vendor) to provide client id , client secret, developer token and refresh 
token (token for one of our customerclientID)to connect to production 
accounts which they are maintaining on behalf of us. 
3) I used above details and try to get access token  to use for other api 
operations.
4) Next day they came back(third party vendor) and told that we locked 
their all accounts. 

I just used below code to test the credentials which they provided. I just 
want to know is it possible to lock all accounts if I test like above.If 
possible what is the exact reason behind it so that we will not do that 
next time.  

If my code is not causing this then is there any chance that you can tell 
what could be the reason or other possible reasons to lock all their 
adwords accounts which they are maintaining. 

@Override
public AdWordsSession generateAdwordsSession(final Properties prop) {

String dpTokenUrl = (String) prop.getProperty(DP_TOKEN_URL);
Credential oAuth2Credential = new GoogleCredential();
try {
oAuth2Credential = new 
OfflineCredentials.Builder().forApi(Api.ADWORDS).withTokenUrlServer(dpTokenUrl).fromFile().build()
.generateCredential();
return new 
AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();
} catch ( ValidationException | ConfigurationLoadException e) {
LOGGER.error("Error in getting AdwordsSession with given credentials", e);
return null;
} catch (Exception e) {
LOGGER.error("Exception in getting AdwordsSession with given credentials", 
e);
return null;
}

}



Thanks!
Hari. 





Thanks!
Hari.

On Friday, November 3, 2017 at 2:07:06 PM UTC+5:30, Peter Oliquino wrote:
>
> Hi Hari,
>
> Refresh tokens and the rest of the credentials should be created using an 
> email address that has access to a specific client account. For simplicity, 
> if you wish to be able to use only a single set of OAuth2 credentials, I 
> would recommend that you identify an email address which has access to your 
> Root MCC account and while logged in to the said email address, you may 
> then generate the OAuth2 credentials 
>  
> (refreshToken, 
> clientId and clientSecret).
>
> This will allow you to automatically have access to all other sub accounts 
> under the said MCC. I hope this has been helpful and feel free to write 
> back for any follow ups.
>
> 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/37df056a-58bb-4cfa-8e4d-35224f114942%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Can we create Refreshtoken per account or per client id and client secret?

2017-11-03 Thread hari krishna
Hi , 

Can you Please let us know whether  we can create Refreshtoken per 
customerid (clientCustomerId=000-000-) or per client id 
(-XXX.apps.googleusercontent.com)and client 
secret?

If we are able to create Refreshtoken per clientCustomerId, Then can we use 
same refresh token for other clientCustomerId with the same client id and 
client secret. 

api.adwords.clientId=-XXX.apps.googleusercontent.com

api.adwords.clientSecret=xxx

api.adwords.clientCustomerId=000-000-

Problem is we have got separate refreshtoken for each clientCustomerId from 
a adwords account manager who manages our adwords accounts.  

But I am using java client library where i used to setup only one 
Refreshtoken as below in ads.properties. I am confused now on how to use 
different refreshtokens given by our adwords account manager for different 
 clientCustomerIds.


api.adwords.refreshToken=

I used to create refresh token as given in documentation when i am 
developing java 
code. 
https://github.com/googleads/googleads-java-lib/wiki/API-access-using-own-credentials-(installed-application-flow)#step-2---setting-up-the-client-library

Thanks!
Hari. 



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/eda0c371-78a0-4ac8-8b9e-0cdf7666994c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I need to get userList added to a particular campaign for java client library v201708

2017-10-26 Thread hari krishna
Hi, 

1) I uploaded 100k email address to one of the userlist but it is showing 
size as 55k to 100k in adwords account . what could be the cause that it 
did not show actual size of emails which I added. Is there anything that i 
can suspect issue with my programming .

2) I am adding 10 user list to one of my campaign. In this case if i want 
to remove 10k email address from the campaign,Then option would be i should 
try to remove 10k email address from all user list which i added to that 
campaign so that google api will remove matched email address from user 
list and remove  or is there any other way to do that ?

Thanks!
Hari. 





Thanks!
Hari. 

On Wednesday, October 25, 2017 at 1:25:35 PM UTC+5:30, Peter Oliquino wrote:
>
> Hi Hari,
>
> Kindly refer below to my answers to your questions :
>
> 1) My requirement is to removed particular email address from user list 
> added to a particular campaign. Can you please help me on how to do that.I 
> checked example code and could not find anything like this. 
>
> In order to remove members within a userlist, you will need to use the 
> AdwordsUserListService.mutateMembers() 
> 
>  method 
> and use the REMOVE operator. Please note that this change will not be 
> exclusive to only a specific campaign. All other campaigns using the 
> userlist will also be affected by the change made to the userlist's 
> members. My apologies as well as there is currently no available Java 
> example for this. 
>
> 2) Is there any possibility to get all user list from a campaign and 
> remove or replace those ? if yes can please point me to a java example for 
> that. 
>
> For userlists associated to a campaign, you may retrieve your 
> CriterionUserlist 
> 
>  object 
> by using the CampaignCriterionService.get() 
> ,
>  
> and you may then use the REMOVE operator of the 
> CampaignCriterionService.mutate() 
> 
>  method 
> to remove the userlist association from a specific campaign. I'm afraid 
> that there is also no current Java example available for this.
>
> 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/0f378ce4-18a3-4149-959f-63470cd0897b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need to bypass all adwords endpoint url to different url from java client library v201708

2017-10-24 Thread hari krishna
We changed url like this and it is working fine. 

oAuth2Credential = new 
OfflineCredentials.Builder().forApi(Api.ADWORDS).withTokenUrlServer("www.xxx.com/token/").fromFile().build()
.generateCredential();

Thanks!
Hari. 


On Thursday, October 5, 2017 at 4:07:39 PM UTC+5:30, hari krishna wrote:
>
> Thanks Josh, 
>
>  
>
> We want to replace all adwords request URL to our own URL. Since we are 
> using below code, I need some more information on this. 
>
> 1)  If I use api.adwords.endpoint propery then it will be applicable 
> to below code also. 
>
> 2)  Can you please let us know what are the request URL go out from 
> below code so that we will prepare our own URL for those? 
>
> *public* AdWordsSession generateAdwordsSession() {
>
>  
>
>   // Generate a *refreshable* OAuth2 credential.
>
>   Credential oAuth2Credential;
>
>   *try* {
>
>   
>
>  oAuth2Credential = *new* 
> OfflineCredentials.Builder().forApi(Api.*ADWORDS*).fromFile().build()
>
>   .generateCredential();
>
>  
>
>  // Construct an AdWordsSession.
>
>  *return* *new* 
> AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential
> ).build();
>
>   } *catch* (OAuthException | ValidationException | 
> ConfigurationLoadException e) {
>
>  *LOGGER*.error("Error in getting AdwordsSession with 
> given credentials", e);
>
>  *return* *null*;
>
>   }
>
>  
>
>}
>
>  
>
> Thanks!
>
> Hari. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8a3b7fbb-3d4f-40eb-b45e-58906c078be0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Credential could not be refreshed, java client library version v201708

2017-10-24 Thread hari krishna
Seems this is issue with our proxy server, our proxy server changing the 
url and that causes this refresh token expire issue. We fixed it in our 
side. 

Thanks!
Hari. 

On Friday, September 22, 2017 at 11:11:00 PM UTC+5:30, Bharani Cherukuri 
(AdWords API Team) wrote:
>
> Hello Hari, 
>
> To rule out issues with the client library or your *ads.properties* file, 
> could you issue the access token request via curl as follows?
>
> curl --data "grant_type=refresh_token" \
>  --data "refresh_token=*YOUR_REFRESH_TOKEN*" \
>  --data "client_id=*YOUR_CLIENT_ID*" \
>  --data "client_secret=*YOUR_CLIENT_SECRET*" \
>  https://www.googleapis.com/oauth2/v4/token
>
> You won't be using curl to get access tokens from your app, but this will 
> tell us if the refresh token, client ID, and client secret you're using are 
> valid. 
>
> Thanks,
> Bharani, AdWords API Team
>
>
> On Wednesday, September 20, 2017 at 8:36:50 AM UTC-4, hari krishna wrote:
>>
>> Hi,
>>
>>  We are getting Credential could not be refreshed error  occasionally. We 
>> are using java client library version  v201708.
>>
>> I generated new refreshToken also but that did not work to solve the 
>> issue permanently. 
>>
>> Can you please help us to resolve this issue permanently. 
>>
>> Below is the stack trace.
>>
>> [20 Sep 2017 05:15:42,370-AdwordsDataServicesImpl:ERROR:main] Error in 
>> getting AdwordsSession with given credentials
>> 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:229)
>> at 
>> com.aaa.adwords.services.AdwordsDataServicesImpl.generateAdwordsSession(AdwordsDataServicesImpl.java:57)
>> at com.aaa.adwords.Application.main(Application.java:52)
>> Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 401 
>> Authorization Required
>> 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:223)
>> ... 2 more
>>
>> Thanks!
>> Hari. 
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/79acf4af-08cc-4edd-9eb7-952d552e27b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


I need to get userList added to a particular campaign for java client library v201708

2017-10-24 Thread hari krishna
Hi, 

1) My requirement is to removed particular email address from user list 
added to a particular campaign. Can you please help me on how to do that.I 
checked example code and could not find anything like this. 

2) Is there any possibility to get all user list from a campaign and remove 
or replace those ? if yes can please point me to a java example for that. 

We are working on customer match by uploading emails address to campaign. 

Thanks!
Hari. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/77cf6922-71c1-4ad3-a298-988ba8248dcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Can we upload non gmail address to audience list to add to campaigns to display adds.

2017-10-18 Thread hari krishna


Hi,


We are creating campaigns and audience list for re-marketing , I just want 
to know google adwords consider emails which are not  end with @gmail.com.


Example: If I upload email address   x...@yahoo.com  to audience list and 
add that audience list to campaign for remarketing, will google AdWords 
consider that email to display adds to that user. 


Thanks!

Hari. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6395c8ed-6f6f-4a1b-878a-b33b58da9257%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need to bypass all adwords endpoint url to different url from java client library v201708

2017-10-05 Thread hari krishna


Thanks Josh, 

 

We want to replace all adwords request URL to our own URL. Since we are 
using below code, I need some more information on this. 

1)  If I use api.adwords.endpoint propery then it will be applicable to 
below code also. 

2)  Can you please let us know what are the request URL go out from 
below code so that we will prepare our own URL for those? 

*public* AdWordsSession generateAdwordsSession() {

 

  // Generate a *refreshable* OAuth2 credential.

  Credential oAuth2Credential;

  *try* {

  

 oAuth2Credential = *new* 
OfflineCredentials.Builder().forApi(Api.*ADWORDS*).fromFile().build()

  .generateCredential();

 

 // Construct an AdWordsSession.

 *return* *new* 
AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential
).build();

  } *catch* (OAuthException | ValidationException | 
ConfigurationLoadException e) {

 *LOGGER*.error("Error in getting AdwordsSession with 
given credentials", e);

 *return* *null*;

  }

 

   }

 

Thanks!

Hari. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/343a027a-c8f1-4eb2-b51e-5ad3975104d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need to bypass all adwords endpoint url to different url from java client library v201708

2017-10-05 Thread hari krishna
Thanks Josh,


We want to replace all adwords urls which we are calling  from code. I just 
need some more information on below code from java client library example. 

1) Can you please let us know whether below code also uses 
api.adwords.endpoint property host when calling adwords apis.

2) Can you please let us know what are the apis below code will call so 
that we will prepare our own urls for these. 

public AdWordsSession generateAdwordsSession() {

// Generate a refreshable OAuth2 credential.
Credential oAuth2Credential;
try {
//oAuth2Credential = new 
OfflineCredentials.Builder().forApi(Api.ADWORDS).withTokenUrlServer("https://dpuatvip.ace.aaaclubnet.com:56000/accounts.google.com/o/oauth2/token;).fromFile().build()
// .generateCredential();
oAuth2Credential = new 
OfflineCredentials.Builder().forApi(Api.ADWORDS).fromFile().build()
.generateCredential();

// Construct an AdWordsSession.
return new 
AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();
} catch (OAuthException | ValidationException | ConfigurationLoadException 
e) {
LOGGER.error("Error in getting AdwordsSession with given credentials", e);
return null;
}

}

Thanks!
Hari.



On Thursday, September 28, 2017 at 10:17:02 PM UTC+5:30, Josh Radcliff 
(AdWords API Team) wrote:
>
> Hi Hari,
>
> Is the server that you want to pass your requests through a proxy server? 
> If so, I'd recommend simply setting the proxy system properties as 
> described in the client library's README file here 
> <https://github.com/googleads/googleads-java-lib#using-a-proxy>.
>
> Thanks,
> Josh, AdWords API Team
>
> On Thursday, September 28, 2017 at 2:49:09 AM UTC-4, hari krishna wrote:
>>
>> Thanks Sreelakshmi, 
>>
>> May i know what is the significance of below property. My intention is 
>> not appending my server url, I am trying to call a different url when ever 
>> google client library call google url. is there any place i can setup this. 
>> Instead of https://adwords.google.com 
>> <https://adwords.google.com/api/adwords/cm/v201708/CampaignCriterionService>,
>>  i 
>> will give my own host like https://x.com, so that google 
>> client library take my url as host.As I said above my host will call to 
>> google apis and give result back to java client library.  Please let me 
>> know is there any possibility in setup. 
>>
>> # Change the AdWords API endpoint. Optional.
>> #api.adwords.endpoint=https://x.com
>>
>> Thanks!
>> Hari. 
>>
>>
>> On Wednesday, September 27, 2017 at 11:38:11 PM UTC+5:30, Sreelakshmi 
>> Sasidharan (AdWords API Team) wrote:
>>>
>>> Hi Hari, 
>>>
>>> Appending the AdWords API URL to your server URL might not work as the 
>>> resultant URL will not be a valid one. Your application will have to have 
>>> the logic to internally redirect calls from the application to the 
>>> corresponding AdWords API service/reports. If you are interested in using 
>>> proxy, you could check this 
>>> <https://github.com/googleads/googleads-java-lib#using-a-proxy> guide 
>>> to understand how to do that using Java client library. 
>>>
>>> Thanks,
>>> Sreelakshmi, 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/cccfed23-9da7-4bba-b52b-09952f4db519%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need to bypass all adwords endpoint url to different url from java client library v201708

2017-10-03 Thread hari krishna
Hi Josh, 

No it is not a proxy server. We are using datapower. Using datapower (IBM 
DataPower Appliances - *Service gateway appliance (XG45)* )we will create 
apis which intern call actual adwords apis, From our java adwords client 
library we would like to call datapower urls instead of adwords apis,I want 
to know is there any way that I can change the endpoint urls in code so 
that i can call datapower urls instead of google adwords api.



Thanks!
Hari.



On Thursday, September 28, 2017 at 10:17:02 PM UTC+5:30, Josh Radcliff 
(AdWords API Team) wrote:
>
> Hi Hari,
>
> Is the server that you want to pass your requests through a proxy server? 
> If so, I'd recommend simply setting the proxy system properties as 
> described in the client library's README file here 
> <https://github.com/googleads/googleads-java-lib#using-a-proxy>.
>
> Thanks,
> Josh, AdWords API Team
>
> On Thursday, September 28, 2017 at 2:49:09 AM UTC-4, hari krishna wrote:
>>
>> Thanks Sreelakshmi, 
>>
>> May i know what is the significance of below property. My intention is 
>> not appending my server url, I am trying to call a different url when ever 
>> google client library call google url. is there any place i can setup this. 
>> Instead of https://adwords.google.com 
>> <https://adwords.google.com/api/adwords/cm/v201708/CampaignCriterionService>,
>>  i 
>> will give my own host like https://x.com, so that google 
>> client library take my url as host.As I said above my host will call to 
>> google apis and give result back to java client library.  Please let me 
>> know is there any possibility in setup. 
>>
>> # Change the AdWords API endpoint. Optional.
>> #api.adwords.endpoint=https://x.com
>>
>> Thanks!
>> Hari. 
>>
>>
>> On Wednesday, September 27, 2017 at 11:38:11 PM UTC+5:30, Sreelakshmi 
>> Sasidharan (AdWords API Team) wrote:
>>>
>>> Hi Hari, 
>>>
>>> Appending the AdWords API URL to your server URL might not work as the 
>>> resultant URL will not be a valid one. Your application will have to have 
>>> the logic to internally redirect calls from the application to the 
>>> corresponding AdWords API service/reports. If you are interested in using 
>>> proxy, you could check this 
>>> <https://github.com/googleads/googleads-java-lib#using-a-proxy> guide 
>>> to understand how to do that using Java client library. 
>>>
>>> Thanks,
>>> Sreelakshmi, 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/b92b5d29-f5d4-4ff8-a9dc-6d1ba16b09ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need to bypass all adwords endpoint url to different url from java client library v201708

2017-09-28 Thread hari krishna
Thanks Sreelakshmi, 

May i know what is the significance of below property. My intention is not 
appending my server url, I am trying to call a different url when ever 
google client library call google url. is there any place i can setup this. 
Instead of https://adwords.google.com 
, i 
will give my own host like https://x.com, so that google client 
library take my url as host.As I said above my host will call to google 
apis and give result back to java client library.  Please let me know is 
there any possibility in setup. 

# Change the AdWords API endpoint. Optional.
#api.adwords.endpoint=https://x.com

Thanks!
Hari. 


On Wednesday, September 27, 2017 at 11:38:11 PM UTC+5:30, Sreelakshmi 
Sasidharan (AdWords API Team) wrote:
>
> Hi Hari, 
>
> Appending the AdWords API URL to your server URL might not work as the 
> resultant URL will not be a valid one. Your application will have to have 
> the logic to internally redirect calls from the application to the 
> corresponding AdWords API service/reports. If you are interested in using 
> proxy, you could check this 
>  guide to 
> understand how to do that using Java client library. 
>
> Thanks,
> Sreelakshmi, 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/7473b4e4-2699-4bb6-8d91-e7751c2923d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Need to bypass all adwords endpoint url to different url from java client library v201708

2017-09-27 Thread hari krishna


Hi, 


Our company has a policy that we cannot directly call adwords urls instead 
we need to call different url that url will intern call adwords apis and 
give result back to us. Is there any place that we can change this to make 
it work.   


For example, like below. 


Direct url: https://accounts.google.com/o/oauth2/token 

Url we will call : 
https://dpuatvip.ace.aaaclubnet.com:56000/accounts.google.com/o/oauth2/token 
(This is what you application will call in dev and testing)

 

 

 

   1. API to call adwords 
  1. Direct url:  
  https://adwords.google.com/api/adwords/cm/v201708/CampaignCriterionService
   
  2. url  We will call : 
*https://dpuatvip.ace.aaaclubnet.com:56000/adwords.google.com/api/adwords/cm/v201708/CampaignCriterionService
 
  
*
 (This is what you application will call in dev and testing) 
   

Thanks!
Hari. 

 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/94e0a51d-74c4-496d-a12f-ca67d4c27661%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: NullPointerException When trying to get CrmBasedUserList Id in Adwords java client version v201708

2017-09-27 Thread hari krishna
Hi Josh, 

Please find soap and java error logs for the one of the failure. 


Please help us in resolving this kind of issues. 

Thanks!
Hari. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ab0ab4c5-5bad-48df-a6c4-6a91a62cb017%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
1495223 [main] ERROR org.apache.axis.SOAPPart  - Exception:
java.lang.IllegalArgumentException: The char '0x0' after 'return code:  401
Authorization Required
Authorization Required

Description: Authorization is required for access to this proxy





is not a valid XML character.
at 
org.apache.axis.components.encoding.UTF8Encoder.writeEncoded(UTF8Encoder.java:81)
at 
org.apache.axis.encoding.SerializationContext.writeSafeString(SerializationContext.java:1289)
at 
org.apache.axis.encoding.SerializationContext.writeDOMElement(SerializationContext.java:1358)
at org.apache.axis.message.SOAPFault.outputImpl(SOAPFault.java:168)
at 
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
at 
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
at 
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at org.apache.axis.AxisFault.output(AxisFault.java:759)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:301)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
at org.apache.axis.Message.writeTo(Message.java:539)
at 
com.google.api.ads.common.lib.soap.ResponseInfoXPathSet.parseMessage(ResponseInfoXPathSet.java:76)
at 
com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(AxisHandler.java:249)
at 
com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(SoapServiceClient.java:63)
at 
com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:93)
at com.sun.proxy.$Proxy17.mutate(Unknown Source)
at 
com.aaa.adwords.services.AdwordsDataServicesImpl.uploadEmailsClientId(AdwordsDataServicesImpl.java:114)
at 
com.aaa.adwords.services.AdwordsDataServicesImpl.uploadEmailsToGoogle(AdwordsDataServicesImpl.java:386)
at com.aaa.adwords.RetryManager.retry(RetryManager.java:85)
at com.aaa.adwords.Application.main(Application.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
1495309 [main] ERROR org.apache.axis.Message  - java.io.IOException:
1495312 [main] ERROR org.apache.axis.SOAPPart  - Exception:
java.lang.IllegalArgumentException: The char '0x0' after 'return code:  401
Authorization Required
Authorization Required

Description: Authorization is required for access to this proxy





is not a valid XML character.
at 
org.apache.axis.components.encoding.UTF8Encoder.writeEncoded(UTF8Encoder.java:81)
at 
org.apache.axis.encoding.SerializationContext.writeSafeString(SerializationContext.java:1289)
at 
org.apache.axis.encoding.SerializationContext.writeDOMElement(SerializationContext.java:1358)
at org.apache.axis.message.SOAPFault.outputImpl(SOAPFault.java:168)
at 
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
at 
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
at 
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at org.apache.axis.AxisFault.output(AxisFault.java:759)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:301)
at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:617)
at 

Re: Credential could not be refreshed, java client library version v201708

2017-09-22 Thread hari krishna

>
> Below property commented out in ads.properties file. Can you Please check 
>> is there anything to do with this. 
>>
>
# Enable/disable automatic OAuth2 token refreshing. Default is enabled.
#api.adwords.refreshOAuth2Token=false 

Thanks!
Hari.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6c239c81-3745-4358-ae2e-331bc4bf476b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Credential could not be refreshed, java client library version v201708

2017-09-22 Thread hari krishna
Hi Bharani, 

I have given error message above. Same Error message I am getting.It is not 
giving any SAOP logs for this call. I only have java error log which i have 
given below.  Please let me know if you need any other information. Can you 
please check why Refreshtoken got expired. This refresh token generated few 
days back and now it is throwing below error (I am using test account.)

 

com.google.api.ads.common.lib.exception.OAuthException: Credential could 
not be refreshed.
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 401 
Authorization Required



[20 Sep 2017 05:15:42,370-AdwordsDataServicesImpl:ERROR:main] Error in 
getting AdwordsSession with given credentials
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:229)
at 
com.aaa.adwords.services.AdwordsDataServicesImpl.generateAdwordsSession(AdwordsDataServicesImpl.java:57)
at com.aaa.adwords.Application.main(Application.java:52)
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 401 
Authorization Required
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:223)
... 2 more



Thanks!
Hari. 


On Thursday, September 21, 2017 at 11:53:07 PM UTC+5:30, Bharani Cherukuri 
(AdWords API Team) wrote:
>
> Hello Hari, 
>
> Your code snippet looks good. To investigate the issue further, could you 
> provide us the logs with complete error message you received with the new 
> refresh token? 
>
> Thanks,
> Bharani, AdWords API Team
>
> On Wednesday, September 20, 2017 at 8:36:50 AM UTC-4, hari krishna wrote:
>>
>> Hi,
>>
>>  We are getting Credential could not be refreshed error  occasionally. We 
>> are using java client library version  v201708.
>>
>> I generated new refreshToken also but that did not work to solve the 
>> issue permanently. 
>>
>> Can you please help us to resolve this issue permanently. 
>>
>> Below is the stack trace.
>>
>> [20 Sep 2017 05:15:42,370-AdwordsDataServicesImpl:ERROR:main] Error in 
>> getting AdwordsSession with given credentials
>> 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:229)
>> at 
>> com.aaa.adwords.services.AdwordsDataServicesImpl.generateAdwordsSession(AdwordsDataServicesImpl.java:57)
>> at com.aaa.adwords.Application.main(Application.java:52)
>> Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 401 
>> Authorization Required
>> 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:223)
>> ... 2 more
>>
>> Thanks!
>> Hari. 
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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,

Re: Credential could not be refreshed, java client library version v201708

2017-09-21 Thread hari krishna
Hi Bharani, 

If I generate new refresh token it will work fine. But after couple of days 
it is not working and i need to generate  new refresh token to make it 
work. 

I am following below link to generate refresh token. 

https://github.com/googleads/googleads-java-lib/wiki/API-access-using-own-credentials-(installed-application-flow)#step-2---setting-up-the-client-library


below is the code I am using. I am not generating refresh token every time. 
Once refresh token generated I will keep that in ads.properties( 
api.adwords.refreshToken=XX )

When I start my standalone java application i will call  below method only 
once. Please let me know is there any thing problem in this. 
 
@Override
public AdWordsSession generateAdwordsSession() {

// Generate a refreshable OAuth2 credential.
Credential oAuth2Credential;
try {
oAuth2Credential = new 
OfflineCredentials.Builder().forApi(Api.ADWORDS).fromFile().build()
.generateCredential();

// Construct an AdWordsSession.
return new 
AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();
} catch (OAuthException | ValidationException | ConfigurationLoadException 
e) {
LOGGER.error("Error in getting AdwordsSession with given credentials", e);
return null;
}

}

Thanks!
>>
>Hari. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/52d7d7a9-4c27-4820-8f0a-126d5356e9a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: NullPointerException When trying to get CrmBasedUserList Id in Adwords java client version v201708

2017-09-20 Thread hari krishna
Hi Josh, 

We are creating standalone application using java. It will run as backgourd 
process and upload emails to CM.We are not using any multi-threading in 
this. 

I will give SOAP request and response to you for better debugging from your 
end. 

One thing we are doing is we are looping through the chunks of emails (Each 
chunk with 10  emails ) and uploading. 

I will check once again from my end too as per the documentation you have 
given in Java library's page on thread safety 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-java-lib%2Fwiki%2FThread-Safety=D=1=AFQjCNH-6LNr8RQR5BJmrANd8jusoftjKw>.
 
and update. 

Thanks!
Hari. 

 

On Wednesday, September 20, 2017 at 5:53:51 PM UTC+5:30, Josh Radcliff 
(AdWords API Team) wrote:
>
> Hi Hari,
>
> Could you check out the Java library's page on thread safety 
> <https://github.com/googleads/googleads-java-lib/wiki/Thread-Safety> and 
> confirm that you are following the guidelines outlined there? When I've 
> seen issues like this in the past, it's been due to objects that are not 
> thread-safe being shared among multiple threads.
>
> Thanks,
> Josh, AdWords API Team
>
> On Wednesday, September 20, 2017 at 12:05:42 AM UTC-4, hari krishna wrote:
>>
>> Hi Peter, 
>>
>> I sent you private message.
>>
>> Thanks!
>> Hari. 
>>
>>
>> On Tuesday, September 19, 2017 at 9:14:42 AM UTC+5:30, Peter Oliquino 
>> wrote:
>>>
>>> Hi Hari,
>>>
>>> Could you send to me privately via the *Reply privately to author* option, 
>>> your clientCustomerID and the generated SOAP request and response when the 
>>> error was encountered?
>>>
>>> Best 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/d51f641a-90d7-4770-88b3-03622e083a08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Credential could not be refreshed, java client library version v201708

2017-09-20 Thread hari krishna
Hi,

 We are getting Credential could not be refreshed error  occasionally. We 
are using java client library version  v201708.

I generated new refreshToken also but that did not work to solve the issue 
permanently. 

Can you please help us to resolve this issue permanently. 

Below is the stack trace.

[20 Sep 2017 05:15:42,370-AdwordsDataServicesImpl:ERROR:main] Error in 
getting AdwordsSession with given credentials
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:229)
at 
com.aaa.adwords.services.AdwordsDataServicesImpl.generateAdwordsSession(AdwordsDataServicesImpl.java:57)
at com.aaa.adwords.Application.main(Application.java:52)
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 401 
Authorization Required
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:223)
... 2 more

Thanks!
Hari. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1823ed54-580a-40f8-85a5-f24cfe5cdf3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: NullPointerException When trying to get CrmBasedUserList Id in Adwords java client version v201708

2017-09-19 Thread hari krishna
Hi Peter, 

I sent you private message.

Thanks!
Hari. 


On Tuesday, September 19, 2017 at 9:14:42 AM UTC+5:30, Peter Oliquino wrote:
>
> Hi Hari,
>
> Could you send to me privately via the *Reply privately to author* option, 
> your clientCustomerID and the generated SOAP request and response when the 
> error was encountered?
>
> Best 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/a0df8da3-7a5d-4847-b6a8-d52e23f43054%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


NullPointerException When trying to get CrmBasedUserList Id in Adwords java client version v201708

2017-09-18 Thread hari krishna
Hi , 

We are getting NullPointerException When trying to get CrmBasedUserList Id 
in Adwords java client version v201708. This is happening once in 15 
requests. This issue is happening randomly. Can you please help us getting 
this issue solved. 

Below is the exception stack trace. 

*java.lang.NullPointerException*

   at java.io.StringReader.(*StringReader.java:50*)

   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(*SOAPPart.java:688*)

   at org.apache.axis.SOAPPart.getEnvelope(*SOAPPart.java:1003*)

   at org.apache.axis.Message.getSOAPHeader(*Message.java:559*)

   at 
com.google.api.ads.common.lib.soap.ResponseInfoXPathSet.parseMessage(
*ResponseInfoXPathSet.java:83*)

   at 
com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(
*AxisHandler.java:249*)

   at 
com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(
*SoapServiceClient.java:63*)

   at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(
*SoapServiceClient.java:93*)

   at com.sun.proxy.$Proxy17.mutate(Unknown Source)

   at 
com.aaa.adwords.services.AdwordsDataServicesImpl.uploadEmailsClientId(
*AdwordsDataServicesImpl.java:116*)

   at 
com.aaa.adwords.services.AdwordsDataServicesImpl.uploadEmailsToGoogle(
*AdwordsDataServicesImpl.java:373*)

   at com.aaa.adwords.Application.main(*Application.java:71*)


Below is the code we are using. 


AdwordsUserListServiceInterface userListService =

adWordsServices.get(session, AdwordsUserListServiceInterface.*class*
);

 

// Create a user list.

CrmBasedUserList userList = *new* CrmBasedUserList();

userList.setName("Customer relationship management list #" + System.
*currentTimeMillis*());

userList.setDescription("A list of customers that originated from email 
addresses");

 

// See limit here: 
https://support.google.com/adwords/answer/6276125#requirements.

userList.setMembershipLifeSpan(30L);

 

// Create operation.

UserListOperation operation = *new* UserListOperation();

operation.setOperand(userList);

operation.setOperator(Operator.*ADD*);

 

// Add user list.

// Add user list.

   UserListReturnValue result = *null*;

   *try* {

  result = userListService.mutate(*new* 
UserListOperation[] { operation });

 

   } *catch* (ApiException e) {

  result = handleUserListServiceApiError(
userListService, operation, e, result);

 

   } *catch* (Exception e) {

  *LOGGER*.error("Exception in getting 
userListId", e);

   }

// Display user list.

UserList userListAdded = result.getValue(0);

System.*out*.printf(

"User list with name '%s' and ID %d was added.%n",

userListAdded.getName(), userListAdded.getId());

 

// Get user list ID.

Long userListId = userListAdded.getId();


Thanks!

Hari.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1caa9edc-c44a-4fb5-8113-b78d324b69bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.