Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Update two example files to API version 2.9 #346
Conversation
facebook-github-bot
commented
May 22, 2017
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact [email protected] if you have any questions. |
facebook-github-bot
added
the
CLA Signed
label
May 22, 2017
facebook-github-bot
commented
May 22, 2017
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
|
Guys, I updated the files considering the new version of the API, is there anything I can improve for the Pull Request to be accepted? |
advance512
commented
Jun 20, 2017
|
Why is this not merged? |
| - AdCreative, | ||
| - TargetingSpecsField, | ||
| -) | ||
| +from facebookads.adobjects.adaccount import AdAccount |
| +from facebookads.adobjects.ad import Ad | ||
| +from facebookads.adobjects.adimage import AdImage | ||
| +from facebookads.adobjects.adcreative import AdCreative | ||
| +from facebookads.adobjects.targetinggeolocation import TargetingGeoLocation |
daphyFB
requested changes
Jul 3, 2017
Thanks for the pull request! If you could update those nit and remove the two unnecessary import, I'll work on merging it. Thanks!
| daily_budget=1000, # $10.00 per day | ||
| age_min=13, | ||
| age_max=65, | ||
| - paused=True, # Default is False but let's keep this test ad paused | ||
| + campaign=config['campaign_id'], | ||
| + status=AdSet.Status.paused, # Default is False but let's keep this test ad paused |
| - preview = my_ad.get_ad_preview(params={ | ||
| - AdPreview.Field.ad_format: AdPreview.AdFormat.right_column_standard | ||
| + preview = my_ad.get_previews(params={ | ||
| + 'ad_format': AdPreview.AdFormat.right_column_standard, |
|
Thanks for the update, @daphyFB! I've just updated the codes in a new commit. |
kevinqz commentedMay 22, 2017
Update example files to API version 2.9: