Budget field is not found on the new google ads mapping

40 views
Skip to first unread message

Alin Alex

unread,
Feb 23, 2022, 5:07:32 AM2/23/22
to Google Ads API and AdWords API Forum
I am trying to migrate a script from adwords to ads and the following field is not listed anywhere into the official mapping pages:

Report query in adwords:

report = {
'reportName': 'CAMPAIGN_PERFORMANCE_REPORT',
'dateRangeType': 'LAST_30_DAYS',
'reportType': 'CAMPAIGN_PERFORMANCE_REPORT',
'downloadFormat': 'XML',
'selector': {
'fields': ['Date', 'Device', 'AccountDescriptiveName', 'CampaignName', 'CampaignId',
              'CampaignStatus', 'Labels', 'Amount', 'AveragePosition',
              'SearchImpressionShare', 'Impressions', 'Clicks', 'Cost'],
'predicates': {
   'field': 'CampaignStatus',
   'operator': 'IN',
   'values': ['ENABLED', 'PAUSED']}}}

And after that I am parsing the xml and I use the 'budget' key that in ads is not to be found:

elem.get('budget')
ls -la
Can you direct me to the exact match from googleads? 

Google Ads API Forum Advisor

unread,
Feb 23, 2022, 12:31:45 PM2/23/22
to alinal...@gmail.com, adwor...@googlegroups.com

Hi,

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

With regards to your concern, you can use query migration tools to migrating query from AWQL to GAQL.You can use campaign.budget field to get the budget via campaign report in the Google Ads API. Let me know if you have any question.

Thanks,

Google Logo
Nirmita
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2WyIAH:ref

Alin Alex

unread,
Feb 28, 2022, 6:10:08 PM2/28/22
to Google Ads API and AdWords API Forum
Thank you, it worked!
Reply all
Reply to author
Forward
0 new messages