1.1.1 • Published 6 years ago

fb-ads-plugin-sdk v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Usage

$ npx create-react-app my-fb-ads-plugin
$ cd my-fb-ads-plugin
$ npm install fb-ads-plugin-sdk
$ npm start

Example App.js:

import React from 'react';
import {
  APButton,
  APContainer,
  APIntroduction,
  APSDK,
  APSection,
} from 'fb-ads-plugin-sdk';

const videoId = APSDK.getQueryParam("video_id");

function App() {
  return (
    <APContainer>
      <APSection location="AD_CREATIVE_EDIT">
        <APIntroduction text="My Facebook ads plugin" />
        <APButton
          onClick={
            () =>
              APSDK.openDialog(
                `https://example.com/?video_id=${videoId}`,
                {"width": 1000, "height": 1000},
              )
          }
          label="Open Example Dialog"
        />
      </APSection>
    </APContainer>
  );
}

export default App;
1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago