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
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, campaign.name FROM campaign ORDER BY 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,
|
||||||
|
||||||