Re: get customer id - php v13 google ads

2023-05-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi, Thanks for getting back to us. Please note that as per the guide included in the links below, both GoogleAdsService.Search and GoogleAdsService.SearchStream would require the customer_id to be supplied in the request body. Can you try performing a request to List Accessible Accounts method

Re: get customer id - php v13 google ads

2023-05-05 Thread Jessica Villa
If I put the manager id as param of searchStream I got an empty result but no errors... $googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient(); $query = "SELECT customer.id, customer.descriptive_name, ad_group.id, ad_group.name FROM ad_group WHERE ad_group.id = AD_GROUP_ID LIMIT

Re: get customer id - php v13 google ads

2023-05-05 Thread Jessica Villa
Thank you for your answer, I have other question: using the function *search() * or *searchStream()* is the right way to retrieve info? $googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient(); $query = "SELECT customer.id, customer.descriptive_name, ad_group.id, ad_group.name FRO

Re: get customer id - php v13 google ads

2023-05-05 Thread Jessica Villa
Thank you for your answer, I have other question: using the function *search() * or *searchStream()* is the right way to retrieve info? $googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient(); $query = "SELECT customer.id, customer.descriptive_name, ad_group.id, ad_group.name FRO

Re: get customer id - php v13 google ads

2023-05-05 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Jessica, Thank you for responding back with the additional context of your concern. As per your use case, customer is an attributed resources of ad_group report so you should be able to retrieve the customer fields from ad_group report. Here's an example query for your reference. SELECT cus

Re: get customer id - php v13 google ads

2023-05-04 Thread Jessica Villa
The issue is not the log, is to know if there is possible to retrieve the *customer.id* having only the *ad_group_id* doing the* $query* and using *search()* like this: *$googleAdsServiceClient->search(**$query);* or something, in the examples couldn't find something about it Thank you! On Thurs

RE: get customer id - php v13 google ads

2023-05-04 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Jessica, Thank you for reaching out to us. For our team to further check this and provide you with an appropriate recommendation, could you please provide us with the complete API logs (request and response with request-id) generated on your end? request : https://developers.google.com/goo

Get customer ID - PHP V13 Google Ads

2023-05-03 Thread Jessica Villa
Hello! I have a question and hope someone can help me: how can I get the customer ID if I only have the ad_group_id? I tried using this query: *$query = "SELECT customer.id FROM ad_group WHERE ad_group.id = ".$ad_group_id." LIMIT 1";* and accessing like this: *$googleAdsClient->getCustomerId(

RE: Get Customer Id After Authentication

2021-07-07 Thread Google Ads API Forum Advisor
Hello, Thanks for reaching out. If you are using one of the supported client libraries, each library will contain a configuration file that keeps the login-customer-id and client customer ID. For example, the Java CL will generate a pom.xml file. If this is not in line with your request, can y

Get Customer Id After Authentication

2021-07-01 Thread Dp Patel
Hello there, In real time scenario, Once our web application is authenticated and got the access token, refresh token, expires in from the Exchange of Code for Token, How do we Identify/Get customer id to make subsequent api calls for getting campaigns or keywords etc. We tries calling

Re: How to get customer id from credentials

2020-12-15 Thread Google Ads API Forum Advisor Prod
Hi Kamil, Thank you for reaching out. Please consider using CustomerService.getCustomers() via the AdWords API to fetch the user customer id. You could use this method to fetch the customer id by setting the OAuth2 credentials provided by the user. Thanks and regards, Xiaoming, Google Ads API

Re: How to get customer id from credentials

2020-12-14 Thread Kamil Buczko
ListAccessibleCustomers is not working because i don't have loginCustomerId set in GoogleAdsClient, so when i call listAccessibleCustomers i get an error. I can't see getCustomers() method in java sdk CustomerServiceClient implementation. The only method is getCustomer() which requires customerI

RE: How to get customer id from credentials

2020-12-11 Thread Google Ads API Forum Advisor Prod
Hi Kamil, Thank you for reaching out. To fetch the user customer id based on their credentials, you could use CustomerService.ListAccessibleCustomers via the Google Ads API to achieve it if the user authenticates with their manager account. However, if this does not work, please try to use Cus

How to get customer id from credentials

2020-12-10 Thread Kamil Buczko
Hello, I have a task to integrate with Google ads system. I already implemented an authentication flow, so when new client uses my system and connects his Google Ads account to my system I receive his account credentials(access/refresh tokens) and store them in a database. Now i want to downloa

Re: how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-16 Thread Rakesh Chauhan
> > can you please provide me information how can we get Customer ID using > Oauth 2.0 or refresh token in Google Ads API(Bita version) > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googlead

RE: how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-10 Thread Google Ads API Forum Advisor Prod
Hi Rakesh, Thank you for reaching out to us. Please look at this guide for information on how to set up OAuth2 authentication and how to obtain your client ID and client secret. If you need your customer ID, please click the “?” button on the Google Ads UI account page and your 10-digit "viewin

Re: how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-10 Thread Rakesh Chauhan
But where you have used refresh token to get customer Id of new logn user ? On Friday, January 10, 2020 at 1:20:02 PM UTC+5:30, Rakesh Chauhan wrote: > > Hello , > > can you please provide me information how can we get Customer ID using > Oauth 2.0 or refresh token in Goog

Re: how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-10 Thread SUBINPVASU
} > return $customer; > } > > On Fri, Jan 10, 2020 at 1:20 PM Rakesh Chauhan > wrote: > >> Hello , >> >> can you please provide me information how can we get Customer ID using >> Oauth 2.0 or refresh

Re: how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-10 Thread SUBINPVASU
, 'test_account'=>$customers->getTestAccount(), 'refresh_token'=>$refresh_token ); } return $customer; } On Fri, Jan 10, 2020 at 1:20 PM Rakesh Chauhan wrote: > Hello , > > can you please provide me information

how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-09 Thread Rakesh Chauhan
Hello , can you please provide me information how can we get Customer ID using Oauth 2.0 or refresh token in Google Ads API(Bita version) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com

RE: Want to get customer id of authenticated user

2019-06-19 Thread Google Ads API Forum Advisor Prod
Hello Bruno, I understand your concern. When you have all the credentials to make the API call except customer id, first you have make a API call to CustomerService.ListaccessibleCustomers to get list of accounts that can be accessed via the credentials you have. Please note that to make API ca

Want to get customer id of authenticated user

2019-06-19 Thread Bruno Finkel
Hello forum. Currently, I am building a platform which users can manage their google ads account. So I implemented user 0Auth Authentication and got access token and refresh token. Also, I got developer token and client_id, client_secret. By the way, I noticed that I need Ads account customer

Re: How to get Customer Id with username and password

2017-02-06 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Sachin, Once you have the access token associated with the email address in question, you need to perform a CustomerService.getCustomers() request with the clientCustomerId header unset. An example SOAP reques

Re: How to get Customer Id with username and password

2017-02-04 Thread Sachin Kumar
Hello Shwetha, Thank you for your reply. I successfully authenticate the request and get users email/name etc. but not get "Customer Id". This is the user's data as response which I got: Array ( [id] => ** [email] => *@gmail.com [verified_

Re: How to get Customer Id with username and password

2017-02-03 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Sachin, To retrieve the CustomerId using the account's username and password, you need to follow these steps: 1. Generate client ID and client secret by following the instructions provided here

How to get Customer Id with username and password

2017-02-03 Thread Sachin Kumar
Hello Team, Object: To get customer Id with the help of adwords account's username and password. I have user's adwords account username and password. Now I want to get customer Id related to this username and password and then add this customer Id to mcc account. Kindly sugges

Re: How to get Customer Id using Access token for Non-MCC account

2016-10-26 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Alfie, If you have the OAuth2 credentials associated with a client account (non-MCC account), you can use CustomerService.getCustomers() method to retrieve the details of the Customer. You need t

Re: How to get Customer Id using Access token for Non-MCC account

2016-10-26 Thread Alfie Max
Hi, I'm using the ruby client library . How do i make the CustomerService Request so that i get the Customer info for a non MCC account. And for a MCC account i believe i have to use the ManagedCustomerService but for

Re: How to get Customer Id using Access token for Non-MCC account

2016-08-08 Thread 'Michael Cloonan (AdWords API Team)' via AdWords API Forum
Hello, It should work in a test environment. Are you using a refresh token generated on a test account? If not, please try that. If you're still having trouble, please include a SOAP request/response so I can take a closer look. Regards, Mike, AdWords API Team On Saturday, August 6, 2016 at 8

Re: How to get Customer Id using Access token for Non-MCC account

2016-08-06 Thread Shibu Alist
Hello Mike, Thanks for your reply!!! Does this works in test environment ?. Because i get error "Missing CLIENT_CUSTOMER_ID" when using CustomerService in test environment. On Friday, August 5, 2016 at 7:36:39

Re: How to get Customer Id using Access token for Non-MCC account

2016-08-05 Thread 'Michael Cloonan (AdWords API Team)' via AdWords API Forum
Hello, Use the CustomerService for this. The CustomerService does not require a CustomerID header to be specified, and will return the currently authenticated customer. The Customer

Re: How to get Customer Id using Access token for Non-MCC account

2016-08-04 Thread Shibu Alist
Hi Anthony, Thanks for your reply But i am still confused as i get the same answer from everywhere. Let me clear our application flow. Actually we are building an application, where normal users will connect their adword account by going through OAuth Authentication process. After Authenti

Re: How to get Customer Id using Access token for Non-MCC account

2016-08-04 Thread 'Anthony Madrigal' via AdWords API Forum
Hi Shibu, You can use the ManagedCustomerService from your MCC level in order to get the client accounts under it. This will give you the customer Ids of these accounts as well if you select the field cu

How to get Customer Id using Access token for Non-MCC account

2016-08-04 Thread Shibu Alist
Hello Team, We need Customer Id using Access token for Non-MCC account for creating Campaigns. Please share api information for same. Thanks Shibu -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://pl

Re: Get Customer ID

2014-08-12 Thread Ray Tsang (AdWords API Team)
Phillip, You can use some other client libraries other than ruby, for example, to validate the issue. I'd really need additional validation on this when using the client library, as the issue may be in the OAuth 2.0 handling logic that you currently have, vs. an account level issue. I also no

Re: Get Customer ID

2014-08-12 Thread Philipp Comans
I can not use the client library unfortunately since it is incompatible with some existing gems in our project. The URL I use is: https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&client_id=.apps.googleusercontent.com&redirect_uri=http%3A%2F%2FX&response_t

Re: Get Customer ID

2014-08-12 Thread Ray Tsang (AdWords API Team)
Phillip, Did you use the example included in the client library to generate the token? What version of the client library are you using? Thanks, Ray On Tuesday, August 12, 2014 12:45:32 PM UTC-4, Philipp Comans wrote: > > Hi Ray, > > Thanks for your reply. My authorization token has the scope

Re: Get Customer ID

2014-08-12 Thread Philipp Comans
Hi Ray, Thanks for your reply. My authorization token has the scope https://adwords.google.com/api/adwords/. I am not specifying a scope when requesting the access token. Does that sound right to you? On Monday, August 11, 2014 8:31:15 AM UTC-7, Ray Tsang (AdWords API Team) wrote: > > Phillip

Re: Get Customer ID

2014-08-11 Thread Ray Tsang (AdWords API Team)
Phillip, Please make sure that the access token has the appropriate scope, and that it's for the user that has access to the MCC or the AW account. It's recommended that you perform such a test by using the client library . Thanks,

Get Customer ID

2014-08-11 Thread Philipp Comans
Hey, I am trying to get the Customer ID of an AdWords Account that I just authenticated with using OAuth2. For now, I am using a Chrome extension (https://chrome.google.com/webstore/detail/wizdler/oebpmncolmhiapingjaagmapififiakb?hl=en) to make a SOAP request to CustomerService (https://develo

Re: Not able to get customer id using OAuth via ruby V201302

2013-09-26 Thread Takeshi Hagikura (AdWords API Team)
Hi, What account did you use when you authenticated using OAuth2? The credential should have access to client accounts under the MCC account. Please makes sure the client account agains which you got an error is under the MCC account you used as OAuth2 authentication. Best, - Takeshi, AdWords

Not able to get customer id using OAuth via ruby V201302

2013-09-25 Thread bhavesh thakker
1.I provide the access through my user id using OAuth 2.I get the exception later on like AdwordsApi::V201302::CustomerService::ApiException: AdwordsApi::V201302::CustomerService::ApiException AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:''] 3. The thing is, the same code works for mos

Re: Cannot get Customer ID with "read only" access

2012-02-08 Thread hylton
Hi Danial, You know what - it works fine for me now as well? Very strange, but I am happy :) Thanks for your help. Ben On Feb 7, 10:02 am, Danial Klimkin wrote: > Hi Ben, > > I just created a read-only user and used SAS to retrieve account hierarchy > but was not able to reproduce the issue.

Re: Cannot get Customer ID with "read only" access

2012-02-07 Thread Danial Klimkin
Hi Ben, I just created a read-only user and used SAS to retrieve account hierarchy but was not able to reproduce the issue. I got all the IDs back as expected. Is this the production or sandbox environment? Can you please send us the full XML request and response via email? -Danial, AdWords

Re: Cannot get Customer ID with "read only" access

2012-02-03 Thread Ben Vincent
Hi Danial, With the v13 lib I am using AccountService (https://adwords.google.com/ api/adwords/v13/AccountService) With v201109 I am using ServicedAccountGraph Thanks for help. Kind regards, Ben On Feb 3, 10:19 am, Danial Klimkin wrote: > Hello Ben, > > How do you retrieve the client custome

Re: Cannot get Customer ID with "read only" access

2012-02-03 Thread Danial Klimkin
Hello Ben, How do you retrieve the client customer ID? Is this ServicedAccountService or InfoService? -Danial, AdWords API Team. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/ad

Cannot get Customer ID with "read only" access

2012-02-01 Thread b...@trafficsmart.co.uk
Hi, I am trying to re-write my old v13 Reporting service using the new v201109 API. (in .Net c#) I have managed to get nearly everything working and was pleased that I can now run reports for clients Adwords accounts without needing full access, just "read-only" access. The problem is you need a