Class: TheTradeDeskAds::AdCategories

Inherits:
Base
  • Object
show all
Defined in:
lib/the_trade_desk_ads/ad_categories.rb

Overview

An ad belongs to an ad set. It is created using an ad creative. developers.facebook.com/docs/marketing-api/reference/adgroup

Constant Summary collapse

FIELDS =
%w[CategoryId ParentCategoryId Name Path Children].freeze

Class Method Summary collapse

Methods inherited from Base

auth, delete, #destroy, find, get, paginate, post, #save, #update

Class Method Details

.all(query = {}) ⇒ Object



8
9
10
# File 'lib/the_trade_desk_ads/ad_categories.rb', line 8

def all(query = {})
  get('category/industrycategories', query: {}, objectify: true)
end