Class: PPC::Operation::Account

Inherits:
Object
  • Object
show all
Includes:
PPC::Operation, Creative_operation, Group_operation, Keyword_operation, Plan_operation, Report, Sublink_operation
Defined in:
lib/ppc/operation/account.rb

Instance Attribute Summary

Attributes included from PPC::Operation

#id

Instance Method Summary collapse

Methods included from Report

#account_report, #creative_report, #download_report, #group_report, #keyword_report, #plan_report, #query_report, #rank_report

Methods included from Sublink_operation

#method_missing

Methods included from Creative_operation

#method_missing

Methods included from Keyword_operation

#method_missing

Methods included from Group_operation

#method_missing

Methods included from Plan_operation

#method_missing

Methods included from PPC::Operation

#call, #download, #initialize, #method_missing, #qihu_refresh_token

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PPC::Operation::Sublink_operation

Instance Method Details

#get_rank(region, keyword) ⇒ Object



22
23
24
# File 'lib/ppc/operation/account.rb', line 22

def get_rank( region, keyword )
  call( "rank" ).getRank( @auth, region, keyword )
end

#keyword_ids(group_id) ⇒ Object



18
19
20
# File 'lib/ppc/operation/account.rb', line 18

def keyword_ids( group_id )
  call( "keyword" ).ids( @auth, group_id )
end

#keywords(group_id) ⇒ Object



14
15
16
# File 'lib/ppc/operation/account.rb', line 14

def keywords( group_id )
  call( "keyword" ).all( @auth, group_id )
end

#plan_idsObject



10
11
12
# File 'lib/ppc/operation/account.rb', line 10

def plan_ids
  call( "plan" ).ids( @auth )
end

#plansObject



6
7
8
# File 'lib/ppc/operation/account.rb', line 6

def plans
  call( "plan" ).all( @auth )
end

#search_keyword(keyword) ⇒ Object



44
45
46
# File 'lib/ppc/operation/account.rb', line 44

def search_keyword( keyword )
  call( "keyword" ).search( @auth, {keyword: keyword})
end