Hi,

1. Is this method the best way of getting data from any clientID that is 
associated with my MCC account? (by using  session.setClientCustomerId with 
different values?)
The other method of getting the CampaignsService does not allow this -
AdWordsUser user = new AdWordsUser();
 CampaignServiceInterface campaignService = 
user.getService(AdWordsService.V201309.CAMPAIGN_SERVICE);

Is the code bellow the correct way for getting the data from changing 
customerIDs?

2. I would like to use AdwordServices to get campaigns using AdWordsSession 
.
   The class AdwordsSession won't compile. What Jar is my Java project is 
missing?

Thanks.


           Credential oAuth2Credential = new OfflineCredentials.Builder()
        .forApi(Api.ADWORDS)
        .fromFile()
        .build()
        .generateCredential();

    AdWordsSession session = new AdWordsSession.Builder()
        .fromFile()
        .withOAuth2Credential(oAuth2Credential)
        .build();
    
    session.setClientCustomerId(pCustomerID);
   
    AdwordsServices adwordsServices = new AdWordsServices();

    CampaignServiceInterface campaignService = adWordsServices.get(session, 
CampaignServiceInterface.class);
    

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to