RE: Input in composite field

4 views
Skip to first unread message

Google Ads API Forum Advisor Prod

unread,
Aug 27, 2020, 4:55:02 PM8/27/20
to kasper...@mintmedia.as, adwor...@googlegroups.com
Hi Kasper,

The error is a bit misleading. This thread talks about the error a bit. https://stackoverflow.com/questions/18376190/attributeerror-assignment-not-allowed-to-composite-field-task-in-protocol-mes

The issue is that the field proposed_start_date_time is a StringValue, so you cannot directly assign to it.

https://github.com/googleads/google-ads-python/blob/master/examples/basic_operations/add_campaigns.py#L86 for an example where the startdate of a campaign is set. The concept is similar on how to set the proposed_start_date_time field.

Cheers
Anash

ref:_00D1U1174p._5004Q23umGB:ref
Reply all
Reply to author
Forward
0 new messages