Re: API to get all accounts

2019-08-12 Thread Google Ads API Forum Advisor Prod
Hello Sibtain, Thank you for reaching out to support. I'm Hiro's colleague addressing your concern as he is out of office. Based on the on-going discussion on this thread, I see that you are using two different API services and hence you will be two different endpoints. The

Re: API to get all accounts

2019-08-11 Thread Sibtain Ali
My question was that why are the two endpoints showing different responses? How can I get ALL accounts linked to a particular account? On Wednesday, July 31, 2019 at 9:43:25 AM UTC+5, adsapiforumadvisor wrote: > > Hi Sibtain, > > Thank you for providing the responses and I'm sorry for the

RE: API to get all accounts

2019-07-30 Thread Google Ads API Forum Advisor Prod
Hi Sibtain, Thank you for providing the responses and I'm sorry for the confusion. Upon checking the ManagedCustomerService is working correctly as the client account (138-664-0593) is indeed the only account associated under the MCC account (447-120-0739), and the service returned the account

Re: API to get all accounts

2019-07-30 Thread Sibtain Ali
Sure. Here are the responses: 1) Managed Customer Service Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerPage Object ( [entries:protected] => Array ( [0] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomer Object ( [name:protected] =>

Re: API to get all accounts

2019-07-25 Thread Google Ads API Forum Advisor Prod
Hi, Could you confirm if the error you encountered is AuthenticationError.CUSTOMER_NOT_FOUND error? If yes, it means that the account was not found for the customer ID provided in the header. However, to further investigate this, could you provide the complete SOAP request and response logs

Re: API to get all accounts

2019-07-25 Thread רועי
Hi, When we used CustomerService.getCustomers() a client reported that he got "No Adwords Account Found" or something like that so we changed to ManagedCustomerService.get() And then only one of my accounts was available. What could be the problem ? On Monday, July 22, 2019 at 12:56:17 PM

Re: API to get all accounts

2019-07-24 Thread Google Ads API Forum Advisor Prod
Hi James, Could you confirm if what you are using is AdWords API or Google Ads API? The first one (https://github.com/googleads/google-ads-php) is for Google Ads API, and the other one (https://github.com/googleads/googleads-php-lib) is for AdWords API. Please use those client libraries

Re: API to get all accounts

2019-07-24 Thread James John
Now I am very confused which to use. I have been using this library https://github.com/googleads/google-ads-php but now I am seeing this, https://github.com/googleads/googleads-php-lib Which is the right one? On Tuesday, 23 July 2019 08:47:15 UTC+1, adsapiforumadvisor wrote: > > Hi James, > >

Re: API to get all accounts

2019-07-23 Thread Google Ads API Forum Advisor Prod
Hi James, I'm sorry for the inconvenience. Could you confirm if what you are looking for is the sample PHP code for CustomerService.getCustomers()? If yes, unfortunately, we don't have exact code samples for that. With this, I would recommend you to reach out to the PHP client library owner

Re: API to get all accounts

2019-07-22 Thread James John
+1 for this. Poorly documented. How can I CustomerService.getCustomers() in the PHP library, can't seem to find the proper document for information. On Monday, 22 July 2019 10:56:17 UTC+1, adsapiforumadvisor wrote: > > Hi Sibtain, > > If you are trying to fetch all of the accounts associated to

RE: API to get all accounts

2019-07-22 Thread Google Ads API Forum Advisor Prod
Hi Sibtain, If you are trying to fetch all of the accounts associated to your email address, you may use CustomerService.getCustomers() without specifying a clientCustomerId. This should return up to 5 accounts which your OAuth2 credentials (generated using your email) has direct access. You