Hi Samarth,
Thank you for reaching out to the Google Ads API support team.
Based on the provided logs, I understand that campaign_budget and customer report returns the performance data of youtube promotion campaigns but the campaign report doesn't return the data. And also you mentioned that in the campaign budget report, you don't get the campaign name, channel type, status anything for such campaigns.
Could you please confirm whether you are able to see the youtube campaigns in the Google Ads UI? If yes, please share the name of the youtube promotion campaigns you are trying to retrieve from the campaign budget report along with the uncropped UI screenshot to help us investigate the issue further.
You can send the details via Reply privately to the author option, or direct private reply to this email.
Hi,
Just to clarify, the Google Ads API allows you to fetch the same data that is available in the Google Ads UI. Since you mentioned those campaigns you cannot see in the UI. As a result, you would not be able to fetch this data through the Google Ads API either, since the API can only pull data that is visible in the UI.
I hope it helps. If you have any further questions related to the Google Ads API, you can create a new case and reach out to us through the googleadsa...@google.com
From the provided screenshot, you can retrieve the YouTube video performance data for the campaign 'Youtube Promotion - 2024-11-13 - 33994535' by querying the campaign resource in the Google Ads API for the specified date range of November 1st to November 30th. You can use the following query:
SELECT metrics.clicks, campaign.name, campaign.id, campaign.status, campaign.advertising_channel_type, metrics.all_conversions, metrics.conversions, metrics.impressions, metrics.cost_micros, segments.date FROM campaign WHERE segments.date BETWEEN '2024-11-01' AND '2024-11-30'
You can use the search or searchStream methods in making the API calls while retrieving the data. Additionally, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API.