Hi Dhanya,

Through CustomerService.getCustomers 
<https://developers.google.com/adwords/api/docs/reference/v201802/CustomerService#getcustomers>
 I 
get the list of account. But if I have access to another account (by adding 
admin access to that user) that account is not getting in this 
CustomerService.getCustomers 
<https://developers.google.com/adwords/api/docs/reference/v201802/CustomerService#getcustomers>
 service. 
How I get that account's ?.

On Tuesday, June 5, 2018 at 11:03:46 PM UTC+5:30, Dhanya Sundararaju 
(AdWords API Team) wrote:
>
> 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/03fc5eda-11bd-416d-83a6-d037d16bc0f5%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