Skip to content

Commit

Permalink
Add new objective parameter to create campaign request
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeMucientes committed Sep 26, 2024
1 parent 9a51a9d commit 6a3c656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ data class BlazeCampaignCreationRequest(
val mainImage: MediaModel,
val targetingParameters: BlazeTargetingParameters?,
val timeZoneId: String = TimeZone.getDefault().id,
val isEndlessCampaign: Boolean
val isEndlessCampaign: Boolean,
val objectiveId: String
)

data class BlazeCampaignCreationRequestBudget(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ class BlazeCreationRestClient @Inject constructor(
"page_topics" to it.topics
).filterNotNull()
},
"is_evergreen" to request.isEndlessCampaign
"is_evergreen" to request.isEndlessCampaign,
"objective" to request.objectiveId
).filterNotNull()

val response = wpComNetwork.executePostGsonRequest(
Expand Down

0 comments on commit 6a3c656

Please sign in to comment.