She's savvy enough to do both. In politics, you have to be seen as likeable: and the target for Sarah Palin's Alaska was a demographic group likely to be favorable to her during as 2012 Presidential run.
And, it didn't hurt that it was *positive* publicity where she controlled the message rather than being hit with set-up questions, lied about, and misquoted.
Nor did it hurt that she was smart enough to arrange to be PAID *FOR* the publicity, rather than expend scarce cash to pay someone else for it.
So she got paid for editorial control for a message presenting her in a favorable life.
Just another day in the life of Our Lady of The Tundra, She of the Immaculate ConventionTM.
Then, why did she praise and endorse Perry FOR GOVERNOR in 2010?
Asked and answered.
Cheers!
Given that her poll numbers with the general public started tanking right after that, I wouldn't be so sure that the publicity was all that positive.