Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAds never returns video_id field #273

Open
mrowles opened this issue Feb 1, 2024 · 0 comments
Open

getAds never returns video_id field #273

mrowles opened this issue Feb 1, 2024 · 0 comments

Comments

@mrowles
Copy link

mrowles commented Feb 1, 2024

Which SDK version are you using?

v18.0

What's the issue?

The getAds never returns the video_id field, even when requested for video ads which definitely have video creative.

Steps/Sample code to reproduce the issue

    FacebookAdsApi.init(accessToken);
    const adAccount = new AdAccount(`act_${adAccountId}`);
    const ads = await adAccount.getAds([
     ...
    ]);
    const adCreatives = await Promise.all(
      ads.map((ad) => ad.getAdCreative([
        'video_id'
      ])
    )
    const adVideos = await adAccount.getAdvideos([
      'id'
    ])

Observed Results:

  1. video_id just simply is not returned
  2. the asset_feed_spec returns back an array of a small amount of video information, but none of the id's match the id's returned in the getAdVideos endpoint.

Expected Results:

  1. the video_id is returned
  2. the ids in getAdVideos match the getAdCreative->asset_feed_spec->video ids.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant