Bidding Strategy Field is missing

260 views
Skip to first unread message

Iván López

unread,
Feb 7, 2022, 11:45:35 AM2/7/22
to Google Ads API and AdWords API Forum
Hello,
This is a query Im trying to do in my request trough Google Ads API (V8). Everything is going ok, but the field "bidding_strategy.type" is not coming in the response attributes. I also tried to access "bidding_strategy.id" and "bidding_strategy.name", but the result is the same, nothing.

query = """
SELECT
campaign.id,
ad_group.id,
ad_group_criterion.criterion_id,
metrics.conversions,
metrics.value_per_conversion,
metrics.conversions_value,
metrics.cost_micros,
metrics.clicks,
ad_group_criterion.keyword.text,
ad_group_criterion.cpc_bid_micros,
ad_group_criterion.keyword.match_type,
bidding_strategy.type,
bidding_strategy. id,
bidding_strategy.name,
ad_group_criterion.position_estimates.first_page_cpc_micros
FROM keyword_view WHERE campaign.advertising_channel_type = 'SEARCH'
AND ad_group.status = 'ENABLED'
AND metrics.conversions > 0
AND ad_group_criterion.status = 'ENABLED'
AND ad_group_criterion.negative = 'false'
AND campaign.status = 'ENABLED'
AND ad_group_criterion.system_serving_status = 'ELIGIBLE'
AND campaign.name NOT LIKE 'brand'
AND campaign.name NOT LIKE 'BRAND'
AND campaign.name NOT LIKE 'marca'
AND campaign.name NOT LIKE 'MARCA'
AND segments.date BETWEEN '{start_date}' AND '{end_date}'""".format(
start_date=from_date,
end_date=end_date)

Here is an example of the results in this query:
 campaign {
    resource_name: "customers/7910637076/campaigns/100925979"
    id: 100925979
  }
  ad_group {
    resource_name: "customers/7910637076/adGroups/4243192059"
    id: 4243192059
  }
  metrics {
    clicks: 2253
    value_per_conversion: 78.24969001993682
    conversions_value: 31843.68693971
    conversions: 406.949688
    cost_micros: 22610000
  }
  ad_group_criterion {
    resource_name: "customers/7910637076/adGroupCriteria/4243192059~36756703161"
    position_estimates {
      first_page_cpc_micros: 10000
    }
    keyword {
      match_type: EXACT
      text: "bodeboca"
    }
    criterion_id: 36756703161
    cpc_bid_micros: 10000
  }
  keyword_view {
    resource_name: "customers/7910637076/keywordViews/4243192059~36756703161"
  }
}

The documentation from keyword_view (https://developers.google.com/google-ads/api/fields/v7/keyword_view) says that this is the way. And this field is returned when I ask for the same request through Adwords API, but we need to migrate it to Google Ads API since you are gonna to deprecate it.

Some help, please :) 

Iván López

unread,
Feb 7, 2022, 11:47:50 AM2/7/22
to Google Ads API and AdWords API Forum
Imagen 7-2-22 a las 17.47.jpg

Google Ads API Forum Advisor

unread,
Feb 8, 2022, 2:19:49 AM2/8/22
to ivan....@tidart.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forum.

I have tried to retrieve the bidding strategy type using the campaign.bidding_strategy_type field with Keyword_view resource, and it returned the type of bidding strategy in my response. You may also try to use campaign.bidding_strategy_type in your select clause of your keyword_view query. Let us know if this helps.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W51z5:ref

Iván López

unread,
Feb 8, 2022, 3:31:48 AM2/8/22
to Google Ads API and AdWords API Forum
Hello!

Thank you very much for the info because it works this way. But, only for my understanding, why is this field not accesible from bidding_strategy.type, since bidding strategy is an attributed resource of keyword_view, as for example, ad_group is? If i can access ad_group.status (for example) from keyword_view, I should be able to access bidding_strategy.type. And the query does not throw an error, this field simply does not appear in your response.

Thank you,

Iván

Google Ads API Forum Advisor

unread,
Feb 8, 2022, 1:27:07 PM2/8/22
to ivan....@tidart.com, adwor...@googlegroups.com
Hi Ivan,

The Bidding Strategy resource should be an available attributed resource in your query. Can you please provide us with your complete request and response so that we can have a look?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W51z5:ref

Marc Kamphuis

unread,
Mar 15, 2022, 3:14:06 PM3/15/22
to Google Ads API and AdWords API Forum
Is this solved yet?

Using the following query:

SELECT ad_group_criterion.keyword.text, bidding_strategy.type FROM keyword_view

returns no   bidding_strategy.type

Result row:

{"adGroupCriterion":{"resourceName":"customers/3494982994/adGroupCriteria/252561751~11616591","keyword":{"text":"baby"}},"keywordView":{"resourceName":"customers/3494982994/keywordViews/252561751~11616591"}}

Op dinsdag 8 februari 2022 om 19:27:07 UTC+1 schreef adsapi:

Google Ads API Forum Advisor

unread,
Mar 16, 2022, 11:03:04 AM3/16/22
to in...@73orange.nl, adwor...@googlegroups.com

Hi Marc,

Thanks for commenting on this thread.

I can see that some of your campaigns have ​​bidding strategy type ​​target_spend. This is a standard that is embedded into the campaign. This is the reason why you should use the campaign.bidding_strategy_type field with the Keyword_view resource. Note that you may retrieve the bidding strategy type using the bidding_strategy.type field if you have created a portfolio bidding strategy via BiddingStrategy service where you use an existing BiddingStrategy. For the standard bidding strategies, we do not set the bidding_strategy field.

Hope this helps. Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W51z5:ref

Ngon Nguyen

unread,
Mar 17, 2022, 8:18:47 PM3/17/22
to Marc Kamphuis, Google Ads API and AdWords API Forum
Chào mừng bạn đến với bảng nhớ tạm của Gboard, bất kỳ văn bản nào bạn sao chép sẽ được lưu tại đây.Sử dụng biểu tượng chỉnh sửa để ghim, thêm hoặc xóa đoạn.Nhấn vào một đoạn để dán vào hộp văn bản.Chạm và giữ một đoạn để ghim đoạn đó. Các đoạn đã bỏ ghim sẽ bị xóa sau 1 giờ.

Vào 2:14, Th 4, 16 thg 3, 2022 Marc Kamphuis <in...@73orange.nl> đã viết:
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e163f973-3956-4bc6-9202-08bb428e5578n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages