Hello Kevin, Thank you for your reply.
I tried to use the customer ID(https://prnt.sc/rwbfXMfHoat0). However, it gave me following error: Request with ID 'XXXXXXXXXXX' has failed. Google Ads failure details: authorization_error: User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid It says Permission Denied. Permission issue does not show up only if I use Manager ID ( https://prnt.sc/IbYFdyuIAzVe). Can you please explain which ID should I use? It would be great help. Regards, Rukesh On Fri, Apr 1, 2022 at 5:34 PM Google Ads API Forum Advisor <adsapi@forumsupport.google> wrote: > Hi Rukesh, > > > > I'm Kevin from the Google Ads API Team. > > > > Please note that metric reports such as the one you're trying to generate > can only be requested on a client account, not a MCC account. Kindly retry > your request on a client account and see if you're able to retrieve any > data. > > > > Also, I'll remove your initial post as it contains private info which > shouldn't be shared in our forum. Below is a copy of your post without a > link to the document for reference. > > > > *Hello all,* > > > > *I am currently working on shifting an API from Adwords API to Google Ads > API.* > > *I followed the below guidelines* > > *https://github.com/googleads/google-ads-php/tree/main* > <https://github.com/googleads/google-ads-php/tree/main> > > > > *After that, I tried to run the sample example code of 'GetCampaigns.php'.* > > > > *However, I get an empty response.* > > *Below are my request code piece:* > > *$googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();* > > *$query = 'SELECT **campaign.id* <https://campaign.id/>*, **campaign.name* > <https://campaign.name/>* FROM campaign ORDER BY **campaign.id* > <https://campaign.id/>*';* > > *$stream =$googleAdsServiceClient->searchStream($customerId, $query);* > > > > *I logged the $stream from here.* > > *I got following:* > > > > *I could not get the Campaigns.* > > > > *Please help.* > > > > *Regards,* > > *Rukesh* > > > > Regards, > [image: Google Logo] > Kevin Gil > Google Ads API Team > > > ref:_00D1U1174p._5004Q2ZIjHH:ref > -- Kind regards, Rukesh -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/CAMRDibWxiDiB_SRg_QER1-ZsXr%3Dp_y9qNgLpCFasT9wYxA_0KA%40mail.gmail.com.