googleads / googleads-dfa-reporting-samples

Samples for the DoubleClick for Advertisers Reporting and Trafficking API
Apache License 2.0
106 stars 173 forks source link

Unable to insert all flight bodies in a package #100

Open rrishabh27 opened 10 months ago

rrishabh27 commented 10 months ago

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