Class: Adparlor::Facebook::GraphApi::AdCreative
- Inherits:
-
GraphObject
- Object
- GraphObject
- Adparlor::Facebook::GraphApi::AdCreative
- Includes:
- Fields::AdCreative, Traits::Methods
- Defined in:
- lib/adparlor/facebook/graph_api/ad_creative.rb
Constant Summary
Constants included from Fields::AdCreative
Fields::AdCreative::CREATE_FIELDS, Fields::AdCreative::FIELDS
Constants included from Fields::FieldDecorator
Fields::FieldDecorator::GLOBAL_FIELDS
Instance Attribute Summary
Attributes inherited from GraphObject
Instance Method Summary collapse
Methods included from Traits::Methods
#create, #destroy, included, #update
Methods inherited from GraphObject
#batch, create, #create, data_pass_through, destroy, #destroy, get, #initialize, parse_data_for_collection, read, respond_for_data, #to_hash, #to_json, update, #update
Methods included from Api
#base_uri, #conn, #conn_multi, #delete, #get, #post, #proxy_api_key
Methods included from Fields::FieldDecorator
Constructor Details
This class inherits a constructor from Adparlor::Facebook::GraphApi::GraphObject
Instance Method Details
#previews ⇒ Object
16 17 18 |
# File 'lib/adparlor/facebook/graph_api/ad_creative.rb', line 16 def previews @previews ||= CollectionProxy.new(AdPreview, "/#{id}/previews", access_token) end |
#update_path ⇒ Object
11 12 13 14 |
# File 'lib/adparlor/facebook/graph_api/ad_creative.rb', line 11 def update_path raise FbError.new('required parameter id missing', 500) unless id "/#{id}" end |