Bid_strategy_type enum incompatibility

327 views
Skip to first unread message

Ido Karnon

unread,
Sep 3, 2020, 8:08:16 AM9/3/20
to AdWords API and Google Ads API Forum
Hi,

I'm running this query:

SELECT segments.date
, segments.day_of_week
, segments.ad_network_type
, campaign.advertising_channel_type
, campaign.advertising_channel_sub_type
, customer.descriptive_name
, campaign.status
, ad_group.status
, campaign.bidding_strategy_type
, ad_group.cpc_bid_micros
, ad_group.cpm_bid_micros
, ad_group.target_cpa_micros
, metrics.cost_micros
, metrics.impressions
, metrics.clicks
, metrics.conversions
, ad_group_ad.status
, ad_group.cpv_bid_micros
, metrics.view_through_conversions
, metrics.cross_device_conversions 
FROM video 
WHERE segments.date BETWEEN '2020-09-02' and '2020-09-02' 

I have a problem with the result I getting for campaign.bidding_strategy_type.
The ENUM values don't match the ones I see here:

For a campaign with a 'target cpa' bidding strategy type the query returns 6 (which according to the documentation is 'MANUAL_CPV') and for a campaign with a manual cpv bidding strategy type the query returns 13 (which according to the documentation is 'TARGET_IMPRESSION_SHARE').

Either the result I get is incorrect or the mapping between number and bidding strategy type is not right.
Can someone assist?

Thanks,
Ido

            

Ido Karnon

unread,
Sep 3, 2020, 8:58:30 AM9/3/20
to AdWords API and Google Ads API Forum
This is what I got so far from comparing the bidding strategy in the UI to the bidding strategy number I get for the same campaign through the google ads api:
0: "UNSPECIFIED",
1: "UNKNOWN",
2: "ENHANCED_CPC",
3: "MANUAL_CPC",
6: "TARGET_CPA",
13: "MANUAL_CPV",
14: "TARGET_CPM",
15: "TARGET_IMPRESSION_SHARE",

Can someone confirm this is true and fill in the missing ones?

Google Ads API Forum Advisor Prod

unread,
Sep 3, 2020, 3:50:52 PM9/3/20
to adwor...@googlegroups.com
Hi Ido,

Thanks for reaching out. I will check internally within the team to see if there is documentation that will map these values out between the UI and the API. We will reach out to you once we have an update.

Regards,
Google Logo
Danica
Google Ads API Team
 


ref:_00D1U1174p._5004Q23wunK:ref

Ido Karnon

unread,
Sep 3, 2020, 4:02:43 PM9/3/20
to adsapifor...@gmail.com, adwor...@googlegroups.com
Hi,

This is the documentation I found:

But it appears to be inconsistent with what I get from the API.

Thanks,
Ido 

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/M2Ur-OTK1xM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/f0PAx000000000000000000000000000000000000000000000QG3LRX00KWmhETmFSyCxn-BcBkt9ng%40sfdc.net.

Ido Karnon

unread,
Sep 10, 2020, 4:35:31 AM9/10/20
to AdWords API and Google Ads API Forum
Hi again,

Any news here?

Google Ads API Forum Advisor Prod

unread,
Sep 11, 2020, 9:16:39 AM9/11/20
to adwor...@googlegroups.com
Hi Ido,

Looks like you may have missed my response on September 8th, so I am reposting here:

Can you please provide a specific campaign and customer ID that highlights the issue you are facing? Our team needs this in order to further confirm if the mapping is correct. Kindly provide these via the Reply privately to author option.

Ido Karnon

unread,
Sep 13, 2020, 4:59:08 AM9/13/20
to AdWords API and Google Ads API Forum

I can't click o reply to author.
It's grayed out.
When I hover over it it says:
"you do not have permissions to reply to author in this group".
How can I get these permissions?

Jasim Bangla

unread,
Sep 13, 2020, 12:52:26 PM9/13/20
to id...@wix.com, AdWords API and Google Ads API Forum
--


--


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~


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 "AdWords API and Google Ads 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/f0c79447-1885-4c52-a7dd-97c15bf65931n%40googlegroups.com.


Mat

unread,
Sep 14, 2020, 6:10:40 AM9/14/20
to AdWords API and Google Ads API Forum
Hi Ido,

I don't know which library you're using, but according to the Python Proto, there are two different values: "index" and "number", where "index" seems to relate to the order in witch those enumes are listed in the documentation while "number" seems to be the value you get while fetching "campaign.bidding_strategy_type":


So I'd recommend to use the built-in client library methods to get the correct enum currently related to the number, as in these examples:
https://developers.google.com/google-ads/api/docs/samples/get-account-changes?hl=en

Regards
Mat

Google Ads API Forum Advisor Prod

unread,
Sep 14, 2020, 3:23:54 PM9/14/20
to m...@keyword-experte.de, adwor...@googlegroups.com
Hi Ido,

As an alternative to the Reply privately to author option, you can send the requested details over to our support alias: googleadsa...@google.com. Additionally, you can try Mat's suggestions to see if they provide you with any insight.

Ido Karnon

unread,
Sep 15, 2020, 4:06:25 AM9/15/20
to adsapifor...@gmail.com, m...@keyword-experte.de, adwor...@googlegroups.com
Mat's suggestion was great, didn't know that was an option.
Thanks for your help!


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/M2Ur-OTK1xM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/UYt0d000000000000000000000000000000000000000000000QGNXV100cw_TdeE0R5iXt7oghOL6YA%40sfdc.net.
Reply all
Reply to author
Forward
0 new messages