Discrepancy between API and UI for bidding_strategy

55 views
Skip to first unread message

Vidak Kazic

unread,
May 19, 2021, 6:00:40 AM5/19/21
to AdWords API and Google Ads API Forum
When I query Google Ads API (v7) for bidding_strategy, either for multiple campaigns or specific campaign, I get empty (unspecified) data in response, while I see the data in the UI normally. I have built the query using the query builder and am pretty sure it's correct, as it's very simple.

Sample query (customer_id and campaign_id redacted):
"SELECT bidding_strategy.type, bidding_strategy.name, bidding_strategy.status, bidding_strategy.resource_name, bidding_strategy.target_roas.target_roas FROM campaign WHERE campaign.resource_name = 'customers/<CUSTOMER_ID>/campaigns/<CAMPAIGN_ID>'"

Response:
In [41]: c.bidding_strategy.type_
Out[41]: <BiddingStrategyType.UNSPECIFIED: 0>

Out[42]: ''

In [43]: c.bidding_strategy.target_roas.target_roas
Out[43]: 0.0

UI data for the same campaign:
Screenshot 2021-05-19 at 11.54.58.pngScreenshot 2021-05-19 at 11.57.55.png

Thanks in advance,
Vidak

Vidak Kazic

unread,
May 19, 2021, 11:33:22 AM5/19/21
to AdWords API and Google Ads API Forum
Additional info - I just successfully updated a shopping campaign through the Google Ads API to switch to tROAS with specified value, and I saw the campaign Target ROAS change in the Google Ads UI. However, when I queried the Google Ads API for the same campaign, I again get "Unspecified" bidding type and 0.0 tROAS value. 

Google Ads API Forum Advisor Prod

unread,
May 19, 2021, 12:07:00 PM5/19/21
to adwor...@googlegroups.com
Hello,

Thanks for reaching out. Can you please reply to us privately with your complete request and response logs? As the message will be private, you won't need to redact any of the IDs, which our team can use to troubleshoot. 

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HC2JJ:ref

Vidak Kazic

unread,
May 19, 2021, 12:41:54 PM5/19/21
to AdWords API and Google Ads API Forum
Hello Matt, 

I just found a solution - instead of using `bidding_strategy.type`, `bidding_strategy.name` in the query, I just used `campaign.bidding_strategy_type`, `campaign.bidding_strategy`, and got the correct output, so I have what I need.

However, if you'd like to proceed with further investigations, for the sake of debugging the API, if this behaviour is undesired for the campaign resource, I'd be happy to send the request/response logs and investigate further with you!

Cheers,
Vidak

Google Ads API Forum Advisor Prod

unread,
May 20, 2021, 9:30:25 AM5/20/21
to adwor...@googlegroups.com
Hello,

Glad to see that substituting those attributes got the desired results. If you aren't having any other issues, there is no need to send the request and response -- sometimes it can be necessary to get a full picture of the request. 
Reply all
Reply to author
Forward
0 new messages