get recommend budget and click estimate

86 views
Skip to first unread message

Vijaysinh Parmar

unread,
Aug 11, 2024, 2:34:49 PM8/11/24
to Google Ads API and AdWords API Forum
Hi,

I wanted to get the recommended budget and weekly cost, avg_cpc, and weekly clicks as shown in the screenshot I've attached, could you please help me get it via Google Ads API? 

is it available via API?
Search-campaign-adwords-acc-Google-Ads.png

Google Ads API Forum Advisor

unread,
Aug 12, 2024, 7:04:35 AM8/12/24
to er.parm...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

You can use the below query to fetch the recommended (blue highlighted) budget:
SELECT campaign_budget.recommended_budget_estimated_change_weekly_clicks, 
campaign_budget.recommended_budget_estimated_change_weekly_cost_micros FROM campaign_budget
I would recommend you refer to this guide on CampaignBudget section of the developer site for more information. You may also check this guide on the campaign_budget report, which has the fields/metrics/segments related to the campaign budget. With regard to fetching the other campaign budgets apart from the one that is recommended, I will raise a request for this feature to become available in the Google Ads API. However, I cannot provide a scheduled timeline for its availability in the API. So, I would suggest you to follow our Release Notes and Blog Post for future updates. I hope this clarifies.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vEosa:ref" (ADR-00262809)

Thanks,
 
Google Logo Google Ads API Team


Vijaysinh Parmar

unread,
Aug 13, 2024, 11:36:16 AM8/13/24
to Google Ads API Forum Advisor, adwor...@googlegroups.com
I tried the query which you gave for the new campaign but I am not getting any data and it's just giving blank array in response,

{
    "query": "SELECT campaign.id,campaign.name,campaign_budget.recommended_budget_estimated_change_weekly_clicks, campaign_budget.recommended_budget_estimated_change_weekly_cost_micros
FROM campaign_budget WHERE campaign.id IN (281496551055289)"
}

Getting response as [];

campaignId=281496551055289 
AdsAccountId:1255040287

I was thinking that I would get the recommended budget as per this screenshot.

image.png

Could you please confirm what am I doing something wrong?

Google Ads API Forum Advisor

unread,
Aug 13, 2024, 2:57:47 PM8/13/24
to er.parm...@gmail.com, adwor...@googlegroups.com

Hi,

We could not find the campaign with the ID '281496551055289' in the account '1255040287', so it seems that the campaign ID is not a valid ID. So kindly provide the respective 'campaign name' to check from our end. 

Vijaysinh Parmar

unread,
Aug 14, 2024, 12:08:40 AM8/14/24
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Please find a screenshot of the account. 

I tried with the campaign name as well but I am not getting it, I have taken it from the URL, 

image.png


Google Ads API Forum Advisor

unread,
Aug 14, 2024, 5:26:07 AM8/14/24
to er.parm...@gmail.com, adwor...@googlegroups.com
Hi,

Upon checking the provided screenshot, it is observed that you have not yet published the campaign that is the reason you're not getting any data for the campaign name "Search-108". Once you publish the campaign, you'll get the data. I hope this helps!

Vijaysinh Parmar

unread,
Aug 14, 2024, 5:30:42 AM8/14/24
to Google Ads API Forum Advisor, adwor...@googlegroups.com
But this budget recommendation is required before publishing the campaign, as the google ads UI showing in the screenshot, the same data I am looking for.

In google ads, UI data is visible, without publishing campaign.

Google Ads API Forum Advisor

unread,
Aug 14, 2024, 9:13:47 AM8/14/24
to er.parm...@gmail.com, adwor...@googlegroups.com
Hi,

I would like to inform you that you can indeed see certain data in Google Ads without publishing a campaign. As informed earlier, once you publish the campaign, you'll get the data

I hope this helps! Kindly get back to us if you have any further queries.

Vijaysinh Parmar

unread,
Aug 14, 2024, 9:35:15 AM8/14/24
to Google Ads API Forum Advisor, adwor...@googlegroups.com
I have published a campaign but still it's not giving data.

Could you please check again?

Getting below response,

[
    {
        "results": [
            {
                "campaign": {
                    "resourceName": "customers/1255040287/campaigns/21589227040",
                    "name": "Search-108",
                    "id": "21589227040"
                },
                "campaignBudget": {
                    "resourceName": "customers/1255040287/campaignBudgets/13836428535"
                }
            }
        ],
        "fieldMask": "campaign.id,campaign.name,campaignBudget.recommendedBudgetEstimatedChangeWeeklyClicks,campaignBudget.recommendedBudgetEstimatedChangeWeeklyCostMicros",
        "requestId": "dqLWr4IwuVkB8dSH8XrY6Q",
        "queryResourceConsumption": "346"
    }
]

Google Ads API Forum Advisor

unread,
Aug 14, 2024, 1:51:39 PM8/14/24
to er.parm...@gmail.com, adwor...@googlegroups.com

Hi,

We verified the campaign ‘21589227040’ and found that there is no recommended budget for this campaign, so due to this, you are getting an empty response. You can verify the same thing through the below query.

SELECT campaign.name, campaign.id, 
 campaign_budget.recommended_budget_estimated_change_weekly_clicks,
 campaign_budget.recommended_budget_estimated_change_weekly_cost_micros,
 campaign_budget.has_recommended_budget 
FROM campaign_budget WHERE campaign.id = 21589227040

You can use this field to pull the recommended_budget_amount_micros field to get the recommended budget if it is available.

I hope it helps. 

Reply all
Reply to author
Forward
0 new messages