Question: What happened first, Ben and Leslie ending their relationship or Ben becoming Leslie's campaign manager?
About the article "Parks and Recreation", section "Season 4".

Candidate passages:
Though their relationship had become rather serious, Ben and Leslie are forced to break up to avoid a scandal which could derail Leslie's city council candidacy.
Ben understands, giving Leslie a "Knope 2012" button he had made.
He then starts helping Tom run his business Entertainment 720, where he's shocked at how much money Tom spends without getting any revenue.
He also helps Tom charm Joan Callamezzo to try to get her book club to include Leslie's new book, but Joan gets drunk and hits on them.
He and Leslie end up sharing lovelorn looks with each other.
Ben is dragged along to Tom and Donna's "Treat Yo Self", where he treats himself to a Batman costume and a good cry over his breakup with Leslie.
While Leslie attempts to keep him in her life, Ben insists that he needs distance from her since being around Leslie is too difficult for him.
Leslie continually tries to spend time with Ben until, through the help of Ben and Ann, she sees that she has been ignoring what Ben wants and doing only what she wants.
Ben and Leslie meet at the Smallest Park, which is supposed to be their last project together.
Leslie apologizes and tells Ben she'll leave him alone if that's what he wants.
Ben responds that he doesn't want that but he thinks it's for the best.
As Ben starts to leave, Leslie declares that she misses him like crazy and wants to be with him.
After she asks how he feels, Ben kisses Leslie and the relationship is reinstated.
Later, they confess to Chris about their relationship, and he launches an investigation to check for any possible acts of corruption, as Ben is Leslie's superior.
It turns out that in the season three's finale, Ben and Leslie had bribed a maintenance worker to keep quiet about them after the worker witnessed them kissing.
As that was a possible reason for termination, Leslie was ready to take full responsibility only to find that Ben resigned from his job in order to save hers.
Following his termination, Ben takes some time to "explore his interests" which consists of him remaining in his house and attempting various hobbies like making calzones and stop motion films.
His appearance becomes unkempt and after a visit from Chris, he realizes that despite convincing himself otherwise he's unhappy without some sort of direction in his life.
After Leslie's campaign flops at the ice rink, Ann resigns (eagerly) from being Leslie's campaign manager and Leslie asks Ben to run her campaign given his experience with local politics.
Ben takes over the duties of running Leslie's campaign for city council and helps turn the campaign around, making it competitive with Bobby Newport's bid for city office.
Ben manages to secure the endorsement of Pawnee's retiring police chief and improve Leslie likability at a bowling event (despite the spectacle of having punched a man who called Leslie 'a bitch').
In Dave Returns, it is revealed that not only is Ben socially awkward around police officers, but he is afraid of them, saying "I am not afraid of cops.
I have no reason to be.
I never break any laws ever because I'm deathly afraid of cops.
"Towards the end of the campaign, Ben is offered a job working for a congressional campaign in Washington, D.C..
Initially conflicted, as it would mean several months away from Pawnee, Ben is ultimately convinced by Leslie to take the job. 
With Ben's encouragement, Leslie decides to run for city council, and the two end their relationship.
Leslie hires Andy as her assistant.
Patricia Clarkson appears as Ron's first ex-wife, "Tammy One", who uses her power as an IRS employee to trick Ron into thinking he's being audited and temporarily takes complete control over his life.
Tom and Jean-Ralphio's company, Entertainment 720, quickly blows through massive amounts of promotional funding while performing little actual work; the company goes out of business and Tom returns to his old job.
After struggling to move on both personally and professionally, Ben and Leslie get back together, and Ben sacrifices his job to save Leslie from losing hers.
The scandal leads her political advisors to abandon Leslie's campaign, and the Parks Department volunteers to become her new campaign staff.
Ben agrees to be Leslie's campaign manager.
Leslie's ex-boyfriend Dave (Louis C.K.)
reappears and unsuccessfully attempts to win Leslie back.
Leslie's campaign faces myriad setbacks against her main opponent, Bobby Newport (Paul Rudd), and his famous campaign manager Jennifer Barkley (Kathryn Hahn).
Ann and Tom begin an extremely rocky romantic relationship.
April takes on more responsibility in the department, shouldering much of Leslie's usual work.
In the season finale, Jennifer offers Ben a job in Washington, which he reluctantly accepts, and after the race is initially called for Newport, Leslie wins the position in a recount.
It is Election Day in Pawnee and Leslie (Amy Poehler) and Bobby Newport (Paul Rudd) are neck-and-neck in the latest poll.
Tom (Aziz Ansari) is organizing the results party because he had a dream that Ann (Rashida Jones) will get back together with him if she enjoys the party.
Bobby's campaign manager Jennifer Barkley (Kathryn Hahn), impressed with Leslie's campaign, offers Ben (Adam Scott) a job working for a congressional reelection campaign in Washington, D.C., but he will need to leave in two days and be there for six months.
Ben brings it up with Leslie, who is upset by the news since Ben will move away just as their lives return to normal.
Chris (Rob Lowe) has finally emerged from his depression after having sex numerous times with Jennifer, but he is oblivious that the sex is meaningless to her.
At the results party, Jerry (Jim O'Heir) – who did not have time to vote – panics when the first few rounds of results give Bobby a slight lead, worrying that Leslie will lose by one vote.
Leslie and Ben seek advice about Ben's job offer: Ann suggests Leslie asks Ben to stay, and Ron (Nick Offerman) tells Ben to also remain, citing his own love for routine.
Ben reminds him that if Leslie wins, Ron's routine will change since he will become Assistant City Manager.
Leslie later asks Ben to stay and he agrees.
The final results are in and Bobby is declared the winner, but Ben correctly says that Bobby's small margin of victory is low enough to trigger an automatic recount.
Leslie goes missing but Ron finds her in the city council chambers, where she laments letting her friends down after they worked so hard for her.
Ron tells her that he and the parks department joined her campaign because they care about her and her dream, not the reward of winning.
Hearing this, Leslie tells Ben he should accept the job.
The recount eventually comes in and it is official: Leslie has won, to Leslie's overwhelmed jubilation and Jerry's (and Bobby's) relief.
Ben accepts Jennifer's offer and she leaves without saying goodbye to Chris.
Ron turns down the Assistant City Manager position, content with his life; Jean-Ralphio (Ben Schwartz) asks Chris for the job, but he is turned down immediately.
Leslie thanks her friends and supporters with a heartfelt speech; she previously asked Ben about the concession speech that he wrote, but he reveals that he never wrote it.
Later, a drunk Ann gets back together with Tom and even agrees to move in with him, fulfilling his dream.
In a B plot, April (Aubrey Plaza) asks for Andy's (Chris Pratt) help after she accidentally deletes all of the department's files.
When their attempts to recover them fail, they jokingly plan to move away, change their identities, and get new careers, with all of Andy's careers revolving around law enforcement (like his often used alter ego, FBI agent Burt Macklin).
The day is saved when Donna (Retta) reveals that she has a back-up copy of the files because Jerry always accidentally deletes files.
April later suggests that Andy actually join the police department. 
When the government shutdown ends, Ben informs the department that due to the shoestring budget, they will only be on maintenance for the time being.
Ben suspects that Leslie is trying to have Ann convince Chris to distribute more funds to the department and confirms his suspicions when he crashes their date at the same time Leslie crashes it, but Ben decides to let it play out.
While at a gay club, Ben mentions the failure of the Ice Town project, showing that he used to be just as ambitious as Leslie, but Leslie gives him credit for trying.
Ben listens to Leslie's presentation regarding the Pawnee Harvest Festival idea that will allow them to do their jobs properly and bring funds into the department.
When Ben asks what will happen if it doesn't bring in funds, Leslie says they can shut down the department, and Ben allows them to go forth with the festival.
Ben assists Leslie with the festival preparations, and is thoroughly impressed when she gives a flawless presentation despite being stricken with the flu.
When Leslie and Ben try to ask the police force to handle security for the festival, Ben is shown not to have very strong social skills, although in this case it could be attributed to the fact that he doesn't understand Pawnee as well as Leslie.
He and Leslie continue to build a strong friendship over their development of the Harvest Festival, and it is implied he starts to show romantic interest in her when he inquires of the police chief about her relationship with Dave.
He also becomes better friends with Tom, supporting him when he is rejected by a cologne magnate, although Tom does his fair share of ribbing Ben.
While doing the media blitz for the festival, he is continuously asked about his disastrous tenure as mayor of Partridge.
After freezing up at the majority of questions asked, he then goes on a furious tirade at a later interview, prompting businesses to pull their sponsorships at the festival and putting the parks department in jeopardy.
At the last interview at "Pawnee Today", Ben finally stands his ground, stating that everyone does stupid things when they were teenagers and that he has since saved at least five cities from bankruptcy as an auditor.
During the festival itself, a series of catastrophes leads Ben to feel he is cursed and leave the festival, returning later to admit he is not over his past.
Leslie assures him that he is as responsible for the festival's success as she is, and has the local Indian chief Ken Hotate perform a fake ceremony to remove his "curse.
"Following the conclusion of the festival, Chris is installed as interim city manager of Pawnee, and offers Ben a job as assistant city manager, which he eventually accepts.
It is implied that he made the decision to be closer to Leslie and that he and Leslie are attracted to each other, but a new policy of Chris's forbids city employees to date each other and has halted any potential relationship.
But, after being assigned to a road trip that would cause them to be alone, Ben tells Leslie that he likes her.
At the end of the episode, Leslie approaches Ben to hand him receipts and he kisses her.
Since he is staying in Pawnee permanently, Ben decides to move out of the motel where he has been living.
Andy and April offer him a spare room in their house, since their previous roommate moved out and left the house to them.
Although the two have been living by themselves for only a week, the house is a complete mess with no everyday items like plates or utensils available.
Ben decides to teach a reluctant Andy and April how to properly live like adults.
In "The Bubble", Leslie and Ben are officially dating, but they are keeping their relationship a secret due to a no-dating policy at work.
They are enjoying what Leslie calls "the bubble", or the beginning of a relationship when everything is simple and fun.
It is suddenly threatened, however, when Ben has a meeting with Leslie's mother Marlene, who wants Ben to approve the purchase of four new school buses despite a difficult budget season.
Afraid of ruining the bubble, Leslie initially tells Ben she is not related to Marlene.
Right before Ben's meeting, however, Leslie admits Marlene is her mother, making him nervous and causing him to capitulate to all of her demands during the meeting, which makes Marlene consider Ben weak.
Leslie trains Ben for his next meeting with her mother.
He impresses Marlene so much with his tough negotiation skills that she becomes flirtatious with him.
An uncomfortable Ben tells Leslie they should tell her about their relationship, but Leslie does not want to lose the bubble.
Fed up, Ben storms into Marlene's office and tells her that he is dating her daughter and asks her to keep it secret.
Marlene laughs off the situation and tells Leslie that she approves of Ben.
In the season finale "Li'l Sebastian", Leslie and Ben continue their romance, but they have difficulty keeping it a secret.
Ron finds out and warns them that Chris will fire them if he learns about it.
As the city prepares for the memorial service for Li'l Sebastian, Pawnee's beloved celebrity miniature horse, Leslie and Ben are caught making out by a maintenance worker, so they send him home in exchange for his silence.
Unfortunately, the worker had the propane for Li'l Sebastian's memorial flame, which results in later confusion behind the scenes, that Leslie and Ben struggle to fix throughout the night.
Later, although the memorial turned out to be a success, things get even more complicated when Leslie is approached by scouts looking for potential candidates for elected office.
They believe she would be a good candidate for upcoming city council seats, or possibly the mayoral position.
With the expected increased media attention on her personal life, the scouts ask whether Leslie has any secret scandals in her life.
She denies any such scandals exist, thus omitting her secret relationship with Ben, and the scouts promise to contact her about preparing an electoral run. 
"I'm Leslie Knope" is the first episode of the fourth season of the American comedy television series "Parks and Recreation", and the 47th overall episode of the series.
It originally aired on NBC in the United States on September 22, 2011.
In the episode, Leslie Knope (Amy Poehler) faces trouble telling Ben Wyatt (Adam Scott) that she is running for public office, which will cause them to have to end their secret relationship.
Meanwhile, Ron braces himself for the arrival of his first ex-wife, "Tammy I".
Written by Daniel J. Goor and directed by Troy Miller, the episode marks the beginning of Leslie Knope's campaign for public office.
During the episode, Andy Dwyer (Chris Pratt) is given a promotion and becomes Leslie's campaign assistant.
The episode featured the first appearance by guest star Patricia Clarkson as Ron's first ex-wife Tammy, who appeared in a multi-episode arc.
According to Nielsen Media Research, "I'm Leslie Knope" was seen by 4.11 million viewers.