lib/blurb/profile.rb in blurb-0.4.1 vs lib/blurb/profile.rb in blurb-0.4.2
- old
+ new
@@ -15,10 +15,11 @@
:campaign_negative_keywords,
:portfolios,
:product_ads,
:profile_id,
:suggested_keywords,
+ :targets
)
def initialize(profile_id:, account:)
@profile_id = profile_id
@account = account
@@ -88,9 +89,13 @@
campaign_type: CAMPAIGN_TYPE_CODES[:sb]
)
@campaign_negative_keywords = RequestCollection.new(
headers: headers_hash,
base_url: "#{@account.api_url}/v2/sp/campaignNegativeKeywords"
+ )
+ @targets = RequestCollection.new(
+ headers: headers_hash,
+ base_url: "#{@account.api_url}/v2/sp/targets"
)
@portfolios = RequestCollection.new(
headers: headers_hash,
base_url: "#{@account.api_url}/v2/portfolios"
)