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.
  • Need to ... hari krishna
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... hari krishna
        • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
          • ... hari krishna
          • ... hari krishna
          • ... hari krishna
            • ... hari krishna

Reply via email to