Answer the question
In order to leave comments, you need to log in
How to create hidden posts using vk ads API?
Good afternoon!
Can you tell me how to create hidden community sponsored posts through the ads API?
1) To create an ad, I use the ads.createAds method
2) I select ad_format = 9
3) Next, I create a post using the wall.postAdsStealth method
Question: how to pass the ID of the created post (which is returned by the wall.postAdsStealth method) to createAds?
Answer the question
In order to leave comments, you need to log in
As the link_url parameter of the createAds method, a link to the advertised object (in this case, a hidden entry) is passed.
The link (as with any post) is formed according to the template: https://vk.com/wall-XXXXXX_YYY
where XXXXXX is the group ID
YYY is the post ID (hidden post ID returned by wall.postAdsStealth)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question