Class: PPC::Operation::Account
- Inherits:
-
Object
- Object
- PPC::Operation::Account
- Includes:
- PPC::Operation, Creative_operation, Group_operation, Keyword_operation, Plan_operation, Report
- Defined in:
- lib/ppc/operation/account.rb
Instance Attribute Summary
Attributes included from PPC::Operation
Instance Method Summary collapse
-
#info ⇒ Object
self operations.
- #keyword_ids(group_id) ⇒ Object
-
#keywords(group_id) ⇒ Object
some useful keyword operations.
- #plan_ids ⇒ Object
-
#plans ⇒ Object
subobject(plan) operations.
- #update(account) ⇒ Object
Methods included from Report
#creative_report, #download_report, #keyword_report, #query_report
Methods included from Creative_operation
#add_creative, #delete_creative, #get_creative, #update_creative
Methods included from Keyword_operation
#add_keyword, #delete_keyword, #get_keyword, #update_keyword
Methods included from Group_operation
#add_group, #delete_group, #get_group, #update_group
Methods included from Plan_operation
#add_plan, #delete_plan, #get_plan, #update_plan
Methods included from PPC::Operation
#call, #download, #get_obj, #initialize, #qihu_refresh_token
Instance Method Details
#info ⇒ Object
self operations
7 8 9 10 11 |
# File 'lib/ppc/operation/account.rb', line 7 def info info = call('account').info(@auth) @id = info[:result][:id] if @id == nil return info end |
#keyword_ids(group_id) ⇒ Object
31 32 33 |
# File 'lib/ppc/operation/account.rb', line 31 def keyword_ids(group_id) call( 'keyword' ).search_id_by_group_id( @auth, group_id ) end |
#keywords(group_id) ⇒ Object
some useful keyword operations
27 28 29 |
# File 'lib/ppc/operation/account.rb', line 27 def keywords(group_id) call( 'keyword' ).search_by_group_id( @auth, group_id ) end |
#plan_ids ⇒ Object
22 23 24 |
# File 'lib/ppc/operation/account.rb', line 22 def plan_ids call('plan').ids(@auth) end |
#plans ⇒ Object
subobject(plan) operations
18 19 20 |
# File 'lib/ppc/operation/account.rb', line 18 def plans call('plan').all(@auth) end |
#update(account) ⇒ Object
13 14 15 |
# File 'lib/ppc/operation/account.rb', line 13 def update(account) call('account').update(@auth,account) end |