Skip to content

Commit

Permalink
Ad more ad set fields (#36)
Browse files Browse the repository at this point in the history
- attribution_spec
- start_time
- end_time
  • Loading branch information
cte committed Mar 8, 2019
1 parent 86d7322 commit 4254877
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
21 changes: 12 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
## 0.6.7 (2019-03-07)
- Added the following fields to `AdSet`: `attribution_spec`, `start_time` and `end_time`. (#36, @cte)

## 0.6.6 (2018-11-29)
- Added ability to pass date range when fetching `ad_set_activities`.
- Added ability to pass date range when fetching `ad_set_activities`. (#34, @amosharrafa)

## 0.6.5 (2018-11-26)
- Expose `ad_set_activities` for `ad_sets`.
- Expose `ad_set_activities` for `ad_sets`. (#31, @amosharrafa)

## 0.6.4 (2018-10-03)
- Expose `budget_remaining`, `daily_budget`, `lifetime_budget` for Ad Campaigns. These are needed when we have budgets at the Ad Campaign level and not at the Ad Set level.
- Expose `budget_remaining`, `daily_budget`, `lifetime_budget` for the `AdCampaign` object. You now have the option to set the budget ad the campaign level instead of the ad set level.

## 0.6.3 (2018-05-17)
- Replaced deprecated `is_autobid` with new `bid_strategy` field
- Replaced deprecated `is_autobid` with new `bid_strategy` field.

## 0.6.2 (2018-05-08)
- Set Product Catalog path to `/owned_product_catalogs` for API v2.11 compatibility
- Set Product Catalog path to `/owned_product_catalogs` for API v2.11 compatibility.

## 0.4 (2017-07-25)
- Added ability to pass `bid_amount` parameter when creating ad sets
- Ad Set `is_autobid` parameter now defaults to `nil` rather than `true`
- Added ability to pass `bid_amount` parameter when creating ad sets.
- Ad Set `is_autobid` parameter now defaults to `nil` rather than `true`.

## 0.3 (2017-07-24)
- Added ability to pass `app_link` parameter with ad creatives
- Added ability to pass `app_link` parameter with ad creatives.

## 0.2 (2017-07-20)
- Added ability to configure App Secret to be included with API requests
- Added ability to configure App Secret to be included with API requests.

## 0.1.12 (2017-05-25)
- Added complete set of ad campaign objectives. (#9, @cte)
Expand Down
4 changes: 2 additions & 2 deletions facebook_ads.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

# To publish the next version:
# gem build facebook_ads.gemspec
# gem push facebook_ads-0.6.6.gem
# gem push facebook_ads-0.6.7.gem
Gem::Specification.new do |s|
s.name = 'facebook_ads'
s.version = '0.6.6'
s.version = '0.6.7'
s.platform = Gem::Platform::RUBY
s.licenses = ['MIT']
s.authors = ['Chris Estreich']
Expand Down
5 changes: 4 additions & 1 deletion lib/facebook_ads/ad_set.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module FacebookAds
# https://developers.facebook.com/docs/marketing-api/reference/ad-account/adsets
# https://developers.facebook.com/docs/marketing-api/reference/ad-campaign
class AdSet < Base
FIELDS = %w[
id
Expand All @@ -21,6 +21,9 @@ class AdSet < Base
lifetime_budget
promoted_object
targeting
attribution_spec
start_time
end_time
created_time
updated_time
].freeze
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4254877

Please sign in to comment.