Created
November 4, 2015 14:40
-
-
Save georgi/5ed9876dc7c02959ffc2 to your computer and use it in GitHub Desktop.
Ad creative
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from facebookads import FacebookAdsApi | |
from facebookads.objects import Ad | |
from sys import argv | |
config_file = open('./config.json') | |
config = json.load(config_file) | |
config_file.close() | |
FacebookAdsApi.init( | |
config['app_id'], | |
config['app_secret'], | |
config['access_token'], | |
config['act_id'] | |
) | |
ad = Ad(argv[1]) | |
ad.remote_read(fields=['creative{object_story_spec}']) | |
print(ad) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment