How can I get budget, campaign type and bid strategy type of campaign ?

158 views
Skip to first unread message

Khushal Nayani

unread,
Sep 17, 2023, 7:28:30 AM9/17/23
to Google Ads API and AdWords API Forum
Hello there, I am using google ads php client library for fetching campaign details. I want to fetch some of these following details with campaign query. Details are
1. Budget
2. Campaign type
3. Bid Strategy Type
4. Status
5. Target CPA

My current query is
SELECT campaign.id, campaign.name, campaign.status, metrics.impressions, metrics.clicks, metrics.conversions, metrics.ctr, metrics.average_cpc, metrics.cost_micros, campaign.bidding_strategy_type FROM campaign ORDER BY campaign.id;

How can I fetch above mentioned details with these query and where can I find exact documentation related to it.

Google Ads API Forum Advisor

unread,
Sep 20, 2023, 7:31:13 AM9/20/23
to khusha...@gmail.com, adwor...@googlegroups.com
Hi,

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

After reviewing your concern, I understand that you are using Google Ads PHP client library and want to fetch Budget, Campaign type, Bid strategy type, Status, Target CPA details with the campaign query. Also, you need documentation for these fields.

You can use the below query:
  • SELECT campaign.campaign_budget, campaign.status, campaign.advertising_channel_type, campaign.bidding_strategy_type, campaign.target_cpa.target_cpa_micros FROM campaign;
Also, please find the documentation details for the requested resource fields: You can get back to us if you still have any issues/concerns related to the Google Ads API.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2omPh5:ref"

Thanks,
 
Google Logo Google Ads API Team


Message has been deleted

Google Ads API Forum Advisor

unread,
Sep 22, 2023, 10:21:37 AM9/22/23
to adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

campaign.bidding_strategy_type gives the type of bidding strategy. A bidding strategy can be created by setting either the bidding scheme to create a standard bidding strategy or the bidding_strategy field to create a portfolio bidding strategy. This field is read-only. I would recommend you to check the documentation on bidding_strategy_type resource field.

Kindly note that the Google Ads API mirrors the Google Ads UI. We would like to specify first the following when comparing the value of the Google Ads UI and Google Ads API.
  • The segments and fields of the API and UI should be the same
  • Comparing the API and UI at the same level as much as possible
If the issue still persists, please provide us with the complete API logs (request and response with request-id and request header) generated at your end and the entire UI screenshot to better assist you.

You can refer to the guide on PHP to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
Reply all
Reply to author
Forward
0 new messages