skip to Main Content

Using the information from this documentation to generate iframe of the ad preview (in Facebook Graph API),

According to the documentation, we need to use the following URL

https://graph.facebook.com/v2.8/{adgroup-id}/previews/ad_format=

Not able to understand how to pass in the ad_format. It is compulsory to pass this parameter.

2

Answers


  1. GET parameters are passed like:

    https://graph.facebook.com/v2.8/{adgroup-id}/previews/?ad_format=DESKTOP_FEED_STANDARD
    
    Login or Signup to reply.
  2. This question is old. But in order to run a preview you need to pass two parameters:

    1. ad_format
      There are various types of ad_formats: You generally use them according to your specific use. For basic mobile and desktop testing
      DESKTOP_FEED_STANDARD, MOBILE_FEED_BASIC, MOBILE_FEED_STANDARD, MOBILE_FULLWIDTH will work fine
    2. access_token

    So your URL will be of the format :

    https://graph.facebook.com/v4.0/AD_ID/previews?access_token=ACCESS_TOKEN&ad_format=DESKTOP_FEED_STANDARD

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search