Hi Tarun,

As a first step, you would need OAuth access 
<https://developers.google.com/adwords/api/docs/guides/authentication#oauth2_playground>
 to 
all of the accounts to which you intend to make API calls. After that, 
using one approved developer token (only one is required and it can be 
any), you can do a CustomerService.getCustomers 
<https://developers.google.com/adwords/api/docs/reference/v201802/CustomerService#getcustomers>
 without 
specifying a client customer id. This will get you the list of all those 
accounts to which you have OAuth access. Then, for each client customer id 
that was retrieved, you can call the CampaignService.get 
<https://developers.google.com/adwords/api/docs/reference/v201802/CampaignService#get>
 to 
get the campaign details or create a Campaign Performance Report 
<https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report>
 to 
pull up required fields of the Campaign. For example, this java code 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201802/reporting/ParallelReportDownload.java#L311>
 could 
be tweaked to pull accounts via CustomerService instead of 
ManagedCustomerService and then the Campaign Performance Report 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201802/reporting/ParallelReportDownload.java#L212>
 can 
be run against each account. For other client libraries, please refer here 
<https://developers.google.com/adwords/api/docs/clientlibraries>. Also, 
please do check out this section 
<https://developers.google.com/adwords/api/docs/guides/authentication#authenticating_multiple_accounts>
 of 
the guide for better clarity on authenticating multiple accounts.

Yes, you can create AdWords Sessions using OAuth credentials as shown in this 
code sample 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/auth/CreateAdWordsSessionWithoutPropertiesFile.java>
.

Regards,
Dhanya, AdWords 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 
"AdWords API and Google Ads 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/b16c4597-5b58-4ca2-8fcc-9e71909b41d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... tarun . jain
    • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... tarun . jain
        • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
          • ... tarun . jain
    • ... tarun . jain
      • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
        • ... tarun . jain
      • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
        • ... tarun . jain
      • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to