Class: PPC::Operation::Creative

Inherits:
Object
  • Object
show all
Includes:
PPC::Operation
Defined in:
lib/ppc/operation/creative.rb

Instance Attribute Summary

Attributes included from PPC::Operation

#id

Instance Method Summary collapse

Methods included from PPC::Operation

#call, #download, #get_obj, #initialize, #qihu_refresh_token

Instance Method Details

#activateObject



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

def activate()
  call( 'creative' ).activate( @auth, @id )
end

#deleteObject



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

def delete()
  call( 'creative' ).delete( @auth, @id )
end

#infoObject



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

def info()
  call( 'creative' ).get( @auth, @id )
end

#statusObject



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

def status()
  call( 'creative' ).status( @auth, @id )
end

#update(type) ⇒ Object



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

def update( type )
  call( 'creative' ).update( @auth, type.merge( id:@id) )
end