Hello Google,
Sorry if this is a silly question, but I've read everything I can find in the documentation, and I'm not able to figure this out.
I am trying to use the Adwords API to get the BidLandscape data for a Product Group within a given AdGroup of a shopping campaign. I can view the data that I want in the Adwords website Bid Simulator, so it does exist, but I can't figure out how to pull the same data through the API.
I am working in Python, and I believe using the getAdGroupBidLandscape() is the way to approach this:
>>> data_service = client.GetService('DataService')
>>> selector = {
'fields': ['AdGroupId', 'CampaignId', 'Bid', 'StartDate', 'EndDate'],
'predicates': [{'field': 'AdGroupId', 'operator': 'IN', 'values': [adgroup_id]}]
}
>>> results = data_service.getAdGroupBidLandscape(selector)
>>> print(results)
(AdGroupBidLandscapePage){
totalNumEntries = 0
Page.Type = "AdGroupBidLandscapePage"
}
The output is zero entries for the adgroups I am interested in. Through the website, I am able to view the Bid Simulations for these Adgroups, by first selecting the
AdGroup, and THEN clicking on a Product group within it. Then the data I want is accessed through the little graph link under Max CPC, in the row called "All products"... I found this by following the instructions on the Adwords help page: Use the bid simulator with Shopping campaigns. Is it possible to pull this same data through the API?
Thank you in advance for your help with this!
Jes