Sha256: 5d5b231ead74c7c9a1c50262812043c914439cec5a0b0fcf21ad315616562481

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

module PPC
  module Operation
    class Account
      include ::PPC::Operation

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

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

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

      def get_rank( region, keyword )
        call( "rank" ).getRank( @auth, region, keyword )
      end
      
      # plan operations
      include ::PPC::Operation::Plan_operation

      # group opeartions
      include ::PPC::Operation::Group_operation

      # keyword opeartions
      include ::PPC::Operation::Keyword_operation

      # creative opeartions
      include ::PPC::Operation::Creative_operation

      # sublink opeartion
      include ::PPC::Operation::Sublink_operation

      # report operations
      include ::PPC::Operation::Report

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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ppc-2.0.5 lib/ppc/operation/account.rb