itheenigma commited on
Commit
0dda556
·
1 Parent(s): 2b88c4c

changed meta country code for UK from GB

Browse files
input_data/combined_mcpc_data.csv.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9c1602beb8335ccc472d10fa113713856f206276f29cc70e554ef4f930bbec59
3
- size 5997998
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af3018e7f3c53680d72977ca14083e1ba77c49dcd85962181a9443b9a4ac03e2
3
+ size 5997947
marginal_cpc_calculator.py CHANGED
@@ -131,9 +131,9 @@ def calculate_max_spend(df,min_date,max_date,
131
  # # so to get the max cost for this tactic or strategy,
132
  if pprint==True:
133
  output_msg.append(f"Max spend threshold is: {max_spend_threshold}")
134
- output_msg.append(f"For this spend, marginal_cpc={marginal_cpc}, cumulative_clicks={cum_clicks}, cumulative_cpc={cum_cpc}, cumulative_revenue={cum_revenue}")
135
  output_msg.append(f"Amount spent during this period is: {highest_amount_spent}")
136
- output_msg.append(f"For this spend, marginal_cpc={marginal_cpc_HAS}, cumulative_clicks={cum_clicks_HAS}, cumulative_cpc={cum_cpc_HAS}, cumulative_revenue={cum_revenue_HAS}")
137
  output_msg.append(f"Total amount spent in negative ROAS={total_negative_roas_spend}")
138
  # print (output_msg)
139
  try:
 
131
  # # so to get the max cost for this tactic or strategy,
132
  if pprint==True:
133
  output_msg.append(f"Max spend threshold is: {max_spend_threshold}")
134
+ output_msg.append(f"For this spend, marginal_cpc={marginal_cpc}, cumulative_clicks={cum_clicks}, Average_cpc={cum_cpc}, cumulative_revenue={cum_revenue}")
135
  output_msg.append(f"Amount spent during this period is: {highest_amount_spent}")
136
+ output_msg.append(f"For this spend, marginal_cpc={marginal_cpc_HAS}, cumulative_clicks={cum_clicks_HAS}, Average_cpc={cum_cpc_HAS}, cumulative_revenue={cum_revenue_HAS}")
137
  output_msg.append(f"Total amount spent in negative ROAS={total_negative_roas_spend}")
138
  # print (output_msg)
139
  try: