Module: JPSClient::API::Creative
- Included in:
- Client
- Defined in:
- lib/jpsclient/api/creative.rb
Overview
Creative 相关 API 自动生成的模块,处理 creative 相关接口
Instance Method Summary collapse
-
#create_creatives(params: {}) ⇒ Hash
Create Creatives.
-
#get_top_publishers(params: {}) ⇒ Hash
Get Top Publishers.
Instance Method Details
#create_creatives(params: {}) ⇒ Hash
Create Creatives
11 12 13 14 15 16 17 18 |
# File 'lib/jpsclient/api/creative.rb', line 11 def create_creatives(params: {}) config = @request_config && @request_config["creative_creatives"] raise JPSClient::ExceptionError, "Missing config for creative_creatives" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#get_top_publishers(params: {}) ⇒ Hash
Get Top Publishers
24 25 26 27 28 29 30 31 |
# File 'lib/jpsclient/api/creative.rb', line 24 def get_top_publishers(params: {}) config = @request_config && @request_config["creative_top_publishers"] raise JPSClient::ExceptionError, "Missing config for creative_top_publishers" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |