Skip to content

Commit

Permalink
fix: dont include creative set id
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger committed Sep 27, 2023
1 parent c92e17b commit 88afd6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/form/fragmentUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export function createAdSetFromFragment(
campaignId,
ads: ads.map((ad) => ({
creativeId: ad.creative.id,
creativeSetId: data.id,
})),
price: ads[0].price,
bannedKeywords: data.bannedKeywords,
Expand Down
2 changes: 1 addition & 1 deletion src/user/library/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function editCampaignValues(

const billingType = (_.head(campaign.adSets)?.billingType ??
"cpm") as Billing;
const rawPrice = BigNumber(_.head(campaign.adSets)?.price ?? "0.1");
const rawPrice = BigNumber(_.head(campaign.adSets)?.price ?? ".006");
const price = billingType === "cpm" ? rawPrice.multipliedBy(1000) : rawPrice;

return {
Expand Down

0 comments on commit 88afd6b

Please sign in to comment.