googleads/googleads-dfa-reporting-samples

Unable to insert all flight bodies in a package

Opened this issue · 0 comments

I am inserting flight data into packages using the CM360 API. The data comes from a pandas dataframe.
The problem is that the new inserted flight replaces the existing flights. For example, I want to insert 3 flights into a package at once. The first flight will be inserted, then the second one replaces the first one and finally, the third flight replaces the second one.
I am using placementGroups patch() method to achieve this.
Any suggestions or fixes you have for this? I have attached a picture of the code.

get_data_and_insert_cm360