Google::Adwords::Image is a Google Adwords Image object.
SYNOPSIS
use Google::Adwords::CreativeService;
use Google::Adwords::Creative;
use Google::Adwords::Image;
use File::Slurp;
# create the CreativeService object
my $creative_service = Google::Adwords::CreativeService->new();
# need to login to the Adwords service
$creative_service->email($email_address)
->password($password)
->developerToken($developer_token)
->applicationToken($app_token);
# if you have a MCC
$creative_service->clientEmail($client_email);
# Lets add an image creative
my $data_blurb = read_file('image.gif');
my $image = Google::Adwords::Image->new
->name('Image #1')
->data($data_blurb)
->type('image');
my $creative_image = Google::Adwords::Creative->new
->adGroupId($adgroupid)
->destinationUrl('http://www.example.com')
->displayUrl('http://www.example.com')
->image( $image );
my $addcreative = $creative_service->addCreative($creative_image);
print "Added Creative ID: " . $addcreative->id . "n";
print "Image Height: " . $addcreative->image->height . "n";
This object should be used with the CreativeService API calls
Product's homepage
Requirements:
· Perl