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(