Empty campaign results for test accounts

80 views
Skip to first unread message

Stanislau Kanashuk

unread,
Feb 12, 2024, 2:54:13 AM2/12/24
to Google Ads API and AdWords API Forum
Hi,

I get an empty response if I make a request to get campaigns data using segments.date.

This is the body of my request: 
{
"query":"SELECT campaign.name, campaign.status, campaign.advertising_channel_type, campaign.labels, campaign.payment_mode, campaign_budget.amount_micros, campaign.start_date, metrics.average_cost, metrics.average_cpc, metrics.average_cpe, metrics.average_cpm, metrics.clicks, metrics.conversions, metrics.impressions, segments.date FROM campaign WHERE segments.date BETWEEN '2024-02-10' AND '2024-02-28' ORDER BY segments.date, campaign.name",
}

This my response: {
"fieldMask": "campaign.name,campaign.status,campaign.advertisingChannelType,campaign.labels,campaign.paymentMode,campaignBudget.amountMicros,campaign.startDate,metrics.averageCost,metrics.averageCpc,metrics.averageCpe,metrics.averageCpm,metrics.clicks,metrics.conversions,metrics.impressions,segments.date"
}

Google Ads API Forum Advisor

unread,
Feb 12, 2024, 7:41:59 AM2/12/24
to s.kan...@golance.com, adwor...@googlegroups.com
Hi,

Thank you for contacting the Google Ads API support team.

Based on the information provided, it appears that the request you made for campaign data between February 10th and February 28th returned an empty response. It's possible that there may be no data available for this specific date range. I would suggest you to try with a different date range to retrieve campaign data to see if data is available for those periods.

If you are still facing the issue, then please provide us with the complete API logs (request and response with request-id and request header ​​​​) and the uncropped UI screenshot.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag. 

Please feel free to get back to us if you need any further assistance or have any questions.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rz1EW:ref"

Thanks,
 
Google Logo Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages