Skip to content

Commit

Permalink
[Patch] Changes for release v18_0. (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurachevalier4 authored Dec 18, 2024
1 parent d915684 commit 0f854c1
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $build_sc->new(
create_makefile_pl => "traditional",
dist_abstract => "Google Ads API Client Library for Perl",
dist_name => "Google-Ads-GoogleAds-Client",
dist_version => "25.0.0",
dist_version => "25.0.1",
no_index => {
namespace => [
"Google::Ads::GoogleAds::V16::Enums",
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
25.0.1 - 2024-12-18
-------------------
- Fixed bug in Google::Ads::GoogleAds::V18::Resources::CampaignBudget.

25.0.0 - 2024-10-16
-------------------
- Added support for Google Ads API v18.
Expand Down
2 changes: 1 addition & 1 deletion lib/Google/Ads/GoogleAds/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package Google::Ads::GoogleAds::Client;
use strict;
use warnings;
use version;
our $VERSION = qv("25.0.0");
our $VERSION = qv("25.0.1");

use Google::Ads::GoogleAds::OAuth2ApplicationsHandler;
use Google::Ads::GoogleAds::OAuth2ServiceAccountsHandler;
Expand Down
2 changes: 1 addition & 1 deletion lib/Google/Ads/GoogleAds/Constants.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use File::HomeDir;
use File::Spec::Functions;

# Main version number that the rest of the modules pick up off of.
our $VERSION = qv("25.0.0");
our $VERSION = qv("25.0.1");

use constant DEFAULT_PROPERTIES_FILE =>
catfile(File::HomeDir->my_home, "googleads.properties");
Expand Down
25 changes: 22 additions & 3 deletions lib/Google/Ads/GoogleAds/V18/Resources/CampaignBudget.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,28 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper;
sub new {
my ($class, $args) = @_;
my $self = {
currentAmountMicros => $args->{currentAmountMicros},
newStartDate => $args->{newStartDate},
recommendedNewAmountMicros => $args->{recommendedNewAmountMicros}};
alignedBiddingStrategyId => $args->{alignedBiddingStrategyId},
amountMicros => $args->{amountMicros},
deliveryMethod => $args->{deliveryMethod},
explicitlyShared => $args->{explicitlyShared},
hasRecommendedBudget => $args->{hasRecommendedBudget},
id => $args->{id},
name => $args->{name},
period => $args->{period},
recommendedBudgetAmountMicros => $args->{recommendedBudgetAmountMicros},
recommendedBudgetEstimatedChangeWeeklyClicks =>
$args->{recommendedBudgetEstimatedChangeWeeklyClicks},
recommendedBudgetEstimatedChangeWeeklyCostMicros =>
$args->{recommendedBudgetEstimatedChangeWeeklyCostMicros},
recommendedBudgetEstimatedChangeWeeklyInteractions =>
$args->{recommendedBudgetEstimatedChangeWeeklyInteractions},
recommendedBudgetEstimatedChangeWeeklyViews =>
$args->{recommendedBudgetEstimatedChangeWeeklyViews},
referenceCount => $args->{referenceCount},
resourceName => $args->{resourceName},
status => $args->{status},
totalAmountMicros => $args->{totalAmountMicros},
type => $args->{type}};

# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
Expand Down

0 comments on commit 0f854c1

Please sign in to comment.