business_profile_location_set required field not present although it it

30 views
Skip to first unread message

KHMob

unread,
Mar 5, 2025, 5:51:09 PM3/5/25
to Google Ads API and AdWords API Forum
I'm having a problem where I'm trying to create an asset_set through the API using Python. 
The code looks like this:

business_profile_location_set = client.get_type("BusinessProfileLocationSet")
business_profile_location_set.http_authorization_token = 'OMITTED'
business_profile_location_set.email_address = 'OMITTED'
location_set.business_profile_location_set.CopyFrom(business_profile_location_set)
asset_set.location_set.CopyFrom(location_set)

The error I get:

errors {
  error_code {
    field_error: REQUIRED
  }
  message: "The required field was not present."
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "location_set"
    }
    field_path_elements {
      field_name: "business_profile_location_set"
    }
  }
}

Although business_profile_location_set clearly is set.

Is there anything to do about this?

Google Ads API Forum Advisor

unread,
Mar 5, 2025, 10:05:31 PM3/5/25
to kas...@mobal.io, adwor...@googlegroups.com
Hi,

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

In order to assist you further, could you please share the complete API logs (requestresponserequest-id and request header) generated on your device while creating the location asset through the Google Ads API. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guide Python to enable logging at your end. You can enable logging via the curl command by using the -i flag for REST interface requests.

You can send the details via Reply privately to the author option, or direct private reply to this email.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-03-06 03:04:43Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH6TD:ref" (ADR-00291758)



Reply all
Reply to author
Forward
0 new messages