diff --git a/Build.PL b/Build.PL index 3bbb7631f..af50d137d 100644 --- a/Build.PL +++ b/Build.PL @@ -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 => "3.1.0", + dist_version => "4.0.0", requires => { "Class::Load" => 0, "Class::Std::Fast" => 0, diff --git a/Changes b/Changes index f38760329..5a9a66112 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +4.0.0 - 2020-07-13 +- Added support for Google Ads API v4_0. +- Renamed MutateJobService to BatchJobService. +- Added code examples: add_merchant_center_dynamic_remarketing_campaign, + add_sitelinks_using_feeds, parallel_report_download, add_display_upload_ad, etc. + 3.1.0 - 2020-05-07 - Added support for Google Ads API v3_1. - Added code examples: upload_conversion_adjustment, upload_call_conversion, diff --git a/examples/account_management/approve_merchant_center_link.pl b/examples/account_management/approve_merchant_center_link.pl index 518f143d2..ac1dd3664 100644 --- a/examples/account_management/approve_merchant_center_link.pl +++ b/examples/account_management/approve_merchant_center_link.pl @@ -33,11 +33,11 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::MerchantCenterLink; -use Google::Ads::GoogleAds::V3::Enums::MerchantCenterLinkStatusEnum +use Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink; +use Google::Ads::GoogleAds::V4::Enums::MerchantCenterLinkStatusEnum qw(ENABLED PENDING); use - Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkService::MerchantCenterLinkOperation; + Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::MerchantCenterLinkOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -100,7 +100,7 @@ sub update_merchant_center_link_status { # Create an updated MerchantCenterLink object derived from the original, but # with the specified status. my $merchant_center_link_to_update = - Google::Ads::GoogleAds::V3::Resources::MerchantCenterLink->new({ + Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink->new({ resourceName => $merchant_center_link->{resourceName}, status => $new_merchant_center_link_status }); @@ -109,7 +109,7 @@ sub update_merchant_center_link_status { # FieldMasks utility to derive the update mask. This mask tells the Google Ads # API which attributes of the Merchant Center link you want to change. my $merchant_center_link_operation = - Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkService::MerchantCenterLinkOperation + Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::MerchantCenterLinkOperation ->new({ update => $merchant_center_link_to_update, updateMask => all_set_fields_of($merchant_center_link_to_update)}); @@ -132,7 +132,7 @@ sub update_merchant_center_link_status { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/account_management/create_customer.pl b/examples/account_management/create_customer.pl index 615f433dd..b2d7530e3 100644 --- a/examples/account_management/create_customer.pl +++ b/examples/account_management/create_customer.pl @@ -29,7 +29,7 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::Customer; +use Google::Ads::GoogleAds::V4::Resources::Customer; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -50,7 +50,7 @@ sub create_customer { my ($api_client, $manager_customer_id) = @_; # Initialize a customer to be created. - my $customer = Google::Ads::GoogleAds::V3::Resources::Customer->new({ + my $customer = Google::Ads::GoogleAds::V4::Resources::Customer->new({ descriptiveName => "Account created with CustomerService on #" . uniqid(), # For a list of valid currency codes and time zones, see this documentation: @@ -86,7 +86,7 @@ sub create_customer { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/account_management/get_account_changes.pl b/examples/account_management/get_account_changes.pl index f58f90f71..b54f42f53 100644 --- a/examples/account_management/get_account_changes.pl +++ b/examples/account_management/get_account_changes.pl @@ -25,10 +25,10 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; -use Google::Ads::GoogleAds::V3::Enums::ChangeStatusResourceTypeEnum +use Google::Ads::GoogleAds::V4::Enums::ChangeStatusResourceTypeEnum qw(AD_GROUP AD_GROUP_AD AD_GROUP_CRITERION CAMPAIGN CAMPAIGN_CRITERION FEED FEED_ITEM AD_GROUP_FEED CAMPAIGN_FEED AD_GROUP_BID_MODIFIER); use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -71,7 +71,7 @@ sub get_account_changes { # Create a search Google Ads request that will retrieve all change statuses using # pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -140,7 +140,7 @@ sub __get_resource_name_for_resource_type { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/account_management/get_account_hierarchy.pl b/examples/account_management/get_account_hierarchy.pl index c5e7c7f80..198a8f949 100644 --- a/examples/account_management/get_account_hierarchy.pl +++ b/examples/account_management/get_account_hierarchy.pl @@ -32,7 +32,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -145,7 +145,6 @@ () # https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid # for more information. my $api_client = Google::Ads::GoogleAds::Client->new({ - version => "V3", login_customer_id => $login_customer_id || $root_customer_id }); @@ -178,7 +177,7 @@ () Google::Ads::GoogleAds::Utils::SearchStreamHandler->new({ service => $google_ads_service, request => - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id_to_search, query => $search_query, @@ -264,7 +263,7 @@ sub print_account_hierarchy { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/account_management/get_account_information.pl b/examples/account_management/get_account_information.pl index c7d0d619b..f69b280ca 100644 --- a/examples/account_management/get_account_information.pl +++ b/examples/account_management/get_account_information.pl @@ -25,7 +25,7 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -45,7 +45,7 @@ sub get_account_information { my ($api_client, $customer_id) = @_; my $resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::customer($customer_id); + Google::Ads::GoogleAds::V4::Utils::ResourceNames::customer($customer_id); my $customer = $api_client->CustomerService()->get({resourceName => $resource_name}); @@ -68,7 +68,7 @@ sub get_account_information { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/account_management/link_manager_to_client.pl b/examples/account_management/link_manager_to_client.pl index 126936ee0..f936c9ce6 100644 --- a/examples/account_management/link_manager_to_client.pl +++ b/examples/account_management/link_manager_to_client.pl @@ -26,14 +26,14 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::CustomerClientLink; -use Google::Ads::GoogleAds::V3::Resources::CustomerManagerLink; -use Google::Ads::GoogleAds::V3::Enums::ManagerLinkStatusEnum qw(PENDING ACTIVE); +use Google::Ads::GoogleAds::V4::Resources::CustomerClientLink; +use Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink; +use Google::Ads::GoogleAds::V4::Enums::ManagerLinkStatusEnum qw(PENDING ACTIVE); use - Google::Ads::GoogleAds::V3::Services::CustomerClientLinkService::CustomerClientLinkOperation; + Google::Ads::GoogleAds::V4::Services::CustomerClientLinkService::CustomerClientLinkOperation; use - Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkService::CustomerManagerLinkOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::CustomerManagerLinkOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -64,16 +64,16 @@ sub link_manager_to_client { # Create a customer client link. my $api_client_link = - Google::Ads::GoogleAds::V3::Resources::CustomerClientLink->new({ + Google::Ads::GoogleAds::V4::Resources::CustomerClientLink->new({ clientCustomer => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::customer( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::customer( $api_client_customer_id), status => PENDING }); # Create a customer client link operation. my $api_client_link_operation = - Google::Ads::GoogleAds::V3::Services::CustomerClientLinkService::CustomerClientLinkOperation + Google::Ads::GoogleAds::V4::Services::CustomerClientLinkService::CustomerClientLinkOperation ->new({ create => $api_client_link }); @@ -108,7 +108,7 @@ sub link_manager_to_client { $search_response->{results}[0]{customerClientLink}{managerLinkId}; my $manager_link_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::customer_manager_link( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::customer_manager_link( $api_client_customer_id, $manager_customer_id, $manager_link_id); # Step 3: Accept the manager customer's link invitation while authenticating @@ -117,14 +117,14 @@ sub link_manager_to_client { # Create a customer manager link. my $manager_link = - Google::Ads::GoogleAds::V3::Resources::CustomerManagerLink->new({ + Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink->new({ resourceName => $manager_link_resource_name, status => ACTIVE }); # Create a customer manager link operation. my $manager_link_operation = - Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkService::CustomerManagerLinkOperation + Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::CustomerManagerLinkOperation ->new({ update => $manager_link, updateMask => all_set_fields_of($manager_link)}); @@ -149,7 +149,7 @@ sub link_manager_to_client { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/account_management/list_accessible_customers.pl b/examples/account_management/list_accessible_customers.pl index 6f50e3a6f..047e42585 100644 --- a/examples/account_management/list_accessible_customers.pl +++ b/examples/account_management/list_accessible_customers.pl @@ -56,7 +56,7 @@ sub list_accessible_customers { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/add_ad_customizer.pl b/examples/advanced_operations/add_ad_customizer.pl index 82ded5368..8dcef51dc 100644 --- a/examples/advanced_operations/add_ad_customizer.pl +++ b/examples/advanced_operations/add_ad_customizer.pl @@ -25,29 +25,29 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::FeedAttribute; -use Google::Ads::GoogleAds::V3::Resources::Feed; -use Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping; -use Google::Ads::GoogleAds::V3::Resources::FeedMapping; -use Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue; -use Google::Ads::GoogleAds::V3::Resources::FeedItem; -use Google::Ads::GoogleAds::V3::Resources::FeedItemTarget; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo; -use Google::Ads::GoogleAds::V3::Enums::FeedAttributeTypeEnum +use Google::Ads::GoogleAds::V4::Resources::FeedAttribute; +use Google::Ads::GoogleAds::V4::Resources::Feed; +use Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping; +use Google::Ads::GoogleAds::V4::Resources::FeedMapping; +use Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue; +use Google::Ads::GoogleAds::V4::Resources::FeedItem; +use Google::Ads::GoogleAds::V4::Resources::FeedItemTarget; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; +use Google::Ads::GoogleAds::V4::Enums::FeedAttributeTypeEnum qw(STRING DATE_TIME); -use Google::Ads::GoogleAds::V3::Enums::FeedOriginEnum qw(USER); -use Google::Ads::GoogleAds::V3::Enums::AdCustomizerPlaceholderFieldEnum; -use Google::Ads::GoogleAds::V3::Enums::PlaceholderTypeEnum qw(AD_CUSTOMIZER); -use Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation; +use Google::Ads::GoogleAds::V4::Enums::FeedOriginEnum qw(USER); +use Google::Ads::GoogleAds::V4::Enums::AdCustomizerPlaceholderFieldEnum; +use Google::Ads::GoogleAds::V4::Enums::PlaceholderTypeEnum qw(AD_CUSTOMIZER); +use Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation; use - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation; -use Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation; + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation; +use Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation; use - Google::Ads::GoogleAds::V3::Services::FeedItemTargetService::FeedItemTargetOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::FeedItemTargetOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -124,25 +124,25 @@ sub create_ad_customizer_feed { # Create three feed attributes: a name, a price and a date. The attribute names # are arbitrary choices and will be used as placeholders in the ad text fields. my $name_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING, name => "Name" }); my $price_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING, name => "Price" }); my $date_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => DATE_TIME, name => "Date" }); # Create the feed. - my $feed = Google::Ads::GoogleAds::V3::Resources::Feed->new({ + my $feed = Google::Ads::GoogleAds::V4::Resources::Feed->new({ name => $feed_name, attributes => [$name_attribute, $price_attribute, $date_attribute], origin => USER @@ -150,7 +150,7 @@ sub create_ad_customizer_feed { # Create a feed operation for creating a feed. my $feed_operation = - Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation->new({ + Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation->new({ create => $feed }); @@ -201,28 +201,28 @@ sub create_ad_customizer_mapping { # Map the feed attribute IDs to the field ID constants. my $name_field_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $ad_customizer_feed_attributes->{Name}, adCustomizerField => - Google::Ads::GoogleAds::V3::Enums::AdCustomizerPlaceholderFieldEnum::STRING, + Google::Ads::GoogleAds::V4::Enums::AdCustomizerPlaceholderFieldEnum::STRING, }); my $price_field_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $ad_customizer_feed_attributes->{Price}, adCustomizerField => - Google::Ads::GoogleAds::V3::Enums::AdCustomizerPlaceholderFieldEnum::PRICE, + Google::Ads::GoogleAds::V4::Enums::AdCustomizerPlaceholderFieldEnum::PRICE, }); my $date_field_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $ad_customizer_feed_attributes->{Date}, adCustomizerField => - Google::Ads::GoogleAds::V3::Enums::AdCustomizerPlaceholderFieldEnum::DATE, + Google::Ads::GoogleAds::V4::Enums::AdCustomizerPlaceholderFieldEnum::DATE, }); # Create the feed mapping. - my $feed_mapping = Google::Ads::GoogleAds::V3::Resources::FeedMapping->new({ + my $feed_mapping = Google::Ads::GoogleAds::V4::Resources::FeedMapping->new({ placeholderType => AD_CUSTOMIZER, feed => $ad_customizer_feed_resource_name, attributeFieldMappings => @@ -230,7 +230,7 @@ sub create_ad_customizer_mapping { # Create the operation. my $feed_mapping_operation = - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation ->new({ create => $feed_mapping }); @@ -303,31 +303,31 @@ sub create_feed_item_operation { ) = @_; my $name_attribute_value = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $ad_customizer_feed_attributes->{Name}, stringValue => $name }); my $price_attribute_value = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $ad_customizer_feed_attributes->{Price}, stringValue => $price }); my $date_attribute_value = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $ad_customizer_feed_attributes->{Date}, stringValue => $date }); - my $feed_item = Google::Ads::GoogleAds::V3::Resources::FeedItem->new({ + my $feed_item = Google::Ads::GoogleAds::V4::Resources::FeedItem->new({ feed => $ad_customizer_feed_resource_name, attributeValues => [$name_attribute_value, $price_attribute_value, $date_attribute_value]} ); return - Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation-> + Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation-> new({ create => $feed_item }); @@ -347,15 +347,15 @@ sub create_feed_item_targets { my $ad_group_id = $ad_group_ids->[$i]; my $feed_item_target = - Google::Ads::GoogleAds::V3::Resources::FeedItemTarget->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemTarget->new({ feedItem => $feed_item_resource_name, - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id )}); # Create the operation. my $feed_item_target_operation = - Google::Ads::GoogleAds::V3::Services::FeedItemTargetService::FeedItemTargetOperation + Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::FeedItemTargetOperation ->new({ create => $feed_item_target }); @@ -378,26 +378,26 @@ sub create_ads_with_customizations { my ($api_client, $customer_id, $ad_group_ids, $feed_name) = @_; my $expanded_text_ad_info = - Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo->new({ headlinePart1 => "Luxury cruise to {=$feed_name.Name}", headlinePart2 => "Only {=$feed_name.Price}", description => "Offer ends in {=countdown($feed_name.Date)}!" }); - my $ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ + my $ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ expandedTextAd => $expanded_text_ad_info, finalUrls => ["http://www.example.com"]}); my $ad_group_ad_operations = []; foreach my $ad_group_id (@$ad_group_ids) { - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ ad => $ad, - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id )}); push @$ad_group_ad_operations, - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({ create => $ad_group_ad }); @@ -423,7 +423,7 @@ sub create_ads_with_customizations { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/add_ad_group_bid_modifier.pl b/examples/advanced_operations/add_ad_group_bid_modifier.pl index 4fa171bd9..cda9f45a5 100644 --- a/examples/advanced_operations/add_ad_group_bid_modifier.pl +++ b/examples/advanced_operations/add_ad_group_bid_modifier.pl @@ -25,12 +25,12 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupBidModifier; -use Google::Ads::GoogleAds::V3::Common::DeviceInfo; -use Google::Ads::GoogleAds::V3::Enums::DeviceEnum qw(MOBILE); +use Google::Ads::GoogleAds::V4::Resources::AdGroupBidModifier; +use Google::Ads::GoogleAds::V4::Common::DeviceInfo; +use Google::Ads::GoogleAds::V4::Enums::DeviceEnum qw(MOBILE); use - Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierService::AdGroupBidModifierOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::AdGroupBidModifierOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -55,18 +55,18 @@ sub add_ad_group_bid_modifier { # Create an ad group bid modifier for mobile devices with the specified ad group ID and # bid modifier value. my $ad_group_bid_modifier = - Google::Ads::GoogleAds::V3::Resources::AdGroupBidModifier->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + Google::Ads::GoogleAds::V4::Resources::AdGroupBidModifier->new({ + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), bidModifier => $bid_modifier_value, - device => Google::Ads::GoogleAds::V3::Common::DeviceInfo->new({ + device => Google::Ads::GoogleAds::V4::Common::DeviceInfo->new({ type => MOBILE })}); # Create an ad group bid modifier operation. my $ad_group_bid_modifier_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierService::AdGroupBidModifierOperation + Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::AdGroupBidModifierOperation ->new({ create => $ad_group_bid_modifier }); @@ -89,7 +89,7 @@ sub add_ad_group_bid_modifier { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/add_app_campaign.pl b/examples/advanced_operations/add_app_campaign.pl index 66361a0c2..dc96b2dda 100644 --- a/examples/advanced_operations/add_app_campaign.pl +++ b/examples/advanced_operations/add_app_campaign.pl @@ -30,41 +30,41 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::AppCampaignSetting; -use Google::Ads::GoogleAds::V3::Resources::SelectiveOptimization; -use Google::Ads::GoogleAds::V3::Resources::CampaignCriterion; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::TargetCpa; -use Google::Ads::GoogleAds::V3::Common::LocationInfo; -use Google::Ads::GoogleAds::V3::Common::LanguageInfo; -use Google::Ads::GoogleAds::V3::Common::AppAdInfo; -use Google::Ads::GoogleAds::V3::Common::AdImageAsset; -use Google::Ads::GoogleAds::V3::Common::AdTextAsset; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::AppCampaignSetting; +use Google::Ads::GoogleAds::V4::Resources::SelectiveOptimization; +use Google::Ads::GoogleAds::V4::Resources::CampaignCriterion; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::TargetCpa; +use Google::Ads::GoogleAds::V4::Common::LocationInfo; +use Google::Ads::GoogleAds::V4::Common::LanguageInfo; +use Google::Ads::GoogleAds::V4::Common::AppAdInfo; +use Google::Ads::GoogleAds::V4::Common::AdImageAsset; +use Google::Ads::GoogleAds::V4::Common::AdTextAsset; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(MULTI_CHANNEL); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelSubTypeEnum +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelSubTypeEnum qw(APP_CAMPAIGN); -use Google::Ads::GoogleAds::V3::Enums::AppCampaignAppStoreEnum +use Google::Ads::GoogleAds::V4::Enums::AppCampaignAppStoreEnum qw(GOOGLE_APP_STORE); -use Google::Ads::GoogleAds::V3::Enums::AppCampaignBiddingStrategyGoalTypeEnum +use Google::Ads::GoogleAds::V4::Enums::AppCampaignBiddingStrategyGoalTypeEnum qw(OPTIMIZE_INSTALLS_TARGET_INSTALL_COST); -use Google::Ads::GoogleAds::V3::Enums::CriterionTypeEnum qw(LOCATION LANGUAGE); -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::CriterionTypeEnum qw(LOCATION LANGUAGE); +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; use - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -112,7 +112,7 @@ sub create_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), amountMicros => 50000000, deliveryMethod => STANDARD, @@ -122,7 +122,7 @@ sub create_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({ create => $campaign_budget }); @@ -145,7 +145,7 @@ sub create_campaign { my ($api_client, $customer_id, $budget_resource_name) = @_; # Create a campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise App #" . uniqid(), campaignBudget => $budget_resource_name, # Recommendation: Set the campaign to PAUSED when creating it to prevent @@ -158,13 +158,13 @@ sub create_campaign { advertisingChannelType => MULTI_CHANNEL, advertisingChannelSubType => APP_CAMPAIGN, # Set the target CPA to $1 / app install. - targetCpa => Google::Ads::GoogleAds::V3::Common::TargetCpa->new({ + targetCpa => Google::Ads::GoogleAds::V4::Common::TargetCpa->new({ targetCpaMicros => 1000000 } ), # Configure the App campaign setting. appCampaignSetting => - Google::Ads::GoogleAds::V3::Resources::AppCampaignSetting->new({ + Google::Ads::GoogleAds::V4::Resources::AppCampaignSetting->new({ appId => "com.google.android.apps.adwords", appStore => GOOGLE_APP_STORE, biddingStrategyGoalType => OPTIMIZE_INSTALLS_TARGET_INSTALL_COST @@ -175,7 +175,7 @@ sub create_campaign { # Ads API can focus your campaign on people who are most likely to complete # the corresponding in-app actions. # selectiveOptimization => - # Google::Ads::GoogleAds::V3::Resources::SelectiveOptimization->new({ + # Google::Ads::GoogleAds::V4::Resources::SelectiveOptimization->new({ # conversionActions => # ["INSERT_CONVERSION_ACTION_RESOURCE_NAME(s)_HERE"]} # ), @@ -188,7 +188,7 @@ sub create_campaign { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({ create => $campaign }); @@ -220,16 +220,16 @@ sub set_campaign_targeting_criteria { # targeting/get_geo_target_constants_by_names.pl. foreach my $location_id (21137, 2484) { my $campaign_criterion = - Google::Ads::GoogleAds::V3::Resources::CampaignCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignCriterion->new({ campaign => $campaign_resource_name, type => LOCATION, - location => Google::Ads::GoogleAds::V3::Common::LocationInfo->new({ + location => Google::Ads::GoogleAds::V4::Common::LocationInfo->new({ geoTargetConstant => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::geo_target_constant( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::geo_target_constant( $location_id)})}); push @$campaign_criterion_operations, - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation ->new({ create => $campaign_criterion }); @@ -239,16 +239,16 @@ sub set_campaign_targeting_criteria { # Language ID 1000 is for English, and 1003 is for Spanish. foreach my $language_id (1000, 1003) { my $campaign_criterion = - Google::Ads::GoogleAds::V3::Resources::CampaignCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignCriterion->new({ campaign => $campaign_resource_name, type => LANGUAGE, - language => Google::Ads::GoogleAds::V3::Common::LanguageInfo->new({ + language => Google::Ads::GoogleAds::V4::Common::LanguageInfo->new({ languageConstant => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::language_constant( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::language_constant( $language_id)})}); push @$campaign_criterion_operations, - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation ->new({ create => $campaign_criterion }); @@ -278,15 +278,15 @@ sub create_ad_group { # Since the advertisingChannelSubType is APP_CAMPAIGN, # 1- you cannot override bid settings at the ad group level. # 2- you cannot add ad group criteria. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruises #" . uniqid(), - status => Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum::ENABLED, + status => Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum::ENABLED, campaign => $campaign_resource_name }); # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Issue a mutate request to add the ad group. @@ -307,11 +307,11 @@ sub create_app_ad { my ($api_client, $customer_id, $ad_group_resource_name) = @_; # Create an ad group ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ adGroup => $ad_group_resource_name, - status => Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum::ENABLED, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ - appAd => Google::Ads::GoogleAds::V3::Common::AppAdInfo->new({ + status => Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum::ENABLED, + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ + appAd => Google::Ads::GoogleAds::V4::Common::AppAdInfo->new({ headlines => [ create_ad_text_asset("A cool puzzle game"), create_ad_text_asset("Remove connected blocks") @@ -322,14 +322,14 @@ sub create_app_ad { ], # Optional: You can set up to 20 image assets for your campaign. # images => [ - # Google::Ads::GoogleAds::V3::Common::AdImageAsset->new({ + # Google::Ads::GoogleAds::V4::Common::AdImageAsset->new({ # asset => "INSERT_IMAGE_ASSET_RESOURCE_NAME_HERE" # })] })})}); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Issue a mutate request to add the ad group ad. @@ -345,7 +345,7 @@ sub create_app_ad { sub create_ad_text_asset { my ($text) = @_; - return Google::Ads::GoogleAds::V3::Common::AdTextAsset->new({ + return Google::Ads::GoogleAds::V4::Common::AdTextAsset->new({ text => $text }); } @@ -356,7 +356,7 @@ sub create_ad_text_asset { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/add_display_upload_ad.pl b/examples/advanced_operations/add_display_upload_ad.pl index cf3d12b04..57cb34bcd 100644 --- a/examples/advanced_operations/add_display_upload_ad.pl +++ b/examples/advanced_operations/add_display_upload_ad.pl @@ -29,19 +29,19 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::MediaUtils; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Asset; -use Google::Ads::GoogleAds::V3::Common::AdMediaBundleAsset; -use Google::Ads::GoogleAds::V3::Common::DisplayUploadAdInfo; -use Google::Ads::GoogleAds::V3::Common::MediaBundleAsset; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Enums::DisplayUploadProductTypeEnum +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Asset; +use Google::Ads::GoogleAds::V4::Common::AdMediaBundleAsset; +use Google::Ads::GoogleAds::V4::Common::DisplayUploadAdInfo; +use Google::Ads::GoogleAds::V4::Common::MediaBundleAsset; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Enums::DisplayUploadProductTypeEnum qw(HTML5_UPLOAD_AD); -use Google::Ads::GoogleAds::V3::Enums::AssetTypeEnum qw(MEDIA_BUNDLE); -use Google::Ads::GoogleAds::V3::Services::AssetService::AssetOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Enums::AssetTypeEnum qw(MEDIA_BUNDLE); +use Google::Ads::GoogleAds::V4::Services::AssetService::AssetOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -69,7 +69,7 @@ sub add_display_upload_ad { # There are several types of display upload ads. For this example, we will # create an HTML5 upload ad, which requires a media bundle. # The DisplayUploadProductType field lists the available display upload types: - # https://developers.google.com/google-ads/api/reference/rpc/v3/DisplayUploadAdInfo + # https://developers.google.com/google-ads/api/reference/rpc/V4/DisplayUploadAdInfo # Create a new media bundle asset and return the resource name. my $ad_asset_resource_name = @@ -91,16 +91,16 @@ sub create_media_bundle_asset { my $bundle_content = get_base64_data_from_url(BUNDLE_URL); # Create an asset. - my $asset = Google::Ads::GoogleAds::V3::Resources::Asset->new({ + my $asset = Google::Ads::GoogleAds::V4::Resources::Asset->new({ type => MEDIA_BUNDLE, mediaBundleAsset => - Google::Ads::GoogleAds::V3::Common::MediaBundleAsset->new({ + Google::Ads::GoogleAds::V4::Common::MediaBundleAsset->new({ data => $bundle_content })}); # Create an asset operation. my $asset_operation = - Google::Ads::GoogleAds::V3::Services::AssetService::AssetOperation->new({ + Google::Ads::GoogleAds::V4::Services::AssetService::AssetOperation->new({ create => $asset }); @@ -123,34 +123,34 @@ sub create_display_upload_ad_group_ad { # Create a display upload ad info. my $display_upload_ad_info = - Google::Ads::GoogleAds::V3::Common::DisplayUploadAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::DisplayUploadAdInfo->new({ displayUploadProductType => HTML5_UPLOAD_AD, mediaBundle => - Google::Ads::GoogleAds::V3::Common::AdMediaBundleAsset->new({ + Google::Ads::GoogleAds::V4::Common::AdMediaBundleAsset->new({ asset => $ad_asset_resource_name, })}); # Create a display upload ad. - my $display_upload_ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ + my $display_upload_ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ name => "Ad for HTML5", finalUrls => ["http://example.com/html5"], # Exactly one ad data field must be included to specify the ad type. See - # https://developers.google.com/google-ads/api/reference/rpc/v3/Ad for the + # https://developers.google.com/google-ads/api/reference/rpc/V4/Ad for the # full list of available types. displayUploadAd => $display_upload_ad_info, }); # Create an ad group ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ ad => $display_upload_ad, status => PAUSED, - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id )}); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad. @@ -169,7 +169,7 @@ sub create_display_upload_ad_group_ad { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/add_dynamic_page_feed.pl b/examples/advanced_operations/add_dynamic_page_feed.pl index aa1bc62c1..0a2aa9cc0 100644 --- a/examples/advanced_operations/add_dynamic_page_feed.pl +++ b/examples/advanced_operations/add_dynamic_page_feed.pl @@ -26,35 +26,35 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::FeedAttribute; -use Google::Ads::GoogleAds::V3::Resources::Feed; -use Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping; -use Google::Ads::GoogleAds::V3::Resources::FeedMapping; -use Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue; -use Google::Ads::GoogleAds::V3::Resources::FeedItem; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::WebpageConditionInfo; -use Google::Ads::GoogleAds::V3::Common::WebpageInfo; -use Google::Ads::GoogleAds::V3::Enums::FeedAttributeTypeEnum +use Google::Ads::GoogleAds::V4::Resources::FeedAttribute; +use Google::Ads::GoogleAds::V4::Resources::Feed; +use Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping; +use Google::Ads::GoogleAds::V4::Resources::FeedMapping; +use Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue; +use Google::Ads::GoogleAds::V4::Resources::FeedItem; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::WebpageConditionInfo; +use Google::Ads::GoogleAds::V4::Common::WebpageInfo; +use Google::Ads::GoogleAds::V4::Enums::FeedAttributeTypeEnum qw(URL_LIST STRING_LIST); -use Google::Ads::GoogleAds::V3::Enums::FeedOriginEnum qw(USER); -use Google::Ads::GoogleAds::V3::Enums::DsaPageFeedCriterionFieldEnum +use Google::Ads::GoogleAds::V4::Enums::FeedOriginEnum qw(USER); +use Google::Ads::GoogleAds::V4::Enums::DsaPageFeedCriterionFieldEnum qw(PAGE_URL LABEL); -use Google::Ads::GoogleAds::V3::Enums::FeedMappingCriterionTypeEnum +use Google::Ads::GoogleAds::V4::Enums::FeedMappingCriterionTypeEnum qw(DSA_PAGE_FEED); -use Google::Ads::GoogleAds::V3::Enums::WebpageConditionOperandEnum +use Google::Ads::GoogleAds::V4::Enums::WebpageConditionOperandEnum qw(CUSTOM_LABEL); -use Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation; +use Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation; use - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation; -use Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation; +use Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -104,7 +104,7 @@ sub create_feed { my ($api_client, $customer_id) = @_; # Create a URL attribute. - my $url_attribute = Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new( + my $url_attribute = Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new( { type => URL_LIST, name => "Page URL" @@ -112,13 +112,13 @@ sub create_feed { # Create a label attribute. my $label_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING_LIST, name => "Label" }); # Create the feed. - my $feed = Google::Ads::GoogleAds::V3::Resources::Feed->new({ + my $feed = Google::Ads::GoogleAds::V4::Resources::Feed->new({ name => "DSA Feed #" . uniqid(), attributes => [$url_attribute, $label_attribute], origin => USER @@ -126,7 +126,7 @@ sub create_feed { # Create a feed operation for creating a feed. my $feed_operation = - Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation->new( + Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation->new( {create => $feed}); # Add the feed. @@ -170,26 +170,26 @@ sub create_feed_mapping { # Map the feed attribute IDs to the field ID constants. my $url_field_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_details->{'Page URL'}, dsaPageFeedField => PAGE_URL }); my $label_field_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_details->{Label}, dsaPageFeedField => LABEL }); # Create the feed mapping. - my $feed_mapping = Google::Ads::GoogleAds::V3::Resources::FeedMapping->new({ + my $feed_mapping = Google::Ads::GoogleAds::V4::Resources::FeedMapping->new({ criterionType => DSA_PAGE_FEED, feed => $feed_details->{resourceName}, attributeFieldMappings => [$url_field_mapping, $label_field_mapping]}); # Create the feed mapping operation. my $feed_mapping_operation = - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation ->new({ create => $feed_mapping }); @@ -214,7 +214,7 @@ sub create_feed_items { # Create a label attribute. my $label_attribute_value = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_details->{Label}, stringValue => $dsa_page_url_label }); @@ -224,18 +224,18 @@ sub create_feed_items { foreach my $url (@$urls) { # Create a url attribute. my $url_attribute_value = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_details->{'Page URL'}, stringValue => $url }); # Create a feed item. - my $feed_item = Google::Ads::GoogleAds::V3::Resources::FeedItem->new({ + my $feed_item = Google::Ads::GoogleAds::V4::Resources::FeedItem->new({ feed => $feed_details->{resourceName}, attributeValues => [$url_attribute_value, $label_attribute_value]}); push @$feed_item_operations, - Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation + Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation ->new({ create => $feed_item }); @@ -264,9 +264,9 @@ sub update_campaign_dsa_setting { $dsa_setting->{feeds} = [$feed_resource_name]; # Create the campaign object to be updated. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), dynamicSearchAdsSetting => $dsa_setting @@ -274,7 +274,7 @@ sub update_campaign_dsa_setting { # Create the update operation and set the update mask. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({ update => $campaign, updateMask => @@ -330,24 +330,24 @@ sub add_dsa_target { my ($api_client, $customer_id, $ad_group_id, $dsa_page_url_label) = @_; my $ad_group_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group($customer_id, $ad_group_id); # Create the webpage condition info. my $web_page_condition_info = - Google::Ads::GoogleAds::V3::Common::WebpageConditionInfo->new({ + Google::Ads::GoogleAds::V4::Common::WebpageConditionInfo->new({ operand => CUSTOM_LABEL, argument => $dsa_page_url_label }); # Create the webpage info. - my $web_page_info = Google::Ads::GoogleAds::V3::Common::WebpageInfo->new({ + my $web_page_info = Google::Ads::GoogleAds::V4::Common::WebpageInfo->new({ criterionName => "Test Criterion", conditions => [$web_page_condition_info]}); # Create the ad group criterion. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ adGroup => $ad_group_resource_name, webpage => $web_page_info, cpcBidMicros => 1500000 @@ -355,7 +355,7 @@ sub add_dsa_target { # Create the operation. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion }); @@ -375,7 +375,7 @@ sub add_dsa_target { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/add_dynamic_search_ads.pl b/examples/advanced_operations/add_dynamic_search_ads.pl index 97b174122..04587ba90 100644 --- a/examples/advanced_operations/add_dynamic_search_ads.pl +++ b/examples/advanced_operations/add_dynamic_search_ads.pl @@ -25,34 +25,34 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::DynamicSearchAdsSetting; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::ManualCpc; -use Google::Ads::GoogleAds::V3::Common::ExpandedDynamicSearchAdInfo; -use Google::Ads::GoogleAds::V3::Common::WebpageInfo; -use Google::Ads::GoogleAds::V3::Common::WebpageConditionInfo; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SEARCH); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum qw(SEARCH_DYNAMIC_ADS); -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::WebpageConditionOperandEnum +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::DynamicSearchAdsSetting; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::ManualCpc; +use Google::Ads::GoogleAds::V4::Common::ExpandedDynamicSearchAdInfo; +use Google::Ads::GoogleAds::V4::Common::WebpageInfo; +use Google::Ads::GoogleAds::V4::Common::WebpageConditionInfo; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SEARCH); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum qw(SEARCH_DYNAMIC_ADS); +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::WebpageConditionOperandEnum qw(URL PAGE_TITLE); use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -92,7 +92,7 @@ sub create_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, amountMicros => 50000000 @@ -100,7 +100,7 @@ sub create_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Add the campaign budget. @@ -120,15 +120,15 @@ sub create_campaign { my ($api_client, $customer_id, $campaign_budget_resource_name) = @_; # Create a campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise #" . uniqid(), advertisingChannelType => SEARCH, - status => Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum::PAUSED, - manualCpc => Google::Ads::GoogleAds::V3::Common::ManualCpc->new(), + status => Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum::PAUSED, + manualCpc => Google::Ads::GoogleAds::V4::Common::ManualCpc->new(), campaignBudget => $campaign_budget_resource_name, # Enable the campaign for DSAs. dynamicSearchAdsSetting => - Google::Ads::GoogleAds::V3::Resources::DynamicSearchAdsSetting->new({ + Google::Ads::GoogleAds::V4::Resources::DynamicSearchAdsSetting->new({ domainName => "example.com", languageCode => "en" } @@ -141,7 +141,7 @@ sub create_campaign { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Add the campaign. @@ -161,10 +161,10 @@ sub create_ad_group { my ($api_client, $customer_id, $campaign_resource_name) = @_; # Construct an ad group and set an optional CPC value. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruises #" . uniqid(), campaign => $campaign_resource_name, - status => Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum::PAUSED, + status => Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum::PAUSED, type => SEARCH_DYNAMIC_ADS, trackingUrlTemplate => "http://tracker.examples.com/traveltracker/{escapedlpurl}", @@ -173,7 +173,7 @@ sub create_ad_group { # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Add the ad group. @@ -193,19 +193,19 @@ sub create_expanded_dsa { my ($api_client, $customer_id, $ad_group_resource_name) = @_; # Create an ad group ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ adGroup => $ad_group_resource_name, - status => Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum::PAUSED, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + status => Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum::PAUSED, + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ expandedDynamicSearchAd => - Google::Ads::GoogleAds::V3::Common::ExpandedDynamicSearchAdInfo-> + Google::Ads::GoogleAds::V4::Common::ExpandedDynamicSearchAdInfo-> new({ description => "Buy tickets now!" })})}); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad. @@ -227,28 +227,28 @@ sub add_web_page_criterion { # Create an ad group criterion. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ adGroup => $ad_group_resource_name, status => - Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum::PAUSED, + Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum::PAUSED, cpcBidMicros => 10000000, - webpage => Google::Ads::GoogleAds::V3::Common::WebpageInfo->new({ + webpage => Google::Ads::GoogleAds::V4::Common::WebpageInfo->new({ criterionName => "Special Offers", conditions => [ - Google::Ads::GoogleAds::V3::Common::WebpageConditionInfo->new({ + Google::Ads::GoogleAds::V4::Common::WebpageConditionInfo->new({ operand => URL, argument => "/specialoffers" } ), - Google::Ads::GoogleAds::V3::Common::WebpageConditionInfo->new({ + Google::Ads::GoogleAds::V4::Common::WebpageConditionInfo->new({ operand => PAGE_TITLE, argument => "Special Offers" })]})}); # Create an ad group criterion operation. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({create => $ad_group_criterion}); # Add the ad group criterion. @@ -270,7 +270,7 @@ sub add_web_page_criterion { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.pl b/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.pl index b04dd2c45..a8d560346 100644 --- a/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.pl +++ b/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.pl @@ -25,13 +25,13 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo; -use Google::Ads::GoogleAds::V3::Common::CustomParameter; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; +use Google::Ads::GoogleAds::V4::Common::CustomParameter; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -53,19 +53,19 @@ sub add_expanded_text_ad_with_upgraded_urls { # Create an expanded text ad info. my $expanded_text_ad_info = - Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo->new({ description => "Low-gravity fun for everyone!", headlinePart1 => "Luxury Cruise to Mars", headlinePart2 => "Visit the Red Planet in style.", }); # Create an ad group ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), status => PAUSED, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ # Set the expanded text ad info on an ad. expandedTextAd => $expanded_text_ad_info, # Specify a list of final URLs. This field cannot be set if URL field is set. This @@ -81,12 +81,12 @@ sub add_expanded_text_ad_with_upgraded_urls { # Since your tracking URL has two custom parameters, provide their values too. This can # be provided at campaign, ad group, ad, criterion or feed item levels. urlCustomParameters => [ - Google::Ads::GoogleAds::V3::Common::CustomParameter->new({ + Google::Ads::GoogleAds::V4::Common::CustomParameter->new({ key => "season", value => "christmas" } ), - Google::Ads::GoogleAds::V3::Common::CustomParameter->new({ + Google::Ads::GoogleAds::V4::Common::CustomParameter->new({ key => "promocode", value => "NY123" }) @@ -102,7 +102,7 @@ sub add_expanded_text_ad_with_upgraded_urls { # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad. @@ -122,7 +122,7 @@ sub add_expanded_text_ad_with_upgraded_urls { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/add_gmail_ad.pl b/examples/advanced_operations/add_gmail_ad.pl index 097cdee1a..9a1a45c0e 100644 --- a/examples/advanced_operations/add_gmail_ad.pl +++ b/examples/advanced_operations/add_gmail_ad.pl @@ -27,18 +27,18 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::MediaUtils; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::MediaImage; -use Google::Ads::GoogleAds::V3::Resources::MediaFile; -use Google::Ads::GoogleAds::V3::Common::GmailAdInfo; -use Google::Ads::GoogleAds::V3::Common::GmailTeaser; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Enums::MediaTypeEnum qw(IMAGE); -use Google::Ads::GoogleAds::V3::Enums::MimeTypeEnum qw(IMAGE_PNG IMAGE_JPEG); -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Services::MediaFileService::MediaFileOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::MediaImage; +use Google::Ads::GoogleAds::V4::Resources::MediaFile; +use Google::Ads::GoogleAds::V4::Common::GmailAdInfo; +use Google::Ads::GoogleAds::V4::Common::GmailTeaser; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Enums::MediaTypeEnum qw(IMAGE); +use Google::Ads::GoogleAds::V4::Enums::MimeTypeEnum qw(IMAGE_PNG IMAGE_JPEG); +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Services::MediaFileService::MediaFileOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -65,9 +65,9 @@ sub add_gmail_ad { my $media_files = add_media_files($api_client, $customer_id); # Create the Gmail ad info. - my $gmail_ad_info = Google::Ads::GoogleAds::V3::Common::GmailAdInfo->new({ + my $gmail_ad_info = Google::Ads::GoogleAds::V4::Common::GmailAdInfo->new({ # Set the teaser information. - teaser => Google::Ads::GoogleAds::V3::Common::GmailTeaser->new({ + teaser => Google::Ads::GoogleAds::V4::Common::GmailTeaser->new({ headline => "Dream", description => "Create your own adventure", businessName => "Interplanetary Ships", @@ -81,23 +81,23 @@ sub add_gmail_ad { }); # Set the Gmail ad info on an ad. - my $ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ + my $ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ name => "Gmail Ad #" . uniqid(), finalUrls => ["http://www.example.com"], gmailAd => $gmail_ad_info }); # Create an ad group ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ ad => $ad, status => PAUSED, - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id )}); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad. @@ -119,9 +119,9 @@ sub add_media_files { my $logo_image_data = get_base64_data_from_url(LOGO_IMAGE_URL); # Create the logo image. - my $logo_media_file = Google::Ads::GoogleAds::V3::Resources::MediaFile->new({ + my $logo_media_file = Google::Ads::GoogleAds::V4::Resources::MediaFile->new({ type => IMAGE, - image => Google::Ads::GoogleAds::V3::Resources::MediaImage->new({ + image => Google::Ads::GoogleAds::V4::Resources::MediaImage->new({ data => $logo_image_data } ), @@ -130,7 +130,7 @@ sub add_media_files { # Create the operation for the logo image. my $logo_media_file_operation = - Google::Ads::GoogleAds::V3::Services::MediaFileService::MediaFileOperation + Google::Ads::GoogleAds::V4::Services::MediaFileService::MediaFileOperation ->new({ create => $logo_media_file }); @@ -140,9 +140,9 @@ sub add_media_files { # Create the marketing image. my $marketing_media_file = - Google::Ads::GoogleAds::V3::Resources::MediaFile->new({ + Google::Ads::GoogleAds::V4::Resources::MediaFile->new({ type => IMAGE, - image => Google::Ads::GoogleAds::V3::Resources::MediaImage->new({ + image => Google::Ads::GoogleAds::V4::Resources::MediaImage->new({ data => $marketing_image_data } ), @@ -151,7 +151,7 @@ sub add_media_files { # Create the operation for the marketing image. my $marketing_media_file_operation = - Google::Ads::GoogleAds::V3::Services::MediaFileService::MediaFileOperation + Google::Ads::GoogleAds::V4::Services::MediaFileService::MediaFileOperation ->new({ create => $marketing_media_file }); @@ -181,7 +181,7 @@ sub add_media_files { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/add_smart_display_ad.pl b/examples/advanced_operations/add_smart_display_ad.pl index 9e74bdf11..893c656dc 100644 --- a/examples/advanced_operations/add_smart_display_ad.pl +++ b/examples/advanced_operations/add_smart_display_ad.pl @@ -36,30 +36,30 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::MediaUtils; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Resources::Asset; -use Google::Ads::GoogleAds::V3::Common::TargetCpa; -use Google::Ads::GoogleAds::V3::Common::ResponsiveDisplayAdInfo; -use Google::Ads::GoogleAds::V3::Common::AdTextAsset; -use Google::Ads::GoogleAds::V3::Common::AdImageAsset; -use Google::Ads::GoogleAds::V3::Common::ImageAsset; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(DISPLAY); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelSubTypeEnum +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Resources::Asset; +use Google::Ads::GoogleAds::V4::Common::TargetCpa; +use Google::Ads::GoogleAds::V4::Common::ResponsiveDisplayAdInfo; +use Google::Ads::GoogleAds::V4::Common::AdTextAsset; +use Google::Ads::GoogleAds::V4::Common::AdImageAsset; +use Google::Ads::GoogleAds::V4::Common::ImageAsset; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(DISPLAY); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelSubTypeEnum qw(DISPLAY_SMART_CAMPAIGN); -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AssetTypeEnum qw(IMAGE); +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AssetTypeEnum qw(IMAGE); use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Services::AssetService::AssetOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Services::AssetService::AssetOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -117,7 +117,7 @@ sub create_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, amountMicros => 5000000 @@ -125,7 +125,7 @@ sub create_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({ create => $campaign_budget }); @@ -147,7 +147,7 @@ sub create_campaign_budget { sub create_smart_display_campaign { my ($api_client, $customer_id, $campaign_budget_resource_name) = @_; - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Smart Display Campaign #" . uniqid(), # Smart Display campaign requires the advertising_channel_type as 'DISPLAY'. advertisingChannelType => DISPLAY, @@ -155,7 +155,7 @@ sub create_smart_display_campaign { # 'DISPLAY_SMART_CAMPAIGN'. advertisingChannelSubType => DISPLAY_SMART_CAMPAIGN, # Smart Display campaign requires the TargetCpa bidding strategy. - targetCpa => Google::Ads::GoogleAds::V3::Common::TargetCpa->new({ + targetCpa => Google::Ads::GoogleAds::V4::Common::TargetCpa->new({ targetCpaMicros => 5000000 } ), @@ -168,7 +168,7 @@ sub create_smart_display_campaign { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({ create => $campaign }); @@ -192,15 +192,15 @@ sub create_ad_group { my ($api_client, $customer_id, $campaign_resource_name) = @_; # Construct an ad group and set its type. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruises #" . uniqid(), campaign => $campaign_resource_name, - status => Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum::PAUSED + status => Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum::PAUSED }); # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation->new( + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation->new( { create => $ad_group }); @@ -241,19 +241,19 @@ sub create_responsive_display_ad { # Create a responsive display ad info. my $responsive_display_ad_info = - Google::Ads::GoogleAds::V3::Common::ResponsiveDisplayAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ResponsiveDisplayAdInfo->new({ # Set some basic required information for the responsive display ad. headlines => [ - Google::Ads::GoogleAds::V3::Common::AdTextAsset->new({ + Google::Ads::GoogleAds::V4::Common::AdTextAsset->new({ text => "Travel" }) ], - longHeadline => Google::Ads::GoogleAds::V3::Common::AdTextAsset->new({ + longHeadline => Google::Ads::GoogleAds::V4::Common::AdTextAsset->new({ text => "Travel the World" } ), descriptions => [ - Google::Ads::GoogleAds::V3::Common::AdTextAsset->new({ + Google::Ads::GoogleAds::V4::Common::AdTextAsset->new({ text => "Take to the air!" }) ], @@ -261,12 +261,12 @@ sub create_responsive_display_ad { # Set the marketing image and square marketing image to the previously # created image assets. marketingImages => [ - Google::Ads::GoogleAds::V3::Common::AdImageAsset->new({ + Google::Ads::GoogleAds::V4::Common::AdImageAsset->new({ asset => $marketing_image_asset_resource_name }) ], squareMarketingImages => [ - Google::Ads::GoogleAds::V3::Common::AdImageAsset->new({ + Google::Ads::GoogleAds::V4::Common::AdImageAsset->new({ asset => $square_marketing_image_asset_resource_name }) ], @@ -277,17 +277,17 @@ sub create_responsive_display_ad { }); # Create an ad group ad with the created responsive display ad info. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ adGroup => $ad_group_resource_name, - status => Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum::PAUSED, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + status => Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum::PAUSED, + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ finalUrls => ["https://www.example.com"], responsiveDisplayAd => $responsive_display_ad_info })}); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({ create => $ad_group_ad }); @@ -308,15 +308,15 @@ sub create_image_asset { my ($api_client, $customer_id, $image_url, $image_name) = @_; # Create an asset. - my $asset = Google::Ads::GoogleAds::V3::Resources::Asset->new({ + my $asset = Google::Ads::GoogleAds::V4::Resources::Asset->new({ name => $image_name, type => IMAGE, - imageAsset => Google::Ads::GoogleAds::V3::Common::ImageAsset->new({ + imageAsset => Google::Ads::GoogleAds::V4::Common::ImageAsset->new({ data => get_base64_data_from_url($image_url)})}); # Create an asset operation. my $asset_operation = - Google::Ads::GoogleAds::V3::Services::AssetService::AssetOperation->new({ + Google::Ads::GoogleAds::V4::Services::AssetService::AssetOperation->new({ create => $asset }); @@ -339,7 +339,7 @@ sub create_image_asset { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/create_and_attach_shared_keyword_set.pl b/examples/advanced_operations/create_and_attach_shared_keyword_set.pl index 9dd8d58ea..32b7ada35 100644 --- a/examples/advanced_operations/create_and_attach_shared_keyword_set.pl +++ b/examples/advanced_operations/create_and_attach_shared_keyword_set.pl @@ -25,18 +25,18 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::SharedSet; -use Google::Ads::GoogleAds::V3::Resources::SharedCriterion; -use Google::Ads::GoogleAds::V3::Resources::CampaignSharedSet; -use Google::Ads::GoogleAds::V3::Common::KeywordInfo; -use Google::Ads::GoogleAds::V3::Enums::SharedSetTypeEnum qw(NEGATIVE_KEYWORDS); -use Google::Ads::GoogleAds::V3::Enums::KeywordMatchTypeEnum qw(BROAD); -use Google::Ads::GoogleAds::V3::Services::SharedSetService::SharedSetOperation; +use Google::Ads::GoogleAds::V4::Resources::SharedSet; +use Google::Ads::GoogleAds::V4::Resources::SharedCriterion; +use Google::Ads::GoogleAds::V4::Resources::CampaignSharedSet; +use Google::Ads::GoogleAds::V4::Common::KeywordInfo; +use Google::Ads::GoogleAds::V4::Enums::SharedSetTypeEnum qw(NEGATIVE_KEYWORDS); +use Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum qw(BROAD); +use Google::Ads::GoogleAds::V4::Services::SharedSetService::SharedSetOperation; use - Google::Ads::GoogleAds::V3::Services::SharedCriterionService::SharedCriterionOperation; + Google::Ads::GoogleAds::V4::Services::SharedCriterionService::SharedCriterionOperation; use - Google::Ads::GoogleAds::V3::Services::CampaignSharedSetService::CampaignSharedSetOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignSharedSetService::CampaignSharedSetOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -58,13 +58,13 @@ sub create_and_attach_shared_keyword_set { my ($api_client, $customer_id, $campaign_id) = @_; # Create shared negative keyword set. - my $shared_set = Google::Ads::GoogleAds::V3::Resources::SharedSet->new({ + my $shared_set = Google::Ads::GoogleAds::V4::Resources::SharedSet->new({ name => "API Negative keyword list - " . uniqid(), type => NEGATIVE_KEYWORDS }); my $shared_set_operation = - Google::Ads::GoogleAds::V3::Services::SharedSetService::SharedSetOperation + Google::Ads::GoogleAds::V4::Services::SharedSetService::SharedSetOperation ->new({ create => $shared_set }); @@ -83,8 +83,8 @@ sub create_and_attach_shared_keyword_set { my $keywords = ['mars cruise', 'mars hotels']; foreach my $keyword (@$keywords) { my $shared_criterion = - Google::Ads::GoogleAds::V3::Resources::SharedCriterion->new({ - keyword => Google::Ads::GoogleAds::V3::Common::KeywordInfo->new({ + Google::Ads::GoogleAds::V4::Resources::SharedCriterion->new({ + keyword => Google::Ads::GoogleAds::V4::Common::KeywordInfo->new({ text => $keyword, matchType => BROAD } @@ -93,7 +93,7 @@ sub create_and_attach_shared_keyword_set { }); my $shared_criterion_operation = - Google::Ads::GoogleAds::V3::Services::SharedCriterionService::SharedCriterionOperation + Google::Ads::GoogleAds::V4::Services::SharedCriterionService::SharedCriterionOperation ->new({ create => $shared_criterion }); @@ -114,15 +114,15 @@ sub create_and_attach_shared_keyword_set { # Create campaign shared set. my $campaign_shared_set = - Google::Ads::GoogleAds::V3::Resources::CampaignSharedSet->new({ - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + Google::Ads::GoogleAds::V4::Resources::CampaignSharedSet->new({ + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), sharedSet => $shared_set_resource_name }); my $campaign_shared_set_operation = - Google::Ads::GoogleAds::V3::Services::CampaignSharedSetService::CampaignSharedSetOperation + Google::Ads::GoogleAds::V4::Services::CampaignSharedSetService::CampaignSharedSetOperation ->new({ create => $campaign_shared_set }); @@ -143,7 +143,7 @@ sub create_and_attach_shared_keyword_set { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/find_and_remove_criteria_from_shared_set.pl b/examples/advanced_operations/find_and_remove_criteria_from_shared_set.pl index c6ff8d1a2..a01a60be0 100644 --- a/examples/advanced_operations/find_and_remove_criteria_from_shared_set.pl +++ b/examples/advanced_operations/find_and_remove_criteria_from_shared_set.pl @@ -26,11 +26,11 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; -use Google::Ads::GoogleAds::V3::Enums::CriterionTypeEnum qw(KEYWORD); +use Google::Ads::GoogleAds::V4::Enums::CriterionTypeEnum qw(KEYWORD); use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use - Google::Ads::GoogleAds::V3::Services::SharedCriterionService::SharedCriterionOperation; + Google::Ads::GoogleAds::V4::Services::SharedCriterionService::SharedCriterionOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -61,7 +61,7 @@ sub find_and_remove_criteria_from_shared_set { "WHERE campaign.id = $campaign_id"; my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -99,7 +99,7 @@ sub find_and_remove_criteria_from_shared_set { join(',', @$shared_set_ids); $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -137,7 +137,7 @@ sub find_and_remove_criteria_from_shared_set { my $shared_criterion_operations = []; foreach my $criterion_resource_name (@$criterion_resource_names) { push @$shared_criterion_operations, - Google::Ads::GoogleAds::V3::Services::SharedCriterionService::SharedCriterionOperation + Google::Ads::GoogleAds::V4::Services::SharedCriterionService::SharedCriterionOperation ->new({ remove => $criterion_resource_name }); @@ -164,7 +164,7 @@ sub find_and_remove_criteria_from_shared_set { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/get_ad_group_bid_modifiers.pl b/examples/advanced_operations/get_ad_group_bid_modifiers.pl index 62f6410f8..28a30ddbb 100644 --- a/examples/advanced_operations/get_ad_group_bid_modifiers.pl +++ b/examples/advanced_operations/get_ad_group_bid_modifiers.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -61,7 +61,7 @@ sub get_ad_group_bid_modifiers { # Create a search Google Ads request that will retrieve all ad group bid modifiers # using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -104,7 +104,7 @@ sub get_ad_group_bid_modifiers { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/advanced_operations/use_portfolio_bidding_strategy.pl b/examples/advanced_operations/use_portfolio_bidding_strategy.pl index 016146e51..1b5c12a82 100644 --- a/examples/advanced_operations/use_portfolio_bidding_strategy.pl +++ b/examples/advanced_operations/use_portfolio_bidding_strategy.pl @@ -25,20 +25,20 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::BiddingStrategy; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::NetworkSettings; -use Google::Ads::GoogleAds::V3::Common::TargetSpend; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SEARCH); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Resources::BiddingStrategy; +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::NetworkSettings; +use Google::Ads::GoogleAds::V4::Common::TargetSpend; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SEARCH); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum qw(PAUSED); use - Google::Ads::GoogleAds::V3::Services::BiddingStrategyService::BiddingStrategyOperation; + Google::Ads::GoogleAds::V4::Services::BiddingStrategyService::BiddingStrategyOperation; use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -66,7 +66,7 @@ sub use_portfolio_bidding_strategy { my $campaign_budget_resource_name = $campaign_budget_id - ? Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_budget( + ? Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_budget( $customer_id, $campaign_budget_id) : create_shared_campaign_buget($api_client, $customer_id); @@ -85,9 +85,9 @@ sub create_bidding_strategy { # Create a portfolio bidding strategy. my $portfolio_bidding_strategy = - Google::Ads::GoogleAds::V3::Resources::BiddingStrategy->new({ + Google::Ads::GoogleAds::V4::Resources::BiddingStrategy->new({ name => "Maximize Clicks #" . uniqid(), - targetSpend => Google::Ads::GoogleAds::V3::Common::TargetSpend->new({ + targetSpend => Google::Ads::GoogleAds::V4::Common::TargetSpend->new({ cpcBidCeilingMicros => 2000000, targetSpendMicros => 20000000 } @@ -96,7 +96,7 @@ sub create_bidding_strategy { # Create a bidding strategy operation. my $bidding_strategy_operation = - Google::Ads::GoogleAds::V3::Services::BiddingStrategyService::BiddingStrategyOperation + Google::Ads::GoogleAds::V4::Services::BiddingStrategyService::BiddingStrategyOperation ->new({ create => $portfolio_bidding_strategy }); @@ -122,7 +122,7 @@ sub create_shared_campaign_buget { # Create a shared budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Shared Interplanetary Budget #" . uniqid(), deliveryMethod => STANDARD, # Set the amount of budget. @@ -133,7 +133,7 @@ sub create_shared_campaign_buget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Add the campaign budget. @@ -159,7 +159,7 @@ sub create_campaign_with_bidding_strategy { ) = @_; # Create a search campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise #" . uniqid(), advertisingChannelType => SEARCH, # Recommendation: Set the campaign to PAUSED when creating it to stop @@ -168,7 +168,7 @@ sub create_campaign_with_bidding_strategy { status => PAUSED, # Configures the campaign network options. networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetGoogleSearch => "true", targetSearchNetwork => "true", targetContentNetwork => "true" @@ -181,7 +181,7 @@ sub create_campaign_with_bidding_strategy { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Add the campaign. @@ -201,7 +201,7 @@ sub create_campaign_with_bidding_strategy { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/add_ad_groups.pl b/examples/basic_operations/add_ad_groups.pl index 4bf225cc8..11863d298 100644 --- a/examples/basic_operations/add_ad_groups.pl +++ b/examples/basic_operations/add_ad_groups.pl @@ -24,11 +24,11 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum qw(ENABLED); -use Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -50,10 +50,10 @@ sub add_ad_groups { my ($api_client, $customer_id, $campaign_id) = @_; # Create an ad group, setting an optional CPC value. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruises #" . uniqid(), status => ENABLED, - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), type => SEARCH_STANDARD, @@ -62,7 +62,7 @@ sub add_ad_groups { # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Add the ad group. @@ -82,7 +82,7 @@ sub add_ad_groups { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/add_campaigns.pl b/examples/basic_operations/add_campaigns.pl index 4615946e6..15ba59b65 100644 --- a/examples/basic_operations/add_campaigns.pl +++ b/examples/basic_operations/add_campaigns.pl @@ -24,16 +24,16 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::NetworkSettings; -use Google::Ads::GoogleAds::V3::Common::ManualCpc; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SEARCH); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::NetworkSettings; +use Google::Ads::GoogleAds::V4::Common::ManualCpc; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SEARCH); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum qw(PAUSED); use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -56,7 +56,7 @@ sub add_campaigns { # Create a campaign budget, which can be shared by multiple campaigns. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary budget #" . uniqid(), deliveryMethod => STANDARD, amountMicros => 500000 @@ -64,7 +64,7 @@ sub add_campaigns { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Add the campaign budget. @@ -73,7 +73,7 @@ sub add_campaigns { operations => [$campaign_budget_operation]}); # Create a campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise #" . uniqid(), advertisingChannelType => SEARCH, # Recommendation: Set the campaign to PAUSED when creating it to stop @@ -81,13 +81,13 @@ sub add_campaigns { # targeting and the ads are ready to serve. status => PAUSED, # Set the bidding strategy and budget. - manualCpc => Google::Ads::GoogleAds::V3::Common::ManualCpc->new( + manualCpc => Google::Ads::GoogleAds::V4::Common::ManualCpc->new( {enhancedCpcEnabled => "true"} ), campaignBudget => $campaign_budget_response->{results}[0]{resourceName}, # Set the campaign network options. networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetGoogleSearch => "true", targetSearchNetwork => "true", targetContentNetwork => "false", @@ -102,7 +102,7 @@ sub add_campaigns { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Add the campaign. @@ -122,7 +122,7 @@ sub add_campaigns { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/add_expanded_text_ads.pl b/examples/basic_operations/add_expanded_text_ads.pl index 23b42e28d..87e90ff27 100644 --- a/examples/basic_operations/add_expanded_text_ads.pl +++ b/examples/basic_operations/add_expanded_text_ads.pl @@ -25,12 +25,12 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -53,7 +53,7 @@ sub add_expanded_text_ads { # Create an expanded text ad info. my $expanded_text_ad_info = - Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo->new({ description => "Buy your tickets now!", headlinePart1 => "Cruise to Mars " . uniqid, headlinePart2 => "Best Space Cruise Line", @@ -62,19 +62,19 @@ sub add_expanded_text_ads { }); # Create an ad group ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), status => PAUSED, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ expandedTextAd => $expanded_text_ad_info, finalUrls => "http://www.example.com" })}); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad. @@ -94,7 +94,7 @@ sub add_expanded_text_ads { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/add_keywords.pl b/examples/basic_operations/add_keywords.pl index ac8086497..cd91192a7 100644 --- a/examples/basic_operations/add_keywords.pl +++ b/examples/basic_operations/add_keywords.pl @@ -25,13 +25,13 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::KeywordInfo; -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum qw(ENABLED); -use Google::Ads::GoogleAds::V3::Enums::KeywordMatchTypeEnum qw(EXACT); +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::KeywordInfo; +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum qw(EXACT); use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -54,19 +54,19 @@ sub add_keywords { # Create a keyword. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), status => ENABLED, - keyword => Google::Ads::GoogleAds::V3::Common::KeywordInfo->new({ + keyword => Google::Ads::GoogleAds::V4::Common::KeywordInfo->new({ text => $keyword_text, matchType => EXACT })}); # Create an ad group criterion operation. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({create => $ad_group_criterion}); # Add the keyword. @@ -87,7 +87,7 @@ sub add_keywords { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/add_responsive_search_ad.pl b/examples/basic_operations/add_responsive_search_ad.pl index c1bfc7f1d..34dcf70df 100644 --- a/examples/basic_operations/add_responsive_search_ad.pl +++ b/examples/basic_operations/add_responsive_search_ad.pl @@ -25,14 +25,14 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::AdTextAsset; -use Google::Ads::GoogleAds::V3::Common::ResponsiveSearchAdInfo; -use Google::Ads::GoogleAds::V3::Enums::ServedAssetFieldTypeEnum qw(HEADLINE_1); -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::AdTextAsset; +use Google::Ads::GoogleAds::V4::Common::ResponsiveSearchAdInfo; +use Google::Ads::GoogleAds::V4::Enums::ServedAssetFieldTypeEnum qw(HEADLINE_1); +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -56,14 +56,14 @@ sub add_responsive_search_ad { # Set a pinning to always choose this asset for HEADLINE_1. Pinning is optional; # if no pinning is set, then headlines and descriptions will be rotated and the # ones that perform best will be used more often. - my $pinned_headline = Google::Ads::GoogleAds::V3::Common::AdTextAsset->new({ + my $pinned_headline = Google::Ads::GoogleAds::V4::Common::AdTextAsset->new({ text => "Cruise to Mars #" . uniqid(), pinnedField => HEADLINE_1 }); # Create a responsive search ad info. my $responsive_search_ad_info = - Google::Ads::GoogleAds::V3::Common::ResponsiveSearchAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ResponsiveSearchAdInfo->new({ headlines => [ $pinned_headline, create_ad_text_asset("Best Space Cruise Line"), @@ -78,19 +78,19 @@ sub add_responsive_search_ad { }); # Create an ad group ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), status => PAUSED, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ responsiveSearchAd => $responsive_search_ad_info, finalUrls => "http://www.example.com" })}); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad. @@ -107,7 +107,7 @@ sub add_responsive_search_ad { # Creates an ad text asset from a given string. sub create_ad_text_asset { my $text = shift; - return Google::Ads::GoogleAds::V3::Common::AdTextAsset->new({ + return Google::Ads::GoogleAds::V4::Common::AdTextAsset->new({ text => $text }); } @@ -118,7 +118,7 @@ sub create_ad_text_asset { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/get_ad_groups.pl b/examples/basic_operations/get_ad_groups.pl index a2581be41..7d3fda748 100644 --- a/examples/basic_operations/get_ad_groups.pl +++ b/examples/basic_operations/get_ad_groups.pl @@ -27,7 +27,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -60,7 +60,7 @@ sub get_ad_groups { # Create a search Google Ads request that will retrieve all ad groups using pages # of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -94,7 +94,7 @@ sub get_ad_groups { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/get_artifact_metadata.pl b/examples/basic_operations/get_artifact_metadata.pl index 763c84484..f25fde282 100644 --- a/examples/basic_operations/get_artifact_metadata.pl +++ b/examples/basic_operations/get_artifact_metadata.pl @@ -98,7 +98,7 @@ sub is_or_not { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/get_campaigns.pl b/examples/basic_operations/get_campaigns.pl index 481379790..eabeaf342 100644 --- a/examples/basic_operations/get_campaigns.pl +++ b/examples/basic_operations/get_campaigns.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -47,7 +47,7 @@ sub get_campaigns { # Create a search Google Ads stream request that will retrieve all campaigns. my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id, query => @@ -81,7 +81,7 @@ sub get_campaigns { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/get_expanded_text_ads.pl b/examples/basic_operations/get_expanded_text_ads.pl index f1e5f06fe..2764d960f 100644 --- a/examples/basic_operations/get_expanded_text_ads.pl +++ b/examples/basic_operations/get_expanded_text_ads.pl @@ -27,7 +27,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -64,7 +64,7 @@ sub get_expanded_text_ads { # Create a search Google Ads request that will retrieve all expanded text ads # using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -106,7 +106,7 @@ sub get_expanded_text_ads { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/get_keywords.pl b/examples/basic_operations/get_keywords.pl index c95cee30e..1e2aec152 100644 --- a/examples/basic_operations/get_keywords.pl +++ b/examples/basic_operations/get_keywords.pl @@ -27,7 +27,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -64,7 +64,7 @@ sub get_keywords { # Create a search Google Ads request that will retrieve all keywords using pages # of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -107,7 +107,7 @@ sub get_keywords { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/get_responsive_search_ads.pl b/examples/basic_operations/get_responsive_search_ads.pl index c04fb0d43..84769882f 100644 --- a/examples/basic_operations/get_responsive_search_ads.pl +++ b/examples/basic_operations/get_responsive_search_ads.pl @@ -27,9 +27,9 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; -use Google::Ads::GoogleAds::V3::Enums::ServedAssetFieldTypeEnum qw(UNSPECIFIED); +use Google::Ads::GoogleAds::V4::Enums::ServedAssetFieldTypeEnum qw(UNSPECIFIED); use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -67,7 +67,7 @@ sub get_responsive_search_ads { # Create a search Google Ads request that will retrieve all responsive search # ads using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -134,7 +134,7 @@ sub ad_text_assets_to_strs { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/pause_ad.pl b/examples/basic_operations/pause_ad.pl index 942f96274..894b94d6d 100644 --- a/examples/basic_operations/pause_ad.pl +++ b/examples/basic_operations/pause_ad.pl @@ -25,10 +25,10 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -50,9 +50,9 @@ sub pause_ad { my ($api_client, $customer_id, $ad_group_id, $ad_id) = @_; # Create an ad group ad with its status set to PAUSED. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_ad( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_ad( $customer_id, $ad_group_id, $ad_id ), status => PAUSED @@ -61,7 +61,7 @@ sub pause_ad { # Create an ad group ad operation for update, using the FieldMasks utility # to derive the update mask. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({ update => $ad_group_ad, updateMask => all_set_fields_of($ad_group_ad)}); @@ -83,7 +83,7 @@ sub pause_ad { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/remove_ad.pl b/examples/basic_operations/remove_ad.pl index 2dcfca45a..5838ef2ad 100644 --- a/examples/basic_operations/remove_ad.pl +++ b/examples/basic_operations/remove_ad.pl @@ -24,8 +24,8 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -48,9 +48,9 @@ sub remove_ad { # Create a single remove operation, specifying the ad's resource name. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({ - remove => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_ad( + remove => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_ad( $customer_id, $ad_group_id, $ad_id )}); @@ -71,7 +71,7 @@ sub remove_ad { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/remove_ad_group.pl b/examples/basic_operations/remove_ad_group.pl index 28afa614e..1e20d4e8d 100644 --- a/examples/basic_operations/remove_ad_group.pl +++ b/examples/basic_operations/remove_ad_group.pl @@ -24,8 +24,8 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -47,9 +47,9 @@ sub remove_ad_group { # Create a single remove operation, specifying the ad group's resource name. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation->new( + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation->new( { - remove => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + remove => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id )}); @@ -70,7 +70,7 @@ sub remove_ad_group { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/remove_campaign.pl b/examples/basic_operations/remove_campaign.pl index 081180fa6..bbd4ac531 100644 --- a/examples/basic_operations/remove_campaign.pl +++ b/examples/basic_operations/remove_campaign.pl @@ -24,8 +24,8 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -47,9 +47,9 @@ sub remove_campaign { # Create a single remove operation, specifying the campaign's resource name. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({ - remove => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + remove => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id )}); @@ -70,7 +70,7 @@ sub remove_campaign { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/remove_keyword.pl b/examples/basic_operations/remove_keyword.pl index c2585620f..fc479d437 100644 --- a/examples/basic_operations/remove_keyword.pl +++ b/examples/basic_operations/remove_keyword.pl @@ -26,8 +26,8 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -51,10 +51,10 @@ sub remove_keyword { # Create a single remove operation, specifying the keyword ad group criterion's # resource name. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ remove => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_criterion( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_criterion( $customer_id, $ad_group_id, $criterion_id )}); @@ -76,7 +76,7 @@ sub remove_keyword { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/update_ad_group.pl b/examples/basic_operations/update_ad_group.pl index 230eb28e7..18fff08df 100644 --- a/examples/basic_operations/update_ad_group.pl +++ b/examples/basic_operations/update_ad_group.pl @@ -26,10 +26,10 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -51,9 +51,9 @@ sub update_ad_group { my ($api_client, $customer_id, $ad_group_id, $cpc_bid_micro_amount) = @_; # Create an ad group with the proper resource name and any other changes. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), status => PAUSED, @@ -63,7 +63,7 @@ sub update_ad_group { # Create an ad group operation for update, using the FieldMasks utility to # derive the update mask. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation->new( + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation->new( { update => $ad_group, updateMask => all_set_fields_of($ad_group)}); @@ -85,7 +85,7 @@ sub update_ad_group { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/update_campaign.pl b/examples/basic_operations/update_campaign.pl index 5b4a37a71..4003bd24a 100644 --- a/examples/basic_operations/update_campaign.pl +++ b/examples/basic_operations/update_campaign.pl @@ -26,11 +26,11 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::NetworkSettings; -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::NetworkSettings; +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -51,21 +51,21 @@ sub update_campaign { my ($api_client, $customer_id, $campaign_id) = @_; # Create a campaign with the proper resource name and any other changes. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), status => PAUSED, networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetSearchNetwork => "false" })}); # Create a campaign operation for update, using the FieldMasks utility to # derive the update mask. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({ update => $campaign, updateMask => all_set_fields_of($campaign)}); @@ -87,7 +87,7 @@ sub update_campaign { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/update_expanded_text_ad.pl b/examples/basic_operations/update_expanded_text_ad.pl index 9d77346d1..71d66ba1f 100644 --- a/examples/basic_operations/update_expanded_text_ad.pl +++ b/examples/basic_operations/update_expanded_text_ad.pl @@ -26,10 +26,10 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo; -use Google::Ads::GoogleAds::V3::Services::AdService::AdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; +use Google::Ads::GoogleAds::V4::Services::AdService::AdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -51,12 +51,12 @@ sub update_expanded_text_ad { my ($api_client, $customer_id, $ad_id) = @_; # Create an ad with the proper resource name and any other changes. - my $ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ - resourceName => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad( + my $ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ + resourceName => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad( $customer_id, $ad_id ), expandedTextAd => - Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo->new({ # Update some properties of the expanded text ad. headlinePart1 => "Cruise to Pluto #" . uniqid(), headlinePart2 => "Tickets on sale now", @@ -69,7 +69,7 @@ sub update_expanded_text_ad { # Create an ad operation for update, using the FieldMasks utility to derive # the update mask. my $ad_operation = - Google::Ads::GoogleAds::V3::Services::AdService::AdOperation->new({ + Google::Ads::GoogleAds::V4::Services::AdService::AdOperation->new({ update => $ad, updateMask => all_set_fields_of($ad)}); @@ -90,7 +90,7 @@ sub update_expanded_text_ad { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/basic_operations/update_keyword.pl b/examples/basic_operations/update_keyword.pl index 7e6a46115..c7059871c 100644 --- a/examples/basic_operations/update_keyword.pl +++ b/examples/basic_operations/update_keyword.pl @@ -26,11 +26,11 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum qw(ENABLED); use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -53,9 +53,9 @@ sub update_keyword { # Create an ad group criterion with the proper resource name and any other changes. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_criterion( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_criterion( $customer_id, $ad_group_id, $criterion_id ), status => ENABLED, @@ -67,7 +67,7 @@ sub update_keyword { # Create an ad group criterion operation for update, using the FieldMasks utility # to derive the update mask. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ update => $ad_group_criterion, updateMask => all_set_fields_of($ad_group_criterion)}); @@ -90,7 +90,7 @@ sub update_keyword { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/billing/add_account_budget_proposal.pl b/examples/billing/add_account_budget_proposal.pl index 1afc4eeda..9a657b481 100644 --- a/examples/billing/add_account_budget_proposal.pl +++ b/examples/billing/add_account_budget_proposal.pl @@ -25,12 +25,12 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AccountBudgetProposal; -use Google::Ads::GoogleAds::V3::Enums::AccountBudgetProposalTypeEnum qw(CREATE); -use Google::Ads::GoogleAds::V3::Enums::TimeTypeEnum qw(NOW FOREVER); +use Google::Ads::GoogleAds::V4::Resources::AccountBudgetProposal; +use Google::Ads::GoogleAds::V4::Enums::AccountBudgetProposalTypeEnum qw(CREATE); +use Google::Ads::GoogleAds::V4::Enums::TimeTypeEnum qw(NOW FOREVER); use - Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalService::AccountBudgetProposalOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalService::AccountBudgetProposalOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -52,9 +52,9 @@ sub add_account_budget_proposal { # Create an account budget proposal. my $account_budget_proposal = - Google::Ads::GoogleAds::V3::Resources::AccountBudgetProposal->new({ + Google::Ads::GoogleAds::V4::Resources::AccountBudgetProposal->new({ billingSetup => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::billing_setup( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::billing_setup( $customer_id, $billing_setup_id ), proposalType => CREATE, @@ -85,7 +85,7 @@ sub add_account_budget_proposal { # Create an account budget proposal operation. my $account_budget_proposal_operation = - Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalService::AccountBudgetProposalOperation + Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalService::AccountBudgetProposalOperation ->new({ create => $account_budget_proposal }); @@ -109,7 +109,7 @@ sub add_account_budget_proposal { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/billing/get_account_budget_proposals.pl b/examples/billing/get_account_budget_proposals.pl index 32a1fef75..385c448b8 100644 --- a/examples/billing/get_account_budget_proposals.pl +++ b/examples/billing/get_account_budget_proposals.pl @@ -27,7 +27,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -65,7 +65,7 @@ sub get_account_budget_proposals { # Create a search Google Ads request that will retrieve the account budget # proposals using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -120,7 +120,7 @@ sub get_account_budget_proposals { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/billing/get_account_budgets.pl b/examples/billing/get_account_budgets.pl index 0c7d61f30..7e15cade0 100644 --- a/examples/billing/get_account_budgets.pl +++ b/examples/billing/get_account_budgets.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -64,7 +64,7 @@ sub get_account_budgets { # Create a search Google Ads stream request that will retrieve the account # budgets. my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id, query => $search_query, @@ -133,7 +133,7 @@ sub get_account_budgets { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/billing/get_billing_setup.pl b/examples/billing/get_billing_setup.pl index 4de09d184..d673d7718 100644 --- a/examples/billing/get_billing_setup.pl +++ b/examples/billing/get_billing_setup.pl @@ -27,7 +27,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -62,7 +62,7 @@ sub get_billing_setup { # Create a search Google Ads request that will retrieve the billing setups # using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -118,7 +118,7 @@ sub get_billing_setup { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/billing/remove_billing_setup.pl b/examples/billing/remove_billing_setup.pl index 28ffb1544..28fe18765 100644 --- a/examples/billing/remove_billing_setup.pl +++ b/examples/billing/remove_billing_setup.pl @@ -26,8 +26,8 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use - Google::Ads::GoogleAds::V3::Services::BillingSetupService::BillingSetupOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::BillingSetupService::BillingSetupOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -49,12 +49,12 @@ sub remove_billing_setup { # Create the resource name of a billing setup to remove. my $billing_setup_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::billing_setup( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::billing_setup( $customer_id, $billing_setup_id); # Create a billing setup operation. my $billing_setup_operation = - Google::Ads::GoogleAds::V3::Services::BillingSetupService::BillingSetupOperation + Google::Ads::GoogleAds::V4::Services::BillingSetupService::BillingSetupOperation ->new({ remove => $billing_setup_resource_name }); @@ -77,7 +77,7 @@ sub remove_billing_setup { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/add_campaign_bid_modifier.pl b/examples/campaign_management/add_campaign_bid_modifier.pl index d7c576429..0d68538bc 100644 --- a/examples/campaign_management/add_campaign_bid_modifier.pl +++ b/examples/campaign_management/add_campaign_bid_modifier.pl @@ -25,12 +25,12 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignBidModifier; -use Google::Ads::GoogleAds::V3::Common::InteractionTypeInfo; -use Google::Ads::GoogleAds::V3::Enums::InteractionTypeEnum qw(CALLS); +use Google::Ads::GoogleAds::V4::Resources::CampaignBidModifier; +use Google::Ads::GoogleAds::V4::Common::InteractionTypeInfo; +use Google::Ads::GoogleAds::V4::Enums::InteractionTypeEnum qw(CALLS); use - Google::Ads::GoogleAds::V3::Services::CampaignBidModifierService::CampaignBidModifierOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignBidModifierService::CampaignBidModifierOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -54,13 +54,13 @@ sub add_campaign_bid_modifier { # Create a campaign bid modifier for call interactions with the specified # campaign ID and bid modifier value. my $campaign_bid_modifier = - Google::Ads::GoogleAds::V3::Resources::CampaignBidModifier->new({ - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + Google::Ads::GoogleAds::V4::Resources::CampaignBidModifier->new({ + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), # Make the bid modifier apply to call interactions. interactionType => - Google::Ads::GoogleAds::V3::Common::InteractionTypeInfo->new({ + Google::Ads::GoogleAds::V4::Common::InteractionTypeInfo->new({ type => CALLS } ), @@ -70,7 +70,7 @@ sub add_campaign_bid_modifier { # Create a campaign bid modifier operation. my $campaign_bid_modifier_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBidModifierService::CampaignBidModifierOperation + Google::Ads::GoogleAds::V4::Services::CampaignBidModifierService::CampaignBidModifierOperation ->new({ create => $campaign_bid_modifier }); @@ -93,7 +93,7 @@ sub add_campaign_bid_modifier { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/add_campaign_draft.pl b/examples/campaign_management/add_campaign_draft.pl index e165833c3..33d4c941a 100644 --- a/examples/campaign_management/add_campaign_draft.pl +++ b/examples/campaign_management/add_campaign_draft.pl @@ -25,10 +25,10 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignDraft; +use Google::Ads::GoogleAds::V4::Resources::CampaignDraft; use - Google::Ads::GoogleAds::V3::Services::CampaignDraftService::CampaignDraftOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignDraftService::CampaignDraftOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -51,16 +51,16 @@ sub add_campaign_draft { # Create a campaign draft. my $campaign_draft = - Google::Ads::GoogleAds::V3::Resources::CampaignDraft->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignDraft->new({ baseCampaign => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $base_campaign_id ), name => "Campaign Draft #" . uniqid()}); # Create a campaign draft operation. my $campaign_draft_operation = - Google::Ads::GoogleAds::V3::Services::CampaignDraftService::CampaignDraftOperation + Google::Ads::GoogleAds::V4::Services::CampaignDraftService::CampaignDraftOperation ->new({ create => $campaign_draft }); @@ -82,7 +82,7 @@ sub add_campaign_draft { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/add_campaign_labels.pl b/examples/campaign_management/add_campaign_labels.pl index 468a81933..02864b0ca 100644 --- a/examples/campaign_management/add_campaign_labels.pl +++ b/examples/campaign_management/add_campaign_labels.pl @@ -24,10 +24,10 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignLabel; +use Google::Ads::GoogleAds::V4::Resources::CampaignLabel; use - Google::Ads::GoogleAds::V3::Services::CampaignLabelService::CampaignLabelOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignLabelService::CampaignLabelOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -51,7 +51,7 @@ sub add_campaign_labels { my ($api_client, $customer_id, $campaign_ids, $label_id) = @_; my $label_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::label($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::label($customer_id, $label_id); my $campaign_label_operations = []; @@ -60,8 +60,8 @@ sub add_campaign_labels { foreach my $campaign_id (@$campaign_ids) { # Create a campaign label. my $campaign_label = - Google::Ads::GoogleAds::V3::Resources::CampaignLabel->new({ - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + Google::Ads::GoogleAds::V4::Resources::CampaignLabel->new({ + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), label => $label_resource_name @@ -69,7 +69,7 @@ sub add_campaign_labels { # Create a campaign label operation. my $campaign_label_operation = - Google::Ads::GoogleAds::V3::Services::CampaignLabelService::CampaignLabelOperation + Google::Ads::GoogleAds::V4::Services::CampaignLabelService::CampaignLabelOperation ->new({ create => $campaign_label }); @@ -100,7 +100,7 @@ sub add_campaign_labels { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/add_complete_campaigns_using_mutate_job.pl b/examples/campaign_management/add_complete_campaigns_using_batch_job.pl similarity index 61% rename from examples/campaign_management/add_complete_campaigns_using_mutate_job.pl rename to examples/campaign_management/add_complete_campaigns_using_batch_job.pl index 03a0dbd47..331804a60 100644 --- a/examples/campaign_management/add_complete_campaigns_using_mutate_job.pl +++ b/examples/campaign_management/add_complete_campaigns_using_batch_job.pl @@ -15,7 +15,7 @@ # limitations under the License. # # This example adds complete campaigns including campaign budgets, campaigns, -# ad groups and keywords using MutateJobService. +# ad groups and keywords using BatchJobService. use strict; use warnings; @@ -25,34 +25,36 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::CampaignCriterion; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::ManualCpc; -use Google::Ads::GoogleAds::V3::Common::KeywordInfo; -use Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SEARCH); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::KeywordMatchTypeEnum qw(BROAD); -use Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum; -use Google::Ads::GoogleAds::V3::Services::GoogleAdsService::MutateOperation; +use Google::Ads::GoogleAds::V4::Resources::BatchJob; +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::CampaignCriterion; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::ManualCpc; +use Google::Ads::GoogleAds::V4::Common::KeywordInfo; +use Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SEARCH); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum qw(BROAD); +use Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; +use Google::Ads::GoogleAds::V4::Services::BatchJobService::BatchJobOperation; +use Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateOperation; use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; use - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -77,114 +79,119 @@ # Running the example with -h will print the command line usage. my $customer_id = "INSERT_CUSTOMER_ID_HERE"; -sub add_complete_campaigns_using_mutate_job { +sub add_complete_campaigns_using_batch_job { my ($api_client, $customer_id) = @_; - my $mutate_job_service = $api_client->MutateJobService(); - my $operation_service = $api_client->OperationService(); + my $batch_job_service = $api_client->BatchJobService(); + my $operation_service = $api_client->OperationService(); - my $mutate_job_resource_name = - create_mutate_job($mutate_job_service, $customer_id); + my $batch_job_resource_name = + create_batch_job($batch_job_service, $customer_id); - add_all_mutate_job_operations($mutate_job_service, $customer_id, - $mutate_job_resource_name); + add_all_batch_job_operations($batch_job_service, $customer_id, + $batch_job_resource_name); - my $mutate_job_lro = - run_mutate_job($mutate_job_service, $mutate_job_resource_name); + my $batch_job_lro = + run_batch_job($batch_job_service, $batch_job_resource_name); - poll_mutate_job($operation_service, $mutate_job_lro); + poll_batch_job($operation_service, $batch_job_lro); - fetch_and_print_results($mutate_job_service, $mutate_job_resource_name); + fetch_and_print_results($batch_job_service, $batch_job_resource_name); return 1; } -# Creates a new mutate job for the specified customer ID. -sub create_mutate_job { - my ($mutate_job_service, $customer_id) = @_; +# Creates a new batch job for the specified customer ID. +sub create_batch_job { + my ($batch_job_service, $customer_id) = @_; - my $mutate_job_resource_name = $mutate_job_service->create({ - customerId => $customer_id - })->{resourceName}; + # Create a batch job operation. + my $batch_job_operation = + Google::Ads::GoogleAds::V4::Services::BatchJobService::BatchJobOperation-> + new({create => Google::Ads::GoogleAds::V4::Resources::BatchJob->new({})}); + + my $batch_job_resource_name = $batch_job_service->mutate({ + customerId => $customer_id, + operation => $batch_job_operation + })->{result}{resourceName}; printf - "Created a mutate job with resource name: '%s'.\n", - $mutate_job_resource_name; + "Created a batch job with resource name: '%s'.\n", + $batch_job_resource_name; - return $mutate_job_resource_name; + return $batch_job_resource_name; } -# Adds all mutate job operations to the mutate job. As this is the first time for -# this mutate job, pass null as a sequence token. The response will contain the +# Adds all batch job operations to the batch job. As this is the first time for +# this batch job, pass null as a sequence token. The response will contain the # next sequence token that you can use to upload more operations in the future. -sub add_all_mutate_job_operations { - my ($mutate_job_service, $customer_id, $mutate_job_resource_name) = @_; +sub add_all_batch_job_operations { + my ($batch_job_service, $customer_id, $batch_job_resource_name) = @_; - my $add_mutate_job_operations_response = $mutate_job_service->add_operations({ - resourceName => $mutate_job_resource_name, + my $add_batch_job_operations_response = $batch_job_service->add_operations({ + resourceName => $batch_job_resource_name, sequenceToken => undef, mutateOperations => build_all_operations($customer_id)}); printf - "%d mutate operations have been added so far.\n", - $add_mutate_job_operations_response->{totalOperations}; + "%d batch operations have been added so far.\n", + $add_batch_job_operations_response->{totalOperations}; # You can use this next sequence token for calling add_operations() next time. printf "Next sequence token for adding next operations is '%s'.\n", - $add_mutate_job_operations_response->{nextSequenceToken}; + $add_batch_job_operations_response->{nextSequenceToken}; } -# Requests the API to run the mutate job for executing all uploaded mutate job +# Requests the API to run the batch job for executing all uploaded batch job # operations. -sub run_mutate_job { - my ($mutate_job_service, $mutate_job_resource_name) = @_; +sub run_batch_job { + my ($batch_job_service, $batch_job_resource_name) = @_; - my $mutate_job_lro = - $mutate_job_service->run({resourceName => $mutate_job_resource_name}); + my $batch_job_lro = + $batch_job_service->run({resourceName => $batch_job_resource_name}); printf - "Mutate job with resource name '%s' has been executed.\n", - $mutate_job_resource_name; + "Batch job with resource name '%s' has been executed.\n", + $batch_job_resource_name; - return $mutate_job_lro; + return $batch_job_lro; } -# Polls the server until the mutate job execution finishes by setting the initial +# Polls the server until the batch job execution finishes by setting the initial # poll delay time and the total time to wait before time-out. -sub poll_mutate_job { - my ($operation_service, $mutate_job_lro) = @_; +sub poll_batch_job { + my ($operation_service, $batch_job_lro) = @_; $operation_service->poll_until_done({ - name => $mutate_job_lro->{name}, + name => $batch_job_lro->{name}, pollFrequencySeconds => POLL_FREQUENCY_SECONDS, pollTimeoutSeconds => POLL_TIMEOUT_SECONDS }); } -# Prints all the results from running the mutate job. +# Prints all the results from running the batch job. sub fetch_and_print_results { - my ($mutate_job_service, $mutate_job_resource_name) = @_; + my ($batch_job_service, $batch_job_resource_name) = @_; - printf "Mutate job with resource name '%s' has finished. " . - "Now, printing its results...\n", $mutate_job_resource_name; + printf "Batch job with resource name '%s' has finished. " . + "Now, printing its results...\n", $batch_job_resource_name; - # Get all the results from running mutate job and print their information. - my $list_mutate_job_results_response = $mutate_job_service->list_results({ - resourceName => $mutate_job_resource_name, + # Get all the results from running batch job and print their information. + my $list_batch_job_results_response = $batch_job_service->list_results({ + resourceName => $batch_job_resource_name, pageSize => PAGE_SIZE }); - foreach - my $mutate_job_result (@{$list_mutate_job_results_response->{results}}) + foreach my $batch_job_result (@{$list_batch_job_results_response->{results}}) { printf - "Mutate job #%d has a status '%s' and response of type '%s'.\n", - $mutate_job_result->{operationIndex}, - $mutate_job_result->{status} ? $mutate_job_result->{status}{message} + "Batch job #%d has a status '%s' and response of type '%s'.\n", + $batch_job_result->{operationIndex}, + $batch_job_result->{status} ? $batch_job_result->{status}{message} : "N/A", - $mutate_job_result->{mutateOperationResponse} - ? [keys %{$mutate_job_result->{mutateOperationResponse}}]->[0] + $batch_job_result->{mutateOperationResponse} + ? [keys %{$batch_job_result->{mutateOperationResponse}}]->[0] : "N/A"; } } @@ -199,7 +206,7 @@ sub build_all_operations { # Create a new campaign budget operation and add it to the array of mutate operations. my $campaign_budget_operation = build_campaign_budget_operation($customer_id); push @$mutate_operations, - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::MutateOperation-> + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateOperation-> new({ campaignBudgetOperation => $campaign_budget_operation }); @@ -208,7 +215,7 @@ sub build_all_operations { my $campaign_operations = build_campaign_operations($customer_id, $campaign_budget_operation->{create}{resourceName}); push @$mutate_operations, map { - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::MutateOperation-> + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateOperation-> new({ campaignOperation => $_ }) @@ -219,7 +226,7 @@ sub build_all_operations { my $campaign_criterion_operations = build_campaign_criterion_operations($campaign_operations); push @$mutate_operations, map { - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::MutateOperation-> + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateOperation-> new({ campaignCriterionOperation => $_ }) @@ -229,7 +236,7 @@ sub build_all_operations { my $ad_group_operations = build_ad_group_operations($customer_id, $campaign_operations); push @$mutate_operations, map { - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::MutateOperation-> + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateOperation-> new({ adGroupOperation => $_ }) @@ -240,7 +247,7 @@ sub build_all_operations { my $ad_group_criterion_operations = build_ad_group_criterion_operations($ad_group_operations); push @$mutate_operations, map { - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::MutateOperation-> + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateOperation-> new({ adGroupCriterionOperation => $_ }) @@ -250,7 +257,7 @@ sub build_all_operations { my $ad_group_ad_operations = build_ad_group_ad_operations($ad_group_operations); push @$mutate_operations, map { - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::MutateOperation-> + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateOperation-> new({ adGroupAdOperation => $_ }) @@ -265,12 +272,12 @@ sub build_campaign_budget_operation { # Create a campaign budget operation. return - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({ - create => Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + create => Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ # Create a resource name using the temporary ID. resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_budget( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_budget( $customer_id, next_temporary_id() ), name => "Interplanetary Cruise Budget #" . uniqid(), @@ -287,26 +294,26 @@ sub build_campaign_operations { for (my $i = 0 ; $i < NUMBER_OF_CAMPAIGNS_TO_ADD ; $i++) { # Create a campaign. my $campaign_id = next_temporary_id(); - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ # Create a resource name using the temporary ID. resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), - name => sprintf("Mutate job campaign #%s.%d", uniqid(), $campaign_id), + name => sprintf("Batch job campaign #%s.%d", uniqid(), $campaign_id), advertisingChannelType => SEARCH, # Recommendation: Set the campaign to PAUSED when creating it to prevent # the ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - status => Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum::PAUSED, + status => Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum::PAUSED, # Set the bidding strategy and budget. - manualCpc => Google::Ads::GoogleAds::V3::Common::ManualCpc->new(), + manualCpc => Google::Ads::GoogleAds::V4::Common::ManualCpc->new(), campaignBudget => $campaign_budget_resource_name, }); # Create a campaign operation and add it to the operations list. push @$campaign_operations, - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation ->new({ create => $campaign }); @@ -324,8 +331,8 @@ sub build_campaign_criterion_operations { foreach my $campaign_operation (@$campaign_operations) { # Create a campaign criterion. my $campaign_criterion = - Google::Ads::GoogleAds::V3::Resources::CampaignCriterion->new({ - keyword => Google::Ads::GoogleAds::V3::Common::KeywordInfo->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignCriterion->new({ + keyword => Google::Ads::GoogleAds::V4::Common::KeywordInfo->new({ text => "venus", matchType => BROAD } @@ -336,7 +343,7 @@ sub build_campaign_criterion_operations { # Create a campaign criterion operation and add it to the operations list. push @$campaign_criterion_operations, - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation ->new({ create => $campaign_criterion }); @@ -354,13 +361,13 @@ sub build_ad_group_operations { for (my $i = 0 ; $i < NUMBER_OF_AD_GROUPS_TO_ADD ; $i++) { # Create an ad group. my $ad_group_id = next_temporary_id(); - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ # Create a resource name using the temporary ID. resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), - name => sprintf("Mutate job ad group #%s.%d", uniqid(), $ad_group_id), + name => sprintf("Batch job ad group #%s.%d", uniqid(), $ad_group_id), campaign => $campaign_operation->{create}{resourceName}, type => SEARCH_STANDARD, cpcBidMicros => 10000000 @@ -368,7 +375,7 @@ sub build_ad_group_operations { # Create an ad group operation and add it to the operations list. push @$ad_group_operations, - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation ->new({ create => $ad_group }); @@ -379,7 +386,7 @@ sub build_ad_group_operations { } # Builds new ad group criterion operations for creating keywords. 50% of keywords -# are created with some invalid characters to demonstrate how MutateJobService +# are created with some invalid characters to demonstrate how BatchJobService # returns information about such errors. sub build_ad_group_criterion_operations { my $ad_group_operations = shift; @@ -396,20 +403,20 @@ sub build_ad_group_criterion_operations { # Create an ad group criterion using the created keyword text. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ - keyword => Google::Ads::GoogleAds::V3::Common::KeywordInfo->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ + keyword => Google::Ads::GoogleAds::V4::Common::KeywordInfo->new({ text => $keyword_text, matchType => BROAD } ), adGroup => $ad_group_operation->{create}{resourceName}, status => - Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum::ENABLED + Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum::ENABLED }); # Create an ad group criterion operation and add it to the operations list. push @$ad_group_criterion_operations, - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion }); @@ -426,12 +433,12 @@ sub build_ad_group_ad_operations { my $ad_group_ad_operations = []; foreach my $ad_group_operation (@$ad_group_operations) { # Create an ad group ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ # Create the expanded text ad info. - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ # Set the expanded text ad info on an ad. expandedTextAd => - Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo->new({ headlinePart1 => "Cruise to Mars #" . uniqid(), headlinePart2 => "Best Space Cruise Line", description => "Buy your tickets now!" @@ -442,12 +449,12 @@ sub build_ad_group_ad_operations { ), adGroup => $ad_group_operation->{create}{resourceName}, status => - Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum::PAUSED + Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum::PAUSED }); # Create an ad group ad operation and add it to the operations list. push @$ad_group_ad_operations, - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({ create => $ad_group_ad }); @@ -469,7 +476,7 @@ sub next_temporary_id { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); @@ -482,22 +489,22 @@ sub next_temporary_id { pod2usage(2) if not check_params($customer_id); # Call the example. -add_complete_campaigns_using_mutate_job($api_client, $customer_id =~ s/-//gr); +add_complete_campaigns_using_batch_job($api_client, $customer_id =~ s/-//gr); =pod =head1 NAME -add_complete_campaigns_using_mutate_job +add_complete_campaigns_using_batch_job =head1 DESCRIPTION This example adds complete campaigns including campaign budgets, campaigns, ad groups -and keywords using MutateJobService. +and keywords using BatchJobService. =head1 SYNOPSIS -add_complete_campaigns_using_mutate_job.pl [options] +add_complete_campaigns_using_batch_job.pl [options] -help Show the help message. -customer_id The Google Ads customer ID. diff --git a/examples/campaign_management/create_campaign_experiment.pl b/examples/campaign_management/create_campaign_experiment.pl index 5641c493d..8f26d94a2 100644 --- a/examples/campaign_management/create_campaign_experiment.pl +++ b/examples/campaign_management/create_campaign_experiment.pl @@ -25,10 +25,10 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignExperiment; -use Google::Ads::GoogleAds::V3::Enums::CampaignExperimentTrafficSplitTypeEnum +use Google::Ads::GoogleAds::V4::Resources::CampaignExperiment; +use Google::Ads::GoogleAds::V4::Enums::CampaignExperimentTrafficSplitTypeEnum qw(RANDOM_QUERY); -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -52,9 +52,9 @@ sub create_campaign_experiment { # Create a campaign experiment. my $campaign_experiment = - Google::Ads::GoogleAds::V3::Resources::CampaignExperiment->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignExperiment->new({ campaignDraft => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_draft( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_draft( $customer_id, $base_campaign_id, $draft_id ), name => "Campaign Experiment #" . uniqid(), @@ -104,7 +104,7 @@ sub create_campaign_experiment { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/get_all_disapproved_ads.pl b/examples/campaign_management/get_all_disapproved_ads.pl index a4a223184..20af4cec8 100644 --- a/examples/campaign_management/get_all_disapproved_ads.pl +++ b/examples/campaign_management/get_all_disapproved_ads.pl @@ -25,9 +25,9 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; -use Google::Ads::GoogleAds::V3::Enums::PolicyApprovalStatusEnum qw(DISAPPROVED); +use Google::Ads::GoogleAds::V4::Enums::PolicyApprovalStatusEnum qw(DISAPPROVED); use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -57,7 +57,7 @@ sub get_all_disapproved_ads { # Create a search Google Ads request that will retrieve all ads using pages of # the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -119,7 +119,7 @@ sub get_all_disapproved_ads { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/get_campaigns_by_label.pl b/examples/campaign_management/get_campaigns_by_label.pl index 2a8985c71..c2d3d71fd 100644 --- a/examples/campaign_management/get_campaigns_by_label.pl +++ b/examples/campaign_management/get_campaigns_by_label.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -56,7 +56,7 @@ sub get_campaigns_by_label { # Create a search Google Ads request that will retrieve all campaign labels # with the specified label Id using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -91,7 +91,7 @@ sub get_campaigns_by_label { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/graduate_campaign_experiment.pl b/examples/campaign_management/graduate_campaign_experiment.pl index 70d624169..af39134e5 100644 --- a/examples/campaign_management/graduate_campaign_experiment.pl +++ b/examples/campaign_management/graduate_campaign_experiment.pl @@ -24,11 +24,11 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -53,7 +53,7 @@ sub graduate_campaign_experiment { # for the base campaign has explicitly_shared set to false, the budget cannot # be shared with the campaign after it is made independent by graduation. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Budget #" . uniqid(), amountMicros => 50000000, deliveryMethod => STANDARD @@ -61,7 +61,7 @@ sub graduate_campaign_experiment { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Add the campaign budget. @@ -77,7 +77,7 @@ sub graduate_campaign_experiment { # Graduate the campaign using the campaign budget created above. my $graduate_response = $api_client->CampaignExperimentService()->graduate({ campaignExperiment => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_experiment( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_experiment( $customer_id, $campaign_experiment_id ), campaignBudget => $campaign_budget_resource_name @@ -95,7 +95,7 @@ sub graduate_campaign_experiment { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/set_ad_parameters.pl b/examples/campaign_management/set_ad_parameters.pl index a6208467f..ee5dcd7d5 100644 --- a/examples/campaign_management/set_ad_parameters.pl +++ b/examples/campaign_management/set_ad_parameters.pl @@ -24,10 +24,10 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdParameter; +use Google::Ads::GoogleAds::V4::Resources::AdParameter; use - Google::Ads::GoogleAds::V3::Services::AdParameterService::AdParameterOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdParameterService::AdParameterOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -49,13 +49,13 @@ sub set_ad_parameters { my ($api_client, $customer_id, $ad_group_id, $criterion_id) = @_; my $ad_group_criterion_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_criterion( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_criterion( $customer_id, $ad_group_id, $criterion_id); # Create ad parameters. # There can be a maximum of two ad parameters per ad group criterion. # (One with parameter_index = 1 and one with parameter_index = 2.) - my $ad_parameter_1 = Google::Ads::GoogleAds::V3::Resources::AdParameter->new({ + my $ad_parameter_1 = Google::Ads::GoogleAds::V4::Resources::AdParameter->new({ adGroupCriterion => $ad_group_criterion_resource_name, # The unique index of this ad parameter. Must be either 1 or 2. parameterIndex => 1, @@ -67,7 +67,7 @@ sub set_ad_parameters { insertionText => "100" }); - my $ad_parameter_2 = Google::Ads::GoogleAds::V3::Resources::AdParameter->new({ + my $ad_parameter_2 = Google::Ads::GoogleAds::V4::Resources::AdParameter->new({ adGroupCriterion => $ad_group_criterion_resource_name, parameterIndex => 2, insertionText => "\$40" @@ -75,11 +75,11 @@ sub set_ad_parameters { # Create ad parameter operations. my $ad_parameter_operation1 = - Google::Ads::GoogleAds::V3::Services::AdParameterService::AdParameterOperation + Google::Ads::GoogleAds::V4::Services::AdParameterService::AdParameterOperation ->new({create => $ad_parameter_1}); my $ad_parameter_operation2 = - Google::Ads::GoogleAds::V3::Services::AdParameterService::AdParameterOperation + Google::Ads::GoogleAds::V4::Services::AdParameterService::AdParameterOperation ->new({create => $ad_parameter_2}); # Set the ad parameters. @@ -103,7 +103,7 @@ sub set_ad_parameters { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/update_campaign_criterion_bid_modifier.pl b/examples/campaign_management/update_campaign_criterion_bid_modifier.pl index 9470d33d0..6e55b0291 100644 --- a/examples/campaign_management/update_campaign_criterion_bid_modifier.pl +++ b/examples/campaign_management/update_campaign_criterion_bid_modifier.pl @@ -25,10 +25,10 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::CampaignCriterion; +use Google::Ads::GoogleAds::V4::Resources::CampaignCriterion; use - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -56,9 +56,9 @@ sub update_campaign_criterion_bid_modifier { # Create a campaign criterion with the specified resource name and updated bid # modifier value. my $campaign_criterion = - Google::Ads::GoogleAds::V3::Resources::CampaignCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignCriterion->new({ resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_criterion( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_criterion( $customer_id, $campaign_id, $criterion_id ), bidModifier => $bid_modifier_value @@ -66,7 +66,7 @@ sub update_campaign_criterion_bid_modifier { # Create the campaign criterion operation. my $campaign_criterion_operation = - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation ->new({ update => $campaign_criterion, updateMask => all_set_fields_of($campaign_criterion)}); @@ -90,7 +90,7 @@ sub update_campaign_criterion_bid_modifier { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/campaign_management/validate_text_ad.pl b/examples/campaign_management/validate_text_ad.pl index 41a5dbb60..76c72d450 100644 --- a/examples/campaign_management/validate_text_ad.pl +++ b/examples/campaign_management/validate_text_ad.pl @@ -25,12 +25,12 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -51,15 +51,15 @@ sub validate_text_ad { my ($api_client, $customer_id, $ad_group_id) = @_; # Create an ad group ad object. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), # Optional: Set the status. status => PAUSED, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ expandedTextAd => - Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo->new({ description => "Luxury Cruise to Mars", headlinePart1 => "Visit the Red Planet in style.", # Add a headline that will trigger a policy violation to demonstrate @@ -71,7 +71,7 @@ sub validate_text_ad { # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad, while setting validateOnly to "true". @@ -120,7 +120,7 @@ sub validate_text_ad { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(0); diff --git a/examples/error_handling/handle_expanded_text_ad_policy_violations.pl b/examples/error_handling/handle_expanded_text_ad_policy_violations.pl index 468ff81c0..f3642ae9e 100644 --- a/examples/error_handling/handle_expanded_text_ad_policy_violations.pl +++ b/examples/error_handling/handle_expanded_text_ad_policy_violations.pl @@ -27,13 +27,13 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo; -use Google::Ads::GoogleAds::V3::Common::PolicyValidationParameter; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; +use Google::Ads::GoogleAds::V4::Common::PolicyValidationParameter; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -55,12 +55,12 @@ sub handle_expanded_text_ad_policy_violations { my ($api_client, $customer_id, $ad_group_id) = @_; my $ad_group_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group($customer_id, $ad_group_id); # Create an expanded text ad info object. my $expanded_text_ad_info = - Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo->new({ headlinePart1 => "Cruise to Mars #" . uniqid(), headlinePart2 => "Best Space Cruise Line", # Intentionally use an ad text that violates policy -- having too many @@ -69,19 +69,19 @@ sub handle_expanded_text_ad_policy_violations { }); # Create an ad group ad to hold the above ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ adGroup => $ad_group_resource_name, # Set the ad group ad to PAUSED to prevent it from immediately serving. # Set to ENABLED once you've added targeting and the ad are ready to serve. status => PAUSED, # Set the expanded text ad info on an ad. - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ expandedTextAd => $expanded_text_ad_info, finalUrls => ["http://www.example.com"]})}); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({ create => $ad_group_ad }); @@ -159,7 +159,7 @@ sub request_exemption { "policy violations.\n"; $ad_group_ad_operation->{policyValidationParameter} = - Google::Ads::GoogleAds::V3::Common::PolicyValidationParameter->new( + Google::Ads::GoogleAds::V4::Common::PolicyValidationParameter->new( {ignorablePolicyTopics => $ignorable_policy_topics}); my $ad_group_ad_response = $api_client->AdGroupAdService()->mutate({ @@ -177,7 +177,7 @@ sub request_exemption { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(0); diff --git a/examples/error_handling/handle_keyword_policy_violations.pl b/examples/error_handling/handle_keyword_policy_violations.pl index 21eec091f..7b1c4d46c 100644 --- a/examples/error_handling/handle_keyword_policy_violations.pl +++ b/examples/error_handling/handle_keyword_policy_violations.pl @@ -34,13 +34,13 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::KeywordInfo; -use Google::Ads::GoogleAds::V3::Enums::KeywordMatchTypeEnum qw(EXACT); -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::KeywordInfo; +use Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum qw(EXACT); +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum qw(ENABLED); use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -62,15 +62,15 @@ sub handle_keyword_policy_violations { my ($api_client, $customer_id, $ad_group_id, $keyword_text) = @_; # Configure the keyword text and match type settings. - my $keyword_info = Google::Ads::GoogleAds::V3::Common::KeywordInfo->new({ + my $keyword_info = Google::Ads::GoogleAds::V4::Common::KeywordInfo->new({ text => $keyword_text, matchType => EXACT }); # Construct an ad group criterion using the keyword info above. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), status => ENABLED, @@ -79,7 +79,7 @@ sub handle_keyword_policy_violations { # Create an ad group criterion operation. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({create => $ad_group_criterion}); # Try sending a mutate request to add the keyword. @@ -184,7 +184,7 @@ sub request_exemption { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(0); diff --git a/examples/error_handling/handle_partial_failure.pl b/examples/error_handling/handle_partial_failure.pl index 7dc4b72b3..6212c8dc6 100644 --- a/examples/error_handling/handle_partial_failure.pl +++ b/examples/error_handling/handle_partial_failure.pl @@ -27,9 +27,9 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::PartialFailureUtils; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -63,39 +63,39 @@ sub create_ad_groups { my ($api_client, $customer_id, $campaign_id) = @_; my $campaign_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign($customer_id, $campaign_id); # This ad group should be created successfully - assuming the campaign in the # params exists. - my $ad_group1 = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group1 = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Valid AdGroup: " . uniqid(), campaign => $campaign_resource_name }); # This ad group will always fail - campaign ID 0 in the resource name is never # valid. - my $ad_group2 = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group2 = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Broken AdGroup: " . uniqid(), - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, 0 )}); # This ad group will always fail - duplicate ad group names are not allowed. - my $ad_group3 = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group3 = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => $ad_group1->{name}, campaign => $campaign_resource_name }); # Create ad group operations. my $ad_group_operation1 = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group1}); my $ad_group_operation2 = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group2}); my $ad_group_operation3 = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group3}); # Issue the mutate request, enabling partial failure mode. @@ -151,7 +151,7 @@ sub print_results { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/error_handling/handle_rate_exceeded_error.pl b/examples/error_handling/handle_rate_exceeded_error.pl index 80329e2c5..561bf9b3c 100644 --- a/examples/error_handling/handle_rate_exceeded_error.pl +++ b/examples/error_handling/handle_rate_exceeded_error.pl @@ -29,13 +29,13 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::KeywordInfo; -use Google::Ads::GoogleAds::V3::Enums::KeywordMatchTypeEnum qw(EXACT); -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::KeywordInfo; +use Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum qw(EXACT); +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum qw(ENABLED); use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -130,15 +130,15 @@ sub create_ad_group_criterion_operations { my $operations = []; for (my $i = 0 ; $i < NUM_KEYWORDS ; $i++) { # Create a keyword info. - my $keyword_info = Google::Ads::GoogleAds::V3::Common::KeywordInfo->new({ + my $keyword_info = Google::Ads::GoogleAds::V4::Common::KeywordInfo->new({ text => "mars cruise req " . $request_index . " seed " . $i, matchType => EXACT }); # Construct an ad group criterion using the keyword text info above. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), status => ENABLED, @@ -147,7 +147,7 @@ sub create_ad_group_criterion_operations { # Create an ad group criterion operation. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion }); @@ -190,7 +190,7 @@ sub request_mutate_and_display_result { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(0); diff --git a/examples/extensions/add_affiliate_location_extensions.pl b/examples/extensions/add_affiliate_location_extensions.pl index 1f8fe1fdd..62d02987d 100644 --- a/examples/extensions/add_affiliate_location_extensions.pl +++ b/examples/extensions/add_affiliate_location_extensions.pl @@ -27,23 +27,23 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; -use Google::Ads::GoogleAds::V3::Resources::Feed; -use Google::Ads::GoogleAds::V3::Resources::AffiliateLocationFeedData; -use Google::Ads::GoogleAds::V3::Resources::CampaignFeed; -use Google::Ads::GoogleAds::V3::Common::MatchingFunction; -use Google::Ads::GoogleAds::V3::Enums::AffiliateLocationFeedRelationshipTypeEnum +use Google::Ads::GoogleAds::V4::Resources::Feed; +use Google::Ads::GoogleAds::V4::Resources::AffiliateLocationFeedData; +use Google::Ads::GoogleAds::V4::Resources::CampaignFeed; +use Google::Ads::GoogleAds::V4::Common::MatchingFunction; +use Google::Ads::GoogleAds::V4::Enums::AffiliateLocationFeedRelationshipTypeEnum qw(GENERAL_RETAILER); -use Google::Ads::GoogleAds::V3::Enums::FeedOriginEnum qw(GOOGLE); -use Google::Ads::GoogleAds::V3::Enums::PlaceholderTypeEnum +use Google::Ads::GoogleAds::V4::Enums::FeedOriginEnum qw(GOOGLE); +use Google::Ads::GoogleAds::V4::Enums::PlaceholderTypeEnum qw(AFFILIATE_LOCATION); -use Google::Ads::GoogleAds::V3::Enums::AffiliateLocationPlaceholderFieldEnum +use Google::Ads::GoogleAds::V4::Enums::AffiliateLocationPlaceholderFieldEnum qw(CHAIN_ID); use - Google::Ads::GoogleAds::V3::Services::CustomerFeedService::CustomerFeedOperation; -use Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation; + Google::Ads::GoogleAds::V4::Services::CustomerFeedService::CustomerFeedOperation; +use Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation; use - Google::Ads::GoogleAds::V3::Services::CampaignFeedService::CampaignFeedOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignFeedService::CampaignFeedOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -163,7 +163,7 @@ sub remove_customer_feeds { my $operations = []; foreach my $customer_feed (@$customer_feeds) { push @$operations, - Google::Ads::GoogleAds::V3::Services::CustomerFeedService::CustomerFeedOperation + Google::Ads::GoogleAds::V4::Services::CustomerFeedService::CustomerFeedOperation ->new({remove => $customer_feed->{resourceName}}); } @@ -210,7 +210,7 @@ sub remove_feeds { my $operations = []; foreach my $feed (@$feeds) { push @$operations, - Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation->new( + Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation->new( {remove => $feed->{resourceName}}); } @@ -228,10 +228,10 @@ sub create_affiliate_location_extension_feed { # Create a feed that will sync to retail addresses for a given retail chain ID. # Do not add feed attributes, Google Ads will add them automatically because # this will be a system generated feed. - my $feed = Google::Ads::GoogleAds::V3::Resources::Feed->new({ + my $feed = Google::Ads::GoogleAds::V4::Resources::Feed->new({ name => "Affiliate Location Extension feed #" . uniqid(), affiliateLocationFeedData => - Google::Ads::GoogleAds::V3::Resources::AffiliateLocationFeedData->new({ + Google::Ads::GoogleAds::V4::Resources::AffiliateLocationFeedData->new({ chainIds => [$chain_id], relationshipType => GENERAL_RETAILER } @@ -243,7 +243,7 @@ sub create_affiliate_location_extension_feed { # Create the feed operation. my $operation = - Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation->new({ + Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation->new({ create => $feed }); @@ -333,21 +333,21 @@ sub create_campaign_feed { # Add a campaign feed that associates the feed with this campaign for the # AFFILIATE_LOCATION placeholder type. - my $campaign_feed = Google::Ads::GoogleAds::V3::Resources::CampaignFeed->new({ + my $campaign_feed = Google::Ads::GoogleAds::V4::Resources::CampaignFeed->new({ feed => $feed_resource_name, placeholderTypes => AFFILIATE_LOCATION, matchingFunction => - Google::Ads::GoogleAds::V3::Common::MatchingFunction->new({ + Google::Ads::GoogleAds::V4::Common::MatchingFunction->new({ functionString => $matching_function } ), - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id )}); # Create the campaign feed operation. my $operation = - Google::Ads::GoogleAds::V3::Services::CampaignFeedService::CampaignFeedOperation + Google::Ads::GoogleAds::V4::Services::CampaignFeedService::CampaignFeedOperation ->new({ create => $campaign_feed }); @@ -381,7 +381,7 @@ sub get_attribute_id_for_chain_id { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/extensions/add_google_my_business_location_extensions.pl b/examples/extensions/add_google_my_business_location_extensions.pl index 09f0e3181..0cd5d7646 100644 --- a/examples/extensions/add_google_my_business_location_extensions.pl +++ b/examples/extensions/add_google_my_business_location_extensions.pl @@ -26,20 +26,20 @@ use Google::Ads::GoogleAds::Constants; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::Feed; -use Google::Ads::GoogleAds::V3::Resources::PlacesLocationFeedData; -use Google::Ads::GoogleAds::V3::Resources::OAuthInfo; -use Google::Ads::GoogleAds::V3::Resources::CustomerFeed; -use Google::Ads::GoogleAds::V3::Common::MatchingFunction; -use Google::Ads::GoogleAds::V3::Common::Operand; -use Google::Ads::GoogleAds::V3::Common::ConstantOperand; -use Google::Ads::GoogleAds::V3::Enums::FeedOriginEnum qw(GOOGLE); -use Google::Ads::GoogleAds::V3::Enums::PlaceholderTypeEnum qw(LOCATION); -use Google::Ads::GoogleAds::V3::Enums::MatchingFunctionOperatorEnum +use Google::Ads::GoogleAds::V4::Resources::Feed; +use Google::Ads::GoogleAds::V4::Resources::PlacesLocationFeedData; +use Google::Ads::GoogleAds::V4::Resources::OAuthInfo; +use Google::Ads::GoogleAds::V4::Resources::CustomerFeed; +use Google::Ads::GoogleAds::V4::Common::MatchingFunction; +use Google::Ads::GoogleAds::V4::Common::Operand; +use Google::Ads::GoogleAds::V4::Common::ConstantOperand; +use Google::Ads::GoogleAds::V4::Enums::FeedOriginEnum qw(GOOGLE); +use Google::Ads::GoogleAds::V4::Enums::PlaceholderTypeEnum qw(LOCATION); +use Google::Ads::GoogleAds::V4::Enums::MatchingFunctionOperatorEnum qw(IDENTITY); -use Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation; +use Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation; use - Google::Ads::GoogleAds::V3::Services::CustomerFeedService::CustomerFeedOperation; + Google::Ads::GoogleAds::V4::Services::CustomerFeedService::CustomerFeedOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -70,11 +70,11 @@ sub add_google_my_business_location_extensions { # Create a feed that will sync to the Google My Business account specified by # $gmb_email_address. Do not add FeedAttributes to this object as Google Ads # will add them automatically because this will be a system generated feed. - my $gmb_feed = Google::Ads::GoogleAds::V3::Resources::Feed->new({ + my $gmb_feed = Google::Ads::GoogleAds::V4::Resources::Feed->new({ name => "Google My Business feed #" . uniqid(), # Configure the location feed populated from Google My Business Locations. placesLocationFeedData => - Google::Ads::GoogleAds::V3::Resources::PlacesLocationFeedData->new({ + Google::Ads::GoogleAds::V4::Resources::PlacesLocationFeedData->new({ emailAddress => $gmb_email_address, businessAccountId => $business_account_id, # Used to filter Google My Business listings by labels. If entries exist in @@ -84,7 +84,7 @@ sub add_google_my_business_location_extensions { labelFilters => ["Stores in New York"], # Set the authentication info to be able to connect Google Ads to the GMB # account. - oauthInfo => Google::Ads::GoogleAds::V3::Resources::OAuthInfo->new({ + oauthInfo => Google::Ads::GoogleAds::V4::Resources::OAuthInfo->new({ httpMethod => "GET", httpRequestUrl => Google::Ads::GoogleAds::Constants::DEFAULT_OAUTH2_SCOPE, @@ -98,7 +98,7 @@ sub add_google_my_business_location_extensions { # Create a feed operation. my $feed_operation = - Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation->new( + Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation->new( {create => $gmb_feed}); # Add the feed. Since it is a system generated feed, Google Ads will automatically: @@ -115,16 +115,16 @@ sub add_google_my_business_location_extensions { # Add a CustomerFeed that associates the feed with this customer for the LOCATION # placeholder type. - my $customer_feed = Google::Ads::GoogleAds::V3::Resources::CustomerFeed->new({ + my $customer_feed = Google::Ads::GoogleAds::V4::Resources::CustomerFeed->new({ feed => $feed_resource_name, placeholderTypes => LOCATION, # Create a matching function that will always evaluate to true. matchingFunction => - Google::Ads::GoogleAds::V3::Common::MatchingFunction->new({ + Google::Ads::GoogleAds::V4::Common::MatchingFunction->new({ leftOperands => [ - Google::Ads::GoogleAds::V3::Common::Operand->new({ + Google::Ads::GoogleAds::V4::Common::Operand->new({ constantOperand => - Google::Ads::GoogleAds::V3::Common::ConstantOperand->new({ + Google::Ads::GoogleAds::V4::Common::ConstantOperand->new({ booleanValue => "true" })}) ], @@ -134,7 +134,7 @@ sub add_google_my_business_location_extensions { # Create a customer feed operation. my $customer_feed_operation = - Google::Ads::GoogleAds::V3::Services::CustomerFeedService::CustomerFeedOperation + Google::Ads::GoogleAds::V4::Services::CustomerFeedService::CustomerFeedOperation ->new({create => $customer_feed}); # After the completion of the Feed ADD operation above the added feed will not be available @@ -200,7 +200,7 @@ sub add_google_my_business_location_extensions { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/extensions/add_hotel_callout.pl b/examples/extensions/add_hotel_callout.pl index 05a7abe75..3493c53e9 100644 --- a/examples/extensions/add_hotel_callout.pl +++ b/examples/extensions/add_hotel_callout.pl @@ -25,21 +25,21 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem; -use Google::Ads::GoogleAds::V3::Resources::CampaignExtensionSetting; -use Google::Ads::GoogleAds::V3::Resources::AdGroupExtensionSetting; -use Google::Ads::GoogleAds::V3::Resources::CustomerExtensionSetting; -use Google::Ads::GoogleAds::V3::Common::HotelCalloutFeedItem; -use Google::Ads::GoogleAds::V3::Enums::ExtensionTypeEnum qw(HOTEL_CALLOUT); +use Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem; +use Google::Ads::GoogleAds::V4::Resources::CampaignExtensionSetting; +use Google::Ads::GoogleAds::V4::Resources::AdGroupExtensionSetting; +use Google::Ads::GoogleAds::V4::Resources::CustomerExtensionSetting; +use Google::Ads::GoogleAds::V4::Common::HotelCalloutFeedItem; +use Google::Ads::GoogleAds::V4::Enums::ExtensionTypeEnum qw(HOTEL_CALLOUT); use - Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::ExtensionFeedItemOperation; + Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation; use - Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation; + Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation; use - Google::Ads::GoogleAds::V3::Services::AdGroupExtensionSettingService::AdGroupExtensionSettingOperation; + Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingService::AdGroupExtensionSettingOperation; use - Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -93,20 +93,20 @@ sub add_extension_feed_item { # Create the callout feed item with text and language of choice. my $hotel_callout_feed_item = - Google::Ads::GoogleAds::V3::Common::HotelCalloutFeedItem->new({ + Google::Ads::GoogleAds::V4::Common::HotelCalloutFeedItem->new({ text => $callout_text, languageCode => $language_code }); # Create a feed item from the hotel callout extension. my $extension_feed_item = - Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem->new({ + Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem->new({ hotelCalloutFeedItem => $hotel_callout_feed_item }); # Create an extension feed item operation. my $extension_feed_item_operation = - Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::ExtensionFeedItemOperation + Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation ->new({ create => $extension_feed_item }); @@ -133,13 +133,13 @@ sub add_extension_to_account { # Create a customer extension setting, set its type to HOTEL_CALLOUT, and # attache the feed item. my $customer_extension_setting = - Google::Ads::GoogleAds::V3::Resources::CustomerExtensionSetting->new({ + Google::Ads::GoogleAds::V4::Resources::CustomerExtensionSetting->new({ extensionType => HOTEL_CALLOUT, extensionFeedItems => [$extension_feed_item_resource_name]}); # Create a customer extension setting operation. my $customer_extension_setting_operation = - Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation + Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation ->new({ create => $customer_extension_setting }); @@ -166,16 +166,16 @@ sub add_extension_to_campaign { # Create a campaign extension setting, set its type to HOTEL_CALLOUT, and # attache the feed item. my $campaign_extension_setting = - Google::Ads::GoogleAds::V3::Resources::CampaignExtensionSetting->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignExtensionSetting->new({ extensionType => HOTEL_CALLOUT, - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), extensionFeedItems => [$extension_feed_item_resource_name]}); # Create a campaign extension setting operation. my $campaign_extension_setting_operation = - Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation + Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation ->new({ create => $campaign_extension_setting }); @@ -202,16 +202,16 @@ sub add_extension_to_ad_group { # Create an ad group extension setting, set its type to HOTEL_CALLOUT, and # attache the feed item. my $ad_group_extension_setting = - Google::Ads::GoogleAds::V3::Resources::AdGroupExtensionSetting->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupExtensionSetting->new({ extensionType => HOTEL_CALLOUT, - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), extensionFeedItems => [$extension_feed_item_resource_name]}); # Create an ad group extension setting operation. my $ad_group_extension_setting_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupExtensionSettingService::AdGroupExtensionSettingOperation + Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingService::AdGroupExtensionSettingOperation ->new({ create => $ad_group_extension_setting }); @@ -235,7 +235,7 @@ sub add_extension_to_ad_group { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/extensions/add_prices.pl b/examples/extensions/add_prices.pl index 45ef95cc2..1a026981a 100644 --- a/examples/extensions/add_prices.pl +++ b/examples/extensions/add_prices.pl @@ -26,25 +26,25 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CustomerExtensionSetting; -use Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem; -use Google::Ads::GoogleAds::V3::Common::PriceFeedItem; -use Google::Ads::GoogleAds::V3::Common::PriceOffer; -use Google::Ads::GoogleAds::V3::Common::Money; -use Google::Ads::GoogleAds::V3::Common::AdScheduleInfo; -use Google::Ads::GoogleAds::V3::Enums::ExtensionTypeEnum qw(PRICE); -use Google::Ads::GoogleAds::V3::Enums::PriceExtensionTypeEnum qw(SERVICES); -use Google::Ads::GoogleAds::V3::Enums::PriceExtensionPriceQualifierEnum +use Google::Ads::GoogleAds::V4::Resources::CustomerExtensionSetting; +use Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem; +use Google::Ads::GoogleAds::V4::Common::PriceFeedItem; +use Google::Ads::GoogleAds::V4::Common::PriceOffer; +use Google::Ads::GoogleAds::V4::Common::Money; +use Google::Ads::GoogleAds::V4::Common::AdScheduleInfo; +use Google::Ads::GoogleAds::V4::Enums::ExtensionTypeEnum qw(PRICE); +use Google::Ads::GoogleAds::V4::Enums::PriceExtensionTypeEnum qw(SERVICES); +use Google::Ads::GoogleAds::V4::Enums::PriceExtensionPriceQualifierEnum qw(FROM); -use Google::Ads::GoogleAds::V3::Enums::PriceExtensionPriceUnitEnum +use Google::Ads::GoogleAds::V4::Enums::PriceExtensionPriceUnitEnum qw(PER_HOUR PER_MONTH); -use Google::Ads::GoogleAds::V3::Enums::DayOfWeekEnum qw(SATURDAY SUNDAY); -use Google::Ads::GoogleAds::V3::Enums::MinuteOfHourEnum qw(ZERO); +use Google::Ads::GoogleAds::V4::Enums::DayOfWeekEnum qw(SATURDAY SUNDAY); +use Google::Ads::GoogleAds::V4::Enums::MinuteOfHourEnum qw(ZERO); use - Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation; + Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation; use - Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::ExtensionFeedItemOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -71,13 +71,13 @@ sub add_prices { # Create a customer extension setting using the previously created extension # feed item. This associates the price extension to your account. my $customer_extension_setting = - Google::Ads::GoogleAds::V3::Resources::CustomerExtensionSetting->new({ + Google::Ads::GoogleAds::V4::Resources::CustomerExtensionSetting->new({ extensionType => PRICE, extensionFeedItems => [$extension_feed_item]}); # Create a customer extension setting operation. my $customer_extension_setting_operation = - Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation + Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation ->new({ create => $customer_extension_setting }); @@ -99,7 +99,7 @@ sub create_extension_feed_item { my ($api_client, $customer_id, $campaign_id) = @_; # Create the price extension feed item. - my $price_feed_item = Google::Ads::GoogleAds::V3::Common::PriceFeedItem->new({ + my $price_feed_item = Google::Ads::GoogleAds::V4::Common::PriceFeedItem->new({ type => SERVICES, # Price qualifier is optional. priceQualifier => FROM, @@ -139,11 +139,11 @@ sub create_extension_feed_item { # Create an extension feed item from the price feed item. my $extension_feed_item = - Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem->new({ + Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem->new({ extensionType => PRICE, priceFeedItem => $price_feed_item, targetedCampaign => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), adSchedules => [ @@ -153,7 +153,7 @@ sub create_extension_feed_item { # Create an extension feed item operation. my $extension_feed_item_operation = - Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::ExtensionFeedItemOperation + Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation ->new({ create => $extension_feed_item }); @@ -178,11 +178,11 @@ sub create_price_offer { $currency_code, $unit) = @_; - my $price_offer = Google::Ads::GoogleAds::V3::Common::PriceOffer->new({ + my $price_offer = Google::Ads::GoogleAds::V4::Common::PriceOffer->new({ header => $header, description => $description, finalUrls => [$final_url], - price => Google::Ads::GoogleAds::V3::Common::Money->new({ + price => Google::Ads::GoogleAds::V4::Common::Money->new({ amountMicros => $price_in_micros, currencyCode => $currency_code } @@ -200,7 +200,7 @@ sub create_price_offer { sub create_ad_schedule_info { my ($day, $start_hour, $start_minute, $end_hour, $end_minute) = @_; - return Google::Ads::GoogleAds::V3::Common::AdScheduleInfo->new({ + return Google::Ads::GoogleAds::V4::Common::AdScheduleInfo->new({ dayOfWeek => $day, startHour => $start_hour, startMinute => $start_minute, @@ -215,7 +215,7 @@ sub create_ad_schedule_info { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/extensions/add_sitelinks.pl b/examples/extensions/add_sitelinks.pl index a0c817767..5b17ccc83 100644 --- a/examples/extensions/add_sitelinks.pl +++ b/examples/extensions/add_sitelinks.pl @@ -24,22 +24,22 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignExtensionSetting; -use Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem; -use Google::Ads::GoogleAds::V3::Common::KeywordInfo; -use Google::Ads::GoogleAds::V3::Common::SitelinkFeedItem; -use Google::Ads::GoogleAds::V3::Common::AdScheduleInfo; -use Google::Ads::GoogleAds::V3::Enums::ExtensionTypeEnum qw(SITELINK); -use Google::Ads::GoogleAds::V3::Enums::FeedItemTargetDeviceEnum qw(MOBILE); -use Google::Ads::GoogleAds::V3::Enums::KeywordMatchTypeEnum qw(BROAD); -use Google::Ads::GoogleAds::V3::Enums::DayOfWeekEnum +use Google::Ads::GoogleAds::V4::Resources::CampaignExtensionSetting; +use Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem; +use Google::Ads::GoogleAds::V4::Common::KeywordInfo; +use Google::Ads::GoogleAds::V4::Common::SitelinkFeedItem; +use Google::Ads::GoogleAds::V4::Common::AdScheduleInfo; +use Google::Ads::GoogleAds::V4::Enums::ExtensionTypeEnum qw(SITELINK); +use Google::Ads::GoogleAds::V4::Enums::FeedItemTargetDeviceEnum qw(MOBILE); +use Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum qw(BROAD); +use Google::Ads::GoogleAds::V4::Enums::DayOfWeekEnum qw(MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY); -use Google::Ads::GoogleAds::V3::Enums::MinuteOfHourEnum qw(ZERO); +use Google::Ads::GoogleAds::V4::Enums::MinuteOfHourEnum qw(ZERO); use - Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation; + Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation; use - Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::ExtensionFeedItemOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -61,7 +61,7 @@ sub add_sitelinks { my ($api_client, $customer_id, $campaign_id) = @_; my $campaign_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign($customer_id, $campaign_id); # Create extension feed items as sitelinks. @@ -71,7 +71,7 @@ sub add_sitelinks { # Create a campaign extension setting. my $campaign_extension_setting = - Google::Ads::GoogleAds::V3::Resources::CampaignExtensionSetting->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignExtensionSetting->new({ campaign => $campaign_resource_name, extensionType => SITELINK, extensionFeedItems => $extension_feed_items @@ -79,7 +79,7 @@ sub add_sitelinks { # Create a campaign extension setting operation. my $campaign_extension_setting_operation = - Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation + Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation ->new({ create => $campaign_extension_setting }); @@ -107,7 +107,7 @@ sub create_extension_feed_items { # Create an extension feed item from the sitelink feed item. my $extension_feed_item_1 = - Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem->new({ + Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem->new({ extensionType => SITELINK, sitelinkFeedItem => $sitelink_feed_item_1, targetedCampaign => $campaign_resource_name @@ -115,7 +115,7 @@ sub create_extension_feed_items { # Create an extension feed item operation and add it to the operations list. push @$operations, - Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::ExtensionFeedItemOperation + Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation ->new({ create => $extension_feed_item_1 }); @@ -143,10 +143,10 @@ sub create_extension_feed_items { # A list of country codes can be referenced here: # https://developers.google.com/adwords/api/docs/appendix/geotargeting my $united_states = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::geo_target_constant(2840); + Google::Ads::GoogleAds::V4::Utils::ResourceNames::geo_target_constant(2840); my $extension_feed_item_2 = - Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem->new({ + Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem->new({ extensionType => SITELINK, sitelinkFeedItem => $sitelink_feed_item_2, targetedCampaign => $campaign_resource_name, @@ -156,7 +156,7 @@ sub create_extension_feed_items { }); push @$operations, - Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::ExtensionFeedItemOperation + Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation ->new({ create => $extension_feed_item_2 }); @@ -168,18 +168,18 @@ sub create_extension_feed_items { # mobile users. # Target this sitelink for the keyword "free wifi". my $extension_feed_item_3 = - Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem->new({ + Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem->new({ extensionType => SITELINK, sitelinkFeedItem => $sitelink_feed_item_3, targetedCampaign => $campaign_resource_name, device => MOBILE, - targetedKeyword => Google::Ads::GoogleAds::V3::Common::KeywordInfo->new({ + targetedKeyword => Google::Ads::GoogleAds::V4::Common::KeywordInfo->new({ text => "free wifi", matchType => BROAD })}); push @$operations, - Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::ExtensionFeedItemOperation + Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation ->new({ create => $extension_feed_item_3 }); @@ -190,7 +190,7 @@ sub create_extension_feed_items { # Set the feed item schedules to show the happy hours link only during Mon - Fri # 6PM to 9PM. my $extension_feed_item_4 = - Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem->new({ + Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem->new({ extensionType => SITELINK, sitelinkFeedItem => $sitelink_feed_item_4, targetedCampaign => $campaign_resource_name, @@ -202,7 +202,7 @@ sub create_extension_feed_items { create_ad_schedule_info(FRIDAY, 18, ZERO, 21, ZERO)]}); push @$operations, - Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::ExtensionFeedItemOperation + Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation ->new({ create => $extension_feed_item_4 }); @@ -232,7 +232,7 @@ sub create_extension_feed_items { sub create_sitelink_feed_item { my ($sitelink_text, $sitelink_url) = @_; - return Google::Ads::GoogleAds::V3::Common::SitelinkFeedItem->new({ + return Google::Ads::GoogleAds::V4::Common::SitelinkFeedItem->new({ linkText => $sitelink_text, finalUrls => $sitelink_url }); @@ -242,7 +242,7 @@ sub create_sitelink_feed_item { sub create_ad_schedule_info { my ($day, $start_hour, $start_minute, $end_hour, $end_minute) = @_; - return Google::Ads::GoogleAds::V3::Common::AdScheduleInfo->new({ + return Google::Ads::GoogleAds::V4::Common::AdScheduleInfo->new({ dayOfWeek => $day, startHour => $start_hour, startMinute => $start_minute, @@ -257,7 +257,7 @@ sub create_ad_schedule_info { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/extensions/add_sitelinks_using_feeds.pl b/examples/extensions/add_sitelinks_using_feeds.pl index fe3978c63..213e339bb 100644 --- a/examples/extensions/add_sitelinks_using_feeds.pl +++ b/examples/extensions/add_sitelinks_using_feeds.pl @@ -26,30 +26,30 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::Feed; -use Google::Ads::GoogleAds::V3::Resources::FeedAttribute; -use Google::Ads::GoogleAds::V3::Resources::FeedItem; -use Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue; -use Google::Ads::GoogleAds::V3::Resources::FeedMapping; -use Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping; -use Google::Ads::GoogleAds::V3::Resources::CampaignFeed; -use Google::Ads::GoogleAds::V3::Resources::FeedItemTarget; -use Google::Ads::GoogleAds::V3::Common::MatchingFunction; -use Google::Ads::GoogleAds::V3::Enums::FeedOriginEnum qw(USER); -use Google::Ads::GoogleAds::V3::Enums::FeedAttributeTypeEnum +use Google::Ads::GoogleAds::V4::Resources::Feed; +use Google::Ads::GoogleAds::V4::Resources::FeedAttribute; +use Google::Ads::GoogleAds::V4::Resources::FeedItem; +use Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue; +use Google::Ads::GoogleAds::V4::Resources::FeedMapping; +use Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping; +use Google::Ads::GoogleAds::V4::Resources::CampaignFeed; +use Google::Ads::GoogleAds::V4::Resources::FeedItemTarget; +use Google::Ads::GoogleAds::V4::Common::MatchingFunction; +use Google::Ads::GoogleAds::V4::Enums::FeedOriginEnum qw(USER); +use Google::Ads::GoogleAds::V4::Enums::FeedAttributeTypeEnum qw(STRING URL_LIST); -use Google::Ads::GoogleAds::V3::Enums::PlaceholderTypeEnum qw(SITELINK); -use Google::Ads::GoogleAds::V3::Enums::SitelinkPlaceholderFieldEnum +use Google::Ads::GoogleAds::V4::Enums::PlaceholderTypeEnum qw(SITELINK); +use Google::Ads::GoogleAds::V4::Enums::SitelinkPlaceholderFieldEnum qw(TEXT FINAL_URLS LINE_1 LINE_2); -use Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation; -use Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation; +use Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation; +use Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation; use - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation; + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation; use - Google::Ads::GoogleAds::V3::Services::CampaignFeedService::CampaignFeedOperation; + Google::Ads::GoogleAds::V4::Services::CampaignFeedService::CampaignFeedOperation; use - Google::Ads::GoogleAds::V3::Services::FeedItemTargetService::FeedItemTargetOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::FeedItemTargetOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -98,36 +98,36 @@ sub add_sitelinks_using_feeds { sub create_feed { my ($api_client, $customer_id) = @_; - my $feed = Google::Ads::GoogleAds::V3::Resources::Feed->new({ + my $feed = Google::Ads::GoogleAds::V4::Resources::Feed->new({ name => "Sitelinks Feed ##" . uniqid(), origin => USER, # Specify the column name and data type. This is just raw data at this point, # and not yet linked to any particular purpose. The names are used to help us # remember what they are intended for later. attributes => [ - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ name => "Link Text", type => STRING } ), - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ name => "Link Final URL", type => URL_LIST } ), - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ name => "Line 1", type => STRING } ), - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ name => "Line 2", type => STRING })]}); # Create a feed operation. my $feed_operation = - Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation->new({ + Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation->new({ create => $feed }); @@ -163,32 +163,32 @@ sub new_feed_item_operation { my ($data, $text, $final_url, $line_1, $line_2) = @_; # Create the feed item. - my $feed_item = Google::Ads::GoogleAds::V3::Resources::FeedItem->new({ + my $feed_item = Google::Ads::GoogleAds::V4::Resources::FeedItem->new({ feed => $data->{feed}, attributeValues => [ - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $data->{link_text_attribute_id}, stringValue => $text } ), - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $data->{final_url_attribute_id}, stringValues => $final_url } ), - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $data->{line_1_attribute_id}, stringValues => $line_1 } ), - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $data->{line_2_attribute_id}, stringValues => $line_2 })]}); # Create a feed item operation. return - Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation-> + Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation-> new({ create => $feed_item }); @@ -261,26 +261,26 @@ sub create_feed_items { sub create_feed_mapping { my ($api_client, $customer_id, $feed_data) = @_; - my $feed_mapping = Google::Ads::GoogleAds::V3::Resources::FeedMapping->new({ + my $feed_mapping = Google::Ads::GoogleAds::V4::Resources::FeedMapping->new({ placeholderType => SITELINK, feed => $feed_data->{feed}, attributeFieldMappings => [ - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_data->{link_text_attribute_id}, sitelinkField => TEXT } ), - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_data->{final_url_attribute_id}, sitelinkField => FINAL_URLS } ), - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_data->{line_1_attribute_id}, sitelinkField => LINE_1 } ), - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_data->{line_2_attribute_id}, sitelinkField => LINE_2 } @@ -289,7 +289,7 @@ sub create_feed_mapping { # Create a feed mapping operation. my $feed_mapping_operation = - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation ->new({ create => $feed_mapping }); @@ -307,14 +307,14 @@ sub create_feed_mapping { sub create_campaign_feed { my ($api_client, $customer_id, $campaign_id, $feed_data) = @_; - my $campaign_feed = Google::Ads::GoogleAds::V3::Resources::CampaignFeed->new({ + my $campaign_feed = Google::Ads::GoogleAds::V4::Resources::CampaignFeed->new({ placeholderTypes => SITELINK, feed => $feed_data->{feed}, - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), matchingFunction => - Google::Ads::GoogleAds::V3::Common::MatchingFunction->new({ + Google::Ads::GoogleAds::V4::Common::MatchingFunction->new({ functionString => sprintf "AND(IN(FEED_ITEM_ID,{ %s }),EQUALS(CONTEXT.DEVICE,'Mobile'))", join(",", @{$feed_data->{feed_item_ids}})} @@ -323,7 +323,7 @@ sub create_campaign_feed { # Create a campaign feed operation. my $campaign_feed_operation = - Google::Ads::GoogleAds::V3::Services::CampaignFeedService::CampaignFeedOperation + Google::Ads::GoogleAds::V4::Services::CampaignFeedService::CampaignFeedOperation ->new({ create => $campaign_feed }); @@ -344,17 +344,17 @@ sub create_ad_group_targeting { my $feed_item = $feed_data->{feed_items}[0]; my $feed_item_target = - Google::Ads::GoogleAds::V3::Resources::FeedItemTarget->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemTarget->new({ # You must set targeting on a per-feed-item basis. This will restrict the # first feed item we added to only serve for the given ad group. feedItem => $feed_item, - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id )}); # Create a feed item target operation. my $feed_item_target_operation = - Google::Ads::GoogleAds::V3::Services::FeedItemTargetService::FeedItemTargetOperation + Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::FeedItemTargetOperation ->new({ create => $feed_item_target }); @@ -375,7 +375,7 @@ sub create_ad_group_targeting { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/feeds/remove_feed_items.pl b/examples/feeds/remove_feed_items.pl index 2df01af3c..7f1f58e62 100644 --- a/examples/feeds/remove_feed_items.pl +++ b/examples/feeds/remove_feed_items.pl @@ -24,8 +24,8 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -52,11 +52,11 @@ sub remove_feed_items { # Create the remove operations. for my $feed_item_id (@$feed_item_ids) { my $feed_item_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::feed_item($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::feed_item($customer_id, $feed_id, $feed_item_id); push @$feed_item_operations, - Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation + Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation ->new({ remove => $feed_item_resource_name }); @@ -81,7 +81,7 @@ sub remove_feed_items { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/feeds/remove_flights_feed_item_attribute_value.pl b/examples/feeds/remove_flights_feed_item_attribute_value.pl index 56169e639..ec9310231 100644 --- a/examples/feeds/remove_flights_feed_item_attribute_value.pl +++ b/examples/feeds/remove_flights_feed_item_attribute_value.pl @@ -28,9 +28,9 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue; -use Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue; +use Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -58,7 +58,7 @@ sub remove_flights_feed_item_attribute_value { # Get the feed resource name. my $feed_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::feed($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::feed($customer_id, $feed_id); # Get a hash of the placeholder values and feed attributes. @@ -67,7 +67,7 @@ sub remove_flights_feed_item_attribute_value { # Get the feed item resource name. my $feed_item_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::feed_item($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::feed_item($customer_id, $feed_id, $feed_item_id); # Remove the attribute from the feed item. @@ -78,7 +78,7 @@ sub remove_flights_feed_item_attribute_value { # Create a feed item operation. my $feed_item_operation = - Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation-> + Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation-> new({ update => $feed_item, updateMask => all_set_fields_of($feed_item)}); @@ -164,7 +164,7 @@ sub get_attribute_index { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/feeds/update_flights_feed_item_string_attribute_value.pl b/examples/feeds/update_flights_feed_item_string_attribute_value.pl index debe6b02c..cb2f65180 100644 --- a/examples/feeds/update_flights_feed_item_string_attribute_value.pl +++ b/examples/feeds/update_flights_feed_item_string_attribute_value.pl @@ -28,9 +28,9 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::FieldMasks; -use Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue; -use Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue; +use Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -60,7 +60,7 @@ sub update_flights_feed_item_string_attribute_value { # Get the feed resource name. my $feed_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::feed($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::feed($customer_id, $feed_id); # Get a hash of the placeholder values and feed attributes. @@ -73,7 +73,7 @@ sub update_flights_feed_item_string_attribute_value { # Get the feed item resource name. my $feed_item_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::feed_item($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::feed_item($customer_id, $feed_id, $feed_item_id); # Retrieve the feed item and its associated attributes based on its resource name. @@ -82,7 +82,7 @@ sub update_flights_feed_item_string_attribute_value { # Create the updated FeedItemAttributeValue. my $feed_item_attribute_value = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $attribute_id, stringValue => $attribute_value }); @@ -96,7 +96,7 @@ sub update_flights_feed_item_string_attribute_value { # Create a feed item operation. my $feed_item_operation = - Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation-> + Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation-> new({ update => $feed_item, updateMask => all_set_fields_of($feed_item)}); @@ -158,7 +158,7 @@ sub get_attribute_index { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/hotel_ads/add_hotel_ad.pl b/examples/hotel_ads/add_hotel_ad.pl index 44023a3ca..f3ccbdb36 100644 --- a/examples/hotel_ads/add_hotel_ad.pl +++ b/examples/hotel_ads/add_hotel_ad.pl @@ -30,26 +30,26 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::HotelSettingInfo; -use Google::Ads::GoogleAds::V3::Resources::NetworkSettings; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::PercentCpc; -use Google::Ads::GoogleAds::V3::Common::HotelAdInfo; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(HOTEL); -use Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum qw(HOTEL_ADS); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum; +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::HotelSettingInfo; +use Google::Ads::GoogleAds::V4::Resources::NetworkSettings; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::PercentCpc; +use Google::Ads::GoogleAds::V4::Common::HotelAdInfo; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(HOTEL); +use Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum qw(HOTEL_ADS); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -106,7 +106,7 @@ sub add_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, # Set the amount of budget. @@ -117,7 +117,7 @@ sub add_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Add the campaign budget. @@ -139,23 +139,23 @@ sub add_hotel_campaign { = @_; # Create a hotel campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise Campaign #" . uniqid(), # Configure settings related to hotel campaigns including advertising # channel type and hotel setting info. advertisingChannelType => HOTEL, hotelSetting => - Google::Ads::GoogleAds::V3::Resources::HotelSettingInfo->new({ + Google::Ads::GoogleAds::V4::Resources::HotelSettingInfo->new({ hotelCenterId => $hotel_center_account_id } ), # Recommendation: Set the campaign to PAUSED when creating it to prevent # the ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - status => Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum::PAUSED, + status => Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum::PAUSED, # Set the bidding strategy to PercentCpc. Only Manual CPC and Percent CPC # can be used for hotel campaigns. - percentCpc => Google::Ads::GoogleAds::V3::Common::PercentCpc->new( + percentCpc => Google::Ads::GoogleAds::V4::Common::PercentCpc->new( {cpcBidCeilingMicros => $cpc_bid_ceiling_micro_amount} ), # Set the budget. @@ -163,13 +163,13 @@ sub add_hotel_campaign { # Configure the campaign network options. Only Google Search is allowed for # hotel campaigns. networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetGoogleSearch => "true" })}); # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Add the campaign. @@ -188,7 +188,7 @@ sub add_hotel_ad_group { my ($api_client, $customer_id, $campaign_resource_name) = @_; # Create an ad group. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruise #" . uniqid(), # Set the campaign. campaign => $campaign_resource_name, @@ -196,12 +196,12 @@ sub add_hotel_ad_group { # This cannot be set to other types. type => HOTEL_ADS, cpcBidMicros => 1000000, - status => Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum::ENABLED + status => Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum::ENABLED }); # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Add the ad group. @@ -220,19 +220,19 @@ sub add_hotel_ad_group_ad { my ($api_client, $customer_id, $ad_group_resource_name) = @_; # Create an ad group ad and set a hotel ad to it. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ # Set the ad group. adGroup => $ad_group_resource_name, # Set the ad to a new shopping product ad. - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ - hotelAd => Google::Ads::GoogleAds::V3::Common::HotelAdInfo->new()} + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ + hotelAd => Google::Ads::GoogleAds::V4::Common::HotelAdInfo->new()} ), - status => Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum::ENABLED + status => Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum::ENABLED }); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad. @@ -252,7 +252,7 @@ sub add_hotel_ad_group_ad { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.pl b/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.pl index e40b05aae..dd182bf70 100644 --- a/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.pl +++ b/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.pl @@ -25,13 +25,13 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupBidModifier; -use Google::Ads::GoogleAds::V3::Common::HotelCheckInDayInfo; -use Google::Ads::GoogleAds::V3::Common::HotelLengthOfStayInfo; -use Google::Ads::GoogleAds::V3::Enums::DayOfWeekEnum qw(MONDAY); +use Google::Ads::GoogleAds::V4::Resources::AdGroupBidModifier; +use Google::Ads::GoogleAds::V4::Common::HotelCheckInDayInfo; +use Google::Ads::GoogleAds::V4::Common::HotelLengthOfStayInfo; +use Google::Ads::GoogleAds::V4::Enums::DayOfWeekEnum qw(MONDAY); use - Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierService::AdGroupBidModifierOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::AdGroupBidModifierOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -53,13 +53,13 @@ sub add_hotel_ad_group_bid_modifiers { # 1) Create an ad group bid modifier based on the hotel check-in day. my $check_in_day_ad_group_bid_modifier = - Google::Ads::GoogleAds::V3::Resources::AdGroupBidModifier->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupBidModifier->new({ # Set the ad group. - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), hotelCheckInDay => - Google::Ads::GoogleAds::V3::Common::HotelCheckInDayInfo->new({ + Google::Ads::GoogleAds::V4::Common::HotelCheckInDayInfo->new({ dayOfWeek => MONDAY } ), @@ -69,21 +69,21 @@ sub add_hotel_ad_group_bid_modifiers { # Create an ad group bid modifier operation. my $check_in_day_ad_group_bid_modifier_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierService::AdGroupBidModifierOperation + Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::AdGroupBidModifierOperation ->new({ create => $check_in_day_ad_group_bid_modifier }); # 2) Create an ad group bid modifier based on the hotel length of stay. my $length_of_stay_ad_group_bid_modifier = - Google::Ads::GoogleAds::V3::Resources::AdGroupBidModifier->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupBidModifier->new({ # Set the ad group. - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), # Create the hotel length of stay info. hotelLengthOfStay => - Google::Ads::GoogleAds::V3::Common::HotelLengthOfStayInfo->new({ + Google::Ads::GoogleAds::V4::Common::HotelLengthOfStayInfo->new({ minNights => 3, maxNights => 7 } @@ -94,7 +94,7 @@ sub add_hotel_ad_group_bid_modifiers { # Create an ad group bid modifier operation. my $length_of_stay_ad_group_bid_modifier_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierService::AdGroupBidModifierOperation + Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::AdGroupBidModifierOperation ->new({ create => $length_of_stay_ad_group_bid_modifier }); @@ -127,7 +127,7 @@ sub add_hotel_ad_group_bid_modifiers { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/hotel_ads/add_hotel_listing_group_tree.pl b/examples/hotel_ads/add_hotel_listing_group_tree.pl index 8d77e0d00..dfa2af7ad 100644 --- a/examples/hotel_ads/add_hotel_listing_group_tree.pl +++ b/examples/hotel_ads/add_hotel_listing_group_tree.pl @@ -36,17 +36,17 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::ListingGroupInfo; -use Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo; -use Google::Ads::GoogleAds::V3::Common::HotelClassInfo; -use Google::Ads::GoogleAds::V3::Common::HotelCountryRegionInfo; -use Google::Ads::GoogleAds::V3::Enums::ListingGroupTypeEnum +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::ListingGroupInfo; +use Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo; +use Google::Ads::GoogleAds::V4::Common::HotelClassInfo; +use Google::Ads::GoogleAds::V4::Common::HotelCountryRegionInfo; +use Google::Ads::GoogleAds::V4::Enums::ListingGroupTypeEnum qw(SUBDIVISION UNIT); -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum qw(ENABLED); use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -131,8 +131,8 @@ sub add_level_1_nodes { # Create hotel class info and dimension info for 5-star hotels. my $five_starred_dimension_info = - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ - hotelClass => Google::Ads::GoogleAds::V3::Common::HotelClassInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ + hotelClass => Google::Ads::GoogleAds::V4::Common::HotelClassInfo->new({ value => 5 })}); @@ -156,8 +156,8 @@ sub add_level_1_nodes { # Create hotel class info and dimension info for other hotel classes by *not* # specifying any attributes on those object. my $others_hotels_dimension_info = - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ - hotelClass => Google::Ads::GoogleAds::V3::Common::HotelClassInfo->new()}); + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ + hotelClass => Google::Ads::GoogleAds::V4::Common::HotelClassInfo->new()}); # Create listing group info for other hotel classes as a SUBDIVISION node, which # will be used as a parent node for children nodes of the next level. @@ -187,12 +187,12 @@ sub add_level_2_nodes { # of other countries. my $japan_geo_target_constant_id = 2392; my $japan_dimension_info = - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ # Create hotel country region info and dimension info for hotels in Japan. hotelCountryRegion => - Google::Ads::GoogleAds::V3::Common::HotelCountryRegionInfo->new({ + Google::Ads::GoogleAds::V4::Common::HotelCountryRegionInfo->new({ countryRegionCriterion => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::geo_target_constant( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::geo_target_constant( $japan_geo_target_constant_id)})}); # Create listing group info for hotels in Japan as a UNIT node. @@ -209,9 +209,9 @@ sub add_level_2_nodes { # Create hotel class info and dimension info for hotels in other regions. my $other_hotel_regions_dimension_info = - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ hotelCountryRegion => - Google::Ads::GoogleAds::V3::Common::HotelCountryRegionInfo->new()}); + Google::Ads::GoogleAds::V4::Common::HotelCountryRegionInfo->new()}); # Create listing group info for hotels in other regions as a UNIT node. # The "others" node is always required for every level of the tree. @@ -234,7 +234,7 @@ sub create_listing_group_info { my ($listing_group_type, $parent_criterion_resource_name, $case_value) = @_; my $listing_group_info = - Google::Ads::GoogleAds::V3::Common::ListingGroupInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingGroupInfo->new({ type => $listing_group_type }); @@ -256,11 +256,11 @@ sub create_ad_group_criterion { = @_; my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ status => ENABLED, listingGroup => $listing_group_info, resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_criterion( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_criterion( $customer_id, $ad_group_id, next_id())}); # Bids are valid only for UNIT nodes. @@ -275,7 +275,7 @@ sub create_ad_group_criterion { sub generate_create_operation { my $ad_group_criterion = shift; return - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion }); @@ -295,7 +295,7 @@ sub next_id { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_1.pl b/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_1.pl index f4f4f64c7..23a069b46 100644 --- a/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_1.pl +++ b/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_1.pl @@ -30,10 +30,10 @@ use FindBin qw($Bin); use lib "$Bin/../../../lib"; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; use Google::Ads::AdWords::v201809::Campaign; use Google::Ads::AdWords::v201809::BiddingStrategyConfiguration; use Google::Ads::AdWords::v201809::Budget; @@ -80,7 +80,7 @@ sub create_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, amountMicros => 500000 @@ -88,7 +88,7 @@ sub create_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Issue a mutate request to add the campaign budget. diff --git a/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_2.pl b/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_2.pl index 71ce06fff..6bcc5061c 100644 --- a/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_2.pl +++ b/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_2.pl @@ -30,16 +30,16 @@ use FindBin qw($Bin); use lib "$Bin/../../../lib"; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::NetworkSettings; -use Google::Ads::GoogleAds::V3::Common::ManualCpc; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SEARCH); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::NetworkSettings; +use Google::Ads::GoogleAds::V4::Common::ManualCpc; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SEARCH); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum qw(PAUSED); use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; use Google::Ads::AdWords::v201809::AdGroup; use Google::Ads::AdWords::v201809::BiddingStrategyConfiguration; use Google::Ads::AdWords::v201809::CpcBid; @@ -83,7 +83,7 @@ sub create_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, amountMicros => 500000 @@ -91,7 +91,7 @@ sub create_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Issue a mutate request to add the campaign budget. @@ -135,7 +135,7 @@ sub create_campaign { my ($google_ads_client, $customer_id, $campaign_budget) = @_; # Create a campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise #" . uniqid(), advertisingChannelType => SEARCH, # Recommendation: Set the campaign to PAUSED when creating it to stop @@ -143,11 +143,11 @@ sub create_campaign { # targeting and the ads are ready to serve. status => PAUSED, # Set the bidding strategy and budget. - manualCpc => Google::Ads::GoogleAds::V3::Common::ManualCpc->new(), + manualCpc => Google::Ads::GoogleAds::V4::Common::ManualCpc->new(), campaignBudget => $campaign_budget->{resourceName}, # Set the campaign network options. networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetGoogleSearch => "true", targetSearchNetwork => "true", targetContentNetwork => "false", @@ -161,7 +161,7 @@ sub create_campaign { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Issue a mutate request to add the campaign. diff --git a/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_3.pl b/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_3.pl index 29df32911..0f1d661cf 100644 --- a/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_3.pl +++ b/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_3.pl @@ -30,20 +30,20 @@ use FindBin qw($Bin); use lib "$Bin/../../../lib"; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::NetworkSettings; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Common::ManualCpc; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SEARCH); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum qw(PAUSED); -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum qw(ENABLED); -use Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::NetworkSettings; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Common::ManualCpc; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SEARCH); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum qw(PAUSED); +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; use Google::Ads::AdWords::v201809::ExpandedTextAd; use Google::Ads::AdWords::v201809::AdGroupAd; use Google::Ads::AdWords::v201809::Keyword; @@ -81,7 +81,7 @@ sub create_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, amountMicros => 500000 @@ -89,7 +89,7 @@ sub create_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Issue a mutate request to add the campaign budget. @@ -133,7 +133,7 @@ sub create_campaign { my ($google_ads_client, $customer_id, $campaign_budget) = @_; # Create a campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise #" . uniqid(), advertisingChannelType => SEARCH, # Recommendation: Set the campaign to PAUSED when creating it to stop @@ -141,11 +141,11 @@ sub create_campaign { # targeting and the ads are ready to serve. status => PAUSED, # Set the bidding strategy and budget. - manualCpc => Google::Ads::GoogleAds::V3::Common::ManualCpc->new(), + manualCpc => Google::Ads::GoogleAds::V4::Common::ManualCpc->new(), campaignBudget => $campaign_budget->{resourceName}, # Set the campaign network options. networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetGoogleSearch => "true", targetSearchNetwork => "true", targetContentNetwork => "false", @@ -159,7 +159,7 @@ sub create_campaign { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Issue a mutate request to add the campaign. @@ -201,7 +201,7 @@ sub create_ad_group { my ($google_ads_client, $customer_id, $campaign) = @_; # Construct an ad group and set an optional CPC value. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruise #" . uniqid(), campaign => $campaign->{resourceName}, status => ENABLED, @@ -211,7 +211,7 @@ sub create_ad_group { # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Issue a mutate request to add the ad group. diff --git a/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_4.pl b/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_4.pl index a85d7d085..16bff3961 100644 --- a/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_4.pl +++ b/examples/migration/campaign_management/create_complete_campaign_both_apis_phase_4.pl @@ -29,25 +29,25 @@ use FindBin qw($Bin); use lib "$Bin/../../../lib"; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::NetworkSettings; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::ManualCpc; -use Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SEARCH); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum qw(ENABLED); -use Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum; +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::NetworkSettings; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::ManualCpc; +use Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SEARCH); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; use Google::Ads::AdWords::v201809::Keyword; use Google::Ads::AdWords::v201809::BiddableAdGroupCriterion; use Google::Ads::AdWords::v201809::UrlList; @@ -82,7 +82,7 @@ sub create_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, amountMicros => 500000 @@ -90,7 +90,7 @@ sub create_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Issue a mutate request to add the campaign budget. @@ -134,19 +134,19 @@ sub create_campaign { my ($google_ads_client, $customer_id, $campaign_budget) = @_; # Create a campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise #" . uniqid(), advertisingChannelType => SEARCH, # Recommendation: Set the campaign to PAUSED when creating it to stop # the ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - status => Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum::PAUSED, + status => Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum::PAUSED, # Set the bidding strategy and budget. - manualCpc => Google::Ads::GoogleAds::V3::Common::ManualCpc->new(), + manualCpc => Google::Ads::GoogleAds::V4::Common::ManualCpc->new(), campaignBudget => $campaign_budget->{resourceName}, # Set the campaign network options. networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetGoogleSearch => "true", targetSearchNetwork => "true", targetContentNetwork => "false", @@ -160,7 +160,7 @@ sub create_campaign { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Issue a mutate request to add the campaign. @@ -202,7 +202,7 @@ sub create_ad_group { my ($google_ads_client, $customer_id, $campaign) = @_; # Construct an ad group and set an optional CPC value. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruise #" . uniqid(), campaign => $campaign->{resourceName}, status => ENABLED, @@ -212,7 +212,7 @@ sub create_ad_group { # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Issue a mutate request to add the ad group. @@ -256,24 +256,24 @@ sub create_text_ads { for (my $i = 0 ; $i < NUMBER_OF_ADS ; $i++) { # Create an expanded text ad info. my $expanded_text_ad_info = - Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo->new({ headlinePart1 => "Cruise to Mars #" . uniqid(), headlinePart2 => "Best Space Cruise Line", description => "Buy your tickets now!" }); # Create an ad group ad to hold the above ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ adGroup => $ad_group->{resourceName}, status => - Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum::PAUSED, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum::PAUSED, + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ expandedTextAd => $expanded_text_ad_info, finalUrls => ["http://www.example.com"]})}); # Create an ad group ad operation and add it to the operations array. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({ create => $ad_group_ad }); diff --git a/examples/migration/campaign_management/create_complete_campaign_google_ads_api_only.pl b/examples/migration/campaign_management/create_complete_campaign_google_ads_api_only.pl index 0844c8475..bfeb5f90f 100644 --- a/examples/migration/campaign_management/create_complete_campaign_google_ads_api_only.pl +++ b/examples/migration/campaign_management/create_complete_campaign_google_ads_api_only.pl @@ -30,31 +30,31 @@ use FindBin qw($Bin); use lib "$Bin/../../../lib"; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::NetworkSettings; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::ManualCpc; -use Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo; -use Google::Ads::GoogleAds::V3::Common::KeywordInfo; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SEARCH); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum qw(ENABLED); -use Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::KeywordMatchTypeEnum qw(EXACT); +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::NetworkSettings; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::ManualCpc; +use Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; +use Google::Ads::GoogleAds::V4::Common::KeywordInfo; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SEARCH); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum qw(SEARCH_STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum qw(EXACT); use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; use Data::Uniqid qw(uniqid); use URI::Escape qw(uri_escape); @@ -85,7 +85,7 @@ sub create_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, amountMicros => 500000 @@ -93,7 +93,7 @@ sub create_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Issue a mutate request to add the campaign budget. @@ -137,19 +137,19 @@ sub create_campaign { my ($google_ads_client, $customer_id, $campaign_budget) = @_; # Create a campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise #" . uniqid(), advertisingChannelType => SEARCH, # Recommendation: Set the campaign to PAUSED when creating it to stop # the ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - status => Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum::PAUSED, + status => Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum::PAUSED, # Set the bidding strategy and budget. - manualCpc => Google::Ads::GoogleAds::V3::Common::ManualCpc->new(), + manualCpc => Google::Ads::GoogleAds::V4::Common::ManualCpc->new(), campaignBudget => $campaign_budget->{resourceName}, # Set the campaign network options. networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetGoogleSearch => "true", targetSearchNetwork => "true", targetContentNetwork => "false", @@ -163,7 +163,7 @@ sub create_campaign { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Issue a mutate request to add the campaign. @@ -205,7 +205,7 @@ sub create_ad_group { my ($google_ads_client, $customer_id, $campaign) = @_; # Construct an ad group and set an optional CPC value. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruise #" . uniqid(), campaign => $campaign->{resourceName}, status => ENABLED, @@ -215,7 +215,7 @@ sub create_ad_group { # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Issue a mutate request to add the ad group. @@ -259,24 +259,24 @@ sub create_text_ads { for (my $i = 0 ; $i < NUMBER_OF_ADS ; $i++) { # Create an expanded text ad info. my $expanded_text_ad_info = - Google::Ads::GoogleAds::V3::Common::ExpandedTextAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo->new({ headlinePart1 => "Cruise to Mars #" . uniqid(), headlinePart2 => "Best Space Cruise Line", description => "Buy your tickets now!" }); # Create an ad group ad to hold the above ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ adGroup => $ad_group->{resourceName}, status => - Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum::PAUSED, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum::PAUSED, + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ expandedTextAd => $expanded_text_ad_info, finalUrls => ["http://www.example.com"]})}); # Create an ad group ad operation and add it to the operations array. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({ create => $ad_group_ad }); @@ -340,18 +340,18 @@ sub create_keywords { foreach my $keyword_text (@{+KEYWORDS_TO_ADD}) { # Construct an ad group criterion using the keyword text info above. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ adGroup => $ad_group->{resourceName}, status => - Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum::ENABLED, - keyword => Google::Ads::GoogleAds::V3::Common::KeywordInfo->new({ + Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum::ENABLED, + keyword => Google::Ads::GoogleAds::V4::Common::KeywordInfo->new({ text => $keyword_text, matchType => EXACT })}); # Create an ad group criterion operation and add it to the list. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion }); diff --git a/examples/misc/get_all_image_assets.pl b/examples/misc/get_all_image_assets.pl index bcd30d283..d7739bc91 100644 --- a/examples/misc/get_all_image_assets.pl +++ b/examples/misc/get_all_image_assets.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -58,7 +58,7 @@ sub get_all_image_assets { # Create a search Google Ads request that will retrieve all image assets # using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -95,7 +95,7 @@ sub get_all_image_assets { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/misc/get_all_videos_and_images.pl b/examples/misc/get_all_videos_and_images.pl index 4f860ef18..0dba57b26 100644 --- a/examples/misc/get_all_videos_and_images.pl +++ b/examples/misc/get_all_videos_and_images.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -50,7 +50,7 @@ sub get_all_videos_and_images { # Create a search Google Ads request that will retrieve all video and image # files using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => "SELECT media_file.id, media_file.name, media_file.type " . @@ -84,7 +84,7 @@ sub get_all_videos_and_images { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/misc/upload_image.pl b/examples/misc/upload_image.pl index 81e7653fc..f4b6b9109 100644 --- a/examples/misc/upload_image.pl +++ b/examples/misc/upload_image.pl @@ -25,10 +25,10 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::MediaUtils; -use Google::Ads::GoogleAds::V3::Resources::MediaImage; -use Google::Ads::GoogleAds::V3::Resources::MediaFile; -use Google::Ads::GoogleAds::V3::Enums::MediaTypeEnum qw(IMAGE); -use Google::Ads::GoogleAds::V3::Services::MediaFileService::MediaFileOperation; +use Google::Ads::GoogleAds::V4::Resources::MediaImage; +use Google::Ads::GoogleAds::V4::Resources::MediaFile; +use Google::Ads::GoogleAds::V4::Enums::MediaTypeEnum qw(IMAGE); +use Google::Ads::GoogleAds::V4::Services::MediaFileService::MediaFileOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -50,11 +50,11 @@ sub upload_image { my ($api_client, $customer_id) = @_; # Create a media image. - my $media_image = Google::Ads::GoogleAds::V3::Resources::MediaImage->new({ + my $media_image = Google::Ads::GoogleAds::V4::Resources::MediaImage->new({ data => get_base64_data_from_url(IMAGE_URL)}); # Create a media file. - my $media_file = Google::Ads::GoogleAds::V3::Resources::MediaFile->new({ + my $media_file = Google::Ads::GoogleAds::V4::Resources::MediaFile->new({ name => "Ad Images", type => IMAGE, sourceUrl => IMAGE_URL, @@ -63,7 +63,7 @@ sub upload_image { # Create a media file operation. my $media_file_operation = - Google::Ads::GoogleAds::V3::Services::MediaFileService::MediaFileOperation + Google::Ads::GoogleAds::V4::Services::MediaFileService::MediaFileOperation ->new({ create => $media_file }); @@ -85,7 +85,7 @@ sub upload_image { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/misc/upload_image_asset.pl b/examples/misc/upload_image_asset.pl index 6cec8660f..1001a43be 100644 --- a/examples/misc/upload_image_asset.pl +++ b/examples/misc/upload_image_asset.pl @@ -25,10 +25,10 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::MediaUtils; -use Google::Ads::GoogleAds::V3::Resources::Asset; -use Google::Ads::GoogleAds::V3::Common::ImageAsset; -use Google::Ads::GoogleAds::V3::Enums::AssetTypeEnum qw(IMAGE); -use Google::Ads::GoogleAds::V3::Services::AssetService::AssetOperation; +use Google::Ads::GoogleAds::V4::Resources::Asset; +use Google::Ads::GoogleAds::V4::Common::ImageAsset; +use Google::Ads::GoogleAds::V4::Enums::AssetTypeEnum qw(IMAGE); +use Google::Ads::GoogleAds::V4::Services::AssetService::AssetOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -54,20 +54,20 @@ sub upload_image_asset { my $image_content = get_base64_data_from_url(IMAGE_URL); # Create an asset. - my $asset = Google::Ads::GoogleAds::V3::Resources::Asset->new({ + my $asset = Google::Ads::GoogleAds::V4::Resources::Asset->new({ # Optional: Provide a unique friendly name to identify your asset. # If you specify the name field, then both the asset name and the image being # uploaded should be unique, and should not match another ACTIVE asset in this # customer account. # name => "Jupiter Trip #" . uniqid(), type => IMAGE, - imageAsset => Google::Ads::GoogleAds::V3::Common::ImageAsset->new({ + imageAsset => Google::Ads::GoogleAds::V4::Common::ImageAsset->new({ data => $image_content })}); # Create an asset operation. my $asset_operation = - Google::Ads::GoogleAds::V3::Services::AssetService::AssetOperation->new({ + Google::Ads::GoogleAds::V4::Services::AssetService::AssetOperation->new({ create => $asset }); @@ -88,7 +88,7 @@ sub upload_image_asset { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/misc/upload_media_bundle.pl b/examples/misc/upload_media_bundle.pl index 0f36bbb21..ba0ffb9d5 100644 --- a/examples/misc/upload_media_bundle.pl +++ b/examples/misc/upload_media_bundle.pl @@ -25,10 +25,10 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::MediaUtils; -use Google::Ads::GoogleAds::V3::Resources::MediaFile; -use Google::Ads::GoogleAds::V3::Resources::MediaBundle; -use Google::Ads::GoogleAds::V3::Enums::MediaTypeEnum qw(MEDIA_BUNDLE); -use Google::Ads::GoogleAds::V3::Services::MediaFileService::MediaFileOperation; +use Google::Ads::GoogleAds::V4::Resources::MediaFile; +use Google::Ads::GoogleAds::V4::Resources::MediaBundle; +use Google::Ads::GoogleAds::V4::Enums::MediaTypeEnum qw(MEDIA_BUNDLE); +use Google::Ads::GoogleAds::V4::Services::MediaFileService::MediaFileOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -53,16 +53,16 @@ sub upload_media_bundle { my $bundle_content = get_base64_data_from_url(BUNDLE_URL); # Create a media file. - my $media_file = Google::Ads::GoogleAds::V3::Resources::MediaFile->new({ + my $media_file = Google::Ads::GoogleAds::V4::Resources::MediaFile->new({ name => "Ad Media Bundle", type => MEDIA_BUNDLE, - mediaBundle => Google::Ads::GoogleAds::V3::Resources::MediaBundle->new({ + mediaBundle => Google::Ads::GoogleAds::V4::Resources::MediaBundle->new({ data => $bundle_content })}); # Create a media file operation. my $media_file_operation = - Google::Ads::GoogleAds::V3::Services::MediaFileService::MediaFileOperation + Google::Ads::GoogleAds::V4::Services::MediaFileService::MediaFileOperation ->new({ create => $media_file }); @@ -84,7 +84,7 @@ sub upload_media_bundle { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/planning/add_keyword_plan.pl b/examples/planning/add_keyword_plan.pl index ff0176ef4..14a932240 100644 --- a/examples/planning/add_keyword_plan.pl +++ b/examples/planning/add_keyword_plan.pl @@ -25,30 +25,29 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::KeywordPlan; -use Google::Ads::GoogleAds::V3::Resources::KeywordPlanForecastPeriod; -use Google::Ads::GoogleAds::V3::Resources::KeywordPlanCampaign; -use Google::Ads::GoogleAds::V3::Resources::KeywordPlanGeoTarget; -use Google::Ads::GoogleAds::V3::Resources::KeywordPlanAdGroup; -use Google::Ads::GoogleAds::V3::Resources::KeywordPlanKeyword; -use Google::Ads::GoogleAds::V3::Resources::KeywordPlanNegativeKeyword; -use Google::Ads::GoogleAds::V3::Enums::KeywordPlanForecastIntervalEnum +use Google::Ads::GoogleAds::V4::Resources::KeywordPlan; +use Google::Ads::GoogleAds::V4::Resources::KeywordPlanForecastPeriod; +use Google::Ads::GoogleAds::V4::Resources::KeywordPlanCampaign; +use Google::Ads::GoogleAds::V4::Resources::KeywordPlanGeoTarget; +use Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroup; +use Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword; +use Google::Ads::GoogleAds::V4::Resources::KeywordPlanCampaignKeyword; +use Google::Ads::GoogleAds::V4::Enums::KeywordPlanForecastIntervalEnum qw(NEXT_QUARTER); -use Google::Ads::GoogleAds::V3::Enums::KeywordPlanNetworkEnum qw(GOOGLE_SEARCH); -use Google::Ads::GoogleAds::V3::Enums::KeywordMatchTypeEnum +use Google::Ads::GoogleAds::V4::Enums::KeywordPlanNetworkEnum qw(GOOGLE_SEARCH); +use Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum qw(BROAD PHRASE EXACT); use - Google::Ads::GoogleAds::V3::Services::KeywordPlanService::KeywordPlanOperation; + Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanOperation; use - Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignService::KeywordPlanCampaignOperation; + Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignService::KeywordPlanCampaignOperation; use - Google::Ads::GoogleAds::V3::Services::KeywordPlanAdGroupService::KeywordPlanAdGroupOperation; + Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupService::KeywordPlanAdGroupOperation; use - Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordService::KeywordPlanKeywordOperation; + Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService::KeywordPlanAdGroupKeywordOperation; use - Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordService::KeywordPlanNegativeKeywordOperation; - -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService::KeywordPlanCampaignKeywordOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -78,10 +77,10 @@ sub add_keyword_plan { create_keyword_plan_ad_group($api_client, $customer_id, $keyword_plan_campaign_resource); - create_keyword_plan_keywords($api_client, $customer_id, + create_keyword_plan_ad_group_keywords($api_client, $customer_id, $keyword_plan_ad_group_resource); - create_keyword_plan_negative_keywords($api_client, $customer_id, + create_keyword_plan_negative_campaign_keywords($api_client, $customer_id, $keyword_plan_campaign_resource); return 1; @@ -92,16 +91,16 @@ sub create_keyword_plan { my ($api_client, $customer_id) = @_; # Create a keyword plan. - my $keyword_plan = Google::Ads::GoogleAds::V3::Resources::KeywordPlan->new({ + my $keyword_plan = Google::Ads::GoogleAds::V4::Resources::KeywordPlan->new({ name => "Keyword plan for traffic estimate #" . uniqid(), forecastPeriod => - Google::Ads::GoogleAds::V3::Resources::KeywordPlanForecastPeriod->new({ + Google::Ads::GoogleAds::V4::Resources::KeywordPlanForecastPeriod->new({ dateInterval => NEXT_QUARTER })}); # Create a keyword plan operation. my $keyword_plan_operation = - Google::Ads::GoogleAds::V3::Services::KeywordPlanService::KeywordPlanOperation + Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanOperation ->new({ create => $keyword_plan }); @@ -122,7 +121,7 @@ sub create_keyword_plan_campaign { # Create a keyword plan campaign. my $keyword_plan_campaign = - Google::Ads::GoogleAds::V3::Resources::KeywordPlanCampaign->new({ + Google::Ads::GoogleAds::V4::Resources::KeywordPlanCampaign->new({ name => "Keyword plan campaign #" . uniqid(), cpcBidMicros => 1000000, keywordPlanNetwork => GOOGLE_SEARCH, @@ -132,21 +131,21 @@ sub create_keyword_plan_campaign { # See https://developers.google.com/adwords/api/docs/appendix/geotargeting # for the list of geo target IDs. $keyword_plan_campaign->{geoTargets} = [ - Google::Ads::GoogleAds::V3::Resources::KeywordPlanGeoTarget->new({ + Google::Ads::GoogleAds::V4::Resources::KeywordPlanGeoTarget->new({ # Geo target constant 2840 is for USA. geoTargetConstant => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::geo_target_constant( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::geo_target_constant( 2840)})]; # See https://developers.google.com/adwords/api/docs/appendix/codes-formats#languages # for the list of language criteria IDs. $keyword_plan_campaign->{languageConstants} = [ # Language criteria 1000 is for English. - Google::Ads::GoogleAds::V3::Utils::ResourceNames::language_constant(1000)]; + Google::Ads::GoogleAds::V4::Utils::ResourceNames::language_constant(1000)]; # Create a keyword plan campaign operation my $keyword_plan_campaign_operation = - Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignService::KeywordPlanCampaignOperation + Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignService::KeywordPlanCampaignOperation ->new({ create => $keyword_plan_campaign }); @@ -170,7 +169,7 @@ sub create_keyword_plan_ad_group { # Create a keyword plan ad group. my $keyword_plan_ad_group = - Google::Ads::GoogleAds::V3::Resources::KeywordPlanAdGroup->new({ + Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroup->new({ name => "Keyword plan ad group #" . uniqid(), cpcBidMicros => 2500000, keywordPlanCampaign => $keyword_plan_campaign_resource @@ -178,7 +177,7 @@ sub create_keyword_plan_ad_group { # Create a keyword plan ad group operation. my $keyword_plan_ad_group_operation = - Google::Ads::GoogleAds::V3::Services::KeywordPlanAdGroupService::KeywordPlanAdGroupOperation + Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupService::KeywordPlanAdGroupOperation ->new({ create => $keyword_plan_ad_group }); @@ -196,84 +195,86 @@ sub create_keyword_plan_ad_group { return $keyword_plan_ad_group_resource; } -# Creates keywords for the keyword plan. -sub create_keyword_plan_keywords { +# Creates ad group keywords for the keyword plan. +sub create_keyword_plan_ad_group_keywords { my ($api_client, $customer_id, $keyword_plan_ad_group_resource) = @_; - # Create the keywords for the keyword plan. - my $keyword_plan_keyword1 = - Google::Ads::GoogleAds::V3::Resources::KeywordPlanKeyword->new({ + # Create the ad group keywords for the keyword plan. + my $keyword_plan_ad_group_keyword1 = + Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword->new({ text => "mars cruise", cpcBidMicros => 2000000, matchType => BROAD, keywordPlanAdGroup => $keyword_plan_ad_group_resource }); - my $keyword_plan_keyword2 = - Google::Ads::GoogleAds::V3::Resources::KeywordPlanKeyword->new({ + my $keyword_plan_ad_group_keyword2 = + Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword->new({ text => "cheap cruise", cpcBidMicros => 1500000, matchType => PHRASE, keywordPlanAdGroup => $keyword_plan_ad_group_resource }); - my $keyword_plan_keyword3 = - Google::Ads::GoogleAds::V3::Resources::KeywordPlanKeyword->new({ + my $keyword_plan_ad_group_keyword3 = + Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword->new({ text => "jupiter cruise", cpcBidMicros => 1990000, matchType => EXACT, keywordPlanAdGroup => $keyword_plan_ad_group_resource }); - # Create an array of keyword plan keyword operations. - my $keyword_plan_keyword_operations = [ + # Create an array of keyword plan ad group keyword operations. + my $operations = [ map( - Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordService::KeywordPlanKeywordOperation + Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService::KeywordPlanAdGroupKeywordOperation ->new( {create => $_} ), - ($keyword_plan_keyword1, $keyword_plan_keyword2, $keyword_plan_keyword3)) - ]; - - # Add the keyword plan keywords. - my $keyword_plan_keyword_response = - $api_client->KeywordPlanKeywordService()->mutate({ - customerId => $customer_id, - operations => $keyword_plan_keyword_operations - }); - - foreach my $result (@{$keyword_plan_keyword_response->{results}}) { - printf "Created keyword for keyword plan: '%s'.\n", $result->{resourceName}; + ( + $keyword_plan_ad_group_keyword1, $keyword_plan_ad_group_keyword2, + $keyword_plan_ad_group_keyword3 + ))]; + + # Add the keyword plan ad group keywords. + my $response = $api_client->KeywordPlanAdGroupKeywordService()->mutate({ + customerId => $customer_id, + operations => $operations + }); + + foreach my $result (@{$response->{results}}) { + printf "Created ad group keyword for keyword plan: '%s'.\n", + $result->{resourceName}; } } -# Creates negative keywords for the keyword plan. -sub create_keyword_plan_negative_keywords { +# Creates negative campaign keywords for the keyword plan. +sub create_keyword_plan_negative_campaign_keywords { my ($api_client, $customer_id, $keyword_plan_campaign_resource) = @_; - # Create a negative keyword for the keyword plan. - my $keyword_plan_negative_keyword = - Google::Ads::GoogleAds::V3::Resources::KeywordPlanNegativeKeyword->new({ + # Create a negative campaign keyword for the keyword plan. + my $keyword_plan_campaign_keyword = + Google::Ads::GoogleAds::V4::Resources::KeywordPlanCampaignKeyword->new({ text => "moon walk", matchType => BROAD, + negative => "true", keywordPlanCampaign => $keyword_plan_campaign_resource }); - # Create a keyword plan negative keyword operation. - my $keyword_plan_negative_keyword_operation = - Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordService::KeywordPlanNegativeKeywordOperation + # Create a keyword plan campaign keyword operation. + my $operation = + Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService::KeywordPlanCampaignKeywordOperation ->new({ - create => $keyword_plan_negative_keyword + create => $keyword_plan_campaign_keyword }); - # Add the keyword plan negative keyword. - my $keyword_plan_negative_keyword_response = - $api_client->KeywordPlanNegativeKeywordService()->mutate({ + # Add the keyword plan negative campaign keyword. + my $response = $api_client->KeywordPlanCampaignKeywordService()->mutate({ customerId => $customer_id, - operations => [$keyword_plan_negative_keyword_operation]}); + operations => [$operation]}); - printf "Created negative keyword for keyword plan: '%s'.\n", - $keyword_plan_negative_keyword_response->{results}[0]{resourceName}; + printf "Created negative campaign keyword for keyword plan: '%s'.\n", + $response->{results}[0]{resourceName}; } # Don't run the example if the file is being included. @@ -282,7 +283,7 @@ sub create_keyword_plan_negative_keywords { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/planning/forecast_reach.pl b/examples/planning/forecast_reach.pl index ad1d0767b..eea16b934 100644 --- a/examples/planning/forecast_reach.pl +++ b/examples/planning/forecast_reach.pl @@ -26,20 +26,20 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Common::GenderInfo; -use Google::Ads::GoogleAds::V3::Common::DeviceInfo; -use Google::Ads::GoogleAds::V3::Enums::ReachPlanAdLengthEnum +use Google::Ads::GoogleAds::V4::Common::GenderInfo; +use Google::Ads::GoogleAds::V4::Common::DeviceInfo; +use Google::Ads::GoogleAds::V4::Enums::ReachPlanAdLengthEnum qw(FIFTEEN_OR_TWENTY_SECONDS); -use Google::Ads::GoogleAds::V3::Enums::GenderTypeEnum qw(MALE FEMALE); -use Google::Ads::GoogleAds::V3::Enums::DeviceEnum qw(DESKTOP MOBILE TABLET); -use Google::Ads::GoogleAds::V3::Enums::ReachPlanAgeRangeEnum +use Google::Ads::GoogleAds::V4::Enums::GenderTypeEnum qw(MALE FEMALE); +use Google::Ads::GoogleAds::V4::Enums::DeviceEnum qw(DESKTOP MOBILE TABLET); +use Google::Ads::GoogleAds::V4::Enums::ReachPlanAgeRangeEnum qw(AGE_RANGE_18_65_UP); -use Google::Ads::GoogleAds::V3::Services::ReachPlanService::PlannedProduct; -use Google::Ads::GoogleAds::V3::Services::ReachPlanService::Preferences; -use Google::Ads::GoogleAds::V3::Services::ReachPlanService::CampaignDuration; -use Google::Ads::GoogleAds::V3::Services::ReachPlanService::Targeting; +use Google::Ads::GoogleAds::V4::Services::ReachPlanService::PlannedProduct; +use Google::Ads::GoogleAds::V4::Services::ReachPlanService::Preferences; +use Google::Ads::GoogleAds::V4::Services::ReachPlanService::CampaignDuration; +use Google::Ads::GoogleAds::V4::Services::ReachPlanService::Targeting; use - Google::Ads::GoogleAds::V3::Services::ReachPlanService::GenerateReachForecastRequest; + Google::Ads::GoogleAds::V4::Services::ReachPlanService::GenerateReachForecastRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -138,14 +138,14 @@ sub forecast_manual_mix { # See list_plannable_products on ReachPlanService to retrieve a list of valid # plannable product codes for a given location: - # https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v3.services#reachplanservice + # https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v4.services#reachplanservice push @$product_mix, - Google::Ads::GoogleAds::V3::Services::ReachPlanService::PlannedProduct->new( + Google::Ads::GoogleAds::V4::Services::ReachPlanService::PlannedProduct->new( { plannableProductCode => "TRUEVIEW_IN_STREAM", budgetMicros => int($budget_micros * $trueview_allocation)}); push @$product_mix, - Google::Ads::GoogleAds::V3::Services::ReachPlanService::PlannedProduct->new( + Google::Ads::GoogleAds::V4::Services::ReachPlanService::PlannedProduct->new( { plannableProductCode => "BUMPER", budgetMicros => int($budget_micros * $bumper_allocation)}); @@ -168,7 +168,7 @@ sub forecast_suggested_mix { # Note: If preferences are too restrictive, then the response will be empty. my $preferences = - Google::Ads::GoogleAds::V3::Services::ReachPlanService::Preferences->new({ + Google::Ads::GoogleAds::V4::Services::ReachPlanService::Preferences->new({ hasGuaranteedPrice => "true", startsWithSound => "true", isSkippable => "false", @@ -187,7 +187,7 @@ sub forecast_suggested_mix { my $product_mix = []; foreach my $product (@{$mix_response->{productAllocation}}) { push @$product_mix, - Google::Ads::GoogleAds::V3::Services::ReachPlanService::PlannedProduct-> + Google::Ads::GoogleAds::V4::Services::ReachPlanService::PlannedProduct-> new({ plannableProductCode => $product->{plannableProductCode}, budgetMicros => $product->{budgetMicros}}); @@ -206,35 +206,35 @@ sub build_reach_request { # Valid durations are between 1 and 90 days. my $duration = - Google::Ads::GoogleAds::V3::Services::ReachPlanService::CampaignDuration-> + Google::Ads::GoogleAds::V4::Services::ReachPlanService::CampaignDuration-> new({ durationInDays => 28 }); my $genders = [ - Google::Ads::GoogleAds::V3::Common::GenderInfo->new({ + Google::Ads::GoogleAds::V4::Common::GenderInfo->new({ type => FEMALE } ), - Google::Ads::GoogleAds::V3::Common::GenderInfo->new({ + Google::Ads::GoogleAds::V4::Common::GenderInfo->new({ type => MALE })]; my $devices = [ - Google::Ads::GoogleAds::V3::Common::DeviceInfo->new({ + Google::Ads::GoogleAds::V4::Common::DeviceInfo->new({ type => DESKTOP } ), - Google::Ads::GoogleAds::V3::Common::DeviceInfo->new({ + Google::Ads::GoogleAds::V4::Common::DeviceInfo->new({ type => MOBILE } ), - Google::Ads::GoogleAds::V3::Common::DeviceInfo->new({ + Google::Ads::GoogleAds::V4::Common::DeviceInfo->new({ type => TABLET })]; my $targeting = - Google::Ads::GoogleAds::V3::Services::ReachPlanService::Targeting->new({ + Google::Ads::GoogleAds::V4::Services::ReachPlanService::Targeting->new({ plannableLocationId => $location_id, ageRange => AGE_RANGE_18_65_UP, genders => $genders, @@ -242,9 +242,9 @@ sub build_reach_request { }); # See the docs for defaults and valid ranges: - # https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v3.services#google.ads.googleads.v3.services.GenerateReachForecastRequest + # https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v4.services#google.ads.googleads.v4.services.GenerateReachForecastRequest return - Google::Ads::GoogleAds::V3::Services::ReachPlanService::GenerateReachForecastRequest + Google::Ads::GoogleAds::V4::Services::ReachPlanService::GenerateReachForecastRequest ->new({ customerId => $customer_id, currencyCode => $currency_code, @@ -283,7 +283,7 @@ sub pull_reach_curve { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/planning/generate_forecast_metrics.pl b/examples/planning/generate_forecast_metrics.pl index af60a1787..0e12625d7 100644 --- a/examples/planning/generate_forecast_metrics.pl +++ b/examples/planning/generate_forecast_metrics.pl @@ -25,7 +25,7 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -48,7 +48,7 @@ sub generate_forecast_metrics { my $forecast_metrics_response = $api_client->KeywordPlanService()->generate_forecast_metrics({ keywordPlan => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::keyword_plan( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::keyword_plan( $customer_id, $keyword_plan_id )}); @@ -76,7 +76,7 @@ sub generate_forecast_metrics { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/planning/generate_keyword_ideas.pl b/examples/planning/generate_keyword_ideas.pl index d27187cb0..e37687989 100644 --- a/examples/planning/generate_keyword_ideas.pl +++ b/examples/planning/generate_keyword_ideas.pl @@ -25,13 +25,13 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Enums::KeywordPlanNetworkEnum +use Google::Ads::GoogleAds::V4::Enums::KeywordPlanNetworkEnum qw(GOOGLE_SEARCH GOOGLE_SEARCH_AND_PARTNERS); -use Google::Ads::GoogleAds::V3::Services::KeywordPlanIdeaService::UrlSeed; -use Google::Ads::GoogleAds::V3::Services::KeywordPlanIdeaService::KeywordSeed; +use Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::UrlSeed; +use Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::KeywordSeed; use - Google::Ads::GoogleAds::V3::Services::KeywordPlanIdeaService::KeywordAndUrlSeed; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::KeywordAndUrlSeed; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -85,21 +85,21 @@ sub generate_keyword_ideas { if (!scalar @$keyword_texts) { # Only page URL was specified, so use a UrlSeed. $request_option_args->{urlSeed} = - Google::Ads::GoogleAds::V3::Services::KeywordPlanIdeaService::UrlSeed-> + Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::UrlSeed-> new({ url => $page_url }); } elsif (not $page_url) { # Only keywords were specified, so use a KeywordSeed. $request_option_args->{keywordSeed} = - Google::Ads::GoogleAds::V3::Services::KeywordPlanIdeaService::KeywordSeed + Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::KeywordSeed ->new({ keywords => $keyword_texts }); } else { # Both page URL and keywords were specified, so use a KeywordAndUrlSeed. $request_option_args->{keywordAndUrlSeed} = - Google::Ads::GoogleAds::V3::Services::KeywordPlanIdeaService::KeywordAndUrlSeed + Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::KeywordAndUrlSeed ->new({ url => $page_url, keywords => $keyword_texts @@ -110,7 +110,7 @@ sub generate_keyword_ideas { # location IDs. my $geo_target_constants = [ map ( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::geo_target_constant($_), + Google::Ads::GoogleAds::V4::Utils::ResourceNames::geo_target_constant($_), @$location_ids)]; # Generate keyword ideas based on the specified parameters. @@ -119,7 +119,7 @@ sub generate_keyword_ideas { customerId => $customer_id, # Set the language resource using the provided language ID. language => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::language_constant( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::language_constant( $language_id), # Add the resource name of each location ID to the request. geoTargetConstants => $geo_target_constants, @@ -150,7 +150,7 @@ sub generate_keyword_ideas { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/planning/get_ad_group_criterion_cpc_bid_simulations.pl b/examples/planning/get_ad_group_criterion_cpc_bid_simulations.pl index 3e32dccff..c9d5d5d28 100644 --- a/examples/planning/get_ad_group_criterion_cpc_bid_simulations.pl +++ b/examples/planning/get_ad_group_criterion_cpc_bid_simulations.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; use Getopt::Long qw(:config auto_help); @@ -59,7 +59,7 @@ sub get_ad_group_criterion_cpc_bid_simulations { "AND ad_group_criterion_simulation.ad_group_id = $ad_group_id"; my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id, query => $search_query @@ -109,7 +109,7 @@ sub get_ad_group_criterion_cpc_bid_simulations { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/planning/get_campaign_criterion_bid_modifier_simulations.pl b/examples/planning/get_campaign_criterion_bid_modifier_simulations.pl index 1a7db8c6c..b46b546c8 100644 --- a/examples/planning/get_campaign_criterion_bid_modifier_simulations.pl +++ b/examples/planning/get_campaign_criterion_bid_modifier_simulations.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; use Getopt::Long qw(:config auto_help); @@ -58,7 +58,7 @@ sub get_campaign_criterion_bid_modifier_simulations { "AND campaign_criterion_simulation.campaign_id = $campaign_id"; my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id, query => $search_query @@ -111,7 +111,7 @@ sub get_campaign_criterion_bid_modifier_simulations { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/recommendations/apply_recommendation.pl b/examples/recommendations/apply_recommendation.pl index 24188963c..c61624119 100644 --- a/examples/recommendations/apply_recommendation.pl +++ b/examples/recommendations/apply_recommendation.pl @@ -26,8 +26,8 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use - Google::Ads::GoogleAds::V3::Services::RecommendationService::ApplyRecommendationOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::RecommendationService::ApplyRecommendationOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -52,12 +52,12 @@ sub apply_recommendation { my ($api_client, $customer_id, $recommendation_id) = @_; my $recommendation_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::recommendation( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::recommendation( $customer_id, $recommendation_id); # Create an apply recommendation operation. my $apply_recommendation_operation = - Google::Ads::GoogleAds::V3::Services::RecommendationService::ApplyRecommendationOperation + Google::Ads::GoogleAds::V4::Services::RecommendationService::ApplyRecommendationOperation ->new({ resourceName => $recommendation_resource_name }); @@ -65,13 +65,13 @@ sub apply_recommendation { # Each recommendation type has optional parameters to override the recommended values. # This is an example to override a recommended ad when a TextAdRecommendation is applied. # For details, please read - # https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v3.services#google.ads.googleads.v3.services.ApplyRecommendationOperation. + # https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v4.services#google.ads.googleads.v4.services.ApplyRecommendationOperation. # - # my $overriding_ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ + # my $overriding_ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ # id => "INSERT_AD_ID_AS_INTEGER_HERE" # }); # my $text_ad_parameters = - # Google::Ads::GoogleAds::V3::Services::RecommendationService::TextAdParameters + # Google::Ads::GoogleAds::V4::Services::RecommendationService::TextAdParameters # ->new({ad => $overriding_ad}); # $apply_recommendation_operation->{textAd} = $text_ad_parameters; @@ -93,7 +93,7 @@ sub apply_recommendation { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/recommendations/dismiss_recommendation.pl b/examples/recommendations/dismiss_recommendation.pl index 025577dba..97b9e138b 100644 --- a/examples/recommendations/dismiss_recommendation.pl +++ b/examples/recommendations/dismiss_recommendation.pl @@ -26,8 +26,8 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use - Google::Ads::GoogleAds::V3::Services::RecommendationService::DismissRecommendationOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::RecommendationService::DismissRecommendationOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -52,12 +52,12 @@ sub dismiss_recommendation { my ($api_client, $customer_id, $recommendation_id) = @_; my $recommendation_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::recommendation( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::recommendation( $customer_id, $recommendation_id); # Create an dismiss recommendation operation. my $dismiss_recommendation_operation = - Google::Ads::GoogleAds::V3::Services::RecommendationService::DismissRecommendationOperation + Google::Ads::GoogleAds::V4::Services::RecommendationService::DismissRecommendationOperation ->new({ resourceName => $recommendation_resource_name }); @@ -80,7 +80,7 @@ sub dismiss_recommendation { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/recommendations/get_text_ad_recommendations.pl b/examples/recommendations/get_text_ad_recommendations.pl index a17bb6b18..627f902c4 100644 --- a/examples/recommendations/get_text_ad_recommendations.pl +++ b/examples/recommendations/get_text_ad_recommendations.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -56,7 +56,7 @@ sub get_text_ad_recommendations { # Create a search Google Ads request that will retrieve all recommendations for # text ads using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -114,7 +114,7 @@ sub get_text_ad_recommendations { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/add_conversion_action.pl b/examples/remarketing/add_conversion_action.pl index 50adbfe63..820b7f14d 100644 --- a/examples/remarketing/add_conversion_action.pl +++ b/examples/remarketing/add_conversion_action.pl @@ -24,13 +24,13 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::ConversionAction; -use Google::Ads::GoogleAds::V3::Resources::ValueSettings; -use Google::Ads::GoogleAds::V3::Enums::ConversionActionCategoryEnum qw(DEFAULT); -use Google::Ads::GoogleAds::V3::Enums::ConversionActionTypeEnum qw(WEBPAGE); -use Google::Ads::GoogleAds::V3::Enums::ConversionActionStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Resources::ConversionAction; +use Google::Ads::GoogleAds::V4::Resources::ValueSettings; +use Google::Ads::GoogleAds::V4::Enums::ConversionActionCategoryEnum qw(DEFAULT); +use Google::Ads::GoogleAds::V4::Enums::ConversionActionTypeEnum qw(WEBPAGE); +use Google::Ads::GoogleAds::V4::Enums::ConversionActionStatusEnum qw(ENABLED); use - Google::Ads::GoogleAds::V3::Services::ConversionActionService::ConversionActionOperation; + Google::Ads::GoogleAds::V4::Services::ConversionActionService::ConversionActionOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -52,21 +52,21 @@ sub add_conversion_action { # Create a conversion action. my $conversion_action = - Google::Ads::GoogleAds::V3::Resources::ConversionAction->new({ + Google::Ads::GoogleAds::V4::Resources::ConversionAction->new({ name => "Earth to Mars Cruises Conversion #" . uniqid(), category => DEFAULT, type => WEBPAGE, status => ENABLED, viewThroughLookbackWindowDays => 15, valueSettings => - Google::Ads::GoogleAds::V3::Resources::ValueSettings->new({ + Google::Ads::GoogleAds::V4::Resources::ValueSettings->new({ defaultValue => 23.41, alwaysUseDefaultValue => "true" })}); # Create a conversion action operation. my $conversion_action_operation = - Google::Ads::GoogleAds::V3::Services::ConversionActionService::ConversionActionOperation + Google::Ads::GoogleAds::V4::Services::ConversionActionService::ConversionActionOperation ->new({create => $conversion_action}); # Add the conversion action. @@ -87,7 +87,7 @@ sub add_conversion_action { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/add_customer_match_user_list.pl b/examples/remarketing/add_customer_match_user_list.pl index bcf7d9229..b933a3427 100644 --- a/examples/remarketing/add_customer_match_user_list.pl +++ b/examples/remarketing/add_customer_match_user_list.pl @@ -31,22 +31,22 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; -use Google::Ads::GoogleAds::V3::Resources::UserList; -use Google::Ads::GoogleAds::V3::Resources::OfflineUserDataJob; -use Google::Ads::GoogleAds::V3::Common::CrmBasedUserListInfo; -use Google::Ads::GoogleAds::V3::Common::CustomerMatchUserListMetadata; -use Google::Ads::GoogleAds::V3::Common::UserData; -use Google::Ads::GoogleAds::V3::Common::UserIdentifier; -use Google::Ads::GoogleAds::V3::Common::OfflineUserAddressInfo; -use Google::Ads::GoogleAds::V3::Enums::CustomerMatchUploadKeyTypeEnum +use Google::Ads::GoogleAds::V4::Resources::UserList; +use Google::Ads::GoogleAds::V4::Resources::OfflineUserDataJob; +use Google::Ads::GoogleAds::V4::Common::CrmBasedUserListInfo; +use Google::Ads::GoogleAds::V4::Common::CustomerMatchUserListMetadata; +use Google::Ads::GoogleAds::V4::Common::UserData; +use Google::Ads::GoogleAds::V4::Common::UserIdentifier; +use Google::Ads::GoogleAds::V4::Common::OfflineUserAddressInfo; +use Google::Ads::GoogleAds::V4::Enums::CustomerMatchUploadKeyTypeEnum qw(CONTACT_INFO); -use Google::Ads::GoogleAds::V3::Enums::OfflineUserDataJobTypeEnum +use Google::Ads::GoogleAds::V4::Enums::OfflineUserDataJobTypeEnum qw(CUSTOMER_MATCH_USER_LIST); -use Google::Ads::GoogleAds::V3::Services::UserListService::UserListOperation; +use Google::Ads::GoogleAds::V4::Services::UserListService::UserListOperation; use - Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobService::OfflineUserDataJobOperation; + Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::OfflineUserDataJobOperation; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -85,7 +85,7 @@ sub create_customer_match_user_list { my ($api_client, $customer_id) = @_; # Create the user list. - my $user_list = Google::Ads::GoogleAds::V3::Resources::UserList->new({ + my $user_list = Google::Ads::GoogleAds::V4::Resources::UserList->new({ name => "Customer Match list #" . uniqid(), description => "A list of customers that originated from email and physical addresses", @@ -94,13 +94,13 @@ sub create_customer_match_user_list { # Set the membership life span to 30 days. membershipLifeSpan => 30, crmBasedUserList => - Google::Ads::GoogleAds::V3::Common::CrmBasedUserListInfo->new({ + Google::Ads::GoogleAds::V4::Common::CrmBasedUserListInfo->new({ uploadKeyType => CONTACT_INFO })}); # Create the user list operation. my $user_list_operation = - Google::Ads::GoogleAds::V3::Services::UserListService::UserListOperation-> + Google::Ads::GoogleAds::V4::Services::UserListService::UserListOperation-> new({ create => $user_list }); @@ -125,10 +125,10 @@ sub add_users_to_customer_match_user_list { # Create a new offline user data job. my $offline_user_data_job = - Google::Ads::GoogleAds::V3::Resources::OfflineUserDataJob->new({ + Google::Ads::GoogleAds::V4::Resources::OfflineUserDataJob->new({ type => CUSTOMER_MATCH_USER_LIST, customerMatchUserListMetadata => - Google::Ads::GoogleAds::V3::Common::CustomerMatchUserListMetadata->new({ + Google::Ads::GoogleAds::V4::Common::CustomerMatchUserListMetadata->new({ userList => $user_list_resource_name })}); @@ -196,19 +196,19 @@ sub add_users_to_customer_match_user_list { sub build_offline_user_data_job_operations() { # Create a first user data based on an email address. my $user_data_with_email_address = - Google::Ads::GoogleAds::V3::Common::UserData->new({ + Google::Ads::GoogleAds::V4::Common::UserData->new({ userIdentifiers => [ - Google::Ads::GoogleAds::V3::Common::UserIdentifier->new({ + Google::Ads::GoogleAds::V4::Common::UserIdentifier->new({ # Hash normalized email addresses based on SHA-256 hashing algorithm. hashedEmail => normalize_and_hash('customer@example.com')})]}); # Create a second user data based on a physical address. my $user_data_with_physical_address = - Google::Ads::GoogleAds::V3::Common::UserData->new({ + Google::Ads::GoogleAds::V4::Common::UserData->new({ userIdentifiers => [ - Google::Ads::GoogleAds::V3::Common::UserIdentifier->new({ + Google::Ads::GoogleAds::V4::Common::UserIdentifier->new({ addressInfo => - Google::Ads::GoogleAds::V3::Common::OfflineUserAddressInfo->new({ + Google::Ads::GoogleAds::V4::Common::OfflineUserAddressInfo->new({ # First and last name must be normalized and hashed. hashedFirstName => normalize_and_hash("John"), hashedLastName => normalize_and_hash("Doe"), @@ -219,12 +219,12 @@ () # Create the operations to add the two users. my $operations = [ - Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobService::OfflineUserDataJobOperation + Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::OfflineUserDataJobOperation ->new({ create => $user_data_with_email_address } ), - Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobService::OfflineUserDataJobOperation + Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::OfflineUserDataJobOperation ->new({ create => $user_data_with_physical_address })]; @@ -244,7 +244,7 @@ sub print_customer_match_user_list_info { # Create a search Google Ads stream request that will retrieve the user list. my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id, query => $search_query, @@ -292,7 +292,7 @@ sub normalize_and_hash { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/add_flights_feed.pl b/examples/remarketing/add_flights_feed.pl index e3039ddf4..deb9c51ee 100644 --- a/examples/remarketing/add_flights_feed.pl +++ b/examples/remarketing/add_flights_feed.pl @@ -25,21 +25,21 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::FeedAttribute; -use Google::Ads::GoogleAds::V3::Resources::Feed; -use Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping; -use Google::Ads::GoogleAds::V3::Resources::FeedMapping; -use Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue; -use Google::Ads::GoogleAds::V3::Resources::FeedItem; -use Google::Ads::GoogleAds::V3::Enums::FeedAttributeTypeEnum +use Google::Ads::GoogleAds::V4::Resources::FeedAttribute; +use Google::Ads::GoogleAds::V4::Resources::Feed; +use Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping; +use Google::Ads::GoogleAds::V4::Resources::FeedMapping; +use Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue; +use Google::Ads::GoogleAds::V4::Resources::FeedItem; +use Google::Ads::GoogleAds::V4::Enums::FeedAttributeTypeEnum qw(STRING URL_LIST); -use Google::Ads::GoogleAds::V3::Enums::FlightPlaceholderFieldEnum +use Google::Ads::GoogleAds::V4::Enums::FlightPlaceholderFieldEnum qw(FLIGHT_DESCRIPTION DESTINATION_ID FLIGHT_PRICE FLIGHT_SALE_PRICE FINAL_URLS); -use Google::Ads::GoogleAds::V3::Enums::PlaceholderTypeEnum qw(DYNAMIC_FLIGHT); -use Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation; +use Google::Ads::GoogleAds::V4::Enums::PlaceholderTypeEnum qw(DYNAMIC_FLIGHT); +use Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation; use - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation; -use Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation; + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation; +use Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -86,37 +86,37 @@ sub create_feed { # Create a Flight Description attribute. my $flight_description_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING, name => "Flight Description" }); # Create a Destination ID attribute. my $destination_id_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING, name => "Destination ID" }); # Create a Flight Price attribute. my $flight_price_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING, name => "Flight Price" }); # Create a Flight Sale Price attribute. my $flight_sales_price_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING, name => "Flight Sale Price" }); # Create a Final URLs attribute. my $final_urls_Attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => URL_LIST, name => "Final URLs" }); # Create a feed. - my $feed = Google::Ads::GoogleAds::V3::Resources::Feed->new({ + my $feed = Google::Ads::GoogleAds::V4::Resources::Feed->new({ name => "Flights Feed #" . uniqid(), attributes => [ $flight_description_attribute, $destination_id_attribute, @@ -126,7 +126,7 @@ sub create_feed { # Create a feed operation. my $feed_operation = - Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation->new(({ + Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation->new(({ create => $feed })); @@ -200,33 +200,33 @@ sub create_feed_mapping { # Map the FeedAttributeIds to the fieldId constants. my $flight_description_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{FLIGHT_DESCRIPTION}{id}, flightField => FLIGHT_DESCRIPTION }); my $destination_id_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{DESTINATION_ID}{id}, flightField => DESTINATION_ID }); my $flight_price_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{FLIGHT_PRICE}{id}, flightField => FLIGHT_PRICE }); my $flight_sale_price_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{FLIGHT_SALE_PRICE}{id}, flightField => FLIGHT_SALE_PRICE }); my $final_urls_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{FINAL_URLS}{id}, flightField => FINAL_URLS }); # Create a feed mapping. - my $feed_mapping = Google::Ads::GoogleAds::V3::Resources::FeedMapping->new({ + my $feed_mapping = Google::Ads::GoogleAds::V4::Resources::FeedMapping->new({ placeholderType => DYNAMIC_FLIGHT, feed => $feed_resource_name, attributeFieldMappings => [ @@ -237,7 +237,7 @@ sub create_feed_mapping { # Create a feed mapping operation. my $feed_mapping_operation = - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation ->new({ create => $feed_mapping }); @@ -257,36 +257,36 @@ sub create_feed_item { # Create the flight description feed attribute value. my $flight_description = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{FLIGHT_DESCRIPTION}{id}, stringValue => "Earth to Mars" }); # Create the destination ID feed attribute value. my $destination_id = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{DESTINATION_ID}{id}, stringValue => "Mars" }); # Create the flight price feed attribute value. my $flight_price = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{FLIGHT_PRICE}{id}, stringValue => "499.99 USD" }); # Create the flight sale price feed attribute value. my $flight_sale_price = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{FLIGHT_SALE_PRICE}{id}, stringValue => "299.99 USD" }); # Create the final URLs feed attribute value. my $final_urls = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{FINAL_URLS}{id}, stringValues => ["http://www.example.com/flights/"]}); # Create a feed item, specifying the Feed ID and the attributes created above. - my $feed_item = Google::Ads::GoogleAds::V3::Resources::FeedItem->new({ + my $feed_item = Google::Ads::GoogleAds::V4::Resources::FeedItem->new({ feed => $feed_resource_name, attributeValues => [ $flight_description, $destination_id, $flight_price, @@ -295,7 +295,7 @@ sub create_feed_item { # Create a feed item operation. my $feed_item_operation = - Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation-> + Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation-> new({ create => $feed_item }); @@ -315,7 +315,7 @@ sub create_feed_item { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/add_merchant_center_dynamic_remarketing_campaign.pl b/examples/remarketing/add_merchant_center_dynamic_remarketing_campaign.pl index 1f08ec72f..d0f411f88 100644 --- a/examples/remarketing/add_merchant_center_dynamic_remarketing_campaign.pl +++ b/examples/remarketing/add_merchant_center_dynamic_remarketing_campaign.pl @@ -27,32 +27,32 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::MediaUtils; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::ShoppingSetting; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Resources::Asset; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::ManualCpc; -use Google::Ads::GoogleAds::V3::Common::ResponsiveDisplayAdInfo; -use Google::Ads::GoogleAds::V3::Common::AdImageAsset; -use Google::Ads::GoogleAds::V3::Common::AdTextAsset; -use Google::Ads::GoogleAds::V3::Common::ImageAsset; -use Google::Ads::GoogleAds::V3::Common::UserListInfo; -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(DISPLAY); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::DisplayAdFormatSettingEnum +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::ShoppingSetting; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Resources::Asset; +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::ManualCpc; +use Google::Ads::GoogleAds::V4::Common::ResponsiveDisplayAdInfo; +use Google::Ads::GoogleAds::V4::Common::AdImageAsset; +use Google::Ads::GoogleAds::V4::Common::AdTextAsset; +use Google::Ads::GoogleAds::V4::Common::ImageAsset; +use Google::Ads::GoogleAds::V4::Common::UserListInfo; +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(DISPLAY); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::DisplayAdFormatSettingEnum qw(NON_NATIVE); -use Google::Ads::GoogleAds::V3::Enums::AssetTypeEnum qw(IMAGE); -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; -use Google::Ads::GoogleAds::V3::Services::AssetService::AssetOperation; +use Google::Ads::GoogleAds::V4::Enums::AssetTypeEnum qw(IMAGE); +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; +use Google::Ads::GoogleAds::V4::Services::AssetService::AssetOperation; use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -104,7 +104,7 @@ sub create_campaign { # Configure the settings for the shopping campaign. my $shopping_settings = - Google::Ads::GoogleAds::V3::Resources::ShoppingSetting->new({ + Google::Ads::GoogleAds::V4::Resources::ShoppingSetting->new({ campaignPriority => 0, merchantId => $merchant_center_account_id, # Display Network campaigns do not support partition by country. The only @@ -116,23 +116,23 @@ sub create_campaign { }); # Create the campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Shopping campaign #" . uniqid(), # Dynamic remarketing campaigns are only available on the Google Display Network. advertisingChannelType => DISPLAY, - status => Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum::PAUSED, + status => Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum::PAUSED, campaignBudget => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_budget( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_budget( $customer_id, $campaign_budget_id ), - manualCpc => Google::Ads::GoogleAds::V3::Common::ManualCpc->new(), + manualCpc => Google::Ads::GoogleAds::V4::Common::ManualCpc->new(), # This connects the campaign to the Merchant Center account. shoppingSetting => $shopping_settings }); # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Issue a mutate request to add the campaign. @@ -151,15 +151,15 @@ sub create_ad_group { my ($api_client, $customer_id, $campaign_resource_name) = @_; # Create the ad group. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Dynamic remarketing ad group", campaign => $campaign_resource_name, - status => Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum::ENABLED + status => Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum::ENABLED }); # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Issue a mutate request to add the ad group. @@ -187,28 +187,28 @@ sub create_ad { # Create the responsive display ad info object. my $responsive_display_ad_info = - Google::Ads::GoogleAds::V3::Common::ResponsiveDisplayAdInfo->new({ + Google::Ads::GoogleAds::V4::Common::ResponsiveDisplayAdInfo->new({ marketingImages => [ - Google::Ads::GoogleAds::V3::Common::AdImageAsset->new({ + Google::Ads::GoogleAds::V4::Common::AdImageAsset->new({ asset => $marketing_image_resource_name }) ], squareMarketingImages => [ - Google::Ads::GoogleAds::V3::Common::AdImageAsset->new({ + Google::Ads::GoogleAds::V4::Common::AdImageAsset->new({ asset => $square_marketing_image_resource_name }) ], headlines => [ - Google::Ads::GoogleAds::V3::Common::AdTextAsset->new({ + Google::Ads::GoogleAds::V4::Common::AdTextAsset->new({ text => "Travel" }) ], - longHeadline => Google::Ads::GoogleAds::V3::Common::AdTextAsset->new({ + longHeadline => Google::Ads::GoogleAds::V4::Common::AdTextAsset->new({ text => "Travel the World" } ), descriptions => [ - Google::Ads::GoogleAds::V3::Common::AdTextAsset->new({ + Google::Ads::GoogleAds::V4::Common::AdTextAsset->new({ text => "Take to the air!" }) ], @@ -225,28 +225,28 @@ sub create_ad { formatSetting => NON_NATIVE, # Optional: Create a logo image and set it to the ad. # logoImages => [ - # Google::Ads::GoogleAds::V3::Common::AdImageAsset->new({ + # Google::Ads::GoogleAds::V4::Common::AdImageAsset->new({ # asset => "INSERT_LOGO_IMAGE_RESOURCE_NAME_HERE" # }) # ], # Optional: Create a square logo image and set it to the ad. # squareLogoImages => [ - # Google::Ads::GoogleAds::V3::Common::AdImageAsset->new({ + # Google::Ads::GoogleAds::V4::Common::AdImageAsset->new({ # asset => "INSERT_SQUARE_LOGO_IMAGE_RESOURCE_NAME_HERE" # }) # ] }); # Create an ad group ad. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ adGroup => $ad_group_resource_name, - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ responsiveDisplayAd => $responsive_display_ad_info, finalUrls => ["http://www.example.com/"]})}); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Issue a mutate request to add the ad group ad. @@ -265,16 +265,16 @@ sub upload_asset { my $image_data = get_base64_data_from_url($image_url); # Create an asset. - my $asset = Google::Ads::GoogleAds::V3::Resources::Asset->new({ + my $asset = Google::Ads::GoogleAds::V4::Resources::Asset->new({ name => $asset_name, type => IMAGE, - imageAsset => Google::Ads::GoogleAds::V3::Common::ImageAsset->new({ + imageAsset => Google::Ads::GoogleAds::V4::Common::ImageAsset->new({ data => $image_data })}); # Create an asset operation. my $asset_operation = - Google::Ads::GoogleAds::V3::Services::AssetService::AssetOperation->new({ + Google::Ads::GoogleAds::V4::Services::AssetService::AssetOperation->new({ create => $asset }); @@ -296,17 +296,17 @@ sub attach_user_list { # Create the ad group criterion that targets the user list. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ adGroup => $ad_group_resource_name, - userList => Google::Ads::GoogleAds::V3::Common::UserListInfo->new({ + userList => Google::Ads::GoogleAds::V4::Common::UserListInfo->new({ userList => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::user_list( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::user_list( $customer_id, $user_list_id )})}); # Create an ad group criterion operation. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({create => $ad_group_criterion}); # Issue a mutate request to add the ad group criterion. @@ -325,7 +325,7 @@ sub attach_user_list { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/add_real_estate_feed.pl b/examples/remarketing/add_real_estate_feed.pl index 508367608..fed0d1205 100644 --- a/examples/remarketing/add_real_estate_feed.pl +++ b/examples/remarketing/add_real_estate_feed.pl @@ -25,22 +25,22 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::FeedAttribute; -use Google::Ads::GoogleAds::V3::Resources::Feed; -use Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping; -use Google::Ads::GoogleAds::V3::Resources::FeedMapping; -use Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue; -use Google::Ads::GoogleAds::V3::Resources::FeedItem; -use Google::Ads::GoogleAds::V3::Enums::FeedAttributeTypeEnum +use Google::Ads::GoogleAds::V4::Resources::FeedAttribute; +use Google::Ads::GoogleAds::V4::Resources::Feed; +use Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping; +use Google::Ads::GoogleAds::V4::Resources::FeedMapping; +use Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue; +use Google::Ads::GoogleAds::V4::Resources::FeedItem; +use Google::Ads::GoogleAds::V4::Enums::FeedAttributeTypeEnum qw(STRING STRING_LIST URL URL_LIST); -use Google::Ads::GoogleAds::V3::Enums::RealEstatePlaceholderFieldEnum +use Google::Ads::GoogleAds::V4::Enums::RealEstatePlaceholderFieldEnum qw(LISTING_ID LISTING_NAME FINAL_URLS IMAGE_URL CONTEXTUAL_KEYWORDS); -use Google::Ads::GoogleAds::V3::Enums::PlaceholderTypeEnum +use Google::Ads::GoogleAds::V4::Enums::PlaceholderTypeEnum qw(DYNAMIC_REAL_ESTATE); -use Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation; +use Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation; use - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation; -use Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation; + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation; +use Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -88,37 +88,37 @@ sub create_feed { # Create a Listing ID attribute. my $listing_id_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING, name => "Listing ID" }); # Create a Listing Name attribute. my $listing_name_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING, name => "Listing Name" }); # Create a Final URLs attribute. my $final_urls_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => URL_LIST, name => "Final URLs" }); # Create an Image URL attribute. my $image_url_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => URL, name => "Image URL" }); # Create a Contextual Keywords attribute. my $contextual_keywords_attribute = - Google::Ads::GoogleAds::V3::Resources::FeedAttribute->new({ + Google::Ads::GoogleAds::V4::Resources::FeedAttribute->new({ type => STRING_LIST, name => "Contextual Keywords" }); # Create a feed. - my $feed = Google::Ads::GoogleAds::V3::Resources::Feed->new({ + my $feed = Google::Ads::GoogleAds::V4::Resources::Feed->new({ name => "Real Estate Feed #" . uniqid(), attributes => [ $listing_id_attribute, $listing_name_attribute, @@ -128,7 +128,7 @@ sub create_feed { # Create a feed operation. my $feed_operation = - Google::Ads::GoogleAds::V3::Services::FeedService::FeedOperation->new(({ + Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation->new(({ create => $feed })); @@ -204,36 +204,36 @@ sub create_feed_mapping { # the context of a real estate feed (e.g. a LISTING_ID or LISTING_NAME). The FeedMapping # associates the feed column by ID to this type and controls how the feed attributes are # presented in dynamic content. - # See https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v3.enums#google.ads.googleads.v3.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField + # See https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v4.enums#google.ads.googleads.v4.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField # for the full list of placeholder values. my $listing_id_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{LISTING_ID}{id}, realEstateField => LISTING_ID }); my $listing_name_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{LISTING_NAME}{id}, realEstateField => LISTING_NAME }); my $final_urls_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{FINAL_URLS}{id}, realEstateField => FINAL_URLS }); my $image_url_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{IMAGE_URL}{id}, realEstateField => IMAGE_URL }); my $contextual_keywords_mapping = - Google::Ads::GoogleAds::V3::Resources::AttributeFieldMapping->new({ + Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping->new({ feedAttributeId => $feed_attributes->{CONTEXTUAL_KEYWORDS}{id}, realEstateField => CONTEXTUAL_KEYWORDS }); # Create a feed mapping. - my $feed_mapping = Google::Ads::GoogleAds::V3::Resources::FeedMapping->new({ + my $feed_mapping = Google::Ads::GoogleAds::V4::Resources::FeedMapping->new({ placeholderType => DYNAMIC_REAL_ESTATE, feed => $feed_resource_name, attributeFieldMappings => [ @@ -244,7 +244,7 @@ sub create_feed_mapping { # Create a feed mapping operation. my $feed_mapping_operation = - Google::Ads::GoogleAds::V3::Services::FeedMappingService::FeedMappingOperation + Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation ->new({ create => $feed_mapping }); @@ -264,19 +264,19 @@ sub create_feed_item { # Create the listing ID feed attribute value. my $listing_id = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{LISTING_ID}{id}, stringValue => "ABC123DEF" }); # Create the listing name feed attribute value. my $listing_name = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{LISTING_NAME}{id}, stringValue => "Two bedroom with magnificent views" }); # Create the final URLs feed attribute value. my $final_urls = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{FINAL_URLS}{id}, stringValue => "http://www.example.com/listings/" }); @@ -285,19 +285,19 @@ sub create_feed_item { # Create the image URL feed attribute value. my $image_url = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{IMAGE_URL}{id}, stringValue => "http://www.example.com/listings/images?listing_id=ABC123DEF" }); # Create the contextual keywords feed attribute value. my $contextual_keywords = - Google::Ads::GoogleAds::V3::Resources::FeedItemAttributeValue->new({ + Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue->new({ feedAttributeId => $feed_attributes->{CONTEXTUAL_KEYWORDS}{id}, stringValues => ["beach community", "ocean view", "two bedroom"]}); # Create a feed item, specifying the Feed ID and the attributes created above. - my $feed_item = Google::Ads::GoogleAds::V3::Resources::FeedItem->new({ + my $feed_item = Google::Ads::GoogleAds::V4::Resources::FeedItem->new({ feed => $feed_resource_name, attributeValues => [ $listing_id, $listing_name, $final_urls, @@ -306,7 +306,7 @@ sub create_feed_item { # Create a feed item operation. my $feed_item_operation = - Google::Ads::GoogleAds::V3::Services::FeedItemService::FeedItemOperation-> + Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation-> new({ create => $feed_item }); @@ -326,7 +326,7 @@ sub create_feed_item { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/add_remarketing_action.pl b/examples/remarketing/add_remarketing_action.pl index e93a161d6..dea2d6668 100644 --- a/examples/remarketing/add_remarketing_action.pl +++ b/examples/remarketing/add_remarketing_action.pl @@ -25,9 +25,9 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::RemarketingAction; +use Google::Ads::GoogleAds::V4::Resources::RemarketingAction; use - Google::Ads::GoogleAds::V3::Services::RemarketingActionService::RemarketingActionOperation; + Google::Ads::GoogleAds::V4::Services::RemarketingActionService::RemarketingActionOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -51,12 +51,12 @@ sub add_remarketing_action { # Create a remarketing action with the specified name. my $remarketing_action = - Google::Ads::GoogleAds::V3::Resources::RemarketingAction->new({ + Google::Ads::GoogleAds::V4::Resources::RemarketingAction->new({ name => "Remarketing action #" . uniqid()}); # Create a remarketing action operation. my $remarketing_action_operation = - Google::Ads::GoogleAds::V3::Services::RemarketingActionService::RemarketingActionOperation + Google::Ads::GoogleAds::V4::Services::RemarketingActionService::RemarketingActionOperation ->new({ create => $remarketing_action }); @@ -122,7 +122,7 @@ sub add_remarketing_action { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/upload_call_conversion.pl b/examples/remarketing/upload_call_conversion.pl index bac526270..d618ac443 100644 --- a/examples/remarketing/upload_call_conversion.pl +++ b/examples/remarketing/upload_call_conversion.pl @@ -27,8 +27,8 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use - Google::Ads::GoogleAds::V3::Services::ConversionUploadService::CallConversion; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::ConversionUploadService::CallConversion; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -56,10 +56,10 @@ sub upload_call_conversion { # Create a call conversion by specifying currency as USD. my $call_conversion = - Google::Ads::GoogleAds::V3::Services::ConversionUploadService::CallConversion + Google::Ads::GoogleAds::V4::Services::ConversionUploadService::CallConversion ->new({ conversionAction => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::conversion_action( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::conversion_action( $customer_id, $conversion_action_id ), callerId => $caller_id, @@ -103,7 +103,7 @@ sub upload_call_conversion { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/upload_conversion_adjustment.pl b/examples/remarketing/upload_conversion_adjustment.pl index bc1eab663..34dc795be 100644 --- a/examples/remarketing/upload_conversion_adjustment.pl +++ b/examples/remarketing/upload_conversion_adjustment.pl @@ -25,15 +25,15 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Enums::ConversionAdjustmentTypeEnum +use Google::Ads::GoogleAds::V4::Enums::ConversionAdjustmentTypeEnum qw(RESTATEMENT); use - Google::Ads::GoogleAds::V3::Services::ConversionAdjustmentUploadService::ConversionAdjustment; + Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::ConversionAdjustment; use - Google::Ads::GoogleAds::V3::Services::ConversionAdjustmentUploadService::GclidDateTimePair; + Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::GclidDateTimePair; use - Google::Ads::GoogleAds::V3::Services::ConversionAdjustmentUploadService::RestatementValue; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::RestatementValue; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -67,15 +67,15 @@ sub upload_conversion_adjustment { # Associate conversion adjustments with the existing conversion action. # The GCLID should have been uploaded before with a conversion. my $conversion_adjustment = - Google::Ads::GoogleAds::V3::Services::ConversionAdjustmentUploadService::ConversionAdjustment + Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::ConversionAdjustment ->new({ conversionAction => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::conversion_action( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::conversion_action( $customer_id, $conversion_action_id ), adjustmentType => $adjustment_type, gclidDateTimePair => - Google::Ads::GoogleAds::V3::Services::ConversionAdjustmentUploadService::GclidDateTimePair + Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::GclidDateTimePair ->new({ gclid => $gclid, conversionDateTime => $conversion_date_time @@ -86,7 +86,7 @@ sub upload_conversion_adjustment { # Set adjusted value for adjustment type RESTATEMENT. $conversion_adjustment->{restatementValue} = - Google::Ads::GoogleAds::V3::Services::ConversionAdjustmentUploadService::RestatementValue + Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::RestatementValue ->new({ adjustedValue => $restatement_value }) if defined $restatement_value && $adjustment_type eq RESTATEMENT; @@ -125,7 +125,7 @@ sub upload_conversion_adjustment { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/upload_offline_conversion.pl b/examples/remarketing/upload_offline_conversion.pl index 691f7204e..3f83e53de 100644 --- a/examples/remarketing/upload_offline_conversion.pl +++ b/examples/remarketing/upload_offline_conversion.pl @@ -28,8 +28,8 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use - Google::Ads::GoogleAds::V3::Services::ConversionUploadService::ClickConversion; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::ConversionUploadService::ClickConversion; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -56,10 +56,10 @@ sub upload_offline_conversion { # Create a click conversion by specifying currency as USD. my $click_conversion = - Google::Ads::GoogleAds::V3::Services::ConversionUploadService::ClickConversion + Google::Ads::GoogleAds::V4::Services::ConversionUploadService::ClickConversion ->new({ conversionAction => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::conversion_action( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::conversion_action( $customer_id, $conversion_action_id ), gclid => $gclid, @@ -103,7 +103,7 @@ sub upload_offline_conversion { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/remarketing/upload_store_sales_transactions.pl b/examples/remarketing/upload_store_sales_transactions.pl index 06dd5749e..c15fadaca 100755 --- a/examples/remarketing/upload_store_sales_transactions.pl +++ b/examples/remarketing/upload_store_sales_transactions.pl @@ -28,17 +28,18 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::OfflineUserDataJob; -use Google::Ads::GoogleAds::V3::Common::OfflineUserAddressInfo; -use Google::Ads::GoogleAds::V3::Common::StoreSalesMetadata; -use Google::Ads::GoogleAds::V3::Common::StoreSalesThirdPartyMetadata; -use Google::Ads::GoogleAds::V3::Common::TransactionAttribute; -use Google::Ads::GoogleAds::V3::Common::UserData; -use Google::Ads::GoogleAds::V3::Common::UserIdentifier; -use Google::Ads::GoogleAds::V3::Enums::OfflineUserDataJobTypeEnum +use Google::Ads::GoogleAds::V4::Resources::OfflineUserDataJob; +use Google::Ads::GoogleAds::V4::Common::OfflineUserAddressInfo; +use Google::Ads::GoogleAds::V4::Common::StoreSalesMetadata; +use Google::Ads::GoogleAds::V4::Common::StoreSalesThirdPartyMetadata; +use Google::Ads::GoogleAds::V4::Common::TransactionAttribute; +use Google::Ads::GoogleAds::V4::Common::UserData; +use Google::Ads::GoogleAds::V4::Common::UserIdentifier; +use Google::Ads::GoogleAds::V4::Enums::OfflineUserDataJobTypeEnum qw(STORE_SALES_UPLOAD_FIRST_PARTY STORE_SALES_UPLOAD_THIRD_PARTY); -use Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobService::OfflineUserDataJobOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use + Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::OfflineUserDataJobOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -144,7 +145,7 @@ sub create_offline_user_data_job { my $store_sales_metadata = # Please refer to https://support.google.com/google-ads/answer/7506124 for # additional details. - Google::Ads::GoogleAds::V3::Common::StoreSalesMetadata->new({ + Google::Ads::GoogleAds::V4::Common::StoreSalesMetadata->new({ # Set the fraction of your overall sales that you (or the advertiser, # in the third party case) can associate with a customer (email, phone # number, address, etc.) in your database or loyalty program. @@ -164,7 +165,7 @@ sub create_offline_user_data_job { if ($offline_user_data_job_type eq STORE_SALES_UPLOAD_THIRD_PARTY) { # Create additional metadata required for uploading third party data. my $store_sales_third_party_metadata = - Google::Ads::GoogleAds::V3::Common::StoreSalesThirdPartyMetadata->new({ + Google::Ads::GoogleAds::V4::Common::StoreSalesThirdPartyMetadata->new({ # The date/time must be in the format "yyyy-MM-dd hh:mm:ss". advertiserUploadDateTime => $advertiser_upload_date_time, @@ -204,7 +205,7 @@ sub create_offline_user_data_job { # Create a new offline user data job. my $offline_user_data_job = - Google::Ads::GoogleAds::V3::Resources::OfflineUserDataJob->new({ + Google::Ads::GoogleAds::V4::Resources::OfflineUserDataJob->new({ type => $offline_user_data_job_type, storeSalesMetadata => $store_sales_metadata, external_id => $external_id, @@ -258,22 +259,22 @@ sub add_transactions_to_offline_user_data_job { sub build_offline_user_data_job_operations { # Create the first transaction for upload based on an email address and state. my $user_data_with_email_address = - Google::Ads::GoogleAds::V3::Common::UserData->new({ + Google::Ads::GoogleAds::V4::Common::UserData->new({ userIdentifiers => [ - Google::Ads::GoogleAds::V3::Common::UserIdentifier->new({ + Google::Ads::GoogleAds::V4::Common::UserIdentifier->new({ # Hash normalized email addresses based on SHA-256 hashing algorithm. hashedEmail => normalize_and_hash('customer@example.com')} ), - Google::Ads::GoogleAds::V3::Common::UserIdentifier->new({ + Google::Ads::GoogleAds::V4::Common::UserIdentifier->new({ addressInfo => - Google::Ads::GoogleAds::V3::Common::OfflineUserAddressInfo->new({ + Google::Ads::GoogleAds::V4::Common::OfflineUserAddressInfo->new({ state => "NY" })}) ], transactionAttribute => - Google::Ads::GoogleAds::V3::Common::TransactionAttribute->new({ + Google::Ads::GoogleAds::V4::Common::TransactionAttribute->new({ conversionAction => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::conversion_action( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::conversion_action( $customer_id, $conversion_action_id ), currencyCode => "USD", @@ -288,11 +289,11 @@ sub build_offline_user_data_job_operations { # Create the second transaction for upload based on a physical address. my $user_data_with_physical_address = - Google::Ads::GoogleAds::V3::Common::UserData->new({ + Google::Ads::GoogleAds::V4::Common::UserData->new({ userIdentifiers => [ - Google::Ads::GoogleAds::V3::Common::UserIdentifier->new({ + Google::Ads::GoogleAds::V4::Common::UserIdentifier->new({ addressInfo => - Google::Ads::GoogleAds::V3::Common::OfflineUserAddressInfo->new({ + Google::Ads::GoogleAds::V4::Common::OfflineUserAddressInfo->new({ # First and last name must be normalized and hashed. hashedFirstName => normalize_and_hash("John"), hashedLastName => normalize_and_hash("Doe"), @@ -302,9 +303,9 @@ sub build_offline_user_data_job_operations { })}) ], transactionAttribute => - Google::Ads::GoogleAds::V3::Common::TransactionAttribute->new({ + Google::Ads::GoogleAds::V4::Common::TransactionAttribute->new({ conversionAction => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::conversion_action( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::conversion_action( $customer_id, $conversion_action_id ), @@ -320,12 +321,12 @@ sub build_offline_user_data_job_operations { # Create the operations to add the two transactions. my $operations = [ - Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobService::OfflineUserDataJobOperation + Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::OfflineUserDataJobOperation ->new({ create => $user_data_with_email_address } ), - Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobService::OfflineUserDataJobOperation + Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::OfflineUserDataJobOperation ->new({ create => $user_data_with_physical_address })]; @@ -349,7 +350,7 @@ sub normalize_and_hash { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/reporting/get_hotel_ads_performance.pl b/examples/reporting/get_hotel_ads_performance.pl index 82fcc5465..193a315c6 100644 --- a/examples/reporting/get_hotel_ads_performance.pl +++ b/examples/reporting/get_hotel_ads_performance.pl @@ -27,7 +27,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -64,7 +64,7 @@ sub get_hotel_ads_performance { # Create a search Google Ads request that will retrieve hotel-ads statistics # using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -103,7 +103,7 @@ sub get_hotel_ads_performance { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/reporting/get_keyword_stats.pl b/examples/reporting/get_keyword_stats.pl index 558d713e2..94c89f60b 100644 --- a/examples/reporting/get_keyword_stats.pl +++ b/examples/reporting/get_keyword_stats.pl @@ -27,7 +27,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -63,7 +63,7 @@ sub get_keyword_stats { # Create a search Google Ads stream request that will retrieve all keyword # statistics. my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id, query => $search_query, @@ -112,7 +112,7 @@ sub get_keyword_stats { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/reporting/parallel_report_download.pl b/examples/reporting/parallel_report_download.pl index bf3f6e5da..51d9374c6 100644 --- a/examples/reporting/parallel_report_download.pl +++ b/examples/reporting/parallel_report_download.pl @@ -29,7 +29,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -116,7 +116,7 @@ sub download_report { # Create a search Google Ads request that will retrieve the results using pages # of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -152,7 +152,7 @@ sub download_report { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/shopping_ads/add_listing_scope.pl b/examples/shopping_ads/add_listing_scope.pl index 189d0f5cb..646ab39c7 100644 --- a/examples/shopping_ads/add_listing_scope.pl +++ b/examples/shopping_ads/add_listing_scope.pl @@ -34,18 +34,18 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignCriterion; -use Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo; -use Google::Ads::GoogleAds::V3::Common::ProductBrandInfo; -use Google::Ads::GoogleAds::V3::Common::ProductCustomAttributeInfo; -use Google::Ads::GoogleAds::V3::Common::ProductTypeInfo; -use Google::Ads::GoogleAds::V3::Common::ListingScopeInfo; -use Google::Ads::GoogleAds::V3::Enums::ProductCustomAttributeIndexEnum +use Google::Ads::GoogleAds::V4::Resources::CampaignCriterion; +use Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo; +use Google::Ads::GoogleAds::V4::Common::ProductBrandInfo; +use Google::Ads::GoogleAds::V4::Common::ProductCustomAttributeInfo; +use Google::Ads::GoogleAds::V4::Common::ProductTypeInfo; +use Google::Ads::GoogleAds::V4::Common::ListingScopeInfo; +use Google::Ads::GoogleAds::V4::Enums::ProductCustomAttributeIndexEnum qw(INDEX0); -use Google::Ads::GoogleAds::V3::Enums::ProductTypeLevelEnum qw(LEVEL1 LEVEL2); +use Google::Ads::GoogleAds::V4::Enums::ProductTypeLevelEnum qw(LEVEL1 LEVEL2); use - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -67,8 +67,8 @@ sub add_listing_scope { # Create a campaign criterion to store the listing scope. my $campaign_criterion = - Google::Ads::GoogleAds::V3::Resources::CampaignCriterion->new({ - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + Google::Ads::GoogleAds::V4::Resources::CampaignCriterion->new({ + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id )}); @@ -81,45 +81,45 @@ sub add_listing_scope { # Create a ProductBrand dimension set to "google". push @$dimensions, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ - productBrand => Google::Ads::GoogleAds::V3::Common::ProductBrandInfo->new( + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ + productBrand => Google::Ads::GoogleAds::V4::Common::ProductBrandInfo->new( { value => "google" })}); # Create a ProductCustomAttribute dimension for INDEX0 set to "top_selling_products". push @$dimensions, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ productCustomAttribute => - Google::Ads::GoogleAds::V3::Common::ProductCustomAttributeInfo->new({ + Google::Ads::GoogleAds::V4::Common::ProductCustomAttributeInfo->new({ index => INDEX0, value => "top_selling_products" })}); # Create a ProductType dimension for LEVEL1 set to "electronics". push @$dimensions, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ - productType => Google::Ads::GoogleAds::V3::Common::ProductTypeInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ + productType => Google::Ads::GoogleAds::V4::Common::ProductTypeInfo->new({ level => LEVEL1, value => "electronics" })}); # Create a ProductType dimension for LEVEL2 set to "smartphones". push @$dimensions, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ - productType => Google::Ads::GoogleAds::V3::Common::ProductTypeInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ + productType => Google::Ads::GoogleAds::V4::Common::ProductTypeInfo->new({ level => LEVEL2, value => "smartphones" })}); $campaign_criterion->{listingScope} = - Google::Ads::GoogleAds::V3::Common::ListingScopeInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingScopeInfo->new({ dimensions => $dimensions }); # Create a campaign criterion operation. my $campaign_criterion_operation = - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation ->new({create => $campaign_criterion}); # Add the campaign criterion containing the listing scope on the campaign. @@ -140,7 +140,7 @@ sub add_listing_scope { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/shopping_ads/add_shopping_product_ad.pl b/examples/shopping_ads/add_shopping_product_ad.pl index 04aa66059..34c8c21ee 100644 --- a/examples/shopping_ads/add_shopping_product_ad.pl +++ b/examples/shopping_ads/add_shopping_product_ad.pl @@ -30,31 +30,31 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::ShoppingSetting; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::ManualCpc; -use Google::Ads::GoogleAds::V3::Common::ShoppingProductAdInfo; -use Google::Ads::GoogleAds::V3::Common::ListingGroupInfo; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SHOPPING); -use Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum qw(SHOPPING_PRODUCT_ADS); -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::ListingGroupTypeEnum qw(UNIT); -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum; +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::ShoppingSetting; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::ManualCpc; +use Google::Ads::GoogleAds::V4::Common::ShoppingProductAdInfo; +use Google::Ads::GoogleAds::V4::Common::ListingGroupInfo; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SHOPPING); +use Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum qw(SHOPPING_PRODUCT_ADS); +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::ListingGroupTypeEnum qw(UNIT); +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum; use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -112,7 +112,7 @@ sub add_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, # Set the amount of budget. @@ -121,7 +121,7 @@ sub add_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Add the campaign budget. @@ -143,13 +143,13 @@ sub add_standard_shopping_campaign { = @_; # Create a standard shopping campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise Campaign #" . uniqid(), # Configure settings related to shopping campaigns including advertising # channel type and shopping setting. advertisingChannelType => SHOPPING, shoppingSetting => - Google::Ads::GoogleAds::V3::Resources::ShoppingSetting->new({ + Google::Ads::GoogleAds::V4::Resources::ShoppingSetting->new({ merchantId => $merchant_center_account_id, # Set the sales country of products to include in the campaign. salesCountry => "US", @@ -164,12 +164,12 @@ sub add_standard_shopping_campaign { # Recommendation: Set the campaign to PAUSED when creating it to prevent # the ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - status => Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum::PAUSED, + status => Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum::PAUSED, # Set the bidding strategy to Manual CPC (with eCPC enabled). # Recommendation: Use one of the automated bidding strategies for shopping # campaigns to help you optimize your advertising spend. More information # can be found here: https://support.google.com/google-ads/answer/6309029. - manualCpc => Google::Ads::GoogleAds::V3::Common::ManualCpc->new( + manualCpc => Google::Ads::GoogleAds::V4::Common::ManualCpc->new( {enhancedCpcEnabled => "true"} ), # Set the budget. @@ -178,7 +178,7 @@ sub add_standard_shopping_campaign { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Add the campaign. @@ -197,19 +197,19 @@ sub add_shopping_product_ad_group { my ($api_client, $customer_id, $campaign_resource_name) = @_; # Create an ad group. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruises #" . uniqid(), campaign => $campaign_resource_name, # Set the ad group type to SHOPPING_PRODUCT_ADS. This is the only value # possible for ad groups that contain shopping product ads. type => SHOPPING_PRODUCT_ADS, cpcBidMicros => 1000000, - status => Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum::ENABLED + status => Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum::ENABLED }); # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Add the ad group. @@ -228,20 +228,20 @@ sub add_shopping_product_ad_group_ad { my ($api_client, $customer_id, $ad_group_resource_name) = @_; # Create an ad group ad and set a shopping product ad to it. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ # Set the ad group. adGroup => $ad_group_resource_name, # Set the ad to a new shopping product ad. - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ shoppingProductAd => - Google::Ads::GoogleAds::V3::Common::ShoppingProductAdInfo->new()} + Google::Ads::GoogleAds::V4::Common::ShoppingProductAdInfo->new()} ), - status => Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum::PAUSED + status => Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum::PAUSED }); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad. @@ -265,12 +265,12 @@ sub add_default_shopping_listing_group { # Create a new ad group criterion. This will contain the "default" listing group # (All products). my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ # Set the ad group. adGroup => $ad_group_resource_name, # Create a new listing group. This will be the top-level "root" node. # Set the type of the listing group to be a biddable unit. - listingGroup => Google::Ads::GoogleAds::V3::Common::ListingGroupInfo->new( + listingGroup => Google::Ads::GoogleAds::V4::Common::ListingGroupInfo->new( { type => UNIT } @@ -278,12 +278,12 @@ sub add_default_shopping_listing_group { # Set the bid for products in this listing group unit. cpcBidMicros => 500000, status => - Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum::ENABLED + Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum::ENABLED }); # Create an ad group criterion operation. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({create => $ad_group_criterion}); # Add the listing group criterion. @@ -305,7 +305,7 @@ sub add_default_shopping_listing_group { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/shopping_ads/add_shopping_product_listing_group_tree.pl b/examples/shopping_ads/add_shopping_product_listing_group_tree.pl index 9c76e2c29..4cdd804a2 100644 --- a/examples/shopping_ads/add_shopping_product_listing_group_tree.pl +++ b/examples/shopping_ads/add_shopping_product_listing_group_tree.pl @@ -34,20 +34,20 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::ListingGroupInfo; -use Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo; -use Google::Ads::GoogleAds::V3::Common::ProductConditionInfo; -use Google::Ads::GoogleAds::V3::Common::ProductBrandInfo; -use Google::Ads::GoogleAds::V3::Enums::ListingGroupTypeEnum +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::ListingGroupInfo; +use Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo; +use Google::Ads::GoogleAds::V4::Common::ProductConditionInfo; +use Google::Ads::GoogleAds::V4::Common::ProductBrandInfo; +use Google::Ads::GoogleAds::V4::Enums::ListingGroupTypeEnum qw(SUBDIVISION UNIT); -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum qw(ENABLED); -use Google::Ads::GoogleAds::V3::Enums::ProductConditionEnum qw(NEW USED); +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum qw(ENABLED); +use Google::Ads::GoogleAds::V4::Enums::ProductConditionEnum qw(NEW USED); use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -91,7 +91,7 @@ sub add_shopping_product_listing_group_tree { my $ad_group_criterion_root_resource_name = $ad_group_criterion_root->{resourceName}; push @$operations, - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion_root }); @@ -105,16 +105,16 @@ sub add_shopping_product_listing_group_tree { $customer_id, $ad_group_id, $ad_group_criterion_root_resource_name, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ productCondition => - Google::Ads::GoogleAds::V3::Common::ProductConditionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ProductConditionInfo->new({ condition => NEW })} ), 200000 ); push @$operations, - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion_condition_new }); @@ -126,16 +126,16 @@ sub add_shopping_product_listing_group_tree { $customer_id, $ad_group_id, $ad_group_criterion_root_resource_name, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ productCondition => - Google::Ads::GoogleAds::V3::Common::ProductConditionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ProductConditionInfo->new({ condition => USED })} ), 100000 ); push @$operations, - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion_condition_used }); @@ -146,13 +146,13 @@ sub add_shopping_product_listing_group_tree { $customer_id, $ad_group_id, $ad_group_criterion_root_resource_name, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ # All sibling nodes must have the same dimension type, even if they # don't contain a bid. productCondition => - Google::Ads::GoogleAds::V3::Common::ProductConditionInfo->new()})); + Google::Ads::GoogleAds::V4::Common::ProductConditionInfo->new()})); push @$operations, - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion_condition_other }); @@ -173,15 +173,15 @@ sub add_shopping_product_listing_group_tree { $customer_id, $ad_group_id, $ad_group_criterion_condition_other_resource_name, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ productBrand => - Google::Ads::GoogleAds::V3::Common::ProductBrandInfo->new( + Google::Ads::GoogleAds::V4::Common::ProductBrandInfo->new( {value => "CoolBrand"})} ), 900000 ); push @$operations, - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion_brand_cool_brand }); @@ -193,15 +193,15 @@ sub add_shopping_product_listing_group_tree { $customer_id, $ad_group_id, $ad_group_criterion_condition_other_resource_name, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ productBrand => - Google::Ads::GoogleAds::V3::Common::ProductBrandInfo->new( + Google::Ads::GoogleAds::V4::Common::ProductBrandInfo->new( {value => "CheapBrand"})} ), 10000 ); push @$operations, - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion_brand_cheap_brand }); @@ -212,14 +212,14 @@ sub add_shopping_product_listing_group_tree { $customer_id, $ad_group_id, $ad_group_criterion_condition_other_resource_name, - Google::Ads::GoogleAds::V3::Common::ListingDimensionInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo->new({ productBrand => - Google::Ads::GoogleAds::V3::Common::ProductBrandInfo->new()} + Google::Ads::GoogleAds::V4::Common::ProductBrandInfo->new()} ), 50000 ); push @$operations, - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $ad_group_criterion_brand_other_brand }); @@ -257,7 +257,7 @@ sub remove_listing_group_tree { # where the parent ad group criterion is NULL (and hence the root node in # the tree) for a given ad group id. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -282,7 +282,7 @@ sub remove_listing_group_tree { # Create an ad group criterion operation. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ remove => $ad_group_criterion->{resourceName}}); @@ -311,7 +311,7 @@ sub create_listing_group_subdivision { = @_; my $listing_group_info = - Google::Ads::GoogleAds::V3::Common::ListingGroupInfo->new({ + Google::Ads::GoogleAds::V4::Common::ListingGroupInfo->new({ # Set the type as a SUBDIVISION, which will allow the node to be the # parent of another sub-tree. 'type' => SUBDIVISION @@ -330,11 +330,11 @@ sub create_listing_group_subdivision { } my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ # The resource name the criterion will be created with. This will define # the ID for the ad group criterion. resourceName => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_criterion( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_criterion( $customer_id, $ad_group_id, next_id() ), status => ENABLED, @@ -359,12 +359,12 @@ sub create_listing_group_unit_biddable { # the listing group for non-root nodes. # This example demonstrates method (1). my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), status => ENABLED, - listingGroup => Google::Ads::GoogleAds::V3::Common::ListingGroupInfo->new( + listingGroup => Google::Ads::GoogleAds::V4::Common::ListingGroupInfo->new( { # Set the type as a UNIT, which will allow the group to be biddable. type => UNIT, @@ -398,7 +398,7 @@ sub next_id { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/shopping_ads/add_shopping_smart_ad.pl b/examples/shopping_ads/add_shopping_smart_ad.pl index 78cb812cf..d79297883 100644 --- a/examples/shopping_ads/add_shopping_smart_ad.pl +++ b/examples/shopping_ads/add_shopping_smart_ad.pl @@ -35,33 +35,33 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignBudget; -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::ShoppingSetting; -use Google::Ads::GoogleAds::V3::Resources::AdGroup; -use Google::Ads::GoogleAds::V3::Resources::AdGroupAd; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::MaximizeConversionValue; -use Google::Ads::GoogleAds::V3::Common::ShoppingSmartAdInfo; -use Google::Ads::GoogleAds::V3::Common::ListingGroupInfo; -use Google::Ads::GoogleAds::V3::Enums::BudgetDeliveryMethodEnum qw(STANDARD); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelTypeEnum qw(SHOPPING); -use Google::Ads::GoogleAds::V3::Enums::AdvertisingChannelSubTypeEnum +use Google::Ads::GoogleAds::V4::Resources::CampaignBudget; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::ShoppingSetting; +use Google::Ads::GoogleAds::V4::Resources::AdGroup; +use Google::Ads::GoogleAds::V4::Resources::AdGroupAd; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::MaximizeConversionValue; +use Google::Ads::GoogleAds::V4::Common::ShoppingSmartAdInfo; +use Google::Ads::GoogleAds::V4::Common::ListingGroupInfo; +use Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum qw(STANDARD); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum qw(SHOPPING); +use Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelSubTypeEnum qw(SHOPPING_SMART_ADS); -use Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum; -use Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum; -use Google::Ads::GoogleAds::V3::Enums::ListingGroupTypeEnum qw(UNIT); -use Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum; +use Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; +use Google::Ads::GoogleAds::V4::Enums::ListingGroupTypeEnum qw(UNIT); +use Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum; use - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation; -use Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation; -use Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation; + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; +use Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; +use Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -121,7 +121,7 @@ sub add_campaign_budget { # Create a campaign budget. my $campaign_budget = - Google::Ads::GoogleAds::V3::Resources::CampaignBudget->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignBudget->new({ name => "Interplanetary Cruise Budget #" . uniqid(), deliveryMethod => STANDARD, # The budget is specified in the local currency of the account. @@ -134,7 +134,7 @@ sub add_campaign_budget { # Create a campaign budget operation. my $campaign_budget_operation = - Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::CampaignBudgetOperation + Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation ->new({create => $campaign_budget}); # Add the budget. @@ -157,14 +157,14 @@ sub add_smart_shopping_campaign { = @_; # Create a smart shopping campaign. - my $campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ + my $campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise Campaign #" . uniqid(), # Configure settings related to shopping campaigns including advertising # channel type, advertising channel sub-type and shopping setting. advertisingChannelType => SHOPPING, advertisingChannelSubType => SHOPPING_SMART_ADS, shoppingSetting => - Google::Ads::GoogleAds::V3::Resources::ShoppingSetting->new({ + Google::Ads::GoogleAds::V4::Resources::ShoppingSetting->new({ merchantId => $merchant_center_account_id, # Set the sales country of products to include in the campaign. # Only products from Merchant Center targeting this country will @@ -175,7 +175,7 @@ sub add_smart_shopping_campaign { # Recommendation: Set the campaign to PAUSED when creating it to prevent # the ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - status => Google::Ads::GoogleAds::V3::Enums::CampaignStatusEnum::PAUSED, + status => Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum::PAUSED, # Bidding strategy must be set directly on the campaign. # Setting a portfolio bidding strategy by resource name is not supported. # Maximize conversion value is the only strategy supported for smart shopping @@ -185,7 +185,7 @@ sub add_smart_shopping_campaign { # For more information on maximize conversion value, see the support article: # http://support.google.com/google-ads/answer/7684216. maximizeConversionValue => - Google::Ads::GoogleAds::V3::Common::MaximizeConversionValue->new( + Google::Ads::GoogleAds::V4::Common::MaximizeConversionValue->new( {targetRoas => 3.5} ), # Set the budget. @@ -194,7 +194,7 @@ sub add_smart_shopping_campaign { # Create a campaign operation. my $campaign_operation = - Google::Ads::GoogleAds::V3::Services::CampaignService::CampaignOperation-> + Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation-> new({create => $campaign}); # Add the campaign. @@ -213,19 +213,19 @@ sub add_smart_shopping_ad_group { my ($api_client, $customer_id, $campaign_resource_name) = @_; # Create an ad group. - my $ad_group = Google::Ads::GoogleAds::V3::Resources::AdGroup->new({ + my $ad_group = Google::Ads::GoogleAds::V4::Resources::AdGroup->new({ name => "Earth to Mars Cruises #" . uniqid(), campaign => $campaign_resource_name, # Set the ad group type to SHOPPING_SMART_ADS. This cannot be set to # other types type => - Google::Ads::GoogleAds::V3::Enums::AdGroupTypeEnum::SHOPPING_SMART_ADS, - status => Google::Ads::GoogleAds::V3::Enums::AdGroupStatusEnum::ENABLED + Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum::SHOPPING_SMART_ADS, + status => Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum::ENABLED }); # Create an ad group operation. my $ad_group_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupService::AdGroupOperation-> + Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation-> new({create => $ad_group}); # Add the ad group. @@ -244,20 +244,20 @@ sub add_smart_shopping_ad_group_ad { my ($api_client, $customer_id, $ad_group_resource_name) = @_; # Create an ad group ad and set a shopping smart ad to it. - my $ad_group_ad = Google::Ads::GoogleAds::V3::Resources::AdGroupAd->new({ + my $ad_group_ad = Google::Ads::GoogleAds::V4::Resources::AdGroupAd->new({ # Set the ad group. adGroup => $ad_group_resource_name, # Set a new smart shopping ad. - ad => Google::Ads::GoogleAds::V3::Resources::Ad->new({ + ad => Google::Ads::GoogleAds::V4::Resources::Ad->new({ shoppingSmartAd => - Google::Ads::GoogleAds::V3::Common::ShoppingSmartAdInfo->new()} + Google::Ads::GoogleAds::V4::Common::ShoppingSmartAdInfo->new()} ), - status => Google::Ads::GoogleAds::V3::Enums::AdGroupAdStatusEnum::PAUSED + status => Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum::PAUSED }); # Create an ad group ad operation. my $ad_group_ad_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupAdService::AdGroupAdOperation + Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation ->new({create => $ad_group_ad}); # Add the ad group ad. @@ -283,23 +283,23 @@ sub add_shopping_listing_group { # This will be the listing group for 'All products' and will contain a # single root node. my $ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ # Set the ad group. adGroup => $ad_group_resource_name, # Create a new listing group. This will be the top-level "root" node. # Set the type of the listing group to be a biddable unit. - listingGroup => Google::Ads::GoogleAds::V3::Common::ListingGroupInfo->new( + listingGroup => Google::Ads::GoogleAds::V4::Common::ListingGroupInfo->new( { type => UNIT } ), status => - Google::Ads::GoogleAds::V3::Enums::AdGroupCriterionStatusEnum::ENABLED + Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum::ENABLED }); # Create an ad group criterion operation. my $ad_group_criterion_operation = - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({create => $ad_group_criterion}); # Add the listing group criterion. @@ -321,7 +321,7 @@ sub add_shopping_listing_group { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/shopping_ads/get_product_bidding_category_constant.pl b/examples/shopping_ads/get_product_bidding_category_constant.pl index 9063e8088..47966b828 100644 --- a/examples/shopping_ads/get_product_bidding_category_constant.pl +++ b/examples/shopping_ads/get_product_bidding_category_constant.pl @@ -26,7 +26,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -59,7 +59,7 @@ sub get_product_bidding_category_constant { # Create a search Google Ads request that will retrieve all product bidding # categories using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -122,7 +122,7 @@ sub display_categories { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/targeting/add_campaign_targeting_criteria.pl b/examples/targeting/add_campaign_targeting_criteria.pl index 37ee2cc92..041f145b9 100644 --- a/examples/targeting/add_campaign_targeting_criteria.pl +++ b/examples/targeting/add_campaign_targeting_criteria.pl @@ -25,16 +25,16 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CampaignCriterion; -use Google::Ads::GoogleAds::V3::Common::KeywordInfo; -use Google::Ads::GoogleAds::V3::Common::LocationInfo; -use Google::Ads::GoogleAds::V3::Common::ProximityInfo; -use Google::Ads::GoogleAds::V3::Common::AddressInfo; -use Google::Ads::GoogleAds::V3::Enums::KeywordMatchTypeEnum qw(BROAD); -use Google::Ads::GoogleAds::V3::Enums::ProximityRadiusUnitsEnum qw(MILES); +use Google::Ads::GoogleAds::V4::Resources::CampaignCriterion; +use Google::Ads::GoogleAds::V4::Common::KeywordInfo; +use Google::Ads::GoogleAds::V4::Common::LocationInfo; +use Google::Ads::GoogleAds::V4::Common::ProximityInfo; +use Google::Ads::GoogleAds::V4::Common::AddressInfo; +use Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum qw(BROAD); +use Google::Ads::GoogleAds::V4::Enums::ProximityRadiusUnitsEnum qw(MILES); use - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -62,7 +62,7 @@ sub add_campaign_targeting_criteria { @_; my $campaign_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign($customer_id, $campaign_id); my $operations = [ @@ -99,9 +99,9 @@ sub create_negative_keyword_campaign_criterion_operation { # Construct a negative campaign criterion for the specified campaign # using the specified keyword text info. my $campaign_criterion = - Google::Ads::GoogleAds::V3::Resources::CampaignCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignCriterion->new({ # Create a keyword with BROAD match type. - keyword => Google::Ads::GoogleAds::V3::Common::KeywordInfo->new({ + keyword => Google::Ads::GoogleAds::V4::Common::KeywordInfo->new({ text => $keyword, matchType => BROAD } @@ -112,7 +112,7 @@ sub create_negative_keyword_campaign_criterion_operation { }); return - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation ->new({ create => $campaign_criterion }); @@ -125,22 +125,22 @@ sub create_location_campaign_criterion_operation { # Construct a campaign criterion for the specified campaign using the # specified location ID. my $campaign_criterion = - Google::Ads::GoogleAds::V3::Resources::CampaignCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignCriterion->new({ # Create a location using the specified location ID. - location => Google::Ads::GoogleAds::V3::Common::LocationInfo->new({ + location => Google::Ads::GoogleAds::V4::Common::LocationInfo->new({ # Besides using location ID, you can also search by location names # using GeoTargetConstantService::suggest() and directly apply # GeoTargetConstant->{resourceName} here. An example can be found # in get_geo_target_constants_by_names.pl. geoTargetConstant => - Google::Ads::GoogleAds::V3::Utils::ResourceNames::geo_target_constant( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::geo_target_constant( $location_id)} ), campaign => $campaign_resource_name }); return - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation ->new({ create => $campaign_criterion }); @@ -153,9 +153,9 @@ sub create_proximity_campaign_criterion_operation { # Construct a campaign criterion as a proximity. my $campaign_criterion = - Google::Ads::GoogleAds::V3::Resources::CampaignCriterion->new({ - proximity => Google::Ads::GoogleAds::V3::Common::ProximityInfo->new({ - address => Google::Ads::GoogleAds::V3::Common::AddressInfo->new({ + Google::Ads::GoogleAds::V4::Resources::CampaignCriterion->new({ + proximity => Google::Ads::GoogleAds::V4::Common::ProximityInfo->new({ + address => Google::Ads::GoogleAds::V4::Common::AddressInfo->new({ streetAddress => "38 avenue de l'Opéra", cityName => "cityName", postalCode => "75002", @@ -171,7 +171,7 @@ sub create_proximity_campaign_criterion_operation { }); return - Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::CampaignCriterionOperation + Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation ->new({ create => $campaign_criterion }); @@ -183,7 +183,7 @@ sub create_proximity_campaign_criterion_operation { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/targeting/add_customer_negative_criteria.pl b/examples/targeting/add_customer_negative_criteria.pl index ffb603766..074658728 100644 --- a/examples/targeting/add_customer_negative_criteria.pl +++ b/examples/targeting/add_customer_negative_criteria.pl @@ -25,10 +25,10 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::CustomerNegativeCriterion; -use Google::Ads::GoogleAds::V3::Common::ContentLabelInfo; -use Google::Ads::GoogleAds::V3::Common::PlacementInfo; -use Google::Ads::GoogleAds::V3::Enums::ContentLabelTypeEnum qw(TRAGEDY); +use Google::Ads::GoogleAds::V4::Resources::CustomerNegativeCriterion; +use Google::Ads::GoogleAds::V4::Common::ContentLabelInfo; +use Google::Ads::GoogleAds::V4::Common::PlacementInfo; +use Google::Ads::GoogleAds::V4::Enums::ContentLabelTypeEnum qw(TRAGEDY); use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -49,8 +49,8 @@ sub add_customer_negative_criteria { # Create a negative customer criterion excluding the content label type of 'TRAGEDY'. my $tragedy_criterion = - Google::Ads::GoogleAds::V3::Resources::CustomerNegativeCriterion->new({ - contentLabel => Google::Ads::GoogleAds::V3::Common::ContentLabelInfo->new( + Google::Ads::GoogleAds::V4::Resources::CustomerNegativeCriterion->new({ + contentLabel => Google::Ads::GoogleAds::V4::Common::ContentLabelInfo->new( { type => TRAGEDY })}); @@ -58,8 +58,8 @@ sub add_customer_negative_criteria { # Create a negative customer criterion excluding the placement with url # 'http://www.example.com'. my $placement_criterion = - Google::Ads::GoogleAds::V3::Resources::CustomerNegativeCriterion->new({ - placement => Google::Ads::GoogleAds::V3::Common::PlacementInfo->new({ + Google::Ads::GoogleAds::V4::Resources::CustomerNegativeCriterion->new({ + placement => Google::Ads::GoogleAds::V4::Common::PlacementInfo->new({ url => "http://example.com" })}); @@ -93,7 +93,7 @@ sub add_customer_negative_criteria { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/targeting/add_demographic_targeting_criteria.pl b/examples/targeting/add_demographic_targeting_criteria.pl index b0d1f2333..be967320a 100644 --- a/examples/targeting/add_demographic_targeting_criteria.pl +++ b/examples/targeting/add_demographic_targeting_criteria.pl @@ -26,14 +26,14 @@ use lib "$Bin/../../lib"; use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; -use Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion; -use Google::Ads::GoogleAds::V3::Common::GenderInfo; -use Google::Ads::GoogleAds::V3::Common::AgeRangeInfo; -use Google::Ads::GoogleAds::V3::Enums::GenderTypeEnum qw(MALE); -use Google::Ads::GoogleAds::V3::Enums::AgeRangeTypeEnum qw(AGE_RANGE_18_24); +use Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; +use Google::Ads::GoogleAds::V4::Common::GenderInfo; +use Google::Ads::GoogleAds::V4::Common::AgeRangeInfo; +use Google::Ads::GoogleAds::V4::Enums::GenderTypeEnum qw(MALE); +use Google::Ads::GoogleAds::V4::Enums::AgeRangeTypeEnum qw(AGE_RANGE_18_24); use - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -54,37 +54,37 @@ sub add_demographic_targeting_criteria { my ($api_client, $customer_id, $ad_group_id) = @_; my $ad_group_resource_name = - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group($customer_id, + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group($customer_id, $ad_group_id); # Create a positive ad group criterion for gender. my $gender_ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ adGroup => $ad_group_resource_name, # Target male. - gender => Google::Ads::GoogleAds::V3::Common::GenderInfo->new({ + gender => Google::Ads::GoogleAds::V4::Common::GenderInfo->new({ type => MALE })}); # Create a negative ad group criterion for age range. my $age_range_negative_ad_group_criterion = - Google::Ads::GoogleAds::V3::Resources::AdGroupCriterion->new({ + Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion->new({ adGroup => $ad_group_resource_name, # Make this ad group criterion negative. negative => "true", # Target the age range of 18 to 24. - ageRange => Google::Ads::GoogleAds::V3::Common::AgeRangeInfo->new({ + ageRange => Google::Ads::GoogleAds::V4::Common::AgeRangeInfo->new({ type => AGE_RANGE_18_24 })}); # Create ad group criterion operations for both ad group criteria. my $operations = [ - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $gender_ad_group_criterion } ), - Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::AdGroupCriterionOperation + Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation ->new({ create => $age_range_negative_ad_group_criterion })]; @@ -113,7 +113,7 @@ sub add_demographic_targeting_criteria { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/targeting/get_campaign_targeting_criteria.pl b/examples/targeting/get_campaign_targeting_criteria.pl index 0cfe45c3a..28aa70bf0 100644 --- a/examples/targeting/get_campaign_targeting_criteria.pl +++ b/examples/targeting/get_campaign_targeting_criteria.pl @@ -26,9 +26,9 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; -use Google::Ads::GoogleAds::V3::Enums::CriterionTypeEnum qw(KEYWORD); +use Google::Ads::GoogleAds::V4::Enums::CriterionTypeEnum qw(KEYWORD); use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -61,7 +61,7 @@ sub get_campaign_targeting_criteria { # Create a search Google Ads request that will retrieve campaign criteria # using pages of the specified page size. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => $search_query, @@ -104,7 +104,7 @@ sub get_campaign_targeting_criteria { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/targeting/get_geo_target_constants_by_names.pl b/examples/targeting/get_geo_target_constants_by_names.pl index 095342eae..b09cb4823 100644 --- a/examples/targeting/get_geo_target_constants_by_names.pl +++ b/examples/targeting/get_geo_target_constants_by_names.pl @@ -25,7 +25,7 @@ use Google::Ads::GoogleAds::Client; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use - Google::Ads::GoogleAds::V3::Services::GeoTargetConstantService::LocationNames; + Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService::LocationNames; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -47,7 +47,7 @@ sub get_geo_target_constants_by_names { locale => $locale, countryCode => $country_code, locationNames => - Google::Ads::GoogleAds::V3::Services::GeoTargetConstantService::LocationNames + Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService::LocationNames ->new({ names => $location_names })}); @@ -78,7 +78,7 @@ sub get_geo_target_constants_by_names { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/examples/targeting/search_for_language_and_carrier_constants.pl b/examples/targeting/search_for_language_and_carrier_constants.pl index cf455e79b..0e3d69960 100644 --- a/examples/targeting/search_for_language_and_carrier_constants.pl +++ b/examples/targeting/search_for_language_and_carrier_constants.pl @@ -28,7 +28,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; use Getopt::Long qw(:config auto_help); use Pod::Usage; @@ -74,7 +74,7 @@ sub search_for_language_constants { # Create a search Google Ads stream request that will retrieve the language # constants. my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id, query => $search_query @@ -113,7 +113,7 @@ sub search_for_carrier_constants { # Create a search Google Ads stream request that will retrieve the carrier # constants. my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id, query => $search_query @@ -144,7 +144,7 @@ sub search_for_carrier_constants { } # Get Google Ads Client, credentials will be read from ~/googleads.properties. -my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); +my $api_client = Google::Ads::GoogleAds::Client->new(); # By default examples are set to die on any server returned fault. $api_client->set_die_on_faults(1); diff --git a/googleads.properties b/googleads.properties index dedf081e6..327fc24cd 100644 --- a/googleads.properties +++ b/googleads.properties @@ -14,6 +14,15 @@ developerToken=INSERT_DEVELOPER_TOKEN_HERE # application uses multiple manager account + OAuth pairs # loginCustomerId=INSERT_LOGIN_CUSTOMER_ID_HERE +# This header is only required for methods that update the resources of an +# entity when permissioned via Linked Accounts in the Google Ads UI (AccountLink +# resource in the Google Ads API). Set this value to the customer ID of the data +# provider that updates the resources of the specified customer ID. It should be +# set without dashes, for example: 1234567890 instead of 123-456-7890. Read +# https://support.google.com/google-ads/answer/7365001 to learn more about +# Linked Accounts. +# linkedCustomerId=INSERT_LINKED_CUSTOMER_ID_HERE + # To use an alternative Google Ads API service address. # serviceAddress=INSERT_GOOGLE_ADS_API_SERVICE_ADDRESS_HERE diff --git a/lib/Google/Ads/GoogleAds/BaseService.pm b/lib/Google/Ads/GoogleAds/BaseService.pm index c6bcac84d..4de2d9cd4 100644 --- a/lib/Google/Ads/GoogleAds/BaseService.pm +++ b/lib/Google/Ads/GoogleAds/BaseService.pm @@ -67,11 +67,11 @@ sub call { ############################################################################## if ($http_method eq GET) { # HTTP GET request scenarios: - # GET: v3/customers:listAccessibleCustomers - # GET: v3/{+resourceName} - # GET: v3/{+resourceName}:listResults - # GET: v3/customers/{+customerId}/paymentsAccounts - # GET: v3/customers/{+customerId}/merchantCenterLinks + # GET: v4/customers:listAccessibleCustomers + # GET: v4/{+resourceName} + # GET: v4/{+resourceName}:listResults + # GET: v4/customers/{+customerId}/paymentsAccounts + # GET: v4/customers/{+customerId}/merchantCenterLinks $request_path = expand_path_template($request_path, $request_body); # GET: When the $request_body is a hash reference, use the path parameters @@ -80,19 +80,19 @@ sub call { # # GET: CampaignExperimentService.list_async_errors # GET: CampaignDraftService.list_async_errors - # GET: MutateJobService.list_results + # GET: BatchJobService.list_results if (ref $request_body and (keys %$request_body) > 0) { $request_path .= ("?" . URI::Query->new($request_body)); } } elsif ($http_method eq POST) { # HTTP POST request scenarios: - # POST: v3/geoTargetConstants:suggest - # POST: v3/googleAdsFields:search - # POST: v3/customers/{+customerId}/googleAds:search - # POST: v3/customers/{+customerId}/campaigns:mutate - # POST: v3/{+keywordPlan}:generateForecastMetrics - # POST: v3/{+campaignDraft}:promote - # POST: v3/{+resourceName}:addOperations + # POST: v4/geoTargetConstants:suggest + # POST: v4/googleAdsFields:search + # POST: v4/customers/{+customerId}/googleAds:search + # POST: v4/customers/{+customerId}/campaigns:mutate + # POST: v4/{+keywordPlan}:generateForecastMetrics + # POST: v4/{+campaignDraft}:promote + # POST: v4/{+resourceName}:addOperations # POST: Retain the 'customerId' variable in the $request_body hash # reference after the $request_path is expanded. @@ -103,7 +103,7 @@ sub call { $request_body->{customerId} = $customer_id if defined $customer_id; } else { # Other HTTP request scenarios: - # DELETE: v3/{+name} for OperationService + # DELETE: v4/{+name} for OperationService $request_path = expand_path_template($request_path, $request_body); } @@ -236,6 +236,10 @@ sub _get_http_headers { push @$headers, ("login-customer-id", $login_customer_id =~ s/-//gr) if $login_customer_id; + my $linked_customer_id = $api_client->get_linked_customer_id(); + push @$headers, ("linked-customer-id", $linked_customer_id =~ s/-//gr) + if $linked_customer_id; + return $headers; } @@ -256,7 +260,7 @@ AdGroupService, etc. use Google::Ads::GoogleAds::Client; - my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); + my $api_client = Google::Ads::GoogleAds::Client->new(); my $campaign_service = $api_client->CampaignService(); @@ -322,13 +326,14 @@ message on API errors. =head2 _get_http_headers Prepare the basic HTTP request headers including Content-Type, user-agent, -developer-token and login_customer_id - if needed. The headers will be consolidated -with access token in the method of L. +developer-token, login-customer-id, linked-customer-id - if needed. The headers +will be consolidated with access token in the method of +L. =head3 Returns -The basic HTTP headers including Content-Type, user-agent, developer-token and -login_customer_id - if needed. +The basic HTTP headers including Content-Type, user-agent, developer-token, +login-customer-id, linked-customer-id - if needed. =head1 LICENSE AND COPYRIGHT diff --git a/lib/Google/Ads/GoogleAds/Client.pm b/lib/Google/Ads/GoogleAds/Client.pm index 0009cec66..2cb5a006c 100644 --- a/lib/Google/Ads/GoogleAds/Client.pm +++ b/lib/Google/Ads/GoogleAds/Client.pm @@ -21,7 +21,7 @@ package Google::Ads::GoogleAds::Client; use strict; use warnings; use version; -our $VERSION = qv("3.1.0"); +our $VERSION = qv("4.0.0"); use Google::Ads::GoogleAds::OAuth2ApplicationsHandler; use Google::Ads::GoogleAds::Logging::GoogleAdsLogger; @@ -35,6 +35,7 @@ use constant AUTH_HANDLERS_ORDER => (OAUTH_2_APPLICATIONS_HANDLER); # These need to go in the same line for older Perl interpreters to understand. my %developer_token_of : ATTR(:name :default<>); my %login_customer_id_of : ATTR(:name :default<>); +my %linked_customer_id_of : ATTR(:name :default<>); my %service_address_of : ATTR(:name :default<>); my %user_agent_of : ATTR(:name :default<>); my %proxy_of : ATTR(:name :default<>); @@ -67,11 +68,12 @@ sub START { # If there's a valid properties file to read from, parse it and use the # config values to fill in any missing attributes. %properties = __parse_properties_file($properties_file_of{$ident}); - $developer_token_of{$ident} ||= $properties{developerToken}; - $login_customer_id_of{$ident} ||= $properties{loginCustomerId}; - $service_address_of{$ident} ||= $properties{serviceAddress}; - $user_agent_of{$ident} ||= $properties{userAgent}; - $proxy_of{$ident} ||= $properties{proxy}; + $developer_token_of{$ident} ||= $properties{developerToken}; + $login_customer_id_of{$ident} ||= $properties{loginCustomerId}; + $linked_customer_id_of{$ident} ||= $properties{linkedCustomerId}; + $service_address_of{$ident} ||= $properties{serviceAddress}; + $user_agent_of{$ident} ||= $properties{userAgent}; + $proxy_of{$ident} ||= $properties{proxy}; } # Provide default values for below attributes if they weren't set by @@ -227,7 +229,7 @@ Google::Ads::GoogleAds::Client use Google::Ads::GoogleAds::Client; - my $api_client = Google::Ads::GoogleAds::Client->new({version => "V3"}); + my $api_client = Google::Ads::GoogleAds::Client->new(); my $customer_id = "1234567890"; @@ -277,6 +279,14 @@ This is the customer ID of the authorized customer to use in the request, withou hyphens. If your access to the customer account is through a manager account, this attribute is required and must be set to the customer ID of the manager account. +=head2 linked_customer_id + +This header is only required for methods that update the resources of an entity +when permissioned via Linked Accounts in the Google Ads UI (AccountLink resource +in the Google Ads API). Set this value to the customer ID of the data provider +that updates the resources of the specified customer ID. It should be set without +dashes. + =head2 service_address The Google Ads API service address. @@ -442,8 +452,8 @@ instance is set to die() on API faults. The client object contains a method for each service provided by the Google Ads API. For example it can be invoked as $api_client->AdGroupService() and it will -return an object of type L -when using version V3 of the API. +return an object of type L +when using version V4 of the API. For a list of all the available services please refer to L and for code samples on diff --git a/lib/Google/Ads/GoogleAds/Constants.pm b/lib/Google/Ads/GoogleAds/Constants.pm index 4f37297c4..483f21616 100644 --- a/lib/Google/Ads/GoogleAds/Constants.pm +++ b/lib/Google/Ads/GoogleAds/Constants.pm @@ -24,14 +24,14 @@ use File::HomeDir; use File::Spec::Functions; # Main version number that the rest of the modules pick up off of. -our $VERSION = qv("3.1.0"); +our $VERSION = qv("4.0.0"); use constant DEFAULT_PROPERTIES_FILE => catfile(File::HomeDir->my_home, "googleads.properties"); # Default Google Ads API version used if the API client is created without a # specified version. -use constant DEFAULT_API_VERSION => "V3"; +use constant DEFAULT_API_VERSION => "V4"; # Default OAuth2 scope for Google Ads API. use constant DEFAULT_OAUTH2_SCOPE => "https://www.googleapis.com/auth/adwords"; @@ -52,7 +52,7 @@ use constant DEFAULT_USER_AGENT => "gl-perl/" . substr($^V, 1); use constant DEFAULT_HTTP_TIMEOUT => 3600; # The LongRunning.OperationSerivce version. -use constant OPERATION_SERVICE_VERSION => "V3"; +use constant OPERATION_SERVICE_VERSION => "V4"; # The LongRunning.OperationSerivce name. use constant OPERATION_SERVICE_NAME => "OperationService"; diff --git a/lib/Google/Ads/GoogleAds/Logging/DetailStats.pm b/lib/Google/Ads/GoogleAds/Logging/DetailStats.pm index d6657468f..1f8cb4875 100644 --- a/lib/Google/Ads/GoogleAds/Logging/DetailStats.pm +++ b/lib/Google/Ads/GoogleAds/Logging/DetailStats.pm @@ -65,7 +65,7 @@ sub as_str : STRINGIFY { $request_content, $json_coder->encode({%$response_headers})); $detail_message .= "Response: ${response_content}\n" if $response_content; - $detail_message .= "Fault: ${fault}\n" if $fault; + $detail_message .= "Fault: ${fault}\n" if $fault; return $detail_message; } diff --git a/lib/Google/Ads/GoogleAds/Utils/GoogleAdsHelper.pm b/lib/Google/Ads/GoogleAds/Utils/GoogleAdsHelper.pm index 881917ed0..e80413fe8 100644 --- a/lib/Google/Ads/GoogleAds/Utils/GoogleAdsHelper.pm +++ b/lib/Google/Ads/GoogleAds/Utils/GoogleAdsHelper.pm @@ -186,7 +186,7 @@ arguments. I: the path template to expand. The format could be: 'customers/{customer_id}/adGroups/{ad_group_id}' or -'v3/customers/{+customerId}/adGroups:mutate'. +'v4/customers/{+customerId}/adGroups:mutate'. =item * diff --git a/lib/Google/Ads/GoogleAds/Utils/SearchGoogleAdsIterator.pm b/lib/Google/Ads/GoogleAds/Utils/SearchGoogleAdsIterator.pm index 2139165d8..e19b9485b 100644 --- a/lib/Google/Ads/GoogleAds/Utils/SearchGoogleAdsIterator.pm +++ b/lib/Google/Ads/GoogleAds/Utils/SearchGoogleAdsIterator.pm @@ -92,7 +92,7 @@ Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator =head1 SYNOPSIS my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => $customer_id, query => "SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id", diff --git a/lib/Google/Ads/GoogleAds/Utils/SearchStreamHandler.pm b/lib/Google/Ads/GoogleAds/Utils/SearchStreamHandler.pm index 45c06eb98..eed3e5290 100644 --- a/lib/Google/Ads/GoogleAds/Utils/SearchStreamHandler.pm +++ b/lib/Google/Ads/GoogleAds/Utils/SearchStreamHandler.pm @@ -80,7 +80,7 @@ Google::Ads::GoogleAds::Utils::SearchStreamHandler =head1 SYNOPSIS my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => $customer_id, query => "SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id" diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdTypeEnum.pm b/lib/Google/Ads/GoogleAds/V1/Enums/AdTypeEnum.pm deleted file mode 100644 index 3dcf73dc3..000000000 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdTypeEnum.pm +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 2019, Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -package Google::Ads::GoogleAds::V1::Enums::AdTypeEnum; - -use strict; -use warnings; - -use Const::Exporter enums => [ - UNSPECIFIED => "UNSPECIFIED", - UNKNOWN => "UNKNOWN", - TEXT_AD => "TEXT_AD", - EXPANDED_TEXT_AD => "EXPANDED_TEXT_AD", - CALL_ONLY_AD => "CALL_ONLY_AD", - EXPANDED_DYNAMIC_SEARCH_AD => "EXPANDED_DYNAMIC_SEARCH_AD", - HOTEL_AD => "HOTEL_AD", - SHOPPING_SMART_AD => "SHOPPING_SMART_AD", - SHOPPING_PRODUCT_AD => "SHOPPING_PRODUCT_AD", - VIDEO_AD => "VIDEO_AD", - GMAIL_AD => "GMAIL_AD", - IMAGE_AD => "IMAGE_AD", - RESPONSIVE_SEARCH_AD => "RESPONSIVE_SEARCH_AD", - LEGACY_RESPONSIVE_DISPLAY_AD => "LEGACY_RESPONSIVE_DISPLAY_AD", - APP_AD => "APP_AD", - LEGACY_APP_INSTALL_AD => "LEGACY_APP_INSTALL_AD", - RESPONSIVE_DISPLAY_AD => "RESPONSIVE_DISPLAY_AD", - HTML5_UPLOAD_AD => "HTML5_UPLOAD_AD", - DYNAMIC_HTML5_AD => "DYNAMIC_HTML5_AD", - APP_ENGAGEMENT_AD => "APP_ENGAGEMENT_AD", - SHOPPING_COMPARISON_LISTING_AD => "SHOPPING_COMPARISON_LISTING_AD" -]; - -1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionTypeEnum.pm b/lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionTypeEnum.pm deleted file mode 100644 index eda1266c7..000000000 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionTypeEnum.pm +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 2019, Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -package Google::Ads::GoogleAds::V1::Enums::ConversionActionTypeEnum; - -use strict; -use warnings; - -use Const::Exporter enums => [ - UNSPECIFIED => "UNSPECIFIED", - UNKNOWN => "UNKNOWN", - AD_CALL => "AD_CALL", - CLICK_TO_CALL => "CLICK_TO_CALL", - GOOGLE_PLAY_DOWNLOAD => "GOOGLE_PLAY_DOWNLOAD", - GOOGLE_PLAY_IN_APP_PURCHASE => "GOOGLE_PLAY_IN_APP_PURCHASE", - UPLOAD_CALLS => "UPLOAD_CALLS", - UPLOAD_CLICKS => "UPLOAD_CLICKS", - WEBPAGE => "WEBPAGE", - WEBSITE_CALL => "WEBSITE_CALL" -]; - -1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AdImageAsset.pm b/lib/Google/Ads/GoogleAds/V4/Common/AdImageAsset.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/AdImageAsset.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AdImageAsset.pm index c6d79d703..161ddc350 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AdImageAsset.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AdImageAsset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AdImageAsset; +package Google::Ads::GoogleAds::V4::Common::AdImageAsset; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AdMediaBundleAsset.pm b/lib/Google/Ads/GoogleAds/V4/Common/AdMediaBundleAsset.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/AdMediaBundleAsset.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AdMediaBundleAsset.pm index 6a66b34c4..dfc66f1bf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AdMediaBundleAsset.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AdMediaBundleAsset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AdMediaBundleAsset; +package Google::Ads::GoogleAds::V4::Common::AdMediaBundleAsset; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AdScheduleInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/AdScheduleInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/AdScheduleInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AdScheduleInfo.pm index 22dcfe1f8..33839f485 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AdScheduleInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AdScheduleInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AdScheduleInfo; +package Google::Ads::GoogleAds::V4::Common::AdScheduleInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AdTextAsset.pm b/lib/Google/Ads/GoogleAds/V4/Common/AdTextAsset.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/AdTextAsset.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AdTextAsset.pm index 29a880734..f24c9c998 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AdTextAsset.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AdTextAsset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AdTextAsset; +package Google::Ads::GoogleAds::V4::Common::AdTextAsset; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AdVideoAsset.pm b/lib/Google/Ads/GoogleAds/V4/Common/AdVideoAsset.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/AdVideoAsset.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AdVideoAsset.pm index 53c342c6a..effe77156 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AdVideoAsset.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AdVideoAsset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AdVideoAsset; +package Google::Ads::GoogleAds::V4::Common::AdVideoAsset; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AddressInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/AddressInfo.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/AddressInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AddressInfo.pm index ca3d0f74e..21088cdcd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AddressInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AddressInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AddressInfo; +package Google::Ads::GoogleAds::V4::Common::AddressInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AffiliateLocationFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/AffiliateLocationFeedItem.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/AffiliateLocationFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AffiliateLocationFeedItem.pm index e89fef536..45682c0f0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AffiliateLocationFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AffiliateLocationFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AffiliateLocationFeedItem; +package Google::Ads::GoogleAds::V4::Common::AffiliateLocationFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AgeRangeInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/AgeRangeInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/AgeRangeInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AgeRangeInfo.pm index d838e775b..38336b28e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AgeRangeInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AgeRangeInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AgeRangeInfo; +package Google::Ads::GoogleAds::V4::Common::AgeRangeInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AppAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/AppAdInfo.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/AppAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AppAdInfo.pm index a0536825b..6deec3c7b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AppAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AppAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AppAdInfo; +package Google::Ads::GoogleAds::V4::Common::AppAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AppEngagementAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/AppEngagementAdInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/AppEngagementAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AppEngagementAdInfo.pm index 8d4e31c85..54b762ae3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AppEngagementAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AppEngagementAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AppEngagementAdInfo; +package Google::Ads::GoogleAds::V4::Common::AppEngagementAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AppFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/AppFeedItem.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/AppFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AppFeedItem.pm index 164816813..7d7f961b6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AppFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AppFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AppFeedItem; +package Google::Ads::GoogleAds::V4::Common::AppFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/AppPaymentModelInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/AppPaymentModelInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/AppPaymentModelInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/AppPaymentModelInfo.pm index 017815a84..074351639 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/AppPaymentModelInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/AppPaymentModelInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::AppPaymentModelInfo; +package Google::Ads::GoogleAds::V4::Common::AppPaymentModelInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/BasicUserListInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/BasicUserListInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/BasicUserListInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/BasicUserListInfo.pm index 304c0805d..5e4083168 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/BasicUserListInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/BasicUserListInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::BasicUserListInfo; +package Google::Ads::GoogleAds::V4::Common::BasicUserListInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/BidModifierSimulationPoint.pm b/lib/Google/Ads/GoogleAds/V4/Common/BidModifierSimulationPoint.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/BidModifierSimulationPoint.pm rename to lib/Google/Ads/GoogleAds/V4/Common/BidModifierSimulationPoint.pm index 105b6708b..9d310ceb4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/BidModifierSimulationPoint.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/BidModifierSimulationPoint.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::BidModifierSimulationPoint; +package Google::Ads::GoogleAds::V4::Common::BidModifierSimulationPoint; use strict; use warnings; @@ -34,6 +34,7 @@ sub new { parentClicks => $args->{parentClicks}, parentCostMicros => $args->{parentCostMicros}, parentImpressions => $args->{parentImpressions}, + parentRequiredBudgetMicros => $args->{parentRequiredBudgetMicros}, parentTopSlotImpressions => $args->{parentTopSlotImpressions}, topSlotImpressions => $args->{topSlotImpressions}}; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/BidModifierSimulationPointList.pm b/lib/Google/Ads/GoogleAds/V4/Common/BidModifierSimulationPointList.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/BidModifierSimulationPointList.pm rename to lib/Google/Ads/GoogleAds/V4/Common/BidModifierSimulationPointList.pm index 909b435b3..e7210b752 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/BidModifierSimulationPointList.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/BidModifierSimulationPointList.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::BidModifierSimulationPointList; +package Google::Ads::GoogleAds::V4::Common::BidModifierSimulationPointList; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/CreateMutateJobRequest.pm b/lib/Google/Ads/GoogleAds/V4/Common/BookOnGoogleAsset.pm similarity index 84% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/CreateMutateJobRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Common/BookOnGoogleAsset.pm index cd80fcf4c..0bb865489 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/CreateMutateJobRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/BookOnGoogleAsset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService::CreateMutateJobRequest; +package Google::Ads::GoogleAds::V4::Common::BookOnGoogleAsset; use strict; use warnings; @@ -22,7 +22,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; - my $self = {customerId => $args->{customerId}}; + my $self = {}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CallFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/CallFeedItem.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/CallFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CallFeedItem.pm index c8a712e2b..4b7f125fd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CallFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CallFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CallFeedItem; +package Google::Ads::GoogleAds::V4::Common::CallFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CallOnlyAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/CallOnlyAdInfo.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Common/CallOnlyAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CallOnlyAdInfo.pm index db4fdd918..bc01f1989 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CallOnlyAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CallOnlyAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CallOnlyAdInfo; +package Google::Ads::GoogleAds::V4::Common::CallOnlyAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CalloutFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/CalloutFeedItem.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CalloutFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CalloutFeedItem.pm index 07165b0e0..148c08e56 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CalloutFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CalloutFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CalloutFeedItem; +package Google::Ads::GoogleAds::V4::Common::CalloutFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CarrierInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/CarrierInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CarrierInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CarrierInfo.pm index 215b4c09a..d91f87450 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CarrierInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CarrierInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CarrierInfo; +package Google::Ads::GoogleAds::V4::Common::CarrierInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ClickLocation.pm b/lib/Google/Ads/GoogleAds/V4/Common/ClickLocation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/ClickLocation.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ClickLocation.pm index 90029a03c..de5e1cd80 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ClickLocation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ClickLocation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ClickLocation; +package Google::Ads::GoogleAds::V4::Common::ClickLocation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CombinedRuleUserListInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/CombinedRuleUserListInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CombinedRuleUserListInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CombinedRuleUserListInfo.pm index 05ea47780..5fcbb80e5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CombinedRuleUserListInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CombinedRuleUserListInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CombinedRuleUserListInfo; +package Google::Ads::GoogleAds::V4::Common::CombinedRuleUserListInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/Commission.pm b/lib/Google/Ads/GoogleAds/V4/Common/Commission.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/Commission.pm rename to lib/Google/Ads/GoogleAds/V4/Common/Commission.pm index dfdd16d9e..5e532fd19 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/Commission.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/Commission.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::Commission; +package Google::Ads::GoogleAds::V4::Common::Commission; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ConstantOperand.pm b/lib/Google/Ads/GoogleAds/V4/Common/ConstantOperand.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/ConstantOperand.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ConstantOperand.pm index fcfe9c5e2..e1b4ba1c2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ConstantOperand.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ConstantOperand.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ConstantOperand; +package Google::Ads::GoogleAds::V4::Common::ConstantOperand; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ContentLabelInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ContentLabelInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ContentLabelInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ContentLabelInfo.pm index 4eb3dce17..3dc2aae2b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ContentLabelInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ContentLabelInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ContentLabelInfo; +package Google::Ads::GoogleAds::V4::Common::ContentLabelInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CountryConstraint.pm b/lib/Google/Ads/GoogleAds/V4/Common/CountryConstraint.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CountryConstraint.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CountryConstraint.pm index 8052f92c2..c9a9e87c5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CountryConstraint.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CountryConstraint.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CountryConstraint; +package Google::Ads::GoogleAds::V4::Common::CountryConstraint; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CountryConstraintList.pm b/lib/Google/Ads/GoogleAds/V4/Common/CountryConstraintList.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CountryConstraintList.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CountryConstraintList.pm index b5753dbcf..8cdec35d0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CountryConstraintList.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CountryConstraintList.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CountryConstraintList; +package Google::Ads::GoogleAds::V4::Common::CountryConstraintList; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CpcBidSimulationPoint.pm b/lib/Google/Ads/GoogleAds/V4/Common/CpcBidSimulationPoint.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/CpcBidSimulationPoint.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CpcBidSimulationPoint.pm index 9ab8cc791..d46c891e8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CpcBidSimulationPoint.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CpcBidSimulationPoint.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CpcBidSimulationPoint; +package Google::Ads::GoogleAds::V4::Common::CpcBidSimulationPoint; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CpcBidSimulationPointList.pm b/lib/Google/Ads/GoogleAds/V4/Common/CpcBidSimulationPointList.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/CpcBidSimulationPointList.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CpcBidSimulationPointList.pm index 0097620bf..279b24203 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CpcBidSimulationPointList.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CpcBidSimulationPointList.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CpcBidSimulationPointList; +package Google::Ads::GoogleAds::V4::Common::CpcBidSimulationPointList; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CpvBidSimulationPoint.pm b/lib/Google/Ads/GoogleAds/V4/Common/CpvBidSimulationPoint.pm similarity index 85% rename from lib/Google/Ads/GoogleAds/V1/Common/CpvBidSimulationPoint.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CpvBidSimulationPoint.pm index eefa67722..3499cb47a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CpvBidSimulationPoint.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CpvBidSimulationPoint.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CpvBidSimulationPoint; +package Google::Ads::GoogleAds::V4::Common::CpvBidSimulationPoint; use strict; use warnings; @@ -25,7 +25,8 @@ sub new { my $self = { costMicros => $args->{costMicros}, cpvBidMicros => $args->{cpvBidMicros}, - impressions => $args->{impressions}}; + impressions => $args->{impressions}, + views => $args->{views}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CpvBidSimulationPointList.pm b/lib/Google/Ads/GoogleAds/V4/Common/CpvBidSimulationPointList.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/CpvBidSimulationPointList.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CpvBidSimulationPointList.pm index c773d77aa..ef861d605 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CpvBidSimulationPointList.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CpvBidSimulationPointList.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CpvBidSimulationPointList; +package Google::Ads::GoogleAds::V4::Common::CpvBidSimulationPointList; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CriterionCategoryAvailability.pm b/lib/Google/Ads/GoogleAds/V4/Common/CriterionCategoryAvailability.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CriterionCategoryAvailability.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CriterionCategoryAvailability.pm index cef43b51e..b8ace43fd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CriterionCategoryAvailability.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CriterionCategoryAvailability.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CriterionCategoryAvailability; +package Google::Ads::GoogleAds::V4::Common::CriterionCategoryAvailability; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CriterionCategoryChannelAvailability.pm b/lib/Google/Ads/GoogleAds/V4/Common/CriterionCategoryChannelAvailability.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/CriterionCategoryChannelAvailability.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CriterionCategoryChannelAvailability.pm index 95159617f..a5002bfc7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CriterionCategoryChannelAvailability.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CriterionCategoryChannelAvailability.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CriterionCategoryChannelAvailability; +package Google::Ads::GoogleAds::V4::Common::CriterionCategoryChannelAvailability; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CriterionCategoryLocaleAvailability.pm b/lib/Google/Ads/GoogleAds/V4/Common/CriterionCategoryLocaleAvailability.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CriterionCategoryLocaleAvailability.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CriterionCategoryLocaleAvailability.pm index 8e848392b..133cff4c1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CriterionCategoryLocaleAvailability.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CriterionCategoryLocaleAvailability.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CriterionCategoryLocaleAvailability; +package Google::Ads::GoogleAds::V4::Common::CriterionCategoryLocaleAvailability; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CrmBasedUserListInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/CrmBasedUserListInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CrmBasedUserListInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CrmBasedUserListInfo.pm index 65595a7fb..375d6e243 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CrmBasedUserListInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CrmBasedUserListInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CrmBasedUserListInfo; +package Google::Ads::GoogleAds::V4::Common::CrmBasedUserListInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CustomAffinityInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/CustomAffinityInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CustomAffinityInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CustomAffinityInfo.pm index 4d3e04f9f..a4868f848 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CustomAffinityInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CustomAffinityInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CustomAffinityInfo; +package Google::Ads::GoogleAds::V4::Common::CustomAffinityInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CustomIntentInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/CustomIntentInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CustomIntentInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CustomIntentInfo.pm index 4f919b1cf..ebdde5faa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CustomIntentInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CustomIntentInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CustomIntentInfo; +package Google::Ads::GoogleAds::V4::Common::CustomIntentInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/CustomParameter.pm b/lib/Google/Ads/GoogleAds/V4/Common/CustomParameter.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/CustomParameter.pm rename to lib/Google/Ads/GoogleAds/V4/Common/CustomParameter.pm index ca29403b0..3f5567948 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/CustomParameter.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/CustomParameter.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::CustomParameter; +package Google::Ads::GoogleAds::V4::Common::CustomParameter; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/CustomerMatchUserListMetadata.pm b/lib/Google/Ads/GoogleAds/V4/Common/CustomerMatchUserListMetadata.pm new file mode 100644 index 000000000..3de3490e6 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/CustomerMatchUserListMetadata.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::CustomerMatchUserListMetadata; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {userList => $args->{userList}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/DateRange.pm b/lib/Google/Ads/GoogleAds/V4/Common/DateRange.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/DateRange.pm rename to lib/Google/Ads/GoogleAds/V4/Common/DateRange.pm index c9a685227..472c6550b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/DateRange.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/DateRange.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::DateRange; +package Google::Ads::GoogleAds::V4::Common::DateRange; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/DateSpecificRuleUserListInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/DateSpecificRuleUserListInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/DateSpecificRuleUserListInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/DateSpecificRuleUserListInfo.pm index bafa3149d..7d761a394 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/DateSpecificRuleUserListInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/DateSpecificRuleUserListInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::DateSpecificRuleUserListInfo; +package Google::Ads::GoogleAds::V4::Common::DateSpecificRuleUserListInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/DestinationMismatch.pm b/lib/Google/Ads/GoogleAds/V4/Common/DestinationMismatch.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/DestinationMismatch.pm rename to lib/Google/Ads/GoogleAds/V4/Common/DestinationMismatch.pm index 0bfb6855d..ac8c44f5c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/DestinationMismatch.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/DestinationMismatch.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::DestinationMismatch; +package Google::Ads::GoogleAds::V4::Common::DestinationMismatch; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/DestinationNotWorking.pm b/lib/Google/Ads/GoogleAds/V4/Common/DestinationNotWorking.pm similarity index 84% rename from lib/Google/Ads/GoogleAds/V1/Common/DestinationNotWorking.pm rename to lib/Google/Ads/GoogleAds/V4/Common/DestinationNotWorking.pm index 6e581c818..7c0b271d3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/DestinationNotWorking.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/DestinationNotWorking.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::DestinationNotWorking; +package Google::Ads::GoogleAds::V4::Common::DestinationNotWorking; use strict; use warnings; @@ -24,7 +24,9 @@ sub new { my ($class, $args) = @_; my $self = { device => $args->{device}, + dnsErrorType => $args->{dnsErrorType}, expandedUrl => $args->{expandedUrl}, + httpErrorCode => $args->{httpErrorCode}, lastCheckedDateTime => $args->{lastCheckedDateTime}}; # Delete the unassigned fields in this object for a more concise JSON payload diff --git a/lib/Google/Ads/GoogleAds/V1/Common/DestinationTextList.pm b/lib/Google/Ads/GoogleAds/V4/Common/DestinationTextList.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/DestinationTextList.pm rename to lib/Google/Ads/GoogleAds/V4/Common/DestinationTextList.pm index 423e2618f..e8199579b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/DestinationTextList.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/DestinationTextList.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::DestinationTextList; +package Google::Ads::GoogleAds::V4::Common::DestinationTextList; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/DeviceInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/DeviceInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/DeviceInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/DeviceInfo.pm index 752e9230a..04e60f807 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/DeviceInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/DeviceInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::DeviceInfo; +package Google::Ads::GoogleAds::V4::Common::DeviceInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/DisplayCallToAction.pm b/lib/Google/Ads/GoogleAds/V4/Common/DisplayCallToAction.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/DisplayCallToAction.pm rename to lib/Google/Ads/GoogleAds/V4/Common/DisplayCallToAction.pm index f69144ca9..b1349015c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/DisplayCallToAction.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/DisplayCallToAction.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::DisplayCallToAction; +package Google::Ads::GoogleAds::V4::Common::DisplayCallToAction; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/DisplayUploadAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/DisplayUploadAdInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/DisplayUploadAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/DisplayUploadAdInfo.pm index a44ecef15..593a39a73 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/DisplayUploadAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/DisplayUploadAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::DisplayUploadAdInfo; +package Google::Ads::GoogleAds::V4::Common::DisplayUploadAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/EnhancedCpc.pm b/lib/Google/Ads/GoogleAds/V4/Common/EnhancedCpc.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/EnhancedCpc.pm rename to lib/Google/Ads/GoogleAds/V4/Common/EnhancedCpc.pm index 2501b6539..235e5ab63 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/EnhancedCpc.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/EnhancedCpc.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::EnhancedCpc; +package Google::Ads::GoogleAds::V4::Common::EnhancedCpc; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ExpandedDynamicSearchAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ExpandedDynamicSearchAdInfo.pm similarity index 82% rename from lib/Google/Ads/GoogleAds/V1/Common/ExpandedDynamicSearchAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ExpandedDynamicSearchAdInfo.pm index 5d1c907fc..4d7a353fd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ExpandedDynamicSearchAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ExpandedDynamicSearchAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ExpandedDynamicSearchAdInfo; +package Google::Ads::GoogleAds::V4::Common::ExpandedDynamicSearchAdInfo; use strict; use warnings; @@ -22,7 +22,9 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; - my $self = {description => $args->{description}}; + my $self = { + description => $args->{description}, + description2 => $args->{description2}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ExpandedTextAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ExpandedTextAdInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/ExpandedTextAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ExpandedTextAdInfo.pm index 46cc8f0b2..c5ef21503 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ExpandedTextAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ExpandedTextAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ExpandedTextAdInfo; +package Google::Ads::GoogleAds::V4::Common::ExpandedTextAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ExplorerAutoOptimizerSetting.pm b/lib/Google/Ads/GoogleAds/V4/Common/ExplorerAutoOptimizerSetting.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/ExplorerAutoOptimizerSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ExplorerAutoOptimizerSetting.pm index ae20b4704..cbf2c652f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ExplorerAutoOptimizerSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ExplorerAutoOptimizerSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ExplorerAutoOptimizerSetting; +package Google::Ads::GoogleAds::V4::Common::ExplorerAutoOptimizerSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ExpressionRuleUserListInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ExpressionRuleUserListInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/ExpressionRuleUserListInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ExpressionRuleUserListInfo.pm index 10af2e429..695effeca 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ExpressionRuleUserListInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ExpressionRuleUserListInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ExpressionRuleUserListInfo; +package Google::Ads::GoogleAds::V4::Common::ExpressionRuleUserListInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/FeedAttributeOperand.pm b/lib/Google/Ads/GoogleAds/V4/Common/FeedAttributeOperand.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/FeedAttributeOperand.pm rename to lib/Google/Ads/GoogleAds/V4/Common/FeedAttributeOperand.pm index 697f37078..fd6595b1e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/FeedAttributeOperand.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/FeedAttributeOperand.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::FeedAttributeOperand; +package Google::Ads::GoogleAds::V4::Common::FeedAttributeOperand; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/FinalAppUrl.pm b/lib/Google/Ads/GoogleAds/V4/Common/FinalAppUrl.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/FinalAppUrl.pm rename to lib/Google/Ads/GoogleAds/V4/Common/FinalAppUrl.pm index a6cd8f2e1..4245270d7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/FinalAppUrl.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/FinalAppUrl.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::FinalAppUrl; +package Google::Ads::GoogleAds::V4::Common::FinalAppUrl; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/FrequencyCapEntry.pm b/lib/Google/Ads/GoogleAds/V4/Common/FrequencyCapEntry.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/FrequencyCapEntry.pm rename to lib/Google/Ads/GoogleAds/V4/Common/FrequencyCapEntry.pm index b27788565..7b9ad9de0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/FrequencyCapEntry.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/FrequencyCapEntry.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::FrequencyCapEntry; +package Google::Ads::GoogleAds::V4::Common::FrequencyCapEntry; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/FrequencyCapKey.pm b/lib/Google/Ads/GoogleAds/V4/Common/FrequencyCapKey.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/FrequencyCapKey.pm rename to lib/Google/Ads/GoogleAds/V4/Common/FrequencyCapKey.pm index 7c154950c..c2b5188b2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/FrequencyCapKey.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/FrequencyCapKey.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::FrequencyCapKey; +package Google::Ads::GoogleAds::V4::Common::FrequencyCapKey; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/FunctionOperand.pm b/lib/Google/Ads/GoogleAds/V4/Common/FunctionOperand.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/FunctionOperand.pm rename to lib/Google/Ads/GoogleAds/V4/Common/FunctionOperand.pm index 4f71c3167..009a7ec7d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/FunctionOperand.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/FunctionOperand.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::FunctionOperand; +package Google::Ads::GoogleAds::V4::Common::FunctionOperand; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/GenderInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/GenderInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/GenderInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/GenderInfo.pm index 4853ede32..df99b302d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/GenderInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/GenderInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::GenderInfo; +package Google::Ads::GoogleAds::V4::Common::GenderInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/GeoPointInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/GeoPointInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/GeoPointInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/GeoPointInfo.pm index 3a72c02ec..493ae00e0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/GeoPointInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/GeoPointInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::GeoPointInfo; +package Google::Ads::GoogleAds::V4::Common::GeoPointInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/GmailAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/GmailAdInfo.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Common/GmailAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/GmailAdInfo.pm index 525a06971..75e55da49 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/GmailAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/GmailAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::GmailAdInfo; +package Google::Ads::GoogleAds::V4::Common::GmailAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/GmailTeaser.pm b/lib/Google/Ads/GoogleAds/V4/Common/GmailTeaser.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/GmailTeaser.pm rename to lib/Google/Ads/GoogleAds/V4/Common/GmailTeaser.pm index e24d22140..d5d3795b1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/GmailTeaser.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/GmailTeaser.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::GmailTeaser; +package Google::Ads::GoogleAds::V4::Common::GmailTeaser; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelAdInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelAdInfo.pm index cc3b95a13..b3a78d2f3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelAdInfo; +package Google::Ads::GoogleAds::V4::Common::HotelAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelAdvanceBookingWindowInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelAdvanceBookingWindowInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelAdvanceBookingWindowInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelAdvanceBookingWindowInfo.pm index 98f874fa8..ddd6aeba4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelAdvanceBookingWindowInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelAdvanceBookingWindowInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelAdvanceBookingWindowInfo; +package Google::Ads::GoogleAds::V4::Common::HotelAdvanceBookingWindowInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/HotelCalloutFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelCalloutFeedItem.pm new file mode 100644 index 000000000..6f966d03b --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelCalloutFeedItem.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::HotelCalloutFeedItem; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + languageCode => $args->{languageCode}, + text => $args->{text}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelCheckInDayInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelCheckInDayInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelCheckInDayInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelCheckInDayInfo.pm index 1a5671ed8..3edbf337d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelCheckInDayInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelCheckInDayInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelCheckInDayInfo; +package Google::Ads::GoogleAds::V4::Common::HotelCheckInDayInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelCityInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelCityInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelCityInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelCityInfo.pm index 504d385be..7c1a5367c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelCityInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelCityInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelCityInfo; +package Google::Ads::GoogleAds::V4::Common::HotelCityInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelClassInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelClassInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelClassInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelClassInfo.pm index 203749263..634ce781a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelClassInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelClassInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelClassInfo; +package Google::Ads::GoogleAds::V4::Common::HotelClassInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelCountryRegionInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelCountryRegionInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelCountryRegionInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelCountryRegionInfo.pm index 0f186f0fb..ae4dc9722 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelCountryRegionInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelCountryRegionInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelCountryRegionInfo; +package Google::Ads::GoogleAds::V4::Common::HotelCountryRegionInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelDateSelectionTypeInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelDateSelectionTypeInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelDateSelectionTypeInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelDateSelectionTypeInfo.pm index 0df0aa89c..653cd1ed6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelDateSelectionTypeInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelDateSelectionTypeInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelDateSelectionTypeInfo; +package Google::Ads::GoogleAds::V4::Common::HotelDateSelectionTypeInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelIdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelIdInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelIdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelIdInfo.pm index 37647750c..79117fe46 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelIdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelIdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelIdInfo; +package Google::Ads::GoogleAds::V4::Common::HotelIdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelLengthOfStayInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelLengthOfStayInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelLengthOfStayInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelLengthOfStayInfo.pm index fff9dceaa..9209c3dad 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelLengthOfStayInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelLengthOfStayInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelLengthOfStayInfo; +package Google::Ads::GoogleAds::V4::Common::HotelLengthOfStayInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/HotelStateInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/HotelStateInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/HotelStateInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/HotelStateInfo.pm index 36ec788cb..1d12a41e7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/HotelStateInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/HotelStateInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::HotelStateInfo; +package Google::Ads::GoogleAds::V4::Common::HotelStateInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ImageAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ImageAdInfo.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Common/ImageAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ImageAdInfo.pm index 7defa665b..4ddb11028 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ImageAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ImageAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ImageAdInfo; +package Google::Ads::GoogleAds::V4::Common::ImageAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ImageAsset.pm b/lib/Google/Ads/GoogleAds/V4/Common/ImageAsset.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/ImageAsset.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ImageAsset.pm index c7f48df5f..b4a624c0d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ImageAsset.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ImageAsset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ImageAsset; +package Google::Ads::GoogleAds::V4::Common::ImageAsset; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ImageDimension.pm b/lib/Google/Ads/GoogleAds/V4/Common/ImageDimension.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ImageDimension.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ImageDimension.pm index ee9d075ea..216fc0ee8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ImageDimension.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ImageDimension.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ImageDimension; +package Google::Ads::GoogleAds::V4::Common::ImageDimension; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/IncomeRangeInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/IncomeRangeInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/IncomeRangeInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/IncomeRangeInfo.pm index c5a931725..8ed0cfc69 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/IncomeRangeInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/IncomeRangeInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::IncomeRangeInfo; +package Google::Ads::GoogleAds::V4::Common::IncomeRangeInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/InteractionTypeInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/InteractionTypeInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/InteractionTypeInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/InteractionTypeInfo.pm index 48f198e7e..cf883ada1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/InteractionTypeInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/InteractionTypeInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::InteractionTypeInfo; +package Google::Ads::GoogleAds::V4::Common::InteractionTypeInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/IpBlockInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/IpBlockInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/IpBlockInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/IpBlockInfo.pm index 84ceff933..d73dab02c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/IpBlockInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/IpBlockInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::IpBlockInfo; +package Google::Ads::GoogleAds::V4::Common::IpBlockInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/Keyword.pm b/lib/Google/Ads/GoogleAds/V4/Common/Keyword.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/Keyword.pm rename to lib/Google/Ads/GoogleAds/V4/Common/Keyword.pm index 409964195..48e175d51 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/Keyword.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/Keyword.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::Keyword; +package Google::Ads::GoogleAds::V4::Common::Keyword; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/KeywordInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/KeywordInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/KeywordInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/KeywordInfo.pm index 41341240a..f69e8434c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/KeywordInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/KeywordInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::KeywordInfo; +package Google::Ads::GoogleAds::V4::Common::KeywordInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/KeywordPlanHistoricalMetrics.pm b/lib/Google/Ads/GoogleAds/V4/Common/KeywordPlanHistoricalMetrics.pm new file mode 100644 index 000000000..56bf9b710 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/KeywordPlanHistoricalMetrics.pm @@ -0,0 +1,40 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::KeywordPlanHistoricalMetrics; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + avgMonthlySearches => $args->{avgMonthlySearches}, + competition => $args->{competition}, + competitionIndex => $args->{competitionIndex}, + highTopOfPageBidMicros => $args->{highTopOfPageBidMicros}, + lowTopOfPageBidMicros => $args->{lowTopOfPageBidMicros}, + monthlySearchVolumes => $args->{monthlySearchVolumes}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/LanguageInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/LanguageInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/LanguageInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/LanguageInfo.pm index b4e40354b..bdf411bb1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/LanguageInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/LanguageInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::LanguageInfo; +package Google::Ads::GoogleAds::V4::Common::LanguageInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/LegacyAppInstallAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/LegacyAppInstallAdInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/LegacyAppInstallAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/LegacyAppInstallAdInfo.pm index 7a6540e10..d48477797 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/LegacyAppInstallAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/LegacyAppInstallAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::LegacyAppInstallAdInfo; +package Google::Ads::GoogleAds::V4::Common::LegacyAppInstallAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/LegacyResponsiveDisplayAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/LegacyResponsiveDisplayAdInfo.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Common/LegacyResponsiveDisplayAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/LegacyResponsiveDisplayAdInfo.pm index fde37ed88..60af10141 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/LegacyResponsiveDisplayAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/LegacyResponsiveDisplayAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::LegacyResponsiveDisplayAdInfo; +package Google::Ads::GoogleAds::V4::Common::LegacyResponsiveDisplayAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ListingDimensionInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ListingDimensionInfo.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Common/ListingDimensionInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ListingDimensionInfo.pm index c48f48065..5f450c8a9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ListingDimensionInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ListingDimensionInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ListingDimensionInfo; +package Google::Ads::GoogleAds::V4::Common::ListingDimensionInfo; use strict; use warnings; @@ -28,12 +28,12 @@ sub new { hotelCountryRegion => $args->{hotelCountryRegion}, hotelId => $args->{hotelId}, hotelState => $args->{hotelState}, - listingBrand => $args->{listingBrand}, - listingCustomAttribute => $args->{listingCustomAttribute}, productBiddingCategory => $args->{productBiddingCategory}, + productBrand => $args->{productBrand}, productChannel => $args->{productChannel}, productChannelExclusivity => $args->{productChannelExclusivity}, productCondition => $args->{productCondition}, + productCustomAttribute => $args->{productCustomAttribute}, productItemId => $args->{productItemId}, productType => $args->{productType}, unknownListingDimension => $args->{unknownListingDimension}}; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ListingGroupInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ListingGroupInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/ListingGroupInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ListingGroupInfo.pm index d8792c879..393db32f1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ListingGroupInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ListingGroupInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ListingGroupInfo; +package Google::Ads::GoogleAds::V4::Common::ListingGroupInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ListingScopeInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ListingScopeInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ListingScopeInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ListingScopeInfo.pm index 8294df22a..145f0f71f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ListingScopeInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ListingScopeInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ListingScopeInfo; +package Google::Ads::GoogleAds::V4::Common::ListingScopeInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/LocalAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/LocalAdInfo.pm new file mode 100644 index 000000000..3e7c708ba --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/LocalAdInfo.pm @@ -0,0 +1,42 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::LocalAdInfo; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + callToActions => $args->{callToActions}, + descriptions => $args->{descriptions}, + headlines => $args->{headlines}, + logoImages => $args->{logoImages}, + marketingImages => $args->{marketingImages}, + path1 => $args->{path1}, + path2 => $args->{path2}, + videos => $args->{videos}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/LocationFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/LocationFeedItem.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/LocationFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/LocationFeedItem.pm index 2607ae508..8e43e418d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/LocationFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/LocationFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::LocationFeedItem; +package Google::Ads::GoogleAds::V4::Common::LocationFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/LocationGroupInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/LocationGroupInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/LocationGroupInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/LocationGroupInfo.pm index ab46e5c28..0bcd143d5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/LocationGroupInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/LocationGroupInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::LocationGroupInfo; +package Google::Ads::GoogleAds::V4::Common::LocationGroupInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/LocationInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/LocationInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/LocationInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/LocationInfo.pm index 817903396..2398696a7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/LocationInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/LocationInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::LocationInfo; +package Google::Ads::GoogleAds::V4::Common::LocationInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/LogicalUserListInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/LogicalUserListInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/LogicalUserListInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/LogicalUserListInfo.pm index c14b16b6e..51baf22f8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/LogicalUserListInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/LogicalUserListInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::LogicalUserListInfo; +package Google::Ads::GoogleAds::V4::Common::LogicalUserListInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/LogicalUserListOperandInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/LogicalUserListOperandInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/LogicalUserListOperandInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/LogicalUserListOperandInfo.pm index 310ef5601..3281ec445 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/LogicalUserListOperandInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/LogicalUserListOperandInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::LogicalUserListOperandInfo; +package Google::Ads::GoogleAds::V4::Common::LogicalUserListOperandInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ManualCpc.pm b/lib/Google/Ads/GoogleAds/V4/Common/ManualCpc.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ManualCpc.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ManualCpc.pm index b6f5a00a9..1c0c9806b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ManualCpc.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ManualCpc.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ManualCpc; +package Google::Ads::GoogleAds::V4::Common::ManualCpc; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ManualCpm.pm b/lib/Google/Ads/GoogleAds/V4/Common/ManualCpm.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ManualCpm.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ManualCpm.pm index c1eb71133..3aa41643e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ManualCpm.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ManualCpm.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ManualCpm; +package Google::Ads::GoogleAds::V4::Common::ManualCpm; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ManualCpv.pm b/lib/Google/Ads/GoogleAds/V4/Common/ManualCpv.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ManualCpv.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ManualCpv.pm index 5e7abaa1e..4a0ac49dc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ManualCpv.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ManualCpv.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ManualCpv; +package Google::Ads::GoogleAds::V4::Common::ManualCpv; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/MatchingFunction.pm b/lib/Google/Ads/GoogleAds/V4/Common/MatchingFunction.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/MatchingFunction.pm rename to lib/Google/Ads/GoogleAds/V4/Common/MatchingFunction.pm index bc45d7755..6b98fa1cc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/MatchingFunction.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/MatchingFunction.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::MatchingFunction; +package Google::Ads::GoogleAds::V4::Common::MatchingFunction; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/MaximizeConversionValue.pm b/lib/Google/Ads/GoogleAds/V4/Common/MaximizeConversionValue.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/MaximizeConversionValue.pm rename to lib/Google/Ads/GoogleAds/V4/Common/MaximizeConversionValue.pm index ab9ffdb18..7b414efa2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/MaximizeConversionValue.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/MaximizeConversionValue.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::MaximizeConversionValue; +package Google::Ads::GoogleAds::V4::Common::MaximizeConversionValue; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/MaximizeConversions.pm b/lib/Google/Ads/GoogleAds/V4/Common/MaximizeConversions.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/MaximizeConversions.pm rename to lib/Google/Ads/GoogleAds/V4/Common/MaximizeConversions.pm index c16ad49af..064b8175d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/MaximizeConversions.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/MaximizeConversions.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::MaximizeConversions; +package Google::Ads::GoogleAds::V4::Common::MaximizeConversions; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/MediaBundleAsset.pm b/lib/Google/Ads/GoogleAds/V4/Common/MediaBundleAsset.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/MediaBundleAsset.pm rename to lib/Google/Ads/GoogleAds/V4/Common/MediaBundleAsset.pm index 0aa48a859..e12767a99 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/MediaBundleAsset.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/MediaBundleAsset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::MediaBundleAsset; +package Google::Ads::GoogleAds::V4::Common::MediaBundleAsset; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/Metrics.pm b/lib/Google/Ads/GoogleAds/V4/Common/Metrics.pm similarity index 95% rename from lib/Google/Ads/GoogleAds/V1/Common/Metrics.pm rename to lib/Google/Ads/GoogleAds/V4/Common/Metrics.pm index 4cc61d29c..5d586c7ec 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/Metrics.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/Metrics.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::Metrics; +package Google::Ads::GoogleAds::V4::Common::Metrics; use strict; use warnings; @@ -51,9 +51,7 @@ sub new { averageCpe => $args->{averageCpe}, averageCpm => $args->{averageCpm}, averageCpv => $args->{averageCpv}, - averageFrequency => $args->{averageFrequency}, averagePageViews => $args->{averagePageViews}, - averagePosition => $args->{averagePosition}, averageTimeOnSite => $args->{averageTimeOnSite}, benchmarkAverageMaxCpc => $args->{benchmarkAverageMaxCpc}, benchmarkCtr => $args->{benchmarkCtr}, @@ -104,7 +102,8 @@ sub new { historicalQualityScore => $args->{historicalQualityScore}, historicalSearchPredictedCtr => $args->{historicalSearchPredictedCtr}, hotelAverageLeadValueMicros => $args->{hotelAverageLeadValueMicros}, - impressionReach => $args->{impressionReach}, + hotelEligibleImpressions => $args->{hotelEligibleImpressions}, + hotelPriceDifferencePercentage => $args->{hotelPriceDifferencePercentage}, impressions => $args->{impressions}, impressionsFromStoreReach => $args->{impressionsFromStoreReach}, interactionEventTypes => $args->{interactionEventTypes}, @@ -112,6 +111,9 @@ sub new { interactions => $args->{interactions}, invalidClickRate => $args->{invalidClickRate}, invalidClicks => $args->{invalidClicks}, + messageChatRate => $args->{messageChatRate}, + messageChats => $args->{messageChats}, + messageImpressions => $args->{messageImpressions}, mobileFriendlyClicksPercentage => $args->{mobileFriendlyClicksPercentage}, organicClicks => $args->{organicClicks}, organicClicksPerQuery => $args->{organicClicksPerQuery}, diff --git a/lib/Google/Ads/GoogleAds/V1/Common/MobileAppCategoryInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/MobileAppCategoryInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/MobileAppCategoryInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/MobileAppCategoryInfo.pm index f78b4ed8a..6ed0d903a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/MobileAppCategoryInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/MobileAppCategoryInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::MobileAppCategoryInfo; +package Google::Ads::GoogleAds::V4::Common::MobileAppCategoryInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/MobileApplicationInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/MobileApplicationInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/MobileApplicationInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/MobileApplicationInfo.pm index 3865e86c8..9abd40c5c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/MobileApplicationInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/MobileApplicationInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::MobileApplicationInfo; +package Google::Ads::GoogleAds::V4::Common::MobileApplicationInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/MobileDeviceInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/MobileDeviceInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/MobileDeviceInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/MobileDeviceInfo.pm index 26ef14d53..2b55c98aa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/MobileDeviceInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/MobileDeviceInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::MobileDeviceInfo; +package Google::Ads::GoogleAds::V4::Common::MobileDeviceInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/Money.pm b/lib/Google/Ads/GoogleAds/V4/Common/Money.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/Money.pm rename to lib/Google/Ads/GoogleAds/V4/Common/Money.pm index 0d54c2aad..1fff91204 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/Money.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/Money.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::Money; +package Google::Ads::GoogleAds::V4::Common::Money; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/MonthlySearchVolume.pm b/lib/Google/Ads/GoogleAds/V4/Common/MonthlySearchVolume.pm new file mode 100644 index 000000000..809763075 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/MonthlySearchVolume.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::MonthlySearchVolume; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + month => $args->{month}, + monthlySearches => $args->{monthlySearches}, + year => $args->{year}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/OfflineUserAddressInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/OfflineUserAddressInfo.pm new file mode 100644 index 000000000..f0cceb14b --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/OfflineUserAddressInfo.pm @@ -0,0 +1,40 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::OfflineUserAddressInfo; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + city => $args->{city}, + countryCode => $args->{countryCode}, + hashedFirstName => $args->{hashedFirstName}, + hashedLastName => $args->{hashedLastName}, + postalCode => $args->{postalCode}, + state => $args->{state}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/Operand.pm b/lib/Google/Ads/GoogleAds/V4/Common/Operand.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/Operand.pm rename to lib/Google/Ads/GoogleAds/V4/Common/Operand.pm index f8a9ee81e..0d3645a10 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/Operand.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/Operand.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::Operand; +package Google::Ads::GoogleAds::V4::Common::Operand; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/OperatingSystemVersionInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/OperatingSystemVersionInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/OperatingSystemVersionInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/OperatingSystemVersionInfo.pm index 9e240f7e5..6593cdfe0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/OperatingSystemVersionInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/OperatingSystemVersionInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::OperatingSystemVersionInfo; +package Google::Ads::GoogleAds::V4::Common::OperatingSystemVersionInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PageOnePromoted.pm b/lib/Google/Ads/GoogleAds/V4/Common/PageOnePromoted.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/PageOnePromoted.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PageOnePromoted.pm index 095a8d9cb..c0e082bb0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PageOnePromoted.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PageOnePromoted.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PageOnePromoted; +package Google::Ads::GoogleAds::V4::Common::PageOnePromoted; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ParentalStatusInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ParentalStatusInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/ParentalStatusInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ParentalStatusInfo.pm index e9ce4cb52..77320a5f3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ParentalStatusInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ParentalStatusInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ParentalStatusInfo; +package Google::Ads::GoogleAds::V4::Common::ParentalStatusInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PercentCpc.pm b/lib/Google/Ads/GoogleAds/V4/Common/PercentCpc.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/PercentCpc.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PercentCpc.pm index 46a951a15..9ee1c978a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PercentCpc.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PercentCpc.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PercentCpc; +package Google::Ads::GoogleAds::V4::Common::PercentCpc; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PlacementInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/PlacementInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/PlacementInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PlacementInfo.pm index 89b8eab8a..e14e64e16 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PlacementInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PlacementInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PlacementInfo; +package Google::Ads::GoogleAds::V4::Common::PlacementInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PolicyTopicConstraint.pm b/lib/Google/Ads/GoogleAds/V4/Common/PolicyTopicConstraint.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/PolicyTopicConstraint.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PolicyTopicConstraint.pm index ea8b2ac8f..d54bcbfd0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PolicyTopicConstraint.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PolicyTopicConstraint.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PolicyTopicConstraint; +package Google::Ads::GoogleAds::V4::Common::PolicyTopicConstraint; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PolicyTopicEntry.pm b/lib/Google/Ads/GoogleAds/V4/Common/PolicyTopicEntry.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/PolicyTopicEntry.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PolicyTopicEntry.pm index 8cc8648a7..d5df62ab1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PolicyTopicEntry.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PolicyTopicEntry.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PolicyTopicEntry; +package Google::Ads::GoogleAds::V4::Common::PolicyTopicEntry; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PolicyTopicEvidence.pm b/lib/Google/Ads/GoogleAds/V4/Common/PolicyTopicEvidence.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Common/PolicyTopicEvidence.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PolicyTopicEvidence.pm index 7d46b9260..1101c2c76 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PolicyTopicEvidence.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PolicyTopicEvidence.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PolicyTopicEvidence; +package Google::Ads::GoogleAds::V4::Common::PolicyTopicEvidence; use strict; use warnings; @@ -26,7 +26,6 @@ sub new { destinationMismatch => $args->{destinationMismatch}, destinationNotWorking => $args->{destinationNotWorking}, destinationTextList => $args->{destinationTextList}, - httpCode => $args->{httpCode}, languageCode => $args->{languageCode}, textList => $args->{textList}, websiteList => $args->{websiteList}}; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PolicyValidationParameter.pm b/lib/Google/Ads/GoogleAds/V4/Common/PolicyValidationParameter.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/PolicyValidationParameter.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PolicyValidationParameter.pm index debe948df..e35ef8956 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PolicyValidationParameter.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PolicyValidationParameter.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PolicyValidationParameter; +package Google::Ads::GoogleAds::V4::Common::PolicyValidationParameter; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PolicyViolationKey.pm b/lib/Google/Ads/GoogleAds/V4/Common/PolicyViolationKey.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/PolicyViolationKey.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PolicyViolationKey.pm index 788518f81..17ee6855b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PolicyViolationKey.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PolicyViolationKey.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PolicyViolationKey; +package Google::Ads::GoogleAds::V4::Common::PolicyViolationKey; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PreferredContentInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/PreferredContentInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/PreferredContentInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PreferredContentInfo.pm index 3ed70463d..3c497a3fb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PreferredContentInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PreferredContentInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PreferredContentInfo; +package Google::Ads::GoogleAds::V4::Common::PreferredContentInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PriceFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/PriceFeedItem.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/PriceFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PriceFeedItem.pm index 04168961a..5c1f5e8eb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PriceFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PriceFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PriceFeedItem; +package Google::Ads::GoogleAds::V4::Common::PriceFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PriceOffer.pm b/lib/Google/Ads/GoogleAds/V4/Common/PriceOffer.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/PriceOffer.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PriceOffer.pm index 349107e99..1098b7d62 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PriceOffer.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PriceOffer.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PriceOffer; +package Google::Ads::GoogleAds::V4::Common::PriceOffer; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ProductBiddingCategoryInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductBiddingCategoryInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ProductBiddingCategoryInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductBiddingCategoryInfo.pm index ddf4fb9de..68f9d398e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ProductBiddingCategoryInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductBiddingCategoryInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ProductBiddingCategoryInfo; +package Google::Ads::GoogleAds::V4::Common::ProductBiddingCategoryInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ListingBrandInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductBrandInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ListingBrandInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductBrandInfo.pm index ee9be338c..f78034e56 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ListingBrandInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductBrandInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ListingBrandInfo; +package Google::Ads::GoogleAds::V4::Common::ProductBrandInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ProductChannelExclusivityInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductChannelExclusivityInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ProductChannelExclusivityInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductChannelExclusivityInfo.pm index 21128c5b6..c021dc208 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ProductChannelExclusivityInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductChannelExclusivityInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ProductChannelExclusivityInfo; +package Google::Ads::GoogleAds::V4::Common::ProductChannelExclusivityInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ProductChannelInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductChannelInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/ProductChannelInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductChannelInfo.pm index 400f031e3..2964df9e7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ProductChannelInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductChannelInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ProductChannelInfo; +package Google::Ads::GoogleAds::V4::Common::ProductChannelInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ProductConditionInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductConditionInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/ProductConditionInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductConditionInfo.pm index 30093162c..796afb9f7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ProductConditionInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductConditionInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ProductConditionInfo; +package Google::Ads::GoogleAds::V4::Common::ProductConditionInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ListingCustomAttributeInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductCustomAttributeInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ListingCustomAttributeInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductCustomAttributeInfo.pm index 5aca7ccb5..00437694d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ListingCustomAttributeInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductCustomAttributeInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ListingCustomAttributeInfo; +package Google::Ads::GoogleAds::V4::Common::ProductCustomAttributeInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ProductImage.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductImage.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/ProductImage.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductImage.pm index 2311f1503..5713de017 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ProductImage.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductImage.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ProductImage; +package Google::Ads::GoogleAds::V4::Common::ProductImage; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ProductItemIdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductItemIdInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/ProductItemIdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductItemIdInfo.pm index 2f2b68dd5..3a95c5518 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ProductItemIdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductItemIdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ProductItemIdInfo; +package Google::Ads::GoogleAds::V4::Common::ProductItemIdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ProductTypeInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductTypeInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ProductTypeInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductTypeInfo.pm index b45f976ce..2d2945311 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ProductTypeInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductTypeInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ProductTypeInfo; +package Google::Ads::GoogleAds::V4::Common::ProductTypeInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ProductVideo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProductVideo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ProductVideo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProductVideo.pm index 5adf2534f..482fd001c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ProductVideo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProductVideo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ProductVideo; +package Google::Ads::GoogleAds::V4::Common::ProductVideo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/PromotionFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/PromotionFeedItem.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Common/PromotionFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/PromotionFeedItem.pm index a09dad37c..ec6f19b6c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/PromotionFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/PromotionFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::PromotionFeedItem; +package Google::Ads::GoogleAds::V4::Common::PromotionFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ProximityInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ProximityInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/ProximityInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ProximityInfo.pm index e2cdde224..6f5c7b3ae 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ProximityInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ProximityInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ProximityInfo; +package Google::Ads::GoogleAds::V4::Common::ProximityInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/RealTimeBiddingSetting.pm b/lib/Google/Ads/GoogleAds/V4/Common/RealTimeBiddingSetting.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/RealTimeBiddingSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Common/RealTimeBiddingSetting.pm index c50f94c8a..6a9c83232 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/RealTimeBiddingSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/RealTimeBiddingSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::RealTimeBiddingSetting; +package Google::Ads::GoogleAds::V4::Common::RealTimeBiddingSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/RequestContextOperand.pm b/lib/Google/Ads/GoogleAds/V4/Common/RequestContextOperand.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/RequestContextOperand.pm rename to lib/Google/Ads/GoogleAds/V4/Common/RequestContextOperand.pm index 768ff2340..1e16a925b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/RequestContextOperand.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/RequestContextOperand.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::RequestContextOperand; +package Google::Ads::GoogleAds::V4::Common::RequestContextOperand; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ResellerConstraint.pm b/lib/Google/Ads/GoogleAds/V4/Common/ResellerConstraint.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/ResellerConstraint.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ResellerConstraint.pm index 5626c0fc6..eb3696a8d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ResellerConstraint.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ResellerConstraint.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ResellerConstraint; +package Google::Ads::GoogleAds::V4::Common::ResellerConstraint; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ResponsiveDisplayAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ResponsiveDisplayAdInfo.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Common/ResponsiveDisplayAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ResponsiveDisplayAdInfo.pm index 5d83a6ff3..d672a2926 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ResponsiveDisplayAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ResponsiveDisplayAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ResponsiveDisplayAdInfo; +package Google::Ads::GoogleAds::V4::Common::ResponsiveDisplayAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ResponsiveSearchAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ResponsiveSearchAdInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ResponsiveSearchAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ResponsiveSearchAdInfo.pm index 88cba8921..1250e6607 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ResponsiveSearchAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ResponsiveSearchAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ResponsiveSearchAdInfo; +package Google::Ads::GoogleAds::V4::Common::ResponsiveSearchAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/RuleBasedUserListInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/RuleBasedUserListInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/RuleBasedUserListInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/RuleBasedUserListInfo.pm index 13779aa42..80b8c3e1e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/RuleBasedUserListInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/RuleBasedUserListInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::RuleBasedUserListInfo; +package Google::Ads::GoogleAds::V4::Common::RuleBasedUserListInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/Segments.pm b/lib/Google/Ads/GoogleAds/V4/Common/Segments.pm similarity index 95% rename from lib/Google/Ads/GoogleAds/V1/Common/Segments.pm rename to lib/Google/Ads/GoogleAds/V4/Common/Segments.pm index 1594e9617..670cac957 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/Segments.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/Segments.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::Segments; +package Google::Ads::GoogleAds::V4::Common::Segments; use strict; use warnings; @@ -37,7 +37,9 @@ sub new { device => $args->{device}, externalConversionSource => $args->{externalConversionSource}, geoTargetAirport => $args->{geoTargetAirport}, + geoTargetCanton => $args->{geoTargetCanton}, geoTargetCity => $args->{geoTargetCity}, + geoTargetCountry => $args->{geoTargetCountry}, geoTargetCounty => $args->{geoTargetCounty}, geoTargetDistrict => $args->{geoTargetDistrict}, geoTargetMetro => $args->{geoTargetMetro}, @@ -55,6 +57,7 @@ sub new { hotelCountry => $args->{hotelCountry}, hotelDateSelectionType => $args->{hotelDateSelectionType}, hotelLengthOfStay => $args->{hotelLengthOfStay}, + hotelPriceBucket => $args->{hotelPriceBucket}, hotelRateRuleId => $args->{hotelRateRuleId}, hotelRateType => $args->{hotelRateType}, hotelState => $args->{hotelState}, diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ShoppingComparisonListingAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ShoppingComparisonListingAdInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/ShoppingComparisonListingAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ShoppingComparisonListingAdInfo.pm index 247f96a63..ba3f796c4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ShoppingComparisonListingAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ShoppingComparisonListingAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ShoppingComparisonListingAdInfo; +package Google::Ads::GoogleAds::V4::Common::ShoppingComparisonListingAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ShoppingProductAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ShoppingProductAdInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/ShoppingProductAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ShoppingProductAdInfo.pm index 54cc2b048..8335a2dff 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ShoppingProductAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ShoppingProductAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ShoppingProductAdInfo; +package Google::Ads::GoogleAds::V4::Common::ShoppingProductAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/ShoppingSmartAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/ShoppingSmartAdInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/ShoppingSmartAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/ShoppingSmartAdInfo.pm index 6a5b1e2c7..5376f317e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/ShoppingSmartAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/ShoppingSmartAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::ShoppingSmartAdInfo; +package Google::Ads::GoogleAds::V4::Common::ShoppingSmartAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/SimilarUserListInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/SimilarUserListInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/SimilarUserListInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/SimilarUserListInfo.pm index ac61de5de..cd2cf7f31 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/SimilarUserListInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/SimilarUserListInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::SimilarUserListInfo; +package Google::Ads::GoogleAds::V4::Common::SimilarUserListInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/SitelinkFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/SitelinkFeedItem.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/SitelinkFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/SitelinkFeedItem.pm index 663e74faf..6909e4785 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/SitelinkFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/SitelinkFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::SitelinkFeedItem; +package Google::Ads::GoogleAds::V4::Common::SitelinkFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/StoreAttribute.pm b/lib/Google/Ads/GoogleAds/V4/Common/StoreAttribute.pm new file mode 100644 index 000000000..f94d1e47e --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/StoreAttribute.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::StoreAttribute; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {storeCode => $args->{storeCode}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/StoreSalesMetadata.pm b/lib/Google/Ads/GoogleAds/V4/Common/StoreSalesMetadata.pm new file mode 100644 index 000000000..9a07ab09a --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/StoreSalesMetadata.pm @@ -0,0 +1,38 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::StoreSalesMetadata; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + customKey => $args->{customKey}, + loyaltyFraction => $args->{loyaltyFraction}, + thirdPartyMetadata => $args->{thirdPartyMetadata}, + transactionUploadFraction => $args->{transactionUploadFraction}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/StoreSalesThirdPartyMetadata.pm b/lib/Google/Ads/GoogleAds/V4/Common/StoreSalesThirdPartyMetadata.pm new file mode 100644 index 000000000..89b215e7f --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/StoreSalesThirdPartyMetadata.pm @@ -0,0 +1,40 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::StoreSalesThirdPartyMetadata; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + advertiserUploadDateTime => $args->{advertiserUploadDateTime}, + bridgeMapVersionId => $args->{bridgeMapVersionId}, + partnerId => $args->{partnerId}, + partnerMatchFraction => $args->{partnerMatchFraction}, + partnerUploadFraction => $args->{partnerUploadFraction}, + validTransactionFraction => $args->{validTransactionFraction}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/StructuredSnippetFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/StructuredSnippetFeedItem.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/StructuredSnippetFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/StructuredSnippetFeedItem.pm index 6e1131feb..b6e7d179e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/StructuredSnippetFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/StructuredSnippetFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::StructuredSnippetFeedItem; +package Google::Ads::GoogleAds::V4::Common::StructuredSnippetFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TagSnippet.pm b/lib/Google/Ads/GoogleAds/V4/Common/TagSnippet.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TagSnippet.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TagSnippet.pm index 79fc2ac5e..cbcc6d18c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TagSnippet.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TagSnippet.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TagSnippet; +package Google::Ads::GoogleAds::V4::Common::TagSnippet; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetCpa.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetCpa.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetCpa.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetCpa.pm index 44f4f0a83..5bc2612c9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetCpa.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetCpa.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetCpa; +package Google::Ads::GoogleAds::V4::Common::TargetCpa; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetCpaSimulationPoint.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetCpaSimulationPoint.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetCpaSimulationPoint.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetCpaSimulationPoint.pm index 37662c77c..0ba743596 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetCpaSimulationPoint.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetCpaSimulationPoint.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetCpaSimulationPoint; +package Google::Ads::GoogleAds::V4::Common::TargetCpaSimulationPoint; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetCpaSimulationPointList.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetCpaSimulationPointList.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetCpaSimulationPointList.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetCpaSimulationPointList.pm index 4864c8311..791ee791d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetCpaSimulationPointList.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetCpaSimulationPointList.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetCpaSimulationPointList; +package Google::Ads::GoogleAds::V4::Common::TargetCpaSimulationPointList; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetCpm.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetCpm.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetCpm.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetCpm.pm index 6f70c4228..07b413ad3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetCpm.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetCpm.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetCpm; +package Google::Ads::GoogleAds::V4::Common::TargetCpm; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetImpressionShare.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetImpressionShare.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetImpressionShare.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetImpressionShare.pm index af2fae508..58c4f8935 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetImpressionShare.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetImpressionShare.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetImpressionShare; +package Google::Ads::GoogleAds::V4::Common::TargetImpressionShare; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetOutrankShare.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetOutrankShare.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetOutrankShare.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetOutrankShare.pm index b28ddc492..aea16b6a5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetOutrankShare.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetOutrankShare.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetOutrankShare; +package Google::Ads::GoogleAds::V4::Common::TargetOutrankShare; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetRestriction.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetRestriction.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetRestriction.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetRestriction.pm index 56dba9614..8a5530b03 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetRestriction.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetRestriction.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetRestriction; +package Google::Ads::GoogleAds::V4::Common::TargetRestriction; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/TargetRestrictionOperation.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetRestrictionOperation.pm new file mode 100644 index 000000000..492f69f4e --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetRestrictionOperation.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::TargetRestrictionOperation; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + operator => $args->{operator}, + value => $args->{value}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetRoas.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetRoas.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetRoas.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetRoas.pm index 03b68c972..c33a48d41 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetRoas.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetRoas.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetRoas; +package Google::Ads::GoogleAds::V4::Common::TargetRoas; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/TargetRoasSimulationPoint.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetRoasSimulationPoint.pm new file mode 100644 index 000000000..3e4b50c1d --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetRoasSimulationPoint.pm @@ -0,0 +1,41 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::TargetRoasSimulationPoint; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + biddableConversions => $args->{biddableConversions}, + biddableConversionsValue => $args->{biddableConversionsValue}, + clicks => $args->{clicks}, + costMicros => $args->{costMicros}, + impressions => $args->{impressions}, + targetRoas => $args->{targetRoas}, + topSlotImpressions => $args->{topSlotImpressions}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/TargetRoasSimulationPointList.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetRoasSimulationPointList.pm new file mode 100644 index 000000000..585ef573c --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetRoasSimulationPointList.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::TargetRoasSimulationPointList; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {points => $args->{points}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetSpend.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetSpend.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetSpend.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetSpend.pm index cbd1c9433..140d3e822 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetSpend.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetSpend.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetSpend; +package Google::Ads::GoogleAds::V4::Common::TargetSpend; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TargetingSetting.pm b/lib/Google/Ads/GoogleAds/V4/Common/TargetingSetting.pm similarity index 78% rename from lib/Google/Ads/GoogleAds/V1/Common/TargetingSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TargetingSetting.pm index e30b7a29e..28d02851e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TargetingSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TargetingSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TargetingSetting; +package Google::Ads::GoogleAds::V4::Common::TargetingSetting; use strict; use warnings; @@ -22,7 +22,9 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; - my $self = {targetRestrictions => $args->{targetRestrictions}}; + my $self = { + targetRestrictionOperations => $args->{targetRestrictionOperations}, + targetRestrictions => $args->{targetRestrictions}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TextAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/TextAdInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TextAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TextAdInfo.pm index 376784d4f..04d92109d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TextAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TextAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TextAdInfo; +package Google::Ads::GoogleAds::V4::Common::TextAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TextAsset.pm b/lib/Google/Ads/GoogleAds/V4/Common/TextAsset.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/TextAsset.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TextAsset.pm index 9ba18b4f4..19ed0b16b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TextAsset.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TextAsset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TextAsset; +package Google::Ads::GoogleAds::V4::Common::TextAsset; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TextLabel.pm b/lib/Google/Ads/GoogleAds/V4/Common/TextLabel.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TextLabel.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TextLabel.pm index 53a1186a9..d3af64704 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TextLabel.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TextLabel.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TextLabel; +package Google::Ads::GoogleAds::V4::Common::TextLabel; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TextList.pm b/lib/Google/Ads/GoogleAds/V4/Common/TextList.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/TextList.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TextList.pm index fd8f69947..4cfb72b55 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TextList.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TextList.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TextList; +package Google::Ads::GoogleAds::V4::Common::TextList; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TextMessageFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Common/TextMessageFeedItem.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TextMessageFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TextMessageFeedItem.pm index 63fcacc45..dc00767e7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TextMessageFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TextMessageFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TextMessageFeedItem; +package Google::Ads::GoogleAds::V4::Common::TextMessageFeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/TopicInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/TopicInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/TopicInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/TopicInfo.pm index 8a6681342..22e10a762 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/TopicInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/TopicInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::TopicInfo; +package Google::Ads::GoogleAds::V4::Common::TopicInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/TransactionAttribute.pm b/lib/Google/Ads/GoogleAds/V4/Common/TransactionAttribute.pm new file mode 100644 index 000000000..03ddc27a4 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/TransactionAttribute.pm @@ -0,0 +1,41 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::TransactionAttribute; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + conversionAction => $args->{conversionAction}, + currencyCode => $args->{currencyCode}, + customValue => $args->{customValue}, + orderId => $args->{orderId}, + storeAttribute => $args->{storeAttribute}, + transactionAmountMicros => $args->{transactionAmountMicros}, + transactionDateTime => $args->{transactionDateTime}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UnknownListingDimensionInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UnknownListingDimensionInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/UnknownListingDimensionInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UnknownListingDimensionInfo.pm index 3022aeafa..b7f1bf4c0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UnknownListingDimensionInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UnknownListingDimensionInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UnknownListingDimensionInfo; +package Google::Ads::GoogleAds::V4::Common::UnknownListingDimensionInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UrlCollection.pm b/lib/Google/Ads/GoogleAds/V4/Common/UrlCollection.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/UrlCollection.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UrlCollection.pm index ad91cb18b..09283d133 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UrlCollection.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UrlCollection.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UrlCollection; +package Google::Ads::GoogleAds::V4::Common::UrlCollection; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/KeywordPlanHistoricalMetrics.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserData.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Common/KeywordPlanHistoricalMetrics.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserData.pm index 10ba9e4c8..b6bfcfdfb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/KeywordPlanHistoricalMetrics.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserData.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::KeywordPlanHistoricalMetrics; +package Google::Ads::GoogleAds::V4::Common::UserData; use strict; use warnings; @@ -23,8 +23,8 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { - avgMonthlySearches => $args->{avgMonthlySearches}, - competition => $args->{competition}}; + transactionAttribute => $args->{transactionAttribute}, + userIdentifiers => $args->{userIdentifiers}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V4/Common/UserIdentifier.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserIdentifier.pm new file mode 100644 index 000000000..4052c2195 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserIdentifier.pm @@ -0,0 +1,39 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::UserIdentifier; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + addressInfo => $args->{addressInfo}, + hashedEmail => $args->{hashedEmail}, + hashedPhoneNumber => $args->{hashedPhoneNumber}, + mobileId => $args->{mobileId}, + thirdPartyUserId => $args->{thirdPartyUserId}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserInterestInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserInterestInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/UserInterestInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserInterestInfo.pm index 59c12517d..c43af16fa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserInterestInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserInterestInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserInterestInfo; +package Google::Ads::GoogleAds::V4::Common::UserInterestInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserListActionInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserListActionInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/UserListActionInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserListActionInfo.pm index 303421bb7..201b849c8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserListActionInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserListActionInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserListActionInfo; +package Google::Ads::GoogleAds::V4::Common::UserListActionInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserListDateRuleItemInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserListDateRuleItemInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/UserListDateRuleItemInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserListDateRuleItemInfo.pm index 75ddff090..4372627b0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserListDateRuleItemInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserListDateRuleItemInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserListDateRuleItemInfo; +package Google::Ads::GoogleAds::V4::Common::UserListDateRuleItemInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserListInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserListInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/UserListInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserListInfo.pm index 225ca5052..39980c112 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserListInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserListInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserListInfo; +package Google::Ads::GoogleAds::V4::Common::UserListInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserListLogicalRuleInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserListLogicalRuleInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/UserListLogicalRuleInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserListLogicalRuleInfo.pm index 985d8ac48..b358bff73 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserListLogicalRuleInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserListLogicalRuleInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserListLogicalRuleInfo; +package Google::Ads::GoogleAds::V4::Common::UserListLogicalRuleInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserListNumberRuleItemInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserListNumberRuleItemInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/UserListNumberRuleItemInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserListNumberRuleItemInfo.pm index 753ceb615..41c97e0d0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserListNumberRuleItemInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserListNumberRuleItemInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserListNumberRuleItemInfo; +package Google::Ads::GoogleAds::V4::Common::UserListNumberRuleItemInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserListRuleInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserListRuleInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/UserListRuleInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserListRuleInfo.pm index c78c7ae27..a75c83209 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserListRuleInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserListRuleInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserListRuleInfo; +package Google::Ads::GoogleAds::V4::Common::UserListRuleInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserListRuleItemGroupInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserListRuleItemGroupInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/UserListRuleItemGroupInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserListRuleItemGroupInfo.pm index e0486a03c..43689f313 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserListRuleItemGroupInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserListRuleItemGroupInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserListRuleItemGroupInfo; +package Google::Ads::GoogleAds::V4::Common::UserListRuleItemGroupInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserListRuleItemInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserListRuleItemInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Common/UserListRuleItemInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserListRuleItemInfo.pm index 0000d7dd3..dc141d15c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserListRuleItemInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserListRuleItemInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserListRuleItemInfo; +package Google::Ads::GoogleAds::V4::Common::UserListRuleItemInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/UserListStringRuleItemInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/UserListStringRuleItemInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/UserListStringRuleItemInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/UserListStringRuleItemInfo.pm index 61dbd21b7..b60697dc9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/UserListStringRuleItemInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/UserListStringRuleItemInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::UserListStringRuleItemInfo; +package Google::Ads::GoogleAds::V4::Common::UserListStringRuleItemInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/Value.pm b/lib/Google/Ads/GoogleAds/V4/Common/Value.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Common/Value.pm rename to lib/Google/Ads/GoogleAds/V4/Common/Value.pm index f26970cfc..b62952740 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/Value.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/Value.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::Value; +package Google::Ads::GoogleAds::V4::Common::Value; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/VideoAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/VideoAdInfo.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Common/VideoAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/VideoAdInfo.pm index 1a1046988..d594ce631 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/VideoAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/VideoAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::VideoAdInfo; +package Google::Ads::GoogleAds::V4::Common::VideoAdInfo; use strict; use warnings; @@ -24,6 +24,7 @@ sub new { my ($class, $args) = @_; my $self = { bumper => $args->{bumper}, + discovery => $args->{discovery}, inStream => $args->{inStream}, mediaFile => $args->{mediaFile}, nonSkippable => $args->{nonSkippable}, diff --git a/lib/Google/Ads/GoogleAds/V1/Common/VideoBumperInStreamAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/VideoBumperInStreamAdInfo.pm similarity index 85% rename from lib/Google/Ads/GoogleAds/V1/Common/VideoBumperInStreamAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/VideoBumperInStreamAdInfo.pm index 8a6a694b2..00d78dd20 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/VideoBumperInStreamAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/VideoBumperInStreamAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::VideoBumperInStreamAdInfo; +package Google::Ads::GoogleAds::V4::Common::VideoBumperInStreamAdInfo; use strict; use warnings; @@ -22,7 +22,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; - my $self = {}; + my $self = {companionBanner => $args->{companionBanner}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Common/VideoNonSkippableInStreamAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/VideoNonSkippableInStreamAdInfo.pm similarity index 85% rename from lib/Google/Ads/GoogleAds/V1/Common/VideoNonSkippableInStreamAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/VideoNonSkippableInStreamAdInfo.pm index 0d99e7a8c..1f0adf0a3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/VideoNonSkippableInStreamAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/VideoNonSkippableInStreamAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::VideoNonSkippableInStreamAdInfo; +package Google::Ads::GoogleAds::V4::Common::VideoNonSkippableInStreamAdInfo; use strict; use warnings; @@ -22,7 +22,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; - my $self = {}; + my $self = {companionBanner => $args->{companionBanner}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Common/VideoOutstreamAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/VideoOutstreamAdInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/VideoOutstreamAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/VideoOutstreamAdInfo.pm index eb220155d..e21fa0459 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/VideoOutstreamAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/VideoOutstreamAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::VideoOutstreamAdInfo; +package Google::Ads::GoogleAds::V4::Common::VideoOutstreamAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Common/VideoTrueViewDiscoveryAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/VideoTrueViewDiscoveryAdInfo.pm new file mode 100644 index 000000000..c02372bc5 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Common/VideoTrueViewDiscoveryAdInfo.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Common::VideoTrueViewDiscoveryAdInfo; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + description1 => $args->{description1}, + description2 => $args->{description2}, + headline => $args->{headline}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/VideoTrueViewInStreamAdInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/VideoTrueViewInStreamAdInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/VideoTrueViewInStreamAdInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/VideoTrueViewInStreamAdInfo.pm index 9c583a590..9f81522e7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/VideoTrueViewInStreamAdInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/VideoTrueViewInStreamAdInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::VideoTrueViewInStreamAdInfo; +package Google::Ads::GoogleAds::V4::Common::VideoTrueViewInStreamAdInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/WebpageConditionInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/WebpageConditionInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/WebpageConditionInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/WebpageConditionInfo.pm index a3ca40fc3..e765836a6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/WebpageConditionInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/WebpageConditionInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::WebpageConditionInfo; +package Google::Ads::GoogleAds::V4::Common::WebpageConditionInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/WebpageInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/WebpageInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/WebpageInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/WebpageInfo.pm index e765d546a..c451543d3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/WebpageInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/WebpageInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::WebpageInfo; +package Google::Ads::GoogleAds::V4::Common::WebpageInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/WebsiteList.pm b/lib/Google/Ads/GoogleAds/V4/Common/WebsiteList.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/WebsiteList.pm rename to lib/Google/Ads/GoogleAds/V4/Common/WebsiteList.pm index 943f33734..31b6cc881 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/WebsiteList.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/WebsiteList.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::WebsiteList; +package Google::Ads::GoogleAds::V4::Common::WebsiteList; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/YouTubeChannelInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/YouTubeChannelInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Common/YouTubeChannelInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/YouTubeChannelInfo.pm index b6d4a1652..65aef2b79 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/YouTubeChannelInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/YouTubeChannelInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::YouTubeChannelInfo; +package Google::Ads::GoogleAds::V4::Common::YouTubeChannelInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/YouTubeVideoInfo.pm b/lib/Google/Ads/GoogleAds/V4/Common/YouTubeVideoInfo.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/YouTubeVideoInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Common/YouTubeVideoInfo.pm index cbdfccf86..6e61d3c77 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/YouTubeVideoInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/YouTubeVideoInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::YouTubeVideoInfo; +package Google::Ads::GoogleAds::V4::Common::YouTubeVideoInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Common/YoutubeVideoAsset.pm b/lib/Google/Ads/GoogleAds/V4/Common/YoutubeVideoAsset.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Common/YoutubeVideoAsset.pm rename to lib/Google/Ads/GoogleAds/V4/Common/YoutubeVideoAsset.pm index 92c4857f8..571c71816 100644 --- a/lib/Google/Ads/GoogleAds/V1/Common/YoutubeVideoAsset.pm +++ b/lib/Google/Ads/GoogleAds/V4/Common/YoutubeVideoAsset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Common::YoutubeVideoAsset; +package Google::Ads::GoogleAds::V4::Common::YoutubeVideoAsset; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AccessReasonEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AccessReasonEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/AccessReasonEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AccessReasonEnum.pm index 53d1d3ab8..8ec9384fa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AccessReasonEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AccessReasonEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AccessReasonEnum; +package Google::Ads::GoogleAds::V4::Enums::AccessReasonEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionCategoryEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AccessRoleEnum.pm similarity index 71% rename from lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionCategoryEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AccessRoleEnum.pm index ec861514c..55bef9ffd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionCategoryEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AccessRoleEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ConversionActionCategoryEnum; +package Google::Ads::GoogleAds::V4::Enums::AccessRoleEnum; use strict; use warnings; @@ -20,12 +20,9 @@ use warnings; use Const::Exporter enums => [ UNSPECIFIED => "UNSPECIFIED", UNKNOWN => "UNKNOWN", - DEFAULT => "DEFAULT", - PAGE_VIEW => "PAGE_VIEW", - PURCHASE => "PURCHASE", - SIGNUP => "SIGNUP", - LEAD => "LEAD", - DOWNLOAD => "DOWNLOAD" + ADMIN => "ADMIN", + STANDARD => "STANDARD", + READ_ONLY => "READ_ONLY" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AccountBudgetProposalStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AccountBudgetProposalStatusEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/AccountBudgetProposalStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AccountBudgetProposalStatusEnum.pm index a3739d599..b00ff2979 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AccountBudgetProposalStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AccountBudgetProposalStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AccountBudgetProposalStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::AccountBudgetProposalStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AccountBudgetProposalTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AccountBudgetProposalTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AccountBudgetProposalTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AccountBudgetProposalTypeEnum.pm index c6974ae00..903d0241b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AccountBudgetProposalTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AccountBudgetProposalTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AccountBudgetProposalTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AccountBudgetProposalTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AccountBudgetStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AccountBudgetStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AccountBudgetStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AccountBudgetStatusEnum.pm index 219d1ef22..31254845e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AccountBudgetStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AccountBudgetStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AccountBudgetStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::AccountBudgetStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AssetTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AccountLinkStatusEnum.pm similarity index 68% rename from lib/Google/Ads/GoogleAds/V1/Enums/AssetTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AccountLinkStatusEnum.pm index 7b5dd1e3b..9eb70361a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AssetTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AccountLinkStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,18 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AssetTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AccountLinkStatusEnum; use strict; use warnings; use Const::Exporter enums => [ - UNSPECIFIED => "UNSPECIFIED", - UNKNOWN => "UNKNOWN", - YOUTUBE_VIDEO => "YOUTUBE_VIDEO", - MEDIA_BUNDLE => "MEDIA_BUNDLE", - IMAGE => "IMAGE", - TEXT => "TEXT" + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + ENABLED => "ENABLED", + REMOVED => "REMOVED" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdCustomizerPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdCustomizerPlaceholderFieldEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdCustomizerPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdCustomizerPlaceholderFieldEnum.pm index 5c346f864..26dd2f2f8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdCustomizerPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdCustomizerPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdCustomizerPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::AdCustomizerPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupAdRotationModeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupAdRotationModeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdGroupAdRotationModeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdGroupAdRotationModeEnum.pm index bf824eb3f..c342b0234 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupAdRotationModeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupAdRotationModeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdGroupAdRotationModeEnum; +package Google::Ads::GoogleAds::V4::Enums::AdGroupAdRotationModeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupAdStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupAdStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdGroupAdStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdGroupAdStatusEnum.pm index 9e8550c80..74c455e31 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupAdStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupAdStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdGroupAdStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::AdGroupAdStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupCriterionApprovalStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupCriterionApprovalStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdGroupCriterionApprovalStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdGroupCriterionApprovalStatusEnum.pm index 591bbe0c2..50febdab2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupCriterionApprovalStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupCriterionApprovalStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdGroupCriterionApprovalStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionApprovalStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupCriterionStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupCriterionStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdGroupCriterionStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdGroupCriterionStatusEnum.pm index eb4b9120f..f51d81030 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupCriterionStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupCriterionStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdGroupCriterionStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::AdGroupCriterionStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdGroupStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdGroupStatusEnum.pm index 32d499aff..e651f5d73 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdGroupStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::AdGroupStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupTypeEnum.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdGroupTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdGroupTypeEnum.pm index 9375bfec6..29e235196 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdGroupTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdGroupTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdGroupTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AdGroupTypeEnum; use strict; use warnings; @@ -31,7 +31,9 @@ use Const::Exporter enums => [ VIDEO_NON_SKIPPABLE_IN_STREAM => "VIDEO_NON_SKIPPABLE_IN_STREAM", VIDEO_OUTSTREAM => "VIDEO_OUTSTREAM", SEARCH_DYNAMIC_ADS => "SEARCH_DYNAMIC_ADS", - SHOPPING_COMPARISON_LISTING_ADS => "SHOPPING_COMPARISON_LISTING_ADS" + SHOPPING_COMPARISON_LISTING_ADS => "SHOPPING_COMPARISON_LISTING_ADS", + PROMOTED_HOTEL_ADS => "PROMOTED_HOTEL_ADS", + VIDEO_RESPONSIVE => "VIDEO_RESPONSIVE" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdNetworkTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdNetworkTypeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdNetworkTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdNetworkTypeEnum.pm index fc66190fc..c571d5152 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdNetworkTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdNetworkTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdNetworkTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AdNetworkTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdServingOptimizationStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdServingOptimizationStatusEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdServingOptimizationStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdServingOptimizationStatusEnum.pm index 2e95cffed..598a634a1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdServingOptimizationStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdServingOptimizationStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdServingOptimizationStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::AdServingOptimizationStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdStrengthEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdStrengthEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdStrengthEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdStrengthEnum.pm index a4e25446f..f9fc3bd1e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdStrengthEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdStrengthEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdStrengthEnum; +package Google::Ads::GoogleAds::V4::Enums::AdStrengthEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/AdTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdTypeEnum.pm new file mode 100644 index 000000000..fa58f4caa --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdTypeEnum.pm @@ -0,0 +1,51 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::AdTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + TEXT_AD => "TEXT_AD", + EXPANDED_TEXT_AD => "EXPANDED_TEXT_AD", + CALL_ONLY_AD => "CALL_ONLY_AD", + EXPANDED_DYNAMIC_SEARCH_AD => "EXPANDED_DYNAMIC_SEARCH_AD", + HOTEL_AD => "HOTEL_AD", + SHOPPING_SMART_AD => "SHOPPING_SMART_AD", + SHOPPING_PRODUCT_AD => "SHOPPING_PRODUCT_AD", + VIDEO_AD => "VIDEO_AD", + GMAIL_AD => "GMAIL_AD", + IMAGE_AD => "IMAGE_AD", + RESPONSIVE_SEARCH_AD => "RESPONSIVE_SEARCH_AD", + LEGACY_RESPONSIVE_DISPLAY_AD => "LEGACY_RESPONSIVE_DISPLAY_AD", + APP_AD => "APP_AD", + LEGACY_APP_INSTALL_AD => "LEGACY_APP_INSTALL_AD", + RESPONSIVE_DISPLAY_AD => "RESPONSIVE_DISPLAY_AD", + LOCAL_AD => "LOCAL_AD", + HTML5_UPLOAD_AD => "HTML5_UPLOAD_AD", + DYNAMIC_HTML5_AD => "DYNAMIC_HTML5_AD", + APP_ENGAGEMENT_AD => "APP_ENGAGEMENT_AD", + SHOPPING_COMPARISON_LISTING_AD => "SHOPPING_COMPARISON_LISTING_AD", + VIDEO_BUMPER_AD => "VIDEO_BUMPER_AD", + VIDEO_NON_SKIPPABLE_IN_STREAM_AD => "VIDEO_NON_SKIPPABLE_IN_STREAM_AD", + VIDEO_OUTSTREAM_AD => "VIDEO_OUTSTREAM_AD", + VIDEO_TRUEVIEW_DISCOVERY_AD => "VIDEO_TRUEVIEW_DISCOVERY_AD", + VIDEO_TRUEVIEW_IN_STREAM_AD => "VIDEO_TRUEVIEW_IN_STREAM_AD", + VIDEO_RESPONSIVE_AD => "VIDEO_RESPONSIVE_AD" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdvertisingChannelSubTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdvertisingChannelSubTypeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdvertisingChannelSubTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdvertisingChannelSubTypeEnum.pm index 326213a40..db43710a9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdvertisingChannelSubTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdvertisingChannelSubTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdvertisingChannelSubTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelSubTypeEnum; use strict; use warnings; @@ -32,6 +32,7 @@ use Const::Exporter enums => [ VIDEO_NON_SKIPPABLE => "VIDEO_NON_SKIPPABLE", APP_CAMPAIGN => "APP_CAMPAIGN", APP_CAMPAIGN_FOR_ENGAGEMENT => "APP_CAMPAIGN_FOR_ENGAGEMENT", + LOCAL_CAMPAIGN => "LOCAL_CAMPAIGN", SHOPPING_COMPARISON_LISTING_ADS => "SHOPPING_COMPARISON_LISTING_ADS" ]; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AdvertisingChannelTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AdvertisingChannelTypeEnum.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Enums/AdvertisingChannelTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AdvertisingChannelTypeEnum.pm index b59a028be..9c9d9fa7a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AdvertisingChannelTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AdvertisingChannelTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AdvertisingChannelTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AdvertisingChannelTypeEnum; use strict; use warnings; @@ -25,7 +25,9 @@ use Const::Exporter enums => [ SHOPPING => "SHOPPING", HOTEL => "HOTEL", VIDEO => "VIDEO", - MULTI_CHANNEL => "MULTI_CHANNEL" + MULTI_CHANNEL => "MULTI_CHANNEL", + LOCAL => "LOCAL", + SMART => "SMART" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AffiliateLocationFeedRelationshipTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AffiliateLocationFeedRelationshipTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/AffiliateLocationFeedRelationshipTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AffiliateLocationFeedRelationshipTypeEnum.pm index 9968b5a6d..3fadf6c50 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AffiliateLocationFeedRelationshipTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AffiliateLocationFeedRelationshipTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AffiliateLocationFeedRelationshipTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AffiliateLocationFeedRelationshipTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AffiliateLocationPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AffiliateLocationPlaceholderFieldEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/AffiliateLocationPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AffiliateLocationPlaceholderFieldEnum.pm index 76fca0ba0..1d80695fc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AffiliateLocationPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AffiliateLocationPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AffiliateLocationPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::AffiliateLocationPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AgeRangeTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AgeRangeTypeEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/AgeRangeTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AgeRangeTypeEnum.pm index 0d8c048c3..da3ea74d8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AgeRangeTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AgeRangeTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AgeRangeTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AgeRangeTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AppCampaignAppStoreEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AppCampaignAppStoreEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AppCampaignAppStoreEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AppCampaignAppStoreEnum.pm index 9e44b40fb..ace4cde80 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AppCampaignAppStoreEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AppCampaignAppStoreEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AppCampaignAppStoreEnum; +package Google::Ads::GoogleAds::V4::Enums::AppCampaignAppStoreEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AppCampaignBiddingStrategyGoalTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AppCampaignBiddingStrategyGoalTypeEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/AppCampaignBiddingStrategyGoalTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AppCampaignBiddingStrategyGoalTypeEnum.pm index dfb1c9f77..d484cb4d9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AppCampaignBiddingStrategyGoalTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AppCampaignBiddingStrategyGoalTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AppCampaignBiddingStrategyGoalTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AppCampaignBiddingStrategyGoalTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AppPaymentModelTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AppPaymentModelTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/AppPaymentModelTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AppPaymentModelTypeEnum.pm index 60a7e5d6a..e9c878a79 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AppPaymentModelTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AppPaymentModelTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AppPaymentModelTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AppPaymentModelTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AppPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AppPlaceholderFieldEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/AppPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AppPlaceholderFieldEnum.pm index 8f821ab19..81fcd4908 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AppPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AppPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AppPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::AppPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AppStoreEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AppStoreEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/AppStoreEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AppStoreEnum.pm index 0aa7fec06..dfb2cb1e3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AppStoreEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AppStoreEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AppStoreEnum; +package Google::Ads::GoogleAds::V4::Enums::AppStoreEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AppUrlOperatingSystemTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AppUrlOperatingSystemTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/AppUrlOperatingSystemTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AppUrlOperatingSystemTypeEnum.pm index c77a013e2..00d54ef7a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AppUrlOperatingSystemTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AppUrlOperatingSystemTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AppUrlOperatingSystemTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::AppUrlOperatingSystemTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/AssetFieldTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AssetFieldTypeEnum.pm new file mode 100644 index 000000000..d9cf620b6 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AssetFieldTypeEnum.pm @@ -0,0 +1,31 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::AssetFieldTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + HEADLINE => "HEADLINE", + DESCRIPTION => "DESCRIPTION", + MANDATORY_AD_TEXT => "MANDATORY_AD_TEXT", + MARKETING_IMAGE => "MARKETING_IMAGE", + MEDIA_BUNDLE => "MEDIA_BUNDLE", + YOUTUBE_VIDEO => "YOUTUBE_VIDEO" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/AssetPerformanceLabelEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AssetPerformanceLabelEnum.pm new file mode 100644 index 000000000..30909ccba --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AssetPerformanceLabelEnum.pm @@ -0,0 +1,30 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::AssetPerformanceLabelEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + PENDING => "PENDING", + LEARNING => "LEARNING", + LOW => "LOW", + GOOD => "GOOD", + BEST => "BEST" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/AssetTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AssetTypeEnum.pm new file mode 100644 index 000000000..1ef55e237 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AssetTypeEnum.pm @@ -0,0 +1,30 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::AssetTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + YOUTUBE_VIDEO => "YOUTUBE_VIDEO", + MEDIA_BUNDLE => "MEDIA_BUNDLE", + IMAGE => "IMAGE", + TEXT => "TEXT", + BOOK_ON_GOOGLE => "BOOK_ON_GOOGLE" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/AttributionModelEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/AttributionModelEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/AttributionModelEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/AttributionModelEnum.pm index 886e560c7..22c5ccc7b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/AttributionModelEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/AttributionModelEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::AttributionModelEnum; +package Google::Ads::GoogleAds::V4::Enums::AttributionModelEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MutateJobStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BatchJobStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/MutateJobStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BatchJobStatusEnum.pm index 7a014ccb2..157180138 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MutateJobStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BatchJobStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MutateJobStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::BatchJobStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BidModifierSourceEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BidModifierSourceEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/BidModifierSourceEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BidModifierSourceEnum.pm index fa8a330ee..2384db681 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BidModifierSourceEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BidModifierSourceEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BidModifierSourceEnum; +package Google::Ads::GoogleAds::V4::Enums::BidModifierSourceEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BiddingSourceEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BiddingSourceEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/BiddingSourceEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BiddingSourceEnum.pm index 967e1b1f0..87f73f3a4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BiddingSourceEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BiddingSourceEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BiddingSourceEnum; +package Google::Ads::GoogleAds::V4::Enums::BiddingSourceEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BiddingStrategyStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BiddingStrategyStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/BiddingStrategyStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BiddingStrategyStatusEnum.pm index 067ccbb2d..0a91d1755 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BiddingStrategyStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BiddingStrategyStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BiddingStrategyStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::BiddingStrategyStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BiddingStrategyTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BiddingStrategyTypeEnum.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Enums/BiddingStrategyTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BiddingStrategyTypeEnum.pm index 20c6021e8..829389f64 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BiddingStrategyTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BiddingStrategyTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BiddingStrategyTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::BiddingStrategyTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BillingSetupStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BillingSetupStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/BillingSetupStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BillingSetupStatusEnum.pm index 9f17fe5d1..f34b317bd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BillingSetupStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BillingSetupStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BillingSetupStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::BillingSetupStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BrandSafetySuitabilityEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BrandSafetySuitabilityEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/BrandSafetySuitabilityEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BrandSafetySuitabilityEnum.pm index f83947cb0..18c5cb10d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BrandSafetySuitabilityEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BrandSafetySuitabilityEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BrandSafetySuitabilityEnum; +package Google::Ads::GoogleAds::V4::Enums::BrandSafetySuitabilityEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BudgetDeliveryMethodEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BudgetDeliveryMethodEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/BudgetDeliveryMethodEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BudgetDeliveryMethodEnum.pm index a3b337883..1167ac3ef 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BudgetDeliveryMethodEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BudgetDeliveryMethodEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BudgetDeliveryMethodEnum; +package Google::Ads::GoogleAds::V4::Enums::BudgetDeliveryMethodEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BudgetPeriodEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BudgetPeriodEnum.pm similarity index 79% rename from lib/Google/Ads/GoogleAds/V1/Enums/BudgetPeriodEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BudgetPeriodEnum.pm index a24579058..8aebed7ef 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BudgetPeriodEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BudgetPeriodEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BudgetPeriodEnum; +package Google::Ads::GoogleAds::V4::Enums::BudgetPeriodEnum; use strict; use warnings; @@ -20,9 +20,7 @@ use warnings; use Const::Exporter enums => [ UNSPECIFIED => "UNSPECIFIED", UNKNOWN => "UNKNOWN", - DAILY => "DAILY", - CUSTOM => "CUSTOM", - FIXED_DAILY => "FIXED_DAILY" + DAILY => "DAILY" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BudgetStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BudgetStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/BudgetStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BudgetStatusEnum.pm index 094f010dd..ed87c83ae 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BudgetStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BudgetStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BudgetStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::BudgetStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/BudgetTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/BudgetTypeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/BudgetTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/BudgetTypeEnum.pm index 8b62ee3a0..c1f17944e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/BudgetTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/BudgetTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::BudgetTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::BudgetTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CallConversionReportingStateEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CallConversionReportingStateEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/CallConversionReportingStateEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CallConversionReportingStateEnum.pm index 23439b898..a999f9534 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CallConversionReportingStateEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CallConversionReportingStateEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CallConversionReportingStateEnum; +package Google::Ads::GoogleAds::V4::Enums::CallConversionReportingStateEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CallPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CallPlaceholderFieldEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/CallPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CallPlaceholderFieldEnum.pm index 4eaf31e51..65c7ecc0d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CallPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CallPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CallPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::CallPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CalloutPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CalloutPlaceholderFieldEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/CalloutPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CalloutPlaceholderFieldEnum.pm index 4f0658936..47108e324 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CalloutPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CalloutPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CalloutPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::CalloutPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignCriterionStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignCriterionStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/CampaignCriterionStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CampaignCriterionStatusEnum.pm index 7d6465c83..a91bce606 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignCriterionStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignCriterionStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CampaignCriterionStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::CampaignCriterionStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignDraftStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignDraftStatusEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/CampaignDraftStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CampaignDraftStatusEnum.pm index 5723b19a6..acd6ffb6d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignDraftStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignDraftStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CampaignDraftStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::CampaignDraftStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignExperimentStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignExperimentStatusEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/CampaignExperimentStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CampaignExperimentStatusEnum.pm index 8ab503837..d03acdeff 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignExperimentStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignExperimentStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CampaignExperimentStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::CampaignExperimentStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignExperimentTrafficSplitTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignExperimentTrafficSplitTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/CampaignExperimentTrafficSplitTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CampaignExperimentTrafficSplitTypeEnum.pm index 97a4050b4..3c9a32402 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignExperimentTrafficSplitTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignExperimentTrafficSplitTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CampaignExperimentTrafficSplitTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::CampaignExperimentTrafficSplitTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignExperimentTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignExperimentTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/CampaignExperimentTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CampaignExperimentTypeEnum.pm index 0db2ad69a..80b0a4745 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignExperimentTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignExperimentTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CampaignExperimentTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::CampaignExperimentTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignServingStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignServingStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/CampaignServingStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CampaignServingStatusEnum.pm index d9a4f1621..d850125b2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignServingStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignServingStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CampaignServingStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::CampaignServingStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignSharedSetStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignSharedSetStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/CampaignSharedSetStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CampaignSharedSetStatusEnum.pm index 216dbeb09..abef50fa8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignSharedSetStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignSharedSetStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CampaignSharedSetStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::CampaignSharedSetStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/CampaignStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CampaignStatusEnum.pm index a7fc545d1..7cc4d6faa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CampaignStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CampaignStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CampaignStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::CampaignStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ChangeStatusOperationEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ChangeStatusOperationEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ChangeStatusOperationEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ChangeStatusOperationEnum.pm index 62897a906..a181596ec 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ChangeStatusOperationEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ChangeStatusOperationEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ChangeStatusOperationEnum; +package Google::Ads::GoogleAds::V4::Enums::ChangeStatusOperationEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ChangeStatusResourceTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ChangeStatusResourceTypeEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/ChangeStatusResourceTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ChangeStatusResourceTypeEnum.pm index 9ff53748d..aa129a34f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ChangeStatusResourceTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ChangeStatusResourceTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ChangeStatusResourceTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ChangeStatusResourceTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ClickTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ClickTypeEnum.pm similarity index 97% rename from lib/Google/Ads/GoogleAds/V1/Enums/ClickTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ClickTypeEnum.pm index aec827f78..25ffde7d6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ClickTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ClickTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ClickTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ClickTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ContentLabelTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ContentLabelTypeEnum.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Enums/ContentLabelTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ContentLabelTypeEnum.pm index 074403faf..eec4bff38 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ContentLabelTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ContentLabelTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ContentLabelTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ContentLabelTypeEnum; use strict; use warnings; @@ -23,7 +23,6 @@ use Const::Exporter enums => [ SEXUALLY_SUGGESTIVE => "SEXUALLY_SUGGESTIVE", BELOW_THE_FOLD => "BELOW_THE_FOLD", PARKED_DOMAIN => "PARKED_DOMAIN", - GAME => "GAME", JUVENILE => "JUVENILE", PROFANITY => "PROFANITY", TRAGEDY => "TRAGEDY", @@ -34,7 +33,8 @@ use Const::Exporter enums => [ VIDEO_RATING_DV_MA => "VIDEO_RATING_DV_MA", VIDEO_NOT_YET_RATED => "VIDEO_NOT_YET_RATED", EMBEDDED_VIDEO => "EMBEDDED_VIDEO", - LIVE_STREAMING_VIDEO => "LIVE_STREAMING_VIDEO" + LIVE_STREAMING_VIDEO => "LIVE_STREAMING_VIDEO", + SOCIAL_ISSUES => "SOCIAL_ISSUES" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionCategoryEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionCategoryEnum.pm new file mode 100644 index 000000000..4b57d7ed6 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionCategoryEnum.pm @@ -0,0 +1,45 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::ConversionActionCategoryEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + DEFAULT => "DEFAULT", + PAGE_VIEW => "PAGE_VIEW", + PURCHASE => "PURCHASE", + SIGNUP => "SIGNUP", + LEAD => "LEAD", + DOWNLOAD => "DOWNLOAD", + ADD_TO_CART => "ADD_TO_CART", + BEGIN_CHECKOUT => "BEGIN_CHECKOUT", + SUBSCRIBE_PAID => "SUBSCRIBE_PAID", + PHONE_CALL_LEAD => "PHONE_CALL_LEAD", + IMPORTED_LEAD => "IMPORTED_LEAD", + SUBMIT_LEAD_FORM => "SUBMIT_LEAD_FORM", + BOOK_APPOINTMENT => "BOOK_APPOINTMENT", + REQUEST_QUOTE => "REQUEST_QUOTE", + GET_DIRECTIONS => "GET_DIRECTIONS", + OUTBOUND_CLICK => "OUTBOUND_CLICK", + CONTACT => "CONTACT", + ENGAGEMENT => "ENGAGEMENT", + STORE_VISIT => "STORE_VISIT", + STORE_SALE => "STORE_SALE" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionCountingTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionCountingTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionCountingTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionCountingTypeEnum.pm index fbc3d1e80..4e160c450 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionCountingTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionCountingTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ConversionActionCountingTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ConversionActionCountingTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionStatusEnum.pm index 1c6c09698..126e5a20a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionActionStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ConversionActionStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::ConversionActionStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionTypeEnum.pm new file mode 100644 index 000000000..c61010725 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionActionTypeEnum.pm @@ -0,0 +1,52 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::ConversionActionTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + AD_CALL => "AD_CALL", + CLICK_TO_CALL => "CLICK_TO_CALL", + GOOGLE_PLAY_DOWNLOAD => "GOOGLE_PLAY_DOWNLOAD", + GOOGLE_PLAY_IN_APP_PURCHASE => "GOOGLE_PLAY_IN_APP_PURCHASE", + UPLOAD_CALLS => "UPLOAD_CALLS", + UPLOAD_CLICKS => "UPLOAD_CLICKS", + WEBPAGE => "WEBPAGE", + WEBSITE_CALL => "WEBSITE_CALL", + STORE_SALES_DIRECT_UPLOAD => "STORE_SALES_DIRECT_UPLOAD", + STORE_SALES => "STORE_SALES", + FIREBASE_ANDROID_FIRST_OPEN => "FIREBASE_ANDROID_FIRST_OPEN", + FIREBASE_ANDROID_IN_APP_PURCHASE => "FIREBASE_ANDROID_IN_APP_PURCHASE", + FIREBASE_ANDROID_CUSTOM => "FIREBASE_ANDROID_CUSTOM", + FIREBASE_IOS_FIRST_OPEN => "FIREBASE_IOS_FIRST_OPEN", + FIREBASE_IOS_IN_APP_PURCHASE => "FIREBASE_IOS_IN_APP_PURCHASE", + FIREBASE_IOS_CUSTOM => "FIREBASE_IOS_CUSTOM", + THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN => + "THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN", + THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE => + "THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE", + THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM => + "THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM", + THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN => + "THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN", + THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE => + "THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE", + THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM => "THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionAdjustmentTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionAdjustmentTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/ConversionAdjustmentTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ConversionAdjustmentTypeEnum.pm index d03679014..f2ad5bd1c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionAdjustmentTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionAdjustmentTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ConversionAdjustmentTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ConversionAdjustmentTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionAttributionEventTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionAttributionEventTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/ConversionAttributionEventTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ConversionAttributionEventTypeEnum.pm index 7b8de121b..d0734a327 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionAttributionEventTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionAttributionEventTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ConversionAttributionEventTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ConversionAttributionEventTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionLagBucketEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionLagBucketEnum.pm similarity index 95% rename from lib/Google/Ads/GoogleAds/V1/Enums/ConversionLagBucketEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ConversionLagBucketEnum.pm index 627653284..fcfa427cd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionLagBucketEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionLagBucketEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ConversionLagBucketEnum; +package Google::Ads::GoogleAds::V4::Enums::ConversionLagBucketEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionOrAdjustmentLagBucketEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionOrAdjustmentLagBucketEnum.pm similarity index 97% rename from lib/Google/Ads/GoogleAds/V1/Enums/ConversionOrAdjustmentLagBucketEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ConversionOrAdjustmentLagBucketEnum.pm index c9feb3809..455d80d24 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ConversionOrAdjustmentLagBucketEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ConversionOrAdjustmentLagBucketEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ConversionOrAdjustmentLagBucketEnum; +package Google::Ads::GoogleAds::V4::Enums::ConversionOrAdjustmentLagBucketEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CriterionCategoryChannelAvailabilityModeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CriterionCategoryChannelAvailabilityModeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/CriterionCategoryChannelAvailabilityModeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CriterionCategoryChannelAvailabilityModeEnum.pm index 4e9348272..766fc826a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CriterionCategoryChannelAvailabilityModeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CriterionCategoryChannelAvailabilityModeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CriterionCategoryChannelAvailabilityModeEnum; +package Google::Ads::GoogleAds::V4::Enums::CriterionCategoryChannelAvailabilityModeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CriterionCategoryLocaleAvailabilityModeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CriterionCategoryLocaleAvailabilityModeEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/CriterionCategoryLocaleAvailabilityModeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CriterionCategoryLocaleAvailabilityModeEnum.pm index ed46797b2..84e81e4fe 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CriterionCategoryLocaleAvailabilityModeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CriterionCategoryLocaleAvailabilityModeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CriterionCategoryLocaleAvailabilityModeEnum; +package Google::Ads::GoogleAds::V4::Enums::CriterionCategoryLocaleAvailabilityModeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CriterionSystemServingStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CriterionSystemServingStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/CriterionSystemServingStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CriterionSystemServingStatusEnum.pm index 37d0652d5..3757d7330 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CriterionSystemServingStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CriterionSystemServingStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CriterionSystemServingStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::CriterionSystemServingStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CriterionTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CriterionTypeEnum.pm similarity index 95% rename from lib/Google/Ads/GoogleAds/V1/Enums/CriterionTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CriterionTypeEnum.pm index 1a637c344..955a63a8d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CriterionTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CriterionTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CriterionTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::CriterionTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CustomInterestMemberTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CustomInterestMemberTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/CustomInterestMemberTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CustomInterestMemberTypeEnum.pm index 9587ab0f0..6da194e3f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CustomInterestMemberTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CustomInterestMemberTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CustomInterestMemberTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::CustomInterestMemberTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CustomInterestStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CustomInterestStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/CustomInterestStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CustomInterestStatusEnum.pm index 29a84a2ca..cdac6ce65 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CustomInterestStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CustomInterestStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CustomInterestStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::CustomInterestStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CustomInterestTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CustomInterestTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/CustomInterestTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CustomInterestTypeEnum.pm index e72a4c3b9..1cd8766bf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CustomInterestTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CustomInterestTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CustomInterestTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::CustomInterestTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CustomPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CustomPlaceholderFieldEnum.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Enums/CustomPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CustomPlaceholderFieldEnum.pm index 052600d3a..ada03c8c4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CustomPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CustomPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CustomPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::CustomPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CustomerMatchUploadKeyTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CustomerMatchUploadKeyTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/CustomerMatchUploadKeyTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CustomerMatchUploadKeyTypeEnum.pm index 476c01723..4ab5ffd94 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CustomerMatchUploadKeyTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CustomerMatchUploadKeyTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CustomerMatchUploadKeyTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::CustomerMatchUploadKeyTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/CustomerPayPerConversionEligibilityFailureReasonEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/CustomerPayPerConversionEligibilityFailureReasonEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/CustomerPayPerConversionEligibilityFailureReasonEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/CustomerPayPerConversionEligibilityFailureReasonEnum.pm index 860e51765..edfaaac15 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/CustomerPayPerConversionEligibilityFailureReasonEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/CustomerPayPerConversionEligibilityFailureReasonEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::CustomerPayPerConversionEligibilityFailureReasonEnum; +package Google::Ads::GoogleAds::V4::Enums::CustomerPayPerConversionEligibilityFailureReasonEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/DataDrivenModelStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/DataDrivenModelStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/DataDrivenModelStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/DataDrivenModelStatusEnum.pm index 18299f2e2..501b870f1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/DataDrivenModelStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/DataDrivenModelStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::DataDrivenModelStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::DataDrivenModelStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/DayOfWeekEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/DayOfWeekEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/DayOfWeekEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/DayOfWeekEnum.pm index 702f7d6ff..23c947a09 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/DayOfWeekEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/DayOfWeekEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::DayOfWeekEnum; +package Google::Ads::GoogleAds::V4::Enums::DayOfWeekEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/DeviceEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/DeviceEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/DeviceEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/DeviceEnum.pm index 6f53d0c56..69502ddb9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/DeviceEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/DeviceEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::DeviceEnum; +package Google::Ads::GoogleAds::V4::Enums::DeviceEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/DisplayAdFormatSettingEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/DisplayAdFormatSettingEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/DisplayAdFormatSettingEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/DisplayAdFormatSettingEnum.pm index 3069c0496..4b9680e82 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/DisplayAdFormatSettingEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/DisplayAdFormatSettingEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::DisplayAdFormatSettingEnum; +package Google::Ads::GoogleAds::V4::Enums::DisplayAdFormatSettingEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/DisplayUploadProductTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/DisplayUploadProductTypeEnum.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Enums/DisplayUploadProductTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/DisplayUploadProductTypeEnum.pm index 017fe94bd..7e44a3174 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/DisplayUploadProductTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/DisplayUploadProductTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::DisplayUploadProductTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::DisplayUploadProductTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/DistanceBucketEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/DistanceBucketEnum.pm new file mode 100644 index 000000000..617096cf2 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/DistanceBucketEnum.pm @@ -0,0 +1,52 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::DistanceBucketEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + WITHIN_700M => "WITHIN_700M", + WITHIN_1KM => "WITHIN_1KM", + WITHIN_5KM => "WITHIN_5KM", + WITHIN_10KM => "WITHIN_10KM", + WITHIN_15KM => "WITHIN_15KM", + WITHIN_20KM => "WITHIN_20KM", + WITHIN_25KM => "WITHIN_25KM", + WITHIN_30KM => "WITHIN_30KM", + WITHIN_35KM => "WITHIN_35KM", + WITHIN_40KM => "WITHIN_40KM", + WITHIN_45KM => "WITHIN_45KM", + WITHIN_50KM => "WITHIN_50KM", + WITHIN_55KM => "WITHIN_55KM", + WITHIN_60KM => "WITHIN_60KM", + WITHIN_65KM => "WITHIN_65KM", + BEYOND_65KM => "BEYOND_65KM", + WITHIN_0_7MILES => "WITHIN_0_7MILES", + WITHIN_1MILE => "WITHIN_1MILE", + WITHIN_5MILES => "WITHIN_5MILES", + WITHIN_10MILES => "WITHIN_10MILES", + WITHIN_15MILES => "WITHIN_15MILES", + WITHIN_20MILES => "WITHIN_20MILES", + WITHIN_25MILES => "WITHIN_25MILES", + WITHIN_30MILES => "WITHIN_30MILES", + WITHIN_35MILES => "WITHIN_35MILES", + WITHIN_40MILES => "WITHIN_40MILES", + BEYOND_40MILES => "BEYOND_40MILES" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/DsaPageFeedCriterionFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/DsaPageFeedCriterionFieldEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/DsaPageFeedCriterionFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/DsaPageFeedCriterionFieldEnum.pm index cc25c122b..420ed26b6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/DsaPageFeedCriterionFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/DsaPageFeedCriterionFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::DsaPageFeedCriterionFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::DsaPageFeedCriterionFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/EducationPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/EducationPlaceholderFieldEnum.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Enums/EducationPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/EducationPlaceholderFieldEnum.pm index 329f116b1..ce05f8278 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/EducationPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/EducationPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::EducationPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::EducationPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ExtensionSettingDeviceEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ExtensionSettingDeviceEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/ExtensionSettingDeviceEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ExtensionSettingDeviceEnum.pm index 4bf76ea9e..31537f771 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ExtensionSettingDeviceEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ExtensionSettingDeviceEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ExtensionSettingDeviceEnum; +package Google::Ads::GoogleAds::V4::Enums::ExtensionSettingDeviceEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ExtensionTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ExtensionTypeEnum.pm similarity index 85% rename from lib/Google/Ads/GoogleAds/V1/Enums/ExtensionTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ExtensionTypeEnum.pm index ef262636f..958d8faf6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ExtensionTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ExtensionTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ExtensionTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ExtensionTypeEnum; use strict; use warnings; @@ -27,11 +27,11 @@ use Const::Exporter enums => [ MESSAGE => "MESSAGE", PRICE => "PRICE", PROMOTION => "PROMOTION", - REVIEW => "REVIEW", SITELINK => "SITELINK", STRUCTURED_SNIPPET => "STRUCTURED_SNIPPET", LOCATION => "LOCATION", - AFFILIATE_LOCATION => "AFFILIATE_LOCATION" + AFFILIATE_LOCATION => "AFFILIATE_LOCATION", + HOTEL_CALLOUT => "HOTEL_CALLOUT" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ExternalConversionSourceEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ExternalConversionSourceEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ExternalConversionSourceEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ExternalConversionSourceEnum.pm index 76fe34375..0995ef98e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ExternalConversionSourceEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ExternalConversionSourceEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ExternalConversionSourceEnum; +package Google::Ads::GoogleAds::V4::Enums::ExternalConversionSourceEnum; use strict; use warnings; @@ -40,7 +40,8 @@ use Const::Exporter enums => [ GOOGLE_PLAY => "GOOGLE_PLAY", THIRD_PARTY_APP_ANALYTICS => "THIRD_PARTY_APP_ANALYTICS", GOOGLE_ATTRIBUTION => "GOOGLE_ATTRIBUTION", - STORE_SALES_DIRECT => "STORE_SALES_DIRECT" + STORE_SALES_DIRECT_UPLOAD => "STORE_SALES_DIRECT_UPLOAD", + STORE_SALES => "STORE_SALES" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedAttributeTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedAttributeTypeEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedAttributeTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedAttributeTypeEnum.pm index fff7219e0..05267e51f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedAttributeTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedAttributeTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedAttributeTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedAttributeTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemQualityApprovalStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemQualityApprovalStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedItemQualityApprovalStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedItemQualityApprovalStatusEnum.pm index 279aa946a..3eceb124e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemQualityApprovalStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemQualityApprovalStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedItemQualityApprovalStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedItemQualityApprovalStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemQualityDisapprovalReasonEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemQualityDisapprovalReasonEnum.pm similarity index 96% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedItemQualityDisapprovalReasonEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedItemQualityDisapprovalReasonEnum.pm index 87a9bd707..478e80501 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemQualityDisapprovalReasonEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemQualityDisapprovalReasonEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedItemQualityDisapprovalReasonEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedItemQualityDisapprovalReasonEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedItemStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedItemStatusEnum.pm index 0592d0739..e8628702d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedItemStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedItemStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemTargetDeviceEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemTargetDeviceEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedItemTargetDeviceEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedItemTargetDeviceEnum.pm index ed375fd9b..8e7ec0f29 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemTargetDeviceEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemTargetDeviceEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedItemTargetDeviceEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedItemTargetDeviceEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemTargetStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemTargetStatusEnum.pm new file mode 100644 index 000000000..e692d0e2f --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemTargetStatusEnum.pm @@ -0,0 +1,27 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::FeedItemTargetStatusEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + ENABLED => "ENABLED", + REMOVED => "REMOVED" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemTargetTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemTargetTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedItemTargetTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedItemTargetTypeEnum.pm index 9e3673a20..0bdb796a7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemTargetTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemTargetTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedItemTargetTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedItemTargetTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemValidationStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemValidationStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedItemValidationStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedItemValidationStatusEnum.pm index 5adef4f38..1fdf7ae40 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedItemValidationStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedItemValidationStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedItemValidationStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedItemValidationStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedLinkStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedLinkStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedLinkStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedLinkStatusEnum.pm index bc39ff318..ef8ca5393 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedLinkStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedLinkStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedLinkStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedLinkStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedMappingCriterionTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedMappingCriterionTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedMappingCriterionTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedMappingCriterionTypeEnum.pm index 0a50bea2c..7385f2cc3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedMappingCriterionTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedMappingCriterionTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedMappingCriterionTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedMappingCriterionTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedMappingStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedMappingStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedMappingStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedMappingStatusEnum.pm index 51d84bd9f..be46a24e5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedMappingStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedMappingStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedMappingStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedMappingStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedOriginEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedOriginEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedOriginEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedOriginEnum.pm index 6128a21e6..145861159 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedOriginEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedOriginEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedOriginEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedOriginEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FeedStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FeedStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/FeedStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FeedStatusEnum.pm index 9238f4018..2af2f1e0b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FeedStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FeedStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FeedStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::FeedStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FlightPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FlightPlaceholderFieldEnum.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Enums/FlightPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FlightPlaceholderFieldEnum.pm index eb86ca3a9..84e4ceb38 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FlightPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FlightPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FlightPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::FlightPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FrequencyCapEventTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FrequencyCapEventTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/FrequencyCapEventTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FrequencyCapEventTypeEnum.pm index e0a0132d7..d23ee23e1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FrequencyCapEventTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FrequencyCapEventTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FrequencyCapEventTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::FrequencyCapEventTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FrequencyCapLevelEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FrequencyCapLevelEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/FrequencyCapLevelEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FrequencyCapLevelEnum.pm index 5d2a0af58..607bf8698 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FrequencyCapLevelEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FrequencyCapLevelEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FrequencyCapLevelEnum; +package Google::Ads::GoogleAds::V4::Enums::FrequencyCapLevelEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/FrequencyCapTimeUnitEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/FrequencyCapTimeUnitEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/FrequencyCapTimeUnitEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/FrequencyCapTimeUnitEnum.pm index 8ce29a02f..f5c396a79 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/FrequencyCapTimeUnitEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/FrequencyCapTimeUnitEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::FrequencyCapTimeUnitEnum; +package Google::Ads::GoogleAds::V4::Enums::FrequencyCapTimeUnitEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/GenderTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/GenderTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/GenderTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/GenderTypeEnum.pm index 040d02101..1807b42eb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/GenderTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/GenderTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::GenderTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::GenderTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/GeoTargetConstantStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/GeoTargetConstantStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/GeoTargetConstantStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/GeoTargetConstantStatusEnum.pm index b721fb090..dc0775ef7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/GeoTargetConstantStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/GeoTargetConstantStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::GeoTargetConstantStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::GeoTargetConstantStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/GeoTargetingRestrictionEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/GeoTargetingRestrictionEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/GeoTargetingRestrictionEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/GeoTargetingRestrictionEnum.pm index 9f60115f4..babafdb0a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/GeoTargetingRestrictionEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/GeoTargetingRestrictionEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::GeoTargetingRestrictionEnum; +package Google::Ads::GoogleAds::V4::Enums::GeoTargetingRestrictionEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/GeoTargetingTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/GeoTargetingTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/GeoTargetingTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/GeoTargetingTypeEnum.pm index 50b5549b2..05b066831 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/GeoTargetingTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/GeoTargetingTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::GeoTargetingTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::GeoTargetingTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/GoogleAdsFieldCategoryEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/GoogleAdsFieldCategoryEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/GoogleAdsFieldCategoryEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/GoogleAdsFieldCategoryEnum.pm index a64c4bf60..94fc4056a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/GoogleAdsFieldCategoryEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/GoogleAdsFieldCategoryEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::GoogleAdsFieldCategoryEnum; +package Google::Ads::GoogleAds::V4::Enums::GoogleAdsFieldCategoryEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/GoogleAdsFieldDataTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/GoogleAdsFieldDataTypeEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/GoogleAdsFieldDataTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/GoogleAdsFieldDataTypeEnum.pm index baef7fc23..d6574fdf3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/GoogleAdsFieldDataTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/GoogleAdsFieldDataTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::GoogleAdsFieldDataTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::GoogleAdsFieldDataTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/HotelDateSelectionTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/HotelDateSelectionTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/HotelDateSelectionTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/HotelDateSelectionTypeEnum.pm index 4bddddbe7..439fbbedf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/HotelDateSelectionTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/HotelDateSelectionTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::HotelDateSelectionTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::HotelDateSelectionTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/HotelPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/HotelPlaceholderFieldEnum.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Enums/HotelPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/HotelPlaceholderFieldEnum.pm index 622640014..5e389c9bc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/HotelPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/HotelPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::HotelPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::HotelPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/HotelPriceBucketEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/HotelPriceBucketEnum.pm new file mode 100644 index 000000000..fbcdb3a2f --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/HotelPriceBucketEnum.pm @@ -0,0 +1,27 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::HotelPriceBucketEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + LOWEST_TIED => "LOWEST_TIED", + NOT_LOWEST => "NOT_LOWEST" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/HotelRateTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/HotelRateTypeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/HotelRateTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/HotelRateTypeEnum.pm index dd092952f..934fe1109 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/HotelRateTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/HotelRateTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::HotelRateTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::HotelRateTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/IncomeRangeTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/IncomeRangeTypeEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/IncomeRangeTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/IncomeRangeTypeEnum.pm index 83f13c322..50ec70c1f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/IncomeRangeTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/IncomeRangeTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::IncomeRangeTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::IncomeRangeTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/InteractionEventTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/InteractionEventTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/InteractionEventTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/InteractionEventTypeEnum.pm index eaddf781c..6be0b6b3a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/InteractionEventTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/InteractionEventTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::InteractionEventTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::InteractionEventTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/InteractionTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/InteractionTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/InteractionTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/InteractionTypeEnum.pm index f439a3516..36d83b377 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/InteractionTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/InteractionTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::InteractionTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::InteractionTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/InvoiceTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/InvoiceTypeEnum.pm new file mode 100644 index 000000000..e9d156a82 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/InvoiceTypeEnum.pm @@ -0,0 +1,27 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::InvoiceTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + CREDIT_MEMO => "CREDIT_MEMO", + INVOICE => "INVOICE" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/JobPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/JobPlaceholderFieldEnum.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Enums/JobPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/JobPlaceholderFieldEnum.pm index c3c6ff5d1..a7dd1df8f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/JobPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/JobPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::JobPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::JobPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/KeywordMatchTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/KeywordMatchTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/KeywordMatchTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/KeywordMatchTypeEnum.pm index 939529814..873970a95 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/KeywordMatchTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/KeywordMatchTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::KeywordMatchTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::KeywordMatchTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/KeywordPlanCompetitionLevelEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/KeywordPlanCompetitionLevelEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/KeywordPlanCompetitionLevelEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/KeywordPlanCompetitionLevelEnum.pm index 362955bea..1c8c27162 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/KeywordPlanCompetitionLevelEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/KeywordPlanCompetitionLevelEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::KeywordPlanCompetitionLevelEnum; +package Google::Ads::GoogleAds::V4::Enums::KeywordPlanCompetitionLevelEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/KeywordPlanForecastIntervalEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/KeywordPlanForecastIntervalEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/KeywordPlanForecastIntervalEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/KeywordPlanForecastIntervalEnum.pm index 5ddcedca3..48320cc45 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/KeywordPlanForecastIntervalEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/KeywordPlanForecastIntervalEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::KeywordPlanForecastIntervalEnum; +package Google::Ads::GoogleAds::V4::Enums::KeywordPlanForecastIntervalEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/KeywordPlanNetworkEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/KeywordPlanNetworkEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/KeywordPlanNetworkEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/KeywordPlanNetworkEnum.pm index dfe476a62..4b93f15e1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/KeywordPlanNetworkEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/KeywordPlanNetworkEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::KeywordPlanNetworkEnum; +package Google::Ads::GoogleAds::V4::Enums::KeywordPlanNetworkEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/LabelStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/LabelStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/LabelStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/LabelStatusEnum.pm index 78b80038b..2413d4774 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/LabelStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/LabelStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::LabelStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::LabelStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/LegacyAppInstallAdAppStoreEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/LegacyAppInstallAdAppStoreEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/LegacyAppInstallAdAppStoreEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/LegacyAppInstallAdAppStoreEnum.pm index 70ab1e39b..af2bfb9db 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/LegacyAppInstallAdAppStoreEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/LegacyAppInstallAdAppStoreEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::LegacyAppInstallAdAppStoreEnum; +package Google::Ads::GoogleAds::V4::Enums::LegacyAppInstallAdAppStoreEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/LinkedAccountTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/LinkedAccountTypeEnum.pm new file mode 100644 index 000000000..353e7544e --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/LinkedAccountTypeEnum.pm @@ -0,0 +1,26 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::LinkedAccountTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + THIRD_PARTY_APP_ANALYTICS => "THIRD_PARTY_APP_ANALYTICS" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ListingGroupTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ListingGroupTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/ListingGroupTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ListingGroupTypeEnum.pm index e9047eea9..c18109f1c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ListingGroupTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ListingGroupTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ListingGroupTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ListingGroupTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/LocalPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/LocalPlaceholderFieldEnum.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Enums/LocalPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/LocalPlaceholderFieldEnum.pm index f8cc351c5..505ac6af0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/LocalPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/LocalPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::LocalPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::LocalPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/LocationExtensionTargetingCriterionFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/LocationExtensionTargetingCriterionFieldEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/LocationExtensionTargetingCriterionFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/LocationExtensionTargetingCriterionFieldEnum.pm index 739c8101c..0a5eeca29 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/LocationExtensionTargetingCriterionFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/LocationExtensionTargetingCriterionFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::LocationExtensionTargetingCriterionFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::LocationExtensionTargetingCriterionFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/LocationGroupRadiusUnitsEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/LocationGroupRadiusUnitsEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/LocationGroupRadiusUnitsEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/LocationGroupRadiusUnitsEnum.pm index 16fa8f37b..e93aa74dc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/LocationGroupRadiusUnitsEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/LocationGroupRadiusUnitsEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::LocationGroupRadiusUnitsEnum; +package Google::Ads::GoogleAds::V4::Enums::LocationGroupRadiusUnitsEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/LocationPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/LocationPlaceholderFieldEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/LocationPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/LocationPlaceholderFieldEnum.pm index 9fef644aa..9ad0c74c0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/LocationPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/LocationPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::LocationPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::LocationPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/LocationSourceTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/LocationSourceTypeEnum.pm new file mode 100644 index 000000000..123aae55e --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/LocationSourceTypeEnum.pm @@ -0,0 +1,27 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::LocationSourceTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + GOOGLE_MY_BUSINESS => "GOOGLE_MY_BUSINESS", + AFFILIATE => "AFFILIATE" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ManagerLinkStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ManagerLinkStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ManagerLinkStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ManagerLinkStatusEnum.pm index 5d87ceb51..1f148b25f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ManagerLinkStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ManagerLinkStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ManagerLinkStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::ManagerLinkStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MatchingFunctionContextTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MatchingFunctionContextTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/MatchingFunctionContextTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/MatchingFunctionContextTypeEnum.pm index d7a3f8da8..1c3eaa0a6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MatchingFunctionContextTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MatchingFunctionContextTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MatchingFunctionContextTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::MatchingFunctionContextTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MatchingFunctionOperatorEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MatchingFunctionOperatorEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/MatchingFunctionOperatorEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/MatchingFunctionOperatorEnum.pm index aa3dd1b0d..fd26b53e9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MatchingFunctionOperatorEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MatchingFunctionOperatorEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MatchingFunctionOperatorEnum; +package Google::Ads::GoogleAds::V4::Enums::MatchingFunctionOperatorEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MediaTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MediaTypeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/MediaTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/MediaTypeEnum.pm index 6a5b3e5c6..f7c63dd00 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MediaTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MediaTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MediaTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::MediaTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MerchantCenterLinkStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MerchantCenterLinkStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/MerchantCenterLinkStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/MerchantCenterLinkStatusEnum.pm index 5312b9b5d..b5edae210 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MerchantCenterLinkStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MerchantCenterLinkStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MerchantCenterLinkStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::MerchantCenterLinkStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MessagePlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MessagePlaceholderFieldEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/MessagePlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/MessagePlaceholderFieldEnum.pm index 8c76a5577..6bcadd23a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MessagePlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MessagePlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MessagePlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::MessagePlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MimeTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MimeTypeEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/MimeTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/MimeTypeEnum.pm index 06882610d..5053db39e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MimeTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MimeTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MimeTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::MimeTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MinuteOfHourEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MinuteOfHourEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/MinuteOfHourEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/MinuteOfHourEnum.pm index bab3596bc..585e2925f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MinuteOfHourEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MinuteOfHourEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MinuteOfHourEnum; +package Google::Ads::GoogleAds::V4::Enums::MinuteOfHourEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/MobileAppVendorEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MobileAppVendorEnum.pm new file mode 100644 index 000000000..4b59fcba6 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MobileAppVendorEnum.pm @@ -0,0 +1,27 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::MobileAppVendorEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + APPLE_APP_STORE => "APPLE_APP_STORE", + GOOGLE_APP_STORE => "GOOGLE_APP_STORE" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MobileDeviceTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MobileDeviceTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/MobileDeviceTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/MobileDeviceTypeEnum.pm index 9bddbca26..d0896aa67 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MobileDeviceTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MobileDeviceTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MobileDeviceTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::MobileDeviceTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/MonthOfYearEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/MonthOfYearEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/MonthOfYearEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/MonthOfYearEnum.pm index f9ab336db..d39971ee1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/MonthOfYearEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/MonthOfYearEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::MonthOfYearEnum; +package Google::Ads::GoogleAds::V4::Enums::MonthOfYearEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/NegativeGeoTargetTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/NegativeGeoTargetTypeEnum.pm similarity index 79% rename from lib/Google/Ads/GoogleAds/V1/Enums/NegativeGeoTargetTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/NegativeGeoTargetTypeEnum.pm index 28c8536d8..4fa482439 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/NegativeGeoTargetTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/NegativeGeoTargetTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::NegativeGeoTargetTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::NegativeGeoTargetTypeEnum; use strict; use warnings; @@ -20,8 +20,8 @@ use warnings; use Const::Exporter enums => [ UNSPECIFIED => "UNSPECIFIED", UNKNOWN => "UNKNOWN", - DONT_CARE => "DONT_CARE", - LOCATION_OF_PRESENCE => "LOCATION_OF_PRESENCE" + PRESENCE_OR_INTEREST => "PRESENCE_OR_INTEREST", + PRESENCE => "PRESENCE" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/OfflineUserDataJobFailureReasonEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/OfflineUserDataJobFailureReasonEnum.pm new file mode 100644 index 000000000..9a54a6ffe --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/OfflineUserDataJobFailureReasonEnum.pm @@ -0,0 +1,27 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::OfflineUserDataJobFailureReasonEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + INSUFFICIENT_MATCHED_TRANSACTIONS => "INSUFFICIENT_MATCHED_TRANSACTIONS", + INSUFFICIENT_TRANSACTIONS => "INSUFFICIENT_TRANSACTIONS" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/OfflineUserDataJobStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/OfflineUserDataJobStatusEnum.pm new file mode 100644 index 000000000..d73c8b0d5 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/OfflineUserDataJobStatusEnum.pm @@ -0,0 +1,29 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::OfflineUserDataJobStatusEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + PENDING => "PENDING", + RUNNING => "RUNNING", + SUCCESS => "SUCCESS", + FAILED => "FAILED" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/OfflineUserDataJobTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/OfflineUserDataJobTypeEnum.pm new file mode 100644 index 000000000..fd1c9b092 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/OfflineUserDataJobTypeEnum.pm @@ -0,0 +1,28 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::OfflineUserDataJobTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + STORE_SALES_UPLOAD_FIRST_PARTY => "STORE_SALES_UPLOAD_FIRST_PARTY", + STORE_SALES_UPLOAD_THIRD_PARTY => "STORE_SALES_UPLOAD_THIRD_PARTY", + CUSTOMER_MATCH_USER_LIST => "CUSTOMER_MATCH_USER_LIST" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/OperatingSystemVersionOperatorTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/OperatingSystemVersionOperatorTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/OperatingSystemVersionOperatorTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/OperatingSystemVersionOperatorTypeEnum.pm index 487a9afaa..c110a6f63 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/OperatingSystemVersionOperatorTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/OperatingSystemVersionOperatorTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::OperatingSystemVersionOperatorTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::OperatingSystemVersionOperatorTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/OptimizationGoalTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/OptimizationGoalTypeEnum.pm new file mode 100644 index 000000000..f92de4827 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/OptimizationGoalTypeEnum.pm @@ -0,0 +1,27 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::OptimizationGoalTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + CALL_CLICKS => "CALL_CLICKS", + DRIVING_DIRECTIONS => "DRIVING_DIRECTIONS" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PageOnePromotedStrategyGoalEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PageOnePromotedStrategyGoalEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/PageOnePromotedStrategyGoalEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PageOnePromotedStrategyGoalEnum.pm index 4f2ad8a49..993d0ee42 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PageOnePromotedStrategyGoalEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PageOnePromotedStrategyGoalEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PageOnePromotedStrategyGoalEnum; +package Google::Ads::GoogleAds::V4::Enums::PageOnePromotedStrategyGoalEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ParentalStatusTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ParentalStatusTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ParentalStatusTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ParentalStatusTypeEnum.pm index e24a4bb89..b228a1cae 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ParentalStatusTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ParentalStatusTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ParentalStatusTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ParentalStatusTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PaymentModeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PaymentModeEnum.pm similarity index 82% rename from lib/Google/Ads/GoogleAds/V1/Enums/PaymentModeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PaymentModeEnum.pm index 5f0cd9aaa..99efb9d13 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PaymentModeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PaymentModeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PaymentModeEnum; +package Google::Ads::GoogleAds::V4::Enums::PaymentModeEnum; use strict; use warnings; @@ -22,7 +22,8 @@ use Const::Exporter enums => [ UNKNOWN => "UNKNOWN", CLICKS => "CLICKS", CONVERSION_VALUE => "CONVERSION_VALUE", - CONVERSIONS => "CONVERSIONS" + CONVERSIONS => "CONVERSIONS", + GUEST_STAY => "GUEST_STAY" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PlaceholderTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PlaceholderTypeEnum.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Enums/PlaceholderTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PlaceholderTypeEnum.pm index 2b33288fe..fea3594df 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PlaceholderTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PlaceholderTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PlaceholderTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::PlaceholderTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PlacementTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PlacementTypeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/PlacementTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PlacementTypeEnum.pm index 4bccaa3f1..7bbb0c826 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PlacementTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PlacementTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PlacementTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::PlacementTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyApprovalStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyApprovalStatusEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/PolicyApprovalStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PolicyApprovalStatusEnum.pm index 9c8ca96ee..3904bdca1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyApprovalStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyApprovalStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PolicyApprovalStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::PolicyApprovalStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyReviewStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyReviewStatusEnum.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Enums/PolicyReviewStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PolicyReviewStatusEnum.pm index 5c2dd6de3..0acfc7a5e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyReviewStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyReviewStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PolicyReviewStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::PolicyReviewStatusEnum; use strict; use warnings; @@ -22,7 +22,8 @@ use Const::Exporter enums => [ UNKNOWN => "UNKNOWN", REVIEW_IN_PROGRESS => "REVIEW_IN_PROGRESS", REVIEWED => "REVIEWED", - UNDER_APPEAL => "UNDER_APPEAL" + UNDER_APPEAL => "UNDER_APPEAL", + ELIGIBLE_MAY_SERVE => "ELIGIBLE_MAY_SERVE" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyTopicEntryTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEntryTypeEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/PolicyTopicEntryTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEntryTypeEnum.pm index 9f3cf7977..ab3c27546 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyTopicEntryTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEntryTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PolicyTopicEntryTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::PolicyTopicEntryTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.pm index f65bd6c62..1e784c4af 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PolicyTopicEvidenceDestinationMismatchUrlTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::PolicyTopicEvidenceDestinationMismatchUrlTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.pm index 64155586d..b9717b0aa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PolicyTopicEvidenceDestinationNotWorkingDeviceEnum; +package Google::Ads::GoogleAds::V4::Enums::PolicyTopicEvidenceDestinationNotWorkingDeviceEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.pm new file mode 100644 index 000000000..bb30b54a6 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.pm @@ -0,0 +1,27 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + HOSTNAME_NOT_FOUND => "HOSTNAME_NOT_FOUND", + GOOGLE_CRAWLER_DNS_ISSUE => "GOOGLE_CRAWLER_DNS_ISSUE" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PositiveGeoTargetTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PositiveGeoTargetTypeEnum.pm similarity index 75% rename from lib/Google/Ads/GoogleAds/V1/Enums/PositiveGeoTargetTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PositiveGeoTargetTypeEnum.pm index da837e202..f93f750d6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PositiveGeoTargetTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PositiveGeoTargetTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PositiveGeoTargetTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::PositiveGeoTargetTypeEnum; use strict; use warnings; @@ -20,9 +20,9 @@ use warnings; use Const::Exporter enums => [ UNSPECIFIED => "UNSPECIFIED", UNKNOWN => "UNKNOWN", - DONT_CARE => "DONT_CARE", - AREA_OF_INTEREST => "AREA_OF_INTEREST", - LOCATION_OF_PRESENCE => "LOCATION_OF_PRESENCE" + PRESENCE_OR_INTEREST => "PRESENCE_OR_INTEREST", + SEARCH_INTEREST => "SEARCH_INTEREST", + PRESENCE => "PRESENCE" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PreferredContentTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PreferredContentTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/PreferredContentTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PreferredContentTypeEnum.pm index 0ed2809bb..c54cb810e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PreferredContentTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PreferredContentTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PreferredContentTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::PreferredContentTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PriceExtensionPriceQualifierEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PriceExtensionPriceQualifierEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/PriceExtensionPriceQualifierEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PriceExtensionPriceQualifierEnum.pm index 945534653..59aa1c081 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PriceExtensionPriceQualifierEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PriceExtensionPriceQualifierEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PriceExtensionPriceQualifierEnum; +package Google::Ads::GoogleAds::V4::Enums::PriceExtensionPriceQualifierEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PriceExtensionPriceUnitEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PriceExtensionPriceUnitEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/PriceExtensionPriceUnitEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PriceExtensionPriceUnitEnum.pm index a2f4288b7..12b637ac2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PriceExtensionPriceUnitEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PriceExtensionPriceUnitEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PriceExtensionPriceUnitEnum; +package Google::Ads::GoogleAds::V4::Enums::PriceExtensionPriceUnitEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PriceExtensionTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PriceExtensionTypeEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/PriceExtensionTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PriceExtensionTypeEnum.pm index d3c12f812..0f5356354 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PriceExtensionTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PriceExtensionTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PriceExtensionTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::PriceExtensionTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PricePlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PricePlaceholderFieldEnum.pm similarity index 97% rename from lib/Google/Ads/GoogleAds/V1/Enums/PricePlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PricePlaceholderFieldEnum.pm index ed57d48b4..6471cc28f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PricePlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PricePlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PricePlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::PricePlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ProductBiddingCategoryLevelEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ProductBiddingCategoryLevelEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ProductBiddingCategoryLevelEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ProductBiddingCategoryLevelEnum.pm index 20ee1c630..9dd8be5e0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ProductBiddingCategoryLevelEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ProductBiddingCategoryLevelEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ProductBiddingCategoryLevelEnum; +package Google::Ads::GoogleAds::V4::Enums::ProductBiddingCategoryLevelEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ProductBiddingCategoryStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ProductBiddingCategoryStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/ProductBiddingCategoryStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ProductBiddingCategoryStatusEnum.pm index 50e8f053e..56aa99d12 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ProductBiddingCategoryStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ProductBiddingCategoryStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ProductBiddingCategoryStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::ProductBiddingCategoryStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ProductChannelEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ProductChannelEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/ProductChannelEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ProductChannelEnum.pm index 3fa6e1f9c..e9f30f498 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ProductChannelEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ProductChannelEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ProductChannelEnum; +package Google::Ads::GoogleAds::V4::Enums::ProductChannelEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ProductChannelExclusivityEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ProductChannelExclusivityEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ProductChannelExclusivityEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ProductChannelExclusivityEnum.pm index 26c906c32..13ae5cfde 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ProductChannelExclusivityEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ProductChannelExclusivityEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ProductChannelExclusivityEnum; +package Google::Ads::GoogleAds::V4::Enums::ProductChannelExclusivityEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ProductConditionEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ProductConditionEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ProductConditionEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ProductConditionEnum.pm index d059ba438..f1c83641a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ProductConditionEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ProductConditionEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ProductConditionEnum; +package Google::Ads::GoogleAds::V4::Enums::ProductConditionEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ListingCustomAttributeIndexEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ProductCustomAttributeIndexEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ListingCustomAttributeIndexEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ProductCustomAttributeIndexEnum.pm index 64b6c1930..c69007a57 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ListingCustomAttributeIndexEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ProductCustomAttributeIndexEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ListingCustomAttributeIndexEnum; +package Google::Ads::GoogleAds::V4::Enums::ProductCustomAttributeIndexEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ProductTypeLevelEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ProductTypeLevelEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/ProductTypeLevelEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ProductTypeLevelEnum.pm index 1b1da91e4..a26d7b62d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ProductTypeLevelEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ProductTypeLevelEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ProductTypeLevelEnum; +package Google::Ads::GoogleAds::V4::Enums::ProductTypeLevelEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PromotionExtensionDiscountModifierEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PromotionExtensionDiscountModifierEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/PromotionExtensionDiscountModifierEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PromotionExtensionDiscountModifierEnum.pm index a5fce5fc7..605d1def2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PromotionExtensionDiscountModifierEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PromotionExtensionDiscountModifierEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PromotionExtensionDiscountModifierEnum; +package Google::Ads::GoogleAds::V4::Enums::PromotionExtensionDiscountModifierEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PromotionExtensionOccasionEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PromotionExtensionOccasionEnum.pm similarity index 95% rename from lib/Google/Ads/GoogleAds/V1/Enums/PromotionExtensionOccasionEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PromotionExtensionOccasionEnum.pm index 4a7eb71a2..f314488ae 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PromotionExtensionOccasionEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PromotionExtensionOccasionEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PromotionExtensionOccasionEnum; +package Google::Ads::GoogleAds::V4::Enums::PromotionExtensionOccasionEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/PromotionPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/PromotionPlaceholderFieldEnum.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Enums/PromotionPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/PromotionPlaceholderFieldEnum.pm index 546d8d70f..e7a1db399 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/PromotionPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/PromotionPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::PromotionPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::PromotionPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ProximityRadiusUnitsEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ProximityRadiusUnitsEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/ProximityRadiusUnitsEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ProximityRadiusUnitsEnum.pm index 901bbbb0d..d2a57dce2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ProximityRadiusUnitsEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ProximityRadiusUnitsEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ProximityRadiusUnitsEnum; +package Google::Ads::GoogleAds::V4::Enums::ProximityRadiusUnitsEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/QualityScoreBucketEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/QualityScoreBucketEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/QualityScoreBucketEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/QualityScoreBucketEnum.pm index 69b1f7b04..0f1ea46a8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/QualityScoreBucketEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/QualityScoreBucketEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::QualityScoreBucketEnum; +package Google::Ads::GoogleAds::V4::Enums::QualityScoreBucketEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/ReachPlanAdLengthEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ReachPlanAdLengthEnum.pm new file mode 100644 index 000000000..24200c254 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ReachPlanAdLengthEnum.pm @@ -0,0 +1,28 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::ReachPlanAdLengthEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + SIX_SECONDS => "SIX_SECONDS", + FIFTEEN_OR_TWENTY_SECONDS => "FIFTEEN_OR_TWENTY_SECONDS", + TWENTY_SECONDS_OR_MORE => "TWENTY_SECONDS_OR_MORE" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/ReachPlanAgeRangeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ReachPlanAgeRangeEnum.pm new file mode 100644 index 000000000..60c60a11d --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ReachPlanAgeRangeEnum.pm @@ -0,0 +1,51 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::ReachPlanAgeRangeEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + AGE_RANGE_18_24 => "AGE_RANGE_18_24", + AGE_RANGE_18_34 => "AGE_RANGE_18_34", + AGE_RANGE_18_44 => "AGE_RANGE_18_44", + AGE_RANGE_18_49 => "AGE_RANGE_18_49", + AGE_RANGE_18_54 => "AGE_RANGE_18_54", + AGE_RANGE_18_64 => "AGE_RANGE_18_64", + AGE_RANGE_18_65_UP => "AGE_RANGE_18_65_UP", + AGE_RANGE_21_34 => "AGE_RANGE_21_34", + AGE_RANGE_25_34 => "AGE_RANGE_25_34", + AGE_RANGE_25_44 => "AGE_RANGE_25_44", + AGE_RANGE_25_49 => "AGE_RANGE_25_49", + AGE_RANGE_25_54 => "AGE_RANGE_25_54", + AGE_RANGE_25_64 => "AGE_RANGE_25_64", + AGE_RANGE_25_65_UP => "AGE_RANGE_25_65_UP", + AGE_RANGE_35_44 => "AGE_RANGE_35_44", + AGE_RANGE_35_49 => "AGE_RANGE_35_49", + AGE_RANGE_35_54 => "AGE_RANGE_35_54", + AGE_RANGE_35_64 => "AGE_RANGE_35_64", + AGE_RANGE_35_65_UP => "AGE_RANGE_35_65_UP", + AGE_RANGE_45_54 => "AGE_RANGE_45_54", + AGE_RANGE_45_64 => "AGE_RANGE_45_64", + AGE_RANGE_45_65_UP => "AGE_RANGE_45_65_UP", + AGE_RANGE_50_65_UP => "AGE_RANGE_50_65_UP", + AGE_RANGE_55_64 => "AGE_RANGE_55_64", + AGE_RANGE_55_65_UP => "AGE_RANGE_55_65_UP", + AGE_RANGE_65_UP => "AGE_RANGE_65_UP" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/ReachPlanNetworkEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ReachPlanNetworkEnum.pm new file mode 100644 index 000000000..f47844167 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ReachPlanNetworkEnum.pm @@ -0,0 +1,28 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::ReachPlanNetworkEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + YOUTUBE => "YOUTUBE", + GOOGLE_VIDEO_PARTNERS => "GOOGLE_VIDEO_PARTNERS", + YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS => "YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/RealEstatePlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/RealEstatePlaceholderFieldEnum.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Enums/RealEstatePlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/RealEstatePlaceholderFieldEnum.pm index b7791bfe1..a3a555f3a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/RealEstatePlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/RealEstatePlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::RealEstatePlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::RealEstatePlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/RecommendationTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/RecommendationTypeEnum.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Enums/RecommendationTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/RecommendationTypeEnum.pm index b5cd0893f..181212272 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/RecommendationTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/RecommendationTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::RecommendationTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::RecommendationTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SearchEngineResultsPageTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SearchEngineResultsPageTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/SearchEngineResultsPageTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SearchEngineResultsPageTypeEnum.pm index 57e2198a5..b2993e074 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SearchEngineResultsPageTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SearchEngineResultsPageTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SearchEngineResultsPageTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::SearchEngineResultsPageTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SearchTermMatchTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SearchTermMatchTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/SearchTermMatchTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SearchTermMatchTypeEnum.pm index 4641ca1a1..6b263bce3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SearchTermMatchTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SearchTermMatchTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SearchTermMatchTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::SearchTermMatchTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SearchTermTargetingStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SearchTermTargetingStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/SearchTermTargetingStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SearchTermTargetingStatusEnum.pm index e957d292f..1ebfbd43b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SearchTermTargetingStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SearchTermTargetingStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SearchTermTargetingStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::SearchTermTargetingStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/ServedAssetFieldTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/ServedAssetFieldTypeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/ServedAssetFieldTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/ServedAssetFieldTypeEnum.pm index 1760caf95..48bf05396 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/ServedAssetFieldTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/ServedAssetFieldTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::ServedAssetFieldTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::ServedAssetFieldTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SharedSetStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SharedSetStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/SharedSetStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SharedSetStatusEnum.pm index b479d5b29..8599f14af 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SharedSetStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SharedSetStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SharedSetStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::SharedSetStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SharedSetTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SharedSetTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/SharedSetTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SharedSetTypeEnum.pm index 436dad118..2fbe51b08 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SharedSetTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SharedSetTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SharedSetTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::SharedSetTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SimulationModificationMethodEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SimulationModificationMethodEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/SimulationModificationMethodEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SimulationModificationMethodEnum.pm index a66b997ef..fda608448 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SimulationModificationMethodEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SimulationModificationMethodEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SimulationModificationMethodEnum; +package Google::Ads::GoogleAds::V4::Enums::SimulationModificationMethodEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SimulationTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SimulationTypeEnum.pm similarity index 82% rename from lib/Google/Ads/GoogleAds/V1/Enums/SimulationTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SimulationTypeEnum.pm index b59f392eb..cac3caa6e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SimulationTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SimulationTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SimulationTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::SimulationTypeEnum; use strict; use warnings; @@ -23,7 +23,8 @@ use Const::Exporter enums => [ CPC_BID => "CPC_BID", CPV_BID => "CPV_BID", TARGET_CPA => "TARGET_CPA", - BID_MODIFIER => "BID_MODIFIER" + BID_MODIFIER => "BID_MODIFIER", + TARGET_ROAS => "TARGET_ROAS" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SitelinkPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SitelinkPlaceholderFieldEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/SitelinkPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SitelinkPlaceholderFieldEnum.pm index a5fc7e016..c71df23ba 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SitelinkPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SitelinkPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SitelinkPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::SitelinkPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SlotEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SlotEnum.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Enums/SlotEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SlotEnum.pm index 9be9f5600..7dfd80cb2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SlotEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SlotEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SlotEnum; +package Google::Ads::GoogleAds::V4::Enums::SlotEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SpendingLimitTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SpendingLimitTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/SpendingLimitTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SpendingLimitTypeEnum.pm index ed9958577..4d6858b25 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SpendingLimitTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SpendingLimitTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SpendingLimitTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::SpendingLimitTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/StructuredSnippetPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/StructuredSnippetPlaceholderFieldEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/StructuredSnippetPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/StructuredSnippetPlaceholderFieldEnum.pm index a5dac71ac..c08d24c42 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/StructuredSnippetPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/StructuredSnippetPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::StructuredSnippetPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::StructuredSnippetPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Enums/SummaryRowSettingEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SummaryRowSettingEnum.pm new file mode 100644 index 000000000..64cf133b8 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SummaryRowSettingEnum.pm @@ -0,0 +1,28 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Enums::SummaryRowSettingEnum; + +use strict; +use warnings; + +use Const::Exporter enums => [ + UNSPECIFIED => "UNSPECIFIED", + UNKNOWN => "UNKNOWN", + NO_SUMMARY_ROW => "NO_SUMMARY_ROW", + SUMMARY_ROW_WITH_RESULTS => "SUMMARY_ROW_WITH_RESULTS", + SUMMARY_ROW_ONLY => "SUMMARY_ROW_ONLY" +]; + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/SystemManagedResourceSourceEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/SystemManagedResourceSourceEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/SystemManagedResourceSourceEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/SystemManagedResourceSourceEnum.pm index 791bea532..e43823a05 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/SystemManagedResourceSourceEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/SystemManagedResourceSourceEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::SystemManagedResourceSourceEnum; +package Google::Ads::GoogleAds::V4::Enums::SystemManagedResourceSourceEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/TargetCpaOptInRecommendationGoalEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/TargetCpaOptInRecommendationGoalEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/TargetCpaOptInRecommendationGoalEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/TargetCpaOptInRecommendationGoalEnum.pm index 8c3d1e3eb..e0d90fe51 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/TargetCpaOptInRecommendationGoalEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/TargetCpaOptInRecommendationGoalEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::TargetCpaOptInRecommendationGoalEnum; +package Google::Ads::GoogleAds::V4::Enums::TargetCpaOptInRecommendationGoalEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/TargetImpressionShareLocationEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/TargetImpressionShareLocationEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/TargetImpressionShareLocationEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/TargetImpressionShareLocationEnum.pm index 4faa90970..91f3a285e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/TargetImpressionShareLocationEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/TargetImpressionShareLocationEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::TargetImpressionShareLocationEnum; +package Google::Ads::GoogleAds::V4::Enums::TargetImpressionShareLocationEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/TargetingDimensionEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/TargetingDimensionEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/TargetingDimensionEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/TargetingDimensionEnum.pm index 6685cfd2a..bbd1d1969 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/TargetingDimensionEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/TargetingDimensionEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::TargetingDimensionEnum; +package Google::Ads::GoogleAds::V4::Enums::TargetingDimensionEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/TimeTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/TimeTypeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/TimeTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/TimeTypeEnum.pm index 1add36b78..f72489771 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/TimeTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/TimeTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::TimeTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::TimeTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/TrackingCodePageFormatEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/TrackingCodePageFormatEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/TrackingCodePageFormatEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/TrackingCodePageFormatEnum.pm index 7caace8d0..92c144031 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/TrackingCodePageFormatEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/TrackingCodePageFormatEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::TrackingCodePageFormatEnum; +package Google::Ads::GoogleAds::V4::Enums::TrackingCodePageFormatEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/TrackingCodeTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/TrackingCodeTypeEnum.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Enums/TrackingCodeTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/TrackingCodeTypeEnum.pm index 1e56c8f82..48b515ff9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/TrackingCodeTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/TrackingCodeTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::TrackingCodeTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::TrackingCodeTypeEnum; use strict; use warnings; @@ -22,7 +22,8 @@ use Const::Exporter enums => [ UNKNOWN => "UNKNOWN", WEBPAGE => "WEBPAGE", WEBPAGE_ONCLICK => "WEBPAGE_ONCLICK", - CLICK_TO_CALL => "CLICK_TO_CALL" + CLICK_TO_CALL => "CLICK_TO_CALL", + WEBSITE_CALL => "WEBSITE_CALL" ]; 1; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/TravelPlaceholderFieldEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/TravelPlaceholderFieldEnum.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Enums/TravelPlaceholderFieldEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/TravelPlaceholderFieldEnum.pm index 62456ea5d..a0890b97e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/TravelPlaceholderFieldEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/TravelPlaceholderFieldEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::TravelPlaceholderFieldEnum; +package Google::Ads::GoogleAds::V4::Enums::TravelPlaceholderFieldEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserInterestTaxonomyTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserInterestTaxonomyTypeEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserInterestTaxonomyTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserInterestTaxonomyTypeEnum.pm index 52c30d00f..19f2fa6ee 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserInterestTaxonomyTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserInterestTaxonomyTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserInterestTaxonomyTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::UserInterestTaxonomyTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListAccessStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListAccessStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListAccessStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListAccessStatusEnum.pm index 5aa5e1b7b..80399a7f1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListAccessStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListAccessStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListAccessStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListAccessStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListClosingReasonEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListClosingReasonEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListClosingReasonEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListClosingReasonEnum.pm index 11d2c148d..ee82cefd0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListClosingReasonEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListClosingReasonEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListClosingReasonEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListClosingReasonEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListCombinedRuleOperatorEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListCombinedRuleOperatorEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListCombinedRuleOperatorEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListCombinedRuleOperatorEnum.pm index 26a3f4a6d..1ce4d341b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListCombinedRuleOperatorEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListCombinedRuleOperatorEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListCombinedRuleOperatorEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListCombinedRuleOperatorEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListCrmDataSourceTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListCrmDataSourceTypeEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListCrmDataSourceTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListCrmDataSourceTypeEnum.pm index 028f900d5..13fb218b6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListCrmDataSourceTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListCrmDataSourceTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListCrmDataSourceTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListCrmDataSourceTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListDateRuleItemOperatorEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListDateRuleItemOperatorEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListDateRuleItemOperatorEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListDateRuleItemOperatorEnum.pm index 808d5cc8d..174287e31 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListDateRuleItemOperatorEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListDateRuleItemOperatorEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListDateRuleItemOperatorEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListDateRuleItemOperatorEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListLogicalRuleOperatorEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListLogicalRuleOperatorEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListLogicalRuleOperatorEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListLogicalRuleOperatorEnum.pm index cbd0978a4..67f6e7f7b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListLogicalRuleOperatorEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListLogicalRuleOperatorEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListLogicalRuleOperatorEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListLogicalRuleOperatorEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListMembershipStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListMembershipStatusEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListMembershipStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListMembershipStatusEnum.pm index ae9c5219d..ee5b9b648 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListMembershipStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListMembershipStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListMembershipStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListMembershipStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListNumberRuleItemOperatorEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListNumberRuleItemOperatorEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListNumberRuleItemOperatorEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListNumberRuleItemOperatorEnum.pm index 89351a3e1..213732349 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListNumberRuleItemOperatorEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListNumberRuleItemOperatorEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListNumberRuleItemOperatorEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListNumberRuleItemOperatorEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListPrepopulationStatusEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListPrepopulationStatusEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListPrepopulationStatusEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListPrepopulationStatusEnum.pm index 1543ee990..f01e7dafb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListPrepopulationStatusEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListPrepopulationStatusEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListPrepopulationStatusEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListPrepopulationStatusEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListRuleTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListRuleTypeEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListRuleTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListRuleTypeEnum.pm index 83de52a58..c1dd65bb7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListRuleTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListRuleTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListRuleTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListRuleTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListSizeRangeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListSizeRangeEnum.pm similarity index 95% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListSizeRangeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListSizeRangeEnum.pm index 7b1df3082..2cf79695c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListSizeRangeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListSizeRangeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListSizeRangeEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListSizeRangeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListStringRuleItemOperatorEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListStringRuleItemOperatorEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListStringRuleItemOperatorEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListStringRuleItemOperatorEnum.pm index 50e271a11..3955c608f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListStringRuleItemOperatorEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListStringRuleItemOperatorEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListStringRuleItemOperatorEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListStringRuleItemOperatorEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/UserListTypeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/UserListTypeEnum.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Enums/UserListTypeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/UserListTypeEnum.pm index c65bad37d..2c459fbc9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/UserListTypeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/UserListTypeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::UserListTypeEnum; +package Google::Ads::GoogleAds::V4::Enums::UserListTypeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/VanityPharmaDisplayUrlModeEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/VanityPharmaDisplayUrlModeEnum.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Enums/VanityPharmaDisplayUrlModeEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/VanityPharmaDisplayUrlModeEnum.pm index 025bf0de1..baf5636c0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/VanityPharmaDisplayUrlModeEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/VanityPharmaDisplayUrlModeEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::VanityPharmaDisplayUrlModeEnum; +package Google::Ads::GoogleAds::V4::Enums::VanityPharmaDisplayUrlModeEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/VanityPharmaTextEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/VanityPharmaTextEnum.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Enums/VanityPharmaTextEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/VanityPharmaTextEnum.pm index cf43b1478..ec9f70480 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/VanityPharmaTextEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/VanityPharmaTextEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::VanityPharmaTextEnum; +package Google::Ads::GoogleAds::V4::Enums::VanityPharmaTextEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/WebpageConditionOperandEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/WebpageConditionOperandEnum.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Enums/WebpageConditionOperandEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/WebpageConditionOperandEnum.pm index 81cd9ac40..40ab1316a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/WebpageConditionOperandEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/WebpageConditionOperandEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::WebpageConditionOperandEnum; +package Google::Ads::GoogleAds::V4::Enums::WebpageConditionOperandEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Enums/WebpageConditionOperatorEnum.pm b/lib/Google/Ads/GoogleAds/V4/Enums/WebpageConditionOperatorEnum.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Enums/WebpageConditionOperatorEnum.pm rename to lib/Google/Ads/GoogleAds/V4/Enums/WebpageConditionOperatorEnum.pm index e83f68089..b10c3bfe9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Enums/WebpageConditionOperatorEnum.pm +++ b/lib/Google/Ads/GoogleAds/V4/Enums/WebpageConditionOperatorEnum.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Enums::WebpageConditionOperatorEnum; +package Google::Ads::GoogleAds::V4::Enums::WebpageConditionOperatorEnum; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Errors/ErrorCode.pm b/lib/Google/Ads/GoogleAds/V4/Errors/ErrorCode.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Errors/ErrorCode.pm rename to lib/Google/Ads/GoogleAds/V4/Errors/ErrorCode.pm index b01b4ccb8..059179a25 100644 --- a/lib/Google/Ads/GoogleAds/V1/Errors/ErrorCode.pm +++ b/lib/Google/Ads/GoogleAds/V4/Errors/ErrorCode.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Errors::ErrorCode; +package Google::Ads::GoogleAds::V4::Errors::ErrorCode; use strict; use warnings; @@ -23,6 +23,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { + accessInvitationError => $args->{accessInvitationError}, accountBudgetProposalError => $args->{accountBudgetProposalError}, adCustomizerError => $args->{adCustomizerError}, adError => $args->{adError}, @@ -35,8 +36,10 @@ sub new { adSharingError => $args->{adSharingError}, adxError => $args->{adxError}, assetError => $args->{assetError}, + assetLinkError => $args->{assetLinkError}, authenticationError => $args->{authenticationError}, authorizationError => $args->{authorizationError}, + batchJobError => $args->{batchJobError}, biddingError => $args->{biddingError}, biddingStrategyError => $args->{biddingStrategyError}, billingSetupError => $args->{billingSetupError}, @@ -55,6 +58,7 @@ sub new { conversionUploadError => $args->{conversionUploadError}, countryCodeError => $args->{countryCodeError}, criterionError => $args->{criterionError}, + currencyCodeError => $args->{currencyCodeError}, customInterestError => $args->{customInterestError}, customerClientLinkError => $args->{customerClientLinkError}, customerError => $args->{customerError}, @@ -83,12 +87,13 @@ sub new { idError => $args->{idError}, imageError => $args->{imageError}, internalError => $args->{internalError}, + invoiceError => $args->{invoiceError}, keywordPlanAdGroupError => $args->{keywordPlanAdGroupError}, + keywordPlanAdGroupKeywordError => $args->{keywordPlanAdGroupKeywordError}, keywordPlanCampaignError => $args->{keywordPlanCampaignError}, + keywordPlanCampaignKeywordError => $args->{keywordPlanCampaignKeywordError}, keywordPlanError => $args->{keywordPlanError}, keywordPlanIdeaError => $args->{keywordPlanIdeaError}, - keywordPlanKeywordError => $args->{keywordPlanKeywordError}, - keywordPlanNegativeKeywordError => $args->{keywordPlanNegativeKeywordError}, labelError => $args->{labelError}, languageCodeError => $args->{languageCodeError}, listOperationError => $args->{listOperationError}, @@ -98,20 +103,22 @@ sub new { mediaUploadError => $args->{mediaUploadError}, multiplierError => $args->{multiplierError}, mutateError => $args->{mutateError}, - mutateJobError => $args->{mutateJobError}, newResourceCreationError => $args->{newResourceCreationError}, notEmptyError => $args->{notEmptyError}, notWhitelistedError => $args->{notWhitelistedError}, nullError => $args->{nullError}, + offlineUserDataJobError => $args->{offlineUserDataJobError}, operationAccessDeniedError => $args->{operationAccessDeniedError}, operatorError => $args->{operatorError}, partialFailureError => $args->{partialFailureError}, + paymentsAccountError => $args->{paymentsAccountError}, policyFindingError => $args->{policyFindingError}, policyValidationParameterError => $args->{policyValidationParameterError}, policyViolationError => $args->{policyViolationError}, queryError => $args->{queryError}, quotaError => $args->{quotaError}, rangeError => $args->{rangeError}, + reachPlanError => $args->{reachPlanError}, recommendationError => $args->{recommendationError}, regionCodeError => $args->{regionCodeError}, requestError => $args->{requestError}, @@ -123,7 +130,9 @@ sub new { sizeLimitError => $args->{sizeLimitError}, stringFormatError => $args->{stringFormatError}, stringLengthError => $args->{stringLengthError}, + timeZoneError => $args->{timeZoneError}, urlFieldError => $args->{urlFieldError}, + userDataError => $args->{userDataError}, userListError => $args->{userListError}, youtubeVideoRegistrationError => $args->{youtubeVideoRegistrationError}}; diff --git a/lib/Google/Ads/GoogleAds/V1/Errors/ErrorDetails.pm b/lib/Google/Ads/GoogleAds/V4/Errors/ErrorDetails.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Errors/ErrorDetails.pm rename to lib/Google/Ads/GoogleAds/V4/Errors/ErrorDetails.pm index 738d36585..80a6f4598 100644 --- a/lib/Google/Ads/GoogleAds/V1/Errors/ErrorDetails.pm +++ b/lib/Google/Ads/GoogleAds/V4/Errors/ErrorDetails.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Errors::ErrorDetails; +package Google::Ads::GoogleAds::V4::Errors::ErrorDetails; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Errors/ErrorLocation.pm b/lib/Google/Ads/GoogleAds/V4/Errors/ErrorLocation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Errors/ErrorLocation.pm rename to lib/Google/Ads/GoogleAds/V4/Errors/ErrorLocation.pm index 929a6d614..df13d109f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Errors/ErrorLocation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Errors/ErrorLocation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Errors::ErrorLocation; +package Google::Ads::GoogleAds::V4::Errors::ErrorLocation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Errors/FieldPathElement.pm b/lib/Google/Ads/GoogleAds/V4/Errors/FieldPathElement.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Errors/FieldPathElement.pm rename to lib/Google/Ads/GoogleAds/V4/Errors/FieldPathElement.pm index a4c694be0..423d19a81 100644 --- a/lib/Google/Ads/GoogleAds/V1/Errors/FieldPathElement.pm +++ b/lib/Google/Ads/GoogleAds/V4/Errors/FieldPathElement.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Errors::FieldPathElement; +package Google::Ads::GoogleAds::V4::Errors::FieldPathElement; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Errors/GoogleAdsError.pm b/lib/Google/Ads/GoogleAds/V4/Errors/GoogleAdsError.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Errors/GoogleAdsError.pm rename to lib/Google/Ads/GoogleAds/V4/Errors/GoogleAdsError.pm index 1fad94707..787e0cc29 100644 --- a/lib/Google/Ads/GoogleAds/V1/Errors/GoogleAdsError.pm +++ b/lib/Google/Ads/GoogleAds/V4/Errors/GoogleAdsError.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Errors::GoogleAdsError; +package Google::Ads::GoogleAds::V4::Errors::GoogleAdsError; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Errors/GoogleAdsFailure.pm b/lib/Google/Ads/GoogleAds/V4/Errors/GoogleAdsFailure.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Errors/GoogleAdsFailure.pm rename to lib/Google/Ads/GoogleAds/V4/Errors/GoogleAdsFailure.pm index 20851fe64..456cda462 100644 --- a/lib/Google/Ads/GoogleAds/V1/Errors/GoogleAdsFailure.pm +++ b/lib/Google/Ads/GoogleAds/V4/Errors/GoogleAdsFailure.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Errors::GoogleAdsFailure; +package Google::Ads::GoogleAds::V4::Errors::GoogleAdsFailure; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Errors/PolicyFindingDetails.pm b/lib/Google/Ads/GoogleAds/V4/Errors/PolicyFindingDetails.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Errors/PolicyFindingDetails.pm rename to lib/Google/Ads/GoogleAds/V4/Errors/PolicyFindingDetails.pm index c3ac49321..daf02769f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Errors/PolicyFindingDetails.pm +++ b/lib/Google/Ads/GoogleAds/V4/Errors/PolicyFindingDetails.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Errors::PolicyFindingDetails; +package Google::Ads::GoogleAds::V4::Errors::PolicyFindingDetails; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Errors/PolicyViolationDetails.pm b/lib/Google/Ads/GoogleAds/V4/Errors/PolicyViolationDetails.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Errors/PolicyViolationDetails.pm rename to lib/Google/Ads/GoogleAds/V4/Errors/PolicyViolationDetails.pm index aa3d97a2e..3a28ef5fd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Errors/PolicyViolationDetails.pm +++ b/lib/Google/Ads/GoogleAds/V4/Errors/PolicyViolationDetails.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Errors::PolicyViolationDetails; +package Google::Ads::GoogleAds::V4::Errors::PolicyViolationDetails; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AccountBudget.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AccountBudget.pm similarity index 96% rename from lib/Google/Ads/GoogleAds/V1/Resources/AccountBudget.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AccountBudget.pm index c9f0ec93c..250b06c62 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AccountBudget.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AccountBudget.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AccountBudget; +package Google::Ads::GoogleAds::V4::Resources::AccountBudget; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AccountBudgetProposal.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AccountBudgetProposal.pm similarity index 96% rename from lib/Google/Ads/GoogleAds/V1/Resources/AccountBudgetProposal.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AccountBudgetProposal.pm index 396c02621..32f444afc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AccountBudgetProposal.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AccountBudgetProposal.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal; +package Google::Ads::GoogleAds::V4::Resources::AccountBudgetProposal; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/AccountBudgetSummary.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AccountBudgetSummary.pm new file mode 100644 index 000000000..74db22873 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AccountBudgetSummary.pm @@ -0,0 +1,43 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::AccountBudgetSummary; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + accountBudget => $args->{accountBudget}, + accountBudgetName => $args->{accountBudgetName}, + billableActivityDateRange => $args->{billableActivityDateRange}, + customer => $args->{customer}, + customerDescriptiveName => $args->{customerDescriptiveName}, + purchaseOrderNumber => $args->{purchaseOrderNumber}, + subtotalAmountMicros => $args->{subtotalAmountMicros}, + taxAmountMicros => $args->{taxAmountMicros}, + totalAmountMicros => $args->{totalAmountMicros}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/AccountLink.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AccountLink.pm new file mode 100644 index 000000000..7d59218de --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AccountLink.pm @@ -0,0 +1,39 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::AccountLink; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + accountLinkId => $args->{accountLinkId}, + resourceName => $args->{resourceName}, + status => $args->{status}, + thirdPartyAppAnalytics => $args->{thirdPartyAppAnalytics}, + type => $args->{type}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/Ad.pm b/lib/Google/Ads/GoogleAds/V4/Resources/Ad.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/Ad.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/Ad.pm index b3b52a780..ce8f52a19 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/Ad.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/Ad.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::Ad; +package Google::Ads::GoogleAds::V4::Resources::Ad; use strict; use warnings; @@ -34,6 +34,7 @@ sub new { expandedTextAd => $args->{expandedTextAd}, finalAppUrls => $args->{finalAppUrls}, finalMobileUrls => $args->{finalMobileUrls}, + finalUrlSuffix => $args->{finalUrlSuffix}, finalUrls => $args->{finalUrls}, gmailAd => $args->{gmailAd}, hotelAd => $args->{hotelAd}, @@ -41,7 +42,9 @@ sub new { imageAd => $args->{imageAd}, legacyAppInstallAd => $args->{legacyAppInstallAd}, legacyResponsiveDisplayAd => $args->{legacyResponsiveDisplayAd}, + localAd => $args->{localAd}, name => $args->{name}, + resourceName => $args->{resourceName}, responsiveDisplayAd => $args->{responsiveDisplayAd}, responsiveSearchAd => $args->{responsiveSearchAd}, shoppingComparisonListingAd => $args->{shoppingComparisonListingAd}, diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroup.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroup.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroup.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroup.pm index ee4c1ae50..b0a76b65c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroup.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroup.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroup; +package Google::Ads::GoogleAds::V4::Resources::AdGroup; use strict; use warnings; @@ -37,6 +37,7 @@ sub new { explorerAutoOptimizerSetting => $args->{explorerAutoOptimizerSetting}, finalUrlSuffix => $args->{finalUrlSuffix}, id => $args->{id}, + labels => $args->{labels}, name => $args->{name}, percentCpcBidMicros => $args->{percentCpcBidMicros}, resourceName => $args->{resourceName}, diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAd.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAd.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAd.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAd.pm index 749bde30d..f9a75ed93 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAd.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAd.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupAd; +package Google::Ads::GoogleAds::V4::Resources::AdGroupAd; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdAssetPolicySummary.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdAssetPolicySummary.pm new file mode 100644 index 000000000..2707ea34b --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdAssetPolicySummary.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::AdGroupAdAssetPolicySummary; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + approvalStatus => $args->{approvalStatus}, + policyTopicEntries => $args->{policyTopicEntries}, + reviewStatus => $args->{reviewStatus}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdAssetView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdAssetView.pm new file mode 100644 index 000000000..b7a157a66 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdAssetView.pm @@ -0,0 +1,40 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::AdGroupAdAssetView; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + adGroupAd => $args->{adGroupAd}, + asset => $args->{asset}, + fieldType => $args->{fieldType}, + performanceLabel => $args->{performanceLabel}, + policySummary => $args->{policySummary}, + resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAdLabel.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdLabel.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAdLabel.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdLabel.pm index c24018bd4..fb8a7967d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAdLabel.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdLabel.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel; +package Google::Ads::GoogleAds::V4::Resources::AdGroupAdLabel; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAdPolicySummary.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdPolicySummary.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAdPolicySummary.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdPolicySummary.pm index 3faa0f8c3..defeb291a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAdPolicySummary.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAdPolicySummary.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupAdPolicySummary; +package Google::Ads::GoogleAds::V4::Resources::AdGroupAdPolicySummary; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAudienceView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAudienceView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAudienceView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAudienceView.pm index 48c2bfdb1..3331dd5b3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupAudienceView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupAudienceView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupAudienceView; +package Google::Ads::GoogleAds::V4::Resources::AdGroupAudienceView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupBidModifier.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupBidModifier.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupBidModifier.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupBidModifier.pm index f069454fa..c4e96bd0b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupBidModifier.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupBidModifier.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupBidModifier; +package Google::Ads::GoogleAds::V4::Resources::AdGroupBidModifier; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupCriterion.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupCriterion.pm similarity index 95% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupCriterion.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupCriterion.pm index 094accea4..a8ad465e0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupCriterion.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupCriterion.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion; +package Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion; use strict; use warnings; @@ -34,6 +34,7 @@ sub new { criterionId => $args->{criterionId}, customAffinity => $args->{customAffinity}, customIntent => $args->{customIntent}, + disapprovalReasons => $args->{disapprovalReasons}, effectiveCpcBidMicros => $args->{effectiveCpcBidMicros}, effectiveCpcBidSource => $args->{effectiveCpcBidSource}, effectiveCpmBidMicros => $args->{effectiveCpmBidMicros}, diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupCriterionLabel.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupCriterionLabel.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupCriterionLabel.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupCriterionLabel.pm index 27be7da36..8c1267d1c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupCriterionLabel.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupCriterionLabel.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel; +package Google::Ads::GoogleAds::V4::Resources::AdGroupCriterionLabel; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupCriterionSimulation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupCriterionSimulation.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupCriterionSimulation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupCriterionSimulation.pm index 9e7e4e91f..c0d08bb22 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupCriterionSimulation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupCriterionSimulation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionSimulation; +package Google::Ads::GoogleAds::V4::Resources::AdGroupCriterionSimulation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupExtensionSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupExtensionSetting.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupExtensionSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupExtensionSetting.pm index 4f515f5f9..c7572e233 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupExtensionSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupExtensionSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting; +package Google::Ads::GoogleAds::V4::Resources::AdGroupExtensionSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupFeed.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupFeed.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupFeed.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupFeed.pm index 96ca1fab9..95ad78878 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupFeed.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupFeed.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupFeed; +package Google::Ads::GoogleAds::V4::Resources::AdGroupFeed; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupLabel.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupLabel.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupLabel.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdGroupLabel.pm index a2e5bc299..6644d4421 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupLabel.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupLabel.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupLabel; +package Google::Ads::GoogleAds::V4::Resources::AdGroupLabel; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupSimulation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupSimulation.pm new file mode 100644 index 000000000..34db35548 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdGroupSimulation.pm @@ -0,0 +1,44 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::AdGroupSimulation; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + adGroupId => $args->{adGroupId}, + cpcBidPointList => $args->{cpcBidPointList}, + cpvBidPointList => $args->{cpvBidPointList}, + endDate => $args->{endDate}, + modificationMethod => $args->{modificationMethod}, + resourceName => $args->{resourceName}, + startDate => $args->{startDate}, + targetCpaPointList => $args->{targetCpaPointList}, + targetRoasPointList => $args->{targetRoasPointList}, + type => $args->{type}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdParameter.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdParameter.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdParameter.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdParameter.pm index 56f662bad..d16335d0a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdParameter.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdParameter.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdParameter; +package Google::Ads::GoogleAds::V4::Resources::AdParameter; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdScheduleView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AdScheduleView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdScheduleView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AdScheduleView.pm index 100f5f603..031498e32 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdScheduleView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AdScheduleView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdScheduleView; +package Google::Ads::GoogleAds::V4::Resources::AdScheduleView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AffiliateLocationFeedData.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AffiliateLocationFeedData.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AffiliateLocationFeedData.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AffiliateLocationFeedData.pm index 5dc65007f..99841d78c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AffiliateLocationFeedData.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AffiliateLocationFeedData.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AffiliateLocationFeedData; +package Google::Ads::GoogleAds::V4::Resources::AffiliateLocationFeedData; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AgeRangeView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AgeRangeView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AgeRangeView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AgeRangeView.pm index 38feb4c05..4b74d91a5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AgeRangeView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AgeRangeView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AgeRangeView; +package Google::Ads::GoogleAds::V4::Resources::AgeRangeView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AppCampaignSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AppCampaignSetting.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AppCampaignSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AppCampaignSetting.pm index db958f22c..cd3d8a9cf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AppCampaignSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AppCampaignSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AppCampaignSetting; +package Google::Ads::GoogleAds::V4::Resources::AppCampaignSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/Asset.pm b/lib/Google/Ads/GoogleAds/V4/Resources/Asset.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/Asset.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/Asset.pm index f66de7e7d..a885c112a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/Asset.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/Asset.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::Asset; +package Google::Ads::GoogleAds::V4::Resources::Asset; use strict; use warnings; @@ -23,6 +23,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { + bookOnGoogleAsset => $args->{bookOnGoogleAsset}, id => $args->{id}, imageAsset => $args->{imageAsset}, mediaBundleAsset => $args->{mediaBundleAsset}, diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AttributeFieldMapping.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AttributeFieldMapping.pm similarity index 96% rename from lib/Google/Ads/GoogleAds/V1/Resources/AttributeFieldMapping.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AttributeFieldMapping.pm index 85c014335..a67d9eebd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AttributeFieldMapping.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AttributeFieldMapping.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AttributeFieldMapping; +package Google::Ads::GoogleAds::V4::Resources::AttributeFieldMapping; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AttributionModelSettings.pm b/lib/Google/Ads/GoogleAds/V4/Resources/AttributionModelSettings.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/AttributionModelSettings.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/AttributionModelSettings.pm index 846f232d3..c647bc3ee 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AttributionModelSettings.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/AttributionModelSettings.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AttributionModelSettings; +package Google::Ads::GoogleAds::V4::Resources::AttributionModelSettings; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MutateJob.pm b/lib/Google/Ads/GoogleAds/V4/Resources/BatchJob.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/MutateJob.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/BatchJob.pm index 5deea5282..8ef2e1f4a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MutateJob.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/BatchJob.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MutateJob; +package Google::Ads::GoogleAds::V4::Resources::BatchJob; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MutateJobMetadata.pm b/lib/Google/Ads/GoogleAds/V4/Resources/BatchJobMetadata.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/MutateJobMetadata.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/BatchJobMetadata.pm index 611762df7..420448fbc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MutateJobMetadata.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/BatchJobMetadata.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MutateJobMetadata; +package Google::Ads::GoogleAds::V4::Resources::BatchJobMetadata; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/BiddingStrategy.pm b/lib/Google/Ads/GoogleAds/V4/Resources/BiddingStrategy.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Resources/BiddingStrategy.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/BiddingStrategy.pm index 443ace451..c5ac76977 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/BiddingStrategy.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/BiddingStrategy.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::BiddingStrategy; +package Google::Ads::GoogleAds::V4::Resources::BiddingStrategy; use strict; use warnings; @@ -28,12 +28,10 @@ sub new { id => $args->{id}, name => $args->{name}, nonRemovedCampaignCount => $args->{nonRemovedCampaignCount}, - pageOnePromoted => $args->{pageOnePromoted}, resourceName => $args->{resourceName}, status => $args->{status}, targetCpa => $args->{targetCpa}, targetImpressionShare => $args->{targetImpressionShare}, - targetOutrankShare => $args->{targetOutrankShare}, targetRoas => $args->{targetRoas}, targetSpend => $args->{targetSpend}, type => $args->{type}}; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/BillingSetup.pm b/lib/Google/Ads/GoogleAds/V4/Resources/BillingSetup.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/BillingSetup.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/BillingSetup.pm index 2864a6f07..56940765a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/BillingSetup.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/BillingSetup.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::BillingSetup; +package Google::Ads::GoogleAds::V4::Resources::BillingSetup; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CallExtensionRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CallExtensionRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/CallExtensionRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CallExtensionRecommendation.pm index a0230bb5f..064b688be 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CallExtensionRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CallExtensionRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CallExtensionRecommendation; +package Google::Ads::GoogleAds::V4::Resources::CallExtensionRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CallReportingSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CallReportingSetting.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CallReportingSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CallReportingSetting.pm index ef55c722d..f1378de55 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CallReportingSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CallReportingSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CallReportingSetting; +package Google::Ads::GoogleAds::V4::Resources::CallReportingSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CalloutExtensionRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CalloutExtensionRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/CalloutExtensionRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CalloutExtensionRecommendation.pm index c9ee0cdf6..cf816e0db 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CalloutExtensionRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CalloutExtensionRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CalloutExtensionRecommendation; +package Google::Ads::GoogleAds::V4::Resources::CalloutExtensionRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/Campaign.pm b/lib/Google/Ads/GoogleAds/V4/Resources/Campaign.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/Campaign.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/Campaign.pm index 97067b957..84f43ec6f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/Campaign.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/Campaign.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::Campaign; +package Google::Ads::GoogleAds::V4::Resources::Campaign; use strict; use warnings; @@ -41,6 +41,7 @@ sub new { hotelSetting => $args->{hotelSetting}, id => $args->{id}, labels => $args->{labels}, + localCampaignSetting => $args->{localCampaignSetting}, manualCpc => $args->{manualCpc}, manualCpm => $args->{manualCpm}, manualCpv => $args->{manualCpv}, @@ -48,6 +49,8 @@ sub new { maximizeConversions => $args->{maximizeConversions}, name => $args->{name}, networkSettings => $args->{networkSettings}, + optimizationGoalSetting => $args->{optimizationGoalSetting}, + optimizationScore => $args->{optimizationScore}, paymentMode => $args->{paymentMode}, percentCpc => $args->{percentCpc}, realTimeBiddingSetting => $args->{realTimeBiddingSetting}, diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignAudienceView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignAudienceView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignAudienceView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignAudienceView.pm index e83f77960..efe51e2a1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignAudienceView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignAudienceView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignAudienceView; +package Google::Ads::GoogleAds::V4::Resources::CampaignAudienceView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignBidModifier.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignBidModifier.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignBidModifier.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignBidModifier.pm index 499fa216c..5470d5a3a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignBidModifier.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignBidModifier.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier; +package Google::Ads::GoogleAds::V4::Resources::CampaignBidModifier; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignBudget.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignBudget.pm similarity index 95% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignBudget.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignBudget.pm index 76be435f9..a1f00c79d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignBudget.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignBudget.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignBudget; +package Google::Ads::GoogleAds::V4::Resources::CampaignBudget; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignBudgetRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignBudgetRecommendation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignBudgetRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignBudgetRecommendation.pm index a80afedd4..19cd9dfa3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignBudgetRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignBudgetRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignBudgetRecommendation; +package Google::Ads::GoogleAds::V4::Resources::CampaignBudgetRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignBudgetRecommendationOption.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignBudgetRecommendationOption.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignBudgetRecommendationOption.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignBudgetRecommendationOption.pm index 267478a27..bf10fa9a8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignBudgetRecommendationOption.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignBudgetRecommendationOption.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignBudgetRecommendationOption; +package Google::Ads::GoogleAds::V4::Resources::CampaignBudgetRecommendationOption; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignCriterion.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignCriterion.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignCriterion.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignCriterion.pm index bb7a4de05..ad69b0466 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignCriterion.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignCriterion.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignCriterion; +package Google::Ads::GoogleAds::V4::Resources::CampaignCriterion; use strict; use warnings; @@ -30,6 +30,7 @@ sub new { carrier => $args->{carrier}, contentLabel => $args->{contentLabel}, criterionId => $args->{criterionId}, + customAffinity => $args->{customAffinity}, device => $args->{device}, gender => $args->{gender}, incomeRange => $args->{incomeRange}, diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignCriterionSimulation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignCriterionSimulation.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignCriterionSimulation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignCriterionSimulation.pm index 00dec6139..25b3573c9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignCriterionSimulation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignCriterionSimulation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignCriterionSimulation; +package Google::Ads::GoogleAds::V4::Resources::CampaignCriterionSimulation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignDraft.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignDraft.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignDraft.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignDraft.pm index 8019cb522..50b18a8a1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignDraft.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignDraft.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignDraft; +package Google::Ads::GoogleAds::V4::Resources::CampaignDraft; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignExperiment.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignExperiment.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignExperiment.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignExperiment.pm index 3cc6bb421..d40efa6a0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignExperiment.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignExperiment.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignExperiment; +package Google::Ads::GoogleAds::V4::Resources::CampaignExperiment; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignExtensionSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignExtensionSetting.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignExtensionSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignExtensionSetting.pm index 08f43a5de..a4a943b1f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignExtensionSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignExtensionSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting; +package Google::Ads::GoogleAds::V4::Resources::CampaignExtensionSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignFeed.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignFeed.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignFeed.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignFeed.pm index 092ba2a67..597305527 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignFeed.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignFeed.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignFeed; +package Google::Ads::GoogleAds::V4::Resources::CampaignFeed; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignLabel.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignLabel.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignLabel.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignLabel.pm index 2d9c8d69a..74890d96b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignLabel.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignLabel.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignLabel; +package Google::Ads::GoogleAds::V4::Resources::CampaignLabel; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignSharedSet.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignSharedSet.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/CampaignSharedSet.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CampaignSharedSet.pm index edcb79ef3..5d10d13b3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CampaignSharedSet.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CampaignSharedSet.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CampaignSharedSet; +package Google::Ads::GoogleAds::V4::Resources::CampaignSharedSet; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CarrierConstant.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CarrierConstant.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/CarrierConstant.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CarrierConstant.pm index d3bed3fdb..cc39e5b26 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CarrierConstant.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CarrierConstant.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CarrierConstant; +package Google::Ads::GoogleAds::V4::Resources::CarrierConstant; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ChangeStatus.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ChangeStatus.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Resources/ChangeStatus.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ChangeStatus.pm index d79c88860..b86f31386 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ChangeStatus.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ChangeStatus.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ChangeStatus; +package Google::Ads::GoogleAds::V4::Resources::ChangeStatus; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ClickView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ClickView.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Resources/ClickView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ClickView.pm index f6b00a1d5..9ae5285fd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ClickView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ClickView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ClickView; +package Google::Ads::GoogleAds::V4::Resources::ClickView; use strict; use warnings; @@ -23,6 +23,7 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { + adGroupAd => $args->{adGroupAd}, areaOfInterest => $args->{areaOfInterest}, gclid => $args->{gclid}, locationOfPresence => $args->{locationOfPresence}, diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ConversionAction.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ConversionAction.pm similarity index 86% rename from lib/Google/Ads/GoogleAds/V1/Resources/ConversionAction.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ConversionAction.pm index 9b600fed5..1c1d71259 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ConversionAction.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ConversionAction.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ConversionAction; +package Google::Ads::GoogleAds::V4::Resources::ConversionAction; use strict; use warnings; @@ -28,14 +28,17 @@ sub new { category => $args->{category}, clickThroughLookbackWindowDays => $args->{clickThroughLookbackWindowDays}, countingType => $args->{countingType}, + firebaseSettings => $args->{firebaseSettings}, id => $args->{id}, includeInConversionsMetric => $args->{includeInConversionsMetric}, + mobileAppVendor => $args->{mobileAppVendor}, name => $args->{name}, ownerCustomer => $args->{ownerCustomer}, phoneCallDurationSeconds => $args->{phoneCallDurationSeconds}, resourceName => $args->{resourceName}, status => $args->{status}, tagSnippets => $args->{tagSnippets}, + thirdPartyAppAnalyticsSettings => $args->{thirdPartyAppAnalyticsSettings}, type => $args->{type}, valueSettings => $args->{valueSettings}, viewThroughLookbackWindowDays => $args->{viewThroughLookbackWindowDays}}; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ConversionTrackingSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ConversionTrackingSetting.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/ConversionTrackingSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ConversionTrackingSetting.pm index 9a41bc264..5f962852b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ConversionTrackingSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ConversionTrackingSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ConversionTrackingSetting; +package Google::Ads::GoogleAds::V4::Resources::ConversionTrackingSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/CurrencyConstant.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CurrencyConstant.pm new file mode 100644 index 000000000..455f011cc --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CurrencyConstant.pm @@ -0,0 +1,39 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::CurrencyConstant; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + billableUnitMicros => $args->{billableUnitMicros}, + code => $args->{code}, + name => $args->{name}, + resourceName => $args->{resourceName}, + symbol => $args->{symbol}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CustomInterest.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CustomInterest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CustomInterest.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CustomInterest.pm index 753dbf9b9..0ada79dbb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CustomInterest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CustomInterest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CustomInterest; +package Google::Ads::GoogleAds::V4::Resources::CustomInterest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CustomInterestMember.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CustomInterestMember.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/CustomInterestMember.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CustomInterestMember.pm index b9d90faf5..4f1496d4a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CustomInterestMember.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CustomInterestMember.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CustomInterestMember; +package Google::Ads::GoogleAds::V4::Resources::CustomInterestMember; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/Customer.pm b/lib/Google/Ads/GoogleAds/V4/Resources/Customer.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/Customer.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/Customer.pm index 1c407e7d6..945c539c7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/Customer.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/Customer.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::Customer; +package Google::Ads::GoogleAds::V4::Resources::Customer; use strict; use warnings; @@ -32,6 +32,7 @@ sub new { hasPartnersBadge => $args->{hasPartnersBadge}, id => $args->{id}, manager => $args->{manager}, + optimizationScore => $args->{optimizationScore}, payPerConversionEligibilityFailureReasons => $args->{payPerConversionEligibilityFailureReasons}, remarketingSetting => $args->{remarketingSetting}, diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/CustomerClient.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerClient.pm new file mode 100644 index 000000000..a6653824c --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerClient.pm @@ -0,0 +1,44 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::CustomerClient; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + clientCustomer => $args->{clientCustomer}, + currencyCode => $args->{currencyCode}, + descriptiveName => $args->{descriptiveName}, + hidden => $args->{hidden}, + id => $args->{id}, + level => $args->{level}, + manager => $args->{manager}, + resourceName => $args->{resourceName}, + testAccount => $args->{testAccount}, + timeZone => $args->{timeZone}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerClientLink.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerClientLink.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CustomerClientLink.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CustomerClientLink.pm index dcf9b1093..815ccc019 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerClientLink.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerClientLink.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CustomerClientLink; +package Google::Ads::GoogleAds::V4::Resources::CustomerClientLink; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerExtensionSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerExtensionSetting.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CustomerExtensionSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CustomerExtensionSetting.pm index 84b1cdf86..a8bbcb4e4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerExtensionSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerExtensionSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CustomerExtensionSetting; +package Google::Ads::GoogleAds::V4::Resources::CustomerExtensionSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerFeed.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerFeed.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CustomerFeed.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CustomerFeed.pm index bd0d1d5e3..07d82f209 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerFeed.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerFeed.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CustomerFeed; +package Google::Ads::GoogleAds::V4::Resources::CustomerFeed; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerLabel.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerLabel.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/CustomerLabel.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CustomerLabel.pm index 907970aa8..001b2384c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerLabel.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerLabel.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CustomerLabel; +package Google::Ads::GoogleAds::V4::Resources::CustomerLabel; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerManagerLink.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerManagerLink.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/CustomerManagerLink.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CustomerManagerLink.pm index c660005c2..cc2518b93 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerManagerLink.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerManagerLink.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CustomerManagerLink; +package Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerNegativeCriterion.pm b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerNegativeCriterion.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/CustomerNegativeCriterion.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/CustomerNegativeCriterion.pm index 8c14c30b2..8284f7f0e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerNegativeCriterion.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/CustomerNegativeCriterion.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CustomerNegativeCriterion; +package Google::Ads::GoogleAds::V4::Resources::CustomerNegativeCriterion; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/DetailPlacementView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/DetailPlacementView.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/DetailPlacementView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/DetailPlacementView.pm index 3010f6b51..93602c6bd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/DetailPlacementView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/DetailPlacementView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::DetailPlacementView; +package Google::Ads::GoogleAds::V4::Resources::DetailPlacementView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/DisplayKeywordView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/DisplayKeywordView.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/DisplayKeywordView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/DisplayKeywordView.pm index 00d3ef154..782f8e4f2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/DisplayKeywordView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/DisplayKeywordView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::DisplayKeywordView; +package Google::Ads::GoogleAds::V4::Resources::DisplayKeywordView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerClient.pm b/lib/Google/Ads/GoogleAds/V4/Resources/DistanceView.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Resources/CustomerClient.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/DistanceView.pm index 348334a79..5a7c4e5a6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/CustomerClient.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/DistanceView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::CustomerClient; +package Google::Ads::GoogleAds::V4::Resources::DistanceView; use strict; use warnings; @@ -23,9 +23,8 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { - clientCustomer => $args->{clientCustomer}, - hidden => $args->{hidden}, - level => $args->{level}, + distanceBucket => $args->{distanceBucket}, + metricSystem => $args->{metricSystem}, resourceName => $args->{resourceName}}; # Delete the unassigned fields in this object for a more concise JSON payload diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/DomainCategory.pm b/lib/Google/Ads/GoogleAds/V4/Resources/DomainCategory.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/DomainCategory.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/DomainCategory.pm index a2e008bee..d9bc01970 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/DomainCategory.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/DomainCategory.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::DomainCategory; +package Google::Ads::GoogleAds::V4::Resources::DomainCategory; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupSimulation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/DynamicSearchAdsSearchTermView.pm similarity index 66% rename from lib/Google/Ads/GoogleAds/V1/Resources/AdGroupSimulation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/DynamicSearchAdsSearchTermView.pm index fb8c37ff7..8e3875ea2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/AdGroupSimulation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/DynamicSearchAdsSearchTermView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::AdGroupSimulation; +package Google::Ads::GoogleAds::V4::Resources::DynamicSearchAdsSearchTermView; use strict; use warnings; @@ -23,15 +23,14 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { - adGroupId => $args->{adGroupId}, - cpcBidPointList => $args->{cpcBidPointList}, - cpvBidPointList => $args->{cpvBidPointList}, - endDate => $args->{endDate}, - modificationMethod => $args->{modificationMethod}, + hasMatchingKeyword => $args->{hasMatchingKeyword}, + hasNegativeKeyword => $args->{hasNegativeKeyword}, + hasNegativeUrl => $args->{hasNegativeUrl}, + headline => $args->{headline}, + landingPage => $args->{landingPage}, + pageUrl => $args->{pageUrl}, resourceName => $args->{resourceName}, - startDate => $args->{startDate}, - targetCpaPointList => $args->{targetCpaPointList}, - type => $args->{type}}; + searchTerm => $args->{searchTerm}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/DynamicSearchAdsSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/DynamicSearchAdsSetting.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/DynamicSearchAdsSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/DynamicSearchAdsSetting.pm index 3c21c4ad7..248b6c7d7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/DynamicSearchAdsSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/DynamicSearchAdsSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::DynamicSearchAdsSetting; +package Google::Ads::GoogleAds::V4::Resources::DynamicSearchAdsSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/EnhancedCpcOptInRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/EnhancedCpcOptInRecommendation.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/EnhancedCpcOptInRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/EnhancedCpcOptInRecommendation.pm index 4ce3fde6b..84f06c859 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/EnhancedCpcOptInRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/EnhancedCpcOptInRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::EnhancedCpcOptInRecommendation; +package Google::Ads::GoogleAds::V4::Resources::EnhancedCpcOptInRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ExpandedLandingPageView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ExpandedLandingPageView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/ExpandedLandingPageView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ExpandedLandingPageView.pm index 52ec3ae29..f20b90ba4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ExpandedLandingPageView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ExpandedLandingPageView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ExpandedLandingPageView; +package Google::Ads::GoogleAds::V4::Resources::ExpandedLandingPageView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ExtensionFeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ExtensionFeedItem.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Resources/ExtensionFeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ExtensionFeedItem.pm index ec52ea517..70d87ae25 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ExtensionFeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ExtensionFeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ExtensionFeedItem; +package Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem; use strict; use warnings; @@ -31,6 +31,8 @@ sub new { device => $args->{device}, endDateTime => $args->{endDateTime}, extensionType => $args->{extensionType}, + hotelCalloutFeedItem => $args->{hotelCalloutFeedItem}, + id => $args->{id}, locationFeedItem => $args->{locationFeedItem}, priceFeedItem => $args->{priceFeedItem}, promotionFeedItem => $args->{promotionFeedItem}, @@ -42,6 +44,7 @@ sub new { targetedAdGroup => $args->{targetedAdGroup}, targetedCampaign => $args->{targetedCampaign}, targetedGeoTargetConstant => $args->{targetedGeoTargetConstant}, + targetedKeyword => $args->{targetedKeyword}, textMessageFeedItem => $args->{textMessageFeedItem}}; # Delete the unassigned fields in this object for a more concise JSON payload diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/Feed.pm b/lib/Google/Ads/GoogleAds/V4/Resources/Feed.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Resources/Feed.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/Feed.pm index aa19b1c33..9d8289874 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/Feed.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/Feed.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::Feed; +package Google::Ads::GoogleAds::V4::Resources::Feed; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/FeedAttribute.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FeedAttribute.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/FeedAttribute.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/FeedAttribute.pm index 281bd6b68..0b603dc10 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/FeedAttribute.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FeedAttribute.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::FeedAttribute; +package Google::Ads::GoogleAds::V4::Resources::FeedAttribute; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/FeedAttributeOperation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FeedAttributeOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/FeedAttributeOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/FeedAttributeOperation.pm index c8c775901..728d0dd04 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/FeedAttributeOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FeedAttributeOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::FeedAttributeOperation; +package Google::Ads::GoogleAds::V4::Resources::FeedAttributeOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItem.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItem.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Resources/FeedItem.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/FeedItem.pm index a0582e18b..946b3df0c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItem.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItem.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::FeedItem; +package Google::Ads::GoogleAds::V4::Resources::FeedItem; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItemAttributeValue.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItemAttributeValue.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/FeedItemAttributeValue.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/FeedItemAttributeValue.pm index e924e10ec..4586de8d4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItemAttributeValue.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItemAttributeValue.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::FeedItemAttributeValue; +package Google::Ads::GoogleAds::V4::Resources::FeedItemAttributeValue; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItemPlaceholderPolicyInfo.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItemPlaceholderPolicyInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/FeedItemPlaceholderPolicyInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/FeedItemPlaceholderPolicyInfo.pm index 8cebbca15..f288728e1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItemPlaceholderPolicyInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItemPlaceholderPolicyInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::FeedItemPlaceholderPolicyInfo; +package Google::Ads::GoogleAds::V4::Resources::FeedItemPlaceholderPolicyInfo; use strict; use warnings; @@ -25,7 +25,7 @@ sub new { my $self = { approvalStatus => $args->{approvalStatus}, feedMappingResourceName => $args->{feedMappingResourceName}, - placeholderType => $args->{placeholderType}, + placeholderTypeEnum => $args->{placeholderTypeEnum}, policyTopicEntries => $args->{policyTopicEntries}, qualityApprovalStatus => $args->{qualityApprovalStatus}, qualityDisapprovalReasons => $args->{qualityDisapprovalReasons}, diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItemTarget.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItemTarget.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Resources/FeedItemTarget.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/FeedItemTarget.pm index e8ba1f183..cc1fa42e4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItemTarget.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItemTarget.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::FeedItemTarget; +package Google::Ads::GoogleAds::V4::Resources::FeedItemTarget; use strict; use warnings; @@ -32,7 +32,8 @@ sub new { feedItemTargetType => $args->{feedItemTargetType}, geoTargetConstant => $args->{geoTargetConstant}, keyword => $args->{keyword}, - resourceName => $args->{resourceName}}; + resourceName => $args->{resourceName}, + status => $args->{status}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItemValidationError.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItemValidationError.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/FeedItemValidationError.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/FeedItemValidationError.pm index b1702cd42..db642177d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/FeedItemValidationError.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FeedItemValidationError.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::FeedItemValidationError; +package Google::Ads::GoogleAds::V4::Resources::FeedItemValidationError; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/FeedMapping.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FeedMapping.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/FeedMapping.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/FeedMapping.pm index 1c718057c..927a2f72c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/FeedMapping.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FeedMapping.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::FeedMapping; +package Google::Ads::GoogleAds::V4::Resources::FeedMapping; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/FeedPlaceholderView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FeedPlaceholderView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/FeedPlaceholderView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/FeedPlaceholderView.pm index a993a7423..048410fe9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/FeedPlaceholderView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FeedPlaceholderView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::FeedPlaceholderView; +package Google::Ads::GoogleAds::V4::Resources::FeedPlaceholderView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/FirebaseSettings.pm b/lib/Google/Ads/GoogleAds/V4/Resources/FirebaseSettings.pm new file mode 100644 index 000000000..511bdf047 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/FirebaseSettings.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::FirebaseSettings; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + eventName => $args->{eventName}, + projectId => $args->{projectId}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/GenderView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/GenderView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/GenderView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/GenderView.pm index 5b862fd0b..e8c8b6813 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/GenderView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/GenderView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::GenderView; +package Google::Ads::GoogleAds::V4::Resources::GenderView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/GeoTargetConstant.pm b/lib/Google/Ads/GoogleAds/V4/Resources/GeoTargetConstant.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/GeoTargetConstant.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/GeoTargetConstant.pm index 193182df9..047136c51 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/GeoTargetConstant.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/GeoTargetConstant.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::GeoTargetConstant; +package Google::Ads::GoogleAds::V4::Resources::GeoTargetConstant; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/GeoTargetTypeSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/GeoTargetTypeSetting.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/GeoTargetTypeSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/GeoTargetTypeSetting.pm index 594523ee7..4ab2b3288 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/GeoTargetTypeSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/GeoTargetTypeSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::GeoTargetTypeSetting; +package Google::Ads::GoogleAds::V4::Resources::GeoTargetTypeSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/GeographicView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/GeographicView.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Resources/GeographicView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/GeographicView.pm index d679dba6d..9c7e91815 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/GeographicView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/GeographicView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::GeographicView; +package Google::Ads::GoogleAds::V4::Resources::GeographicView; use strict; use warnings; @@ -23,9 +23,9 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { - countryGeoTargetConstant => $args->{countryGeoTargetConstant}, - locationType => $args->{locationType}, - resourceName => $args->{resourceName}}; + countryCriterionId => $args->{countryCriterionId}, + locationType => $args->{locationType}, + resourceName => $args->{resourceName}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/GoogleAdsField.pm b/lib/Google/Ads/GoogleAds/V4/Resources/GoogleAdsField.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Resources/GoogleAdsField.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/GoogleAdsField.pm index f0b696165..394d8dcbd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/GoogleAdsField.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/GoogleAdsField.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::GoogleAdsField; +package Google::Ads::GoogleAds::V4::Resources::GoogleAdsField; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/GroupPlacementView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/GroupPlacementView.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/GroupPlacementView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/GroupPlacementView.pm index 4fbefee2a..93b59c411 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/GroupPlacementView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/GroupPlacementView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::GroupPlacementView; +package Google::Ads::GoogleAds::V4::Resources::GroupPlacementView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/HotelGroupView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/HotelGroupView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/HotelGroupView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/HotelGroupView.pm index 120d6af9d..559f2e608 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/HotelGroupView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/HotelGroupView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::HotelGroupView; +package Google::Ads::GoogleAds::V4::Resources::HotelGroupView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/HotelPerformanceView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/HotelPerformanceView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/HotelPerformanceView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/HotelPerformanceView.pm index 37e7169f0..3a1e1188f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/HotelPerformanceView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/HotelPerformanceView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::HotelPerformanceView; +package Google::Ads::GoogleAds::V4::Resources::HotelPerformanceView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/HotelSettingInfo.pm b/lib/Google/Ads/GoogleAds/V4/Resources/HotelSettingInfo.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/HotelSettingInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/HotelSettingInfo.pm index 82bfb5f05..2e3e91c83 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/HotelSettingInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/HotelSettingInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::HotelSettingInfo; +package Google::Ads::GoogleAds::V4::Resources::HotelSettingInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/RunMutateJobRequest.pm b/lib/Google/Ads/GoogleAds/V4/Resources/IncomeRangeView.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/RunMutateJobRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/IncomeRangeView.pm index 69a3f049f..60aa61358 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/RunMutateJobRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/IncomeRangeView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService::RunMutateJobRequest; +package Google::Ads::GoogleAds::V4::Resources::IncomeRangeView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/Invoice.pm b/lib/Google/Ads/GoogleAds/V4/Resources/Invoice.pm new file mode 100644 index 000000000..ba6e13e25 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/Invoice.pm @@ -0,0 +1,52 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::Invoice; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + accountBudgetSummaries => $args->{accountBudgetSummaries}, + billingSetup => $args->{billingSetup}, + correctedInvoice => $args->{correctedInvoice}, + currencyCode => $args->{currencyCode}, + dueDate => $args->{dueDate}, + id => $args->{id}, + invoiceLevelAdjustmentsMicros => $args->{invoiceLevelAdjustmentsMicros}, + issueDate => $args->{issueDate}, + paymentsAccountId => $args->{paymentsAccountId}, + paymentsProfileId => $args->{paymentsProfileId}, + pdfUrl => $args->{pdfUrl}, + replacedInvoices => $args->{replacedInvoices}, + resourceName => $args->{resourceName}, + serviceDateRange => $args->{serviceDateRange}, + subtotalAmountMicros => $args->{subtotalAmountMicros}, + taxAmountMicros => $args->{taxAmountMicros}, + totalAmountMicros => $args->{totalAmountMicros}, + type => $args->{type}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordMatchTypeRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordMatchTypeRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordMatchTypeRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordMatchTypeRecommendation.pm index bed62c6cd..211049eed 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordMatchTypeRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordMatchTypeRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordMatchTypeRecommendation; +package Google::Ads::GoogleAds::V4::Resources::KeywordMatchTypeRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlan.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlan.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlan.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlan.pm index 5fcadef8b..f37077f8e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlan.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlan.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordPlan; +package Google::Ads::GoogleAds::V4::Resources::KeywordPlan; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanAdGroup.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanAdGroup.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanAdGroup.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanAdGroup.pm index f070b3729..e00896444 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanAdGroup.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanAdGroup.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup; +package Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroup; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanKeyword.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanAdGroupKeyword.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanKeyword.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanAdGroupKeyword.pm index 5dbaead84..3a0954adc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanKeyword.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanAdGroupKeyword.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword; +package Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword; use strict; use warnings; @@ -27,6 +27,7 @@ sub new { id => $args->{id}, keywordPlanAdGroup => $args->{keywordPlanAdGroup}, matchType => $args->{matchType}, + negative => $args->{negative}, resourceName => $args->{resourceName}, text => $args->{text}}; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanCampaign.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanCampaign.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanCampaign.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanCampaign.pm index 6f8e6a53f..97e496338 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanCampaign.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanCampaign.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign; +package Google::Ads::GoogleAds::V4::Resources::KeywordPlanCampaign; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanNegativeKeyword.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanCampaignKeyword.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanNegativeKeyword.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanCampaignKeyword.pm index 9fdcee61c..784285bed 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanNegativeKeyword.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanCampaignKeyword.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword; +package Google::Ads::GoogleAds::V4::Resources::KeywordPlanCampaignKeyword; use strict; use warnings; @@ -26,6 +26,7 @@ sub new { id => $args->{id}, keywordPlanCampaign => $args->{keywordPlanCampaign}, matchType => $args->{matchType}, + negative => $args->{negative}, resourceName => $args->{resourceName}, text => $args->{text}}; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanForecastPeriod.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanForecastPeriod.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanForecastPeriod.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanForecastPeriod.pm index 5f79c5677..43c83a576 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanForecastPeriod.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanForecastPeriod.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordPlanForecastPeriod; +package Google::Ads::GoogleAds::V4::Resources::KeywordPlanForecastPeriod; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanGeoTarget.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanGeoTarget.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanGeoTarget.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanGeoTarget.pm index fa2ff90e0..1b377ffbc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordPlanGeoTarget.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordPlanGeoTarget.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordPlanGeoTarget; +package Google::Ads::GoogleAds::V4::Resources::KeywordPlanGeoTarget; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordRecommendation.pm index c346cd169..b154762ab 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordRecommendation; +package Google::Ads::GoogleAds::V4::Resources::KeywordRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/KeywordView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/KeywordView.pm index c0c068671..3eebed708 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/KeywordView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/KeywordView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::KeywordView; +package Google::Ads::GoogleAds::V4::Resources::KeywordView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/Label.pm b/lib/Google/Ads/GoogleAds/V4/Resources/Label.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/Label.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/Label.pm index a69e9a208..505d7ebc5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/Label.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/Label.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::Label; +package Google::Ads::GoogleAds::V4::Resources::Label; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/LandingPageView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/LandingPageView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/LandingPageView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/LandingPageView.pm index 3344a8cdf..0e3170c81 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/LandingPageView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/LandingPageView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::LandingPageView; +package Google::Ads::GoogleAds::V4::Resources::LandingPageView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/LanguageConstant.pm b/lib/Google/Ads/GoogleAds/V4/Resources/LanguageConstant.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/LanguageConstant.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/LanguageConstant.pm index 5aa167c20..48f0f78cc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/LanguageConstant.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/LanguageConstant.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::LanguageConstant; +package Google::Ads::GoogleAds::V4::Resources::LanguageConstant; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/LocalCampaignSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/LocalCampaignSetting.pm new file mode 100644 index 000000000..5a9f27be8 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/LocalCampaignSetting.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::LocalCampaignSetting; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {locationSourceType => $args->{locationSourceType}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/LocationView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/LocationView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/LocationView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/LocationView.pm index b573ac064..36d3e268e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/LocationView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/LocationView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::LocationView; +package Google::Ads::GoogleAds::V4::Resources::LocationView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ManagedPlacementView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ManagedPlacementView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/ManagedPlacementView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ManagedPlacementView.pm index a3c749616..36d431f5c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ManagedPlacementView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ManagedPlacementView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ManagedPlacementView; +package Google::Ads::GoogleAds::V4::Resources::ManagedPlacementView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MaximizeClicksOptInRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MaximizeClicksOptInRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/MaximizeClicksOptInRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MaximizeClicksOptInRecommendation.pm index ca7f703bc..698804f67 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MaximizeClicksOptInRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MaximizeClicksOptInRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MaximizeClicksOptInRecommendation; +package Google::Ads::GoogleAds::V4::Resources::MaximizeClicksOptInRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MaximizeConversionsOptInRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MaximizeConversionsOptInRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/MaximizeConversionsOptInRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MaximizeConversionsOptInRecommendation.pm index 9e60e3760..e06e74ae6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MaximizeConversionsOptInRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MaximizeConversionsOptInRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MaximizeConversionsOptInRecommendation; +package Google::Ads::GoogleAds::V4::Resources::MaximizeConversionsOptInRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MediaAudio.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MediaAudio.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/MediaAudio.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MediaAudio.pm index f84f26e6f..43bab8f9a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MediaAudio.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MediaAudio.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MediaAudio; +package Google::Ads::GoogleAds::V4::Resources::MediaAudio; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MediaBundle.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MediaBundle.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/MediaBundle.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MediaBundle.pm index 5be1fb827..b1c0a007c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MediaBundle.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MediaBundle.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MediaBundle; +package Google::Ads::GoogleAds::V4::Resources::MediaBundle; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MediaFile.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MediaFile.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/MediaFile.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MediaFile.pm index 3c83c14f9..1da44d4a9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MediaFile.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MediaFile.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MediaFile; +package Google::Ads::GoogleAds::V4::Resources::MediaFile; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MediaImage.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MediaImage.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/MediaImage.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MediaImage.pm index 44d08045e..d88d0db91 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MediaImage.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MediaImage.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MediaImage; +package Google::Ads::GoogleAds::V4::Resources::MediaImage; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MediaVideo.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MediaVideo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/MediaVideo.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MediaVideo.pm index 0d5978f4e..a3f45a05a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MediaVideo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MediaVideo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MediaVideo; +package Google::Ads::GoogleAds::V4::Resources::MediaVideo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MerchantCenterLink.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MerchantCenterLink.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/MerchantCenterLink.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MerchantCenterLink.pm index 43ca399ae..bcd9ec3a6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MerchantCenterLink.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MerchantCenterLink.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink; +package Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MobileAppCategoryConstant.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MobileAppCategoryConstant.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/MobileAppCategoryConstant.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MobileAppCategoryConstant.pm index 1d1ff7957..68114cdd0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MobileAppCategoryConstant.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MobileAppCategoryConstant.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MobileAppCategoryConstant; +package Google::Ads::GoogleAds::V4::Resources::MobileAppCategoryConstant; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MobileDeviceConstant.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MobileDeviceConstant.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/MobileDeviceConstant.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MobileDeviceConstant.pm index d5228dc49..7d33a5b72 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MobileDeviceConstant.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MobileDeviceConstant.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MobileDeviceConstant; +package Google::Ads::GoogleAds::V4::Resources::MobileDeviceConstant; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/MoveUnusedBudgetRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/MoveUnusedBudgetRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/MoveUnusedBudgetRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/MoveUnusedBudgetRecommendation.pm index 29dabd8e5..802d7b8db 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/MoveUnusedBudgetRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/MoveUnusedBudgetRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::MoveUnusedBudgetRecommendation; +package Google::Ads::GoogleAds::V4::Resources::MoveUnusedBudgetRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/NetworkSettings.pm b/lib/Google/Ads/GoogleAds/V4/Resources/NetworkSettings.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/NetworkSettings.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/NetworkSettings.pm index a06436386..2f523f81a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/NetworkSettings.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/NetworkSettings.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::NetworkSettings; +package Google::Ads::GoogleAds::V4::Resources::NetworkSettings; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/OAuthInfo.pm b/lib/Google/Ads/GoogleAds/V4/Resources/OAuthInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/OAuthInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/OAuthInfo.pm index 478315d9f..f6407a303 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/OAuthInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/OAuthInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::OAuthInfo; +package Google::Ads::GoogleAds::V4::Resources::OAuthInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/OfflineUserDataJob.pm b/lib/Google/Ads/GoogleAds/V4/Resources/OfflineUserDataJob.pm new file mode 100644 index 000000000..2b1b264a1 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/OfflineUserDataJob.pm @@ -0,0 +1,42 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::OfflineUserDataJob; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + customerMatchUserListMetadata => $args->{customerMatchUserListMetadata}, + externalId => $args->{externalId}, + failureReason => $args->{failureReason}, + id => $args->{id}, + resourceName => $args->{resourceName}, + status => $args->{status}, + storeSalesMetadata => $args->{storeSalesMetadata}, + type => $args->{type}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/OperatingSystemVersionConstant.pm b/lib/Google/Ads/GoogleAds/V4/Resources/OperatingSystemVersionConstant.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/OperatingSystemVersionConstant.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/OperatingSystemVersionConstant.pm index f13ec4490..1029bac36 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/OperatingSystemVersionConstant.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/OperatingSystemVersionConstant.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::OperatingSystemVersionConstant; +package Google::Ads::GoogleAds::V4::Resources::OperatingSystemVersionConstant; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/OptimizationGoalSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/OptimizationGoalSetting.pm new file mode 100644 index 000000000..cc3f27fc9 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/OptimizationGoalSetting.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::OptimizationGoalSetting; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {optimizationGoalTypes => $args->{optimizationGoalTypes}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/OptimizeAdRotationRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/OptimizeAdRotationRecommendation.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/OptimizeAdRotationRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/OptimizeAdRotationRecommendation.pm index a65653320..66296b60b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/OptimizeAdRotationRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/OptimizeAdRotationRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::OptimizeAdRotationRecommendation; +package Google::Ads::GoogleAds::V4::Resources::OptimizeAdRotationRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/PaidOrganicSearchTermView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/PaidOrganicSearchTermView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/PaidOrganicSearchTermView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/PaidOrganicSearchTermView.pm index 5e29358d4..91759f78d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/PaidOrganicSearchTermView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/PaidOrganicSearchTermView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::PaidOrganicSearchTermView; +package Google::Ads::GoogleAds::V4::Resources::PaidOrganicSearchTermView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ParentalStatusView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ParentalStatusView.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/ParentalStatusView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ParentalStatusView.pm index db5beaa98..43940f5cb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ParentalStatusView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ParentalStatusView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ParentalStatusView; +package Google::Ads::GoogleAds::V4::Resources::ParentalStatusView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/PaymentsAccount.pm b/lib/Google/Ads/GoogleAds/V4/Resources/PaymentsAccount.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Resources/PaymentsAccount.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/PaymentsAccount.pm index 04641a214..7643fb48c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/PaymentsAccount.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/PaymentsAccount.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::PaymentsAccount; +package Google::Ads::GoogleAds::V4::Resources::PaymentsAccount; use strict; use warnings; @@ -25,6 +25,7 @@ sub new { my $self = { currencyCode => $args->{currencyCode}, name => $args->{name}, + payingManagerCustomer => $args->{payingManagerCustomer}, paymentsAccountId => $args->{paymentsAccountId}, paymentsProfileId => $args->{paymentsProfileId}, resourceName => $args->{resourceName}, diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/PaymentsAccountInfo.pm b/lib/Google/Ads/GoogleAds/V4/Resources/PaymentsAccountInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/PaymentsAccountInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/PaymentsAccountInfo.pm index 0fc6219c6..80c8c90a1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/PaymentsAccountInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/PaymentsAccountInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::PaymentsAccountInfo; +package Google::Ads::GoogleAds::V4::Resources::PaymentsAccountInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/PendingAccountBudgetProposal.pm b/lib/Google/Ads/GoogleAds/V4/Resources/PendingAccountBudgetProposal.pm similarity index 94% rename from lib/Google/Ads/GoogleAds/V1/Resources/PendingAccountBudgetProposal.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/PendingAccountBudgetProposal.pm index 9b48e28d9..1b720a20b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/PendingAccountBudgetProposal.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/PendingAccountBudgetProposal.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::PendingAccountBudgetProposal; +package Google::Ads::GoogleAds::V4::Resources::PendingAccountBudgetProposal; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/PlacesLocationFeedData.pm b/lib/Google/Ads/GoogleAds/V4/Resources/PlacesLocationFeedData.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/PlacesLocationFeedData.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/PlacesLocationFeedData.pm index 506582f51..a7692612c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/PlacesLocationFeedData.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/PlacesLocationFeedData.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::PlacesLocationFeedData; +package Google::Ads::GoogleAds::V4::Resources::PlacesLocationFeedData; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/PositionEstimates.pm b/lib/Google/Ads/GoogleAds/V4/Resources/PositionEstimates.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/PositionEstimates.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/PositionEstimates.pm index 48638e506..fa7b53a6e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/PositionEstimates.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/PositionEstimates.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::PositionEstimates; +package Google::Ads::GoogleAds::V4::Resources::PositionEstimates; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ProductBiddingCategoryConstant.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ProductBiddingCategoryConstant.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/ProductBiddingCategoryConstant.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ProductBiddingCategoryConstant.pm index cda208d30..30a0dbabc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ProductBiddingCategoryConstant.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ProductBiddingCategoryConstant.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ProductBiddingCategoryConstant; +package Google::Ads::GoogleAds::V4::Resources::ProductBiddingCategoryConstant; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ProductGroupView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ProductGroupView.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/ProductGroupView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ProductGroupView.pm index c7b5a7445..a2eedb2e8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ProductGroupView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ProductGroupView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ProductGroupView; +package Google::Ads::GoogleAds::V4::Resources::ProductGroupView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/QualityInfo.pm b/lib/Google/Ads/GoogleAds/V4/Resources/QualityInfo.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/QualityInfo.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/QualityInfo.pm index aed508923..c39667258 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/QualityInfo.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/QualityInfo.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::QualityInfo; +package Google::Ads::GoogleAds::V4::Resources::QualityInfo; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/Recommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/Recommendation.pm similarity index 96% rename from lib/Google/Ads/GoogleAds/V1/Resources/Recommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/Recommendation.pm index 7c1fd1ef2..fd61ea3b0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/Recommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/Recommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::Recommendation; +package Google::Ads::GoogleAds::V4::Resources::Recommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/RecommendationImpact.pm b/lib/Google/Ads/GoogleAds/V4/Resources/RecommendationImpact.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/RecommendationImpact.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/RecommendationImpact.pm index 514e83552..eab465ad2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/RecommendationImpact.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/RecommendationImpact.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::RecommendationImpact; +package Google::Ads::GoogleAds::V4::Resources::RecommendationImpact; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/RecommendationMetrics.pm b/lib/Google/Ads/GoogleAds/V4/Resources/RecommendationMetrics.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/RecommendationMetrics.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/RecommendationMetrics.pm index 89a4f0c9d..085f77234 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/RecommendationMetrics.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/RecommendationMetrics.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::RecommendationMetrics; +package Google::Ads::GoogleAds::V4::Resources::RecommendationMetrics; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/RemarketingAction.pm b/lib/Google/Ads/GoogleAds/V4/Resources/RemarketingAction.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/RemarketingAction.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/RemarketingAction.pm index 613a5ee2a..170da4779 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/RemarketingAction.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/RemarketingAction.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::RemarketingAction; +package Google::Ads::GoogleAds::V4::Resources::RemarketingAction; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/RemarketingSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/RemarketingSetting.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/RemarketingSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/RemarketingSetting.pm index 365ad7f69..9f5281c7c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/RemarketingSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/RemarketingSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::RemarketingSetting; +package Google::Ads::GoogleAds::V4::Resources::RemarketingSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/SearchPartnersOptInRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/SearchPartnersOptInRecommendation.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/SearchPartnersOptInRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/SearchPartnersOptInRecommendation.pm index 90ea0a022..863fb96e7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/SearchPartnersOptInRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/SearchPartnersOptInRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::SearchPartnersOptInRecommendation; +package Google::Ads::GoogleAds::V4::Resources::SearchPartnersOptInRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/SearchTermView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/SearchTermView.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/SearchTermView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/SearchTermView.pm index 6c2f78f66..d2360e5e0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/SearchTermView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/SearchTermView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::SearchTermView; +package Google::Ads::GoogleAds::V4::Resources::SearchTermView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/SelectiveOptimization.pm b/lib/Google/Ads/GoogleAds/V4/Resources/SelectiveOptimization.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/SelectiveOptimization.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/SelectiveOptimization.pm index 8c03cf6d1..f05b710f9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/SelectiveOptimization.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/SelectiveOptimization.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::SelectiveOptimization; +package Google::Ads::GoogleAds::V4::Resources::SelectiveOptimization; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/SharedCriterion.pm b/lib/Google/Ads/GoogleAds/V4/Resources/SharedCriterion.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/SharedCriterion.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/SharedCriterion.pm index 500af653c..8fd9ec729 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/SharedCriterion.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/SharedCriterion.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::SharedCriterion; +package Google::Ads::GoogleAds::V4::Resources::SharedCriterion; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/SharedSet.pm b/lib/Google/Ads/GoogleAds/V4/Resources/SharedSet.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/SharedSet.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/SharedSet.pm index f996e00dd..d52cf5b59 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/SharedSet.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/SharedSet.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::SharedSet; +package Google::Ads::GoogleAds::V4::Resources::SharedSet; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ShoppingPerformanceView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ShoppingPerformanceView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/ShoppingPerformanceView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ShoppingPerformanceView.pm index 32ee5a937..c8300e004 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ShoppingPerformanceView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ShoppingPerformanceView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ShoppingPerformanceView; +package Google::Ads::GoogleAds::V4::Resources::ShoppingPerformanceView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ShoppingSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ShoppingSetting.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/ShoppingSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ShoppingSetting.pm index 002c9d888..f8d8c21e5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ShoppingSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ShoppingSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ShoppingSetting; +package Google::Ads::GoogleAds::V4::Resources::ShoppingSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/SitelinkExtensionRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/SitelinkExtensionRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/SitelinkExtensionRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/SitelinkExtensionRecommendation.pm index 2cb12aa99..83198442c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/SitelinkExtensionRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/SitelinkExtensionRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::SitelinkExtensionRecommendation; +package Google::Ads::GoogleAds::V4::Resources::SitelinkExtensionRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/TargetCpaOptInRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/TargetCpaOptInRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/TargetCpaOptInRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/TargetCpaOptInRecommendation.pm index c59a86f0b..4ab5a6767 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/TargetCpaOptInRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/TargetCpaOptInRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::TargetCpaOptInRecommendation; +package Google::Ads::GoogleAds::V4::Resources::TargetCpaOptInRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/TargetCpaOptInRecommendationOption.pm b/lib/Google/Ads/GoogleAds/V4/Resources/TargetCpaOptInRecommendationOption.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/TargetCpaOptInRecommendationOption.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/TargetCpaOptInRecommendationOption.pm index 8e2472c92..5cf92591b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/TargetCpaOptInRecommendationOption.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/TargetCpaOptInRecommendationOption.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::TargetCpaOptInRecommendationOption; +package Google::Ads::GoogleAds::V4::Resources::TargetCpaOptInRecommendationOption; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/TextAdRecommendation.pm b/lib/Google/Ads/GoogleAds/V4/Resources/TextAdRecommendation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/TextAdRecommendation.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/TextAdRecommendation.pm index 3428a0c3f..368c45d3c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/TextAdRecommendation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/TextAdRecommendation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::TextAdRecommendation; +package Google::Ads::GoogleAds::V4::Resources::TextAdRecommendation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/ThirdPartyAppAnalyticsLink.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ThirdPartyAppAnalyticsLink.pm new file mode 100644 index 000000000..a4b950fb4 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ThirdPartyAppAnalyticsLink.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::ThirdPartyAppAnalyticsLink; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + resourceName => $args->{resourceName}, + shareableLinkId => $args->{shareableLinkId}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/ThirdPartyAppAnalyticsLinkIdentifier.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ThirdPartyAppAnalyticsLinkIdentifier.pm new file mode 100644 index 000000000..546bb6366 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ThirdPartyAppAnalyticsLinkIdentifier.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::ThirdPartyAppAnalyticsLinkIdentifier; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + appAnalyticsProviderId => $args->{appAnalyticsProviderId}, + appId => $args->{appId}, + appVendor => $args->{appVendor}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/ThirdPartyAppAnalyticsSettings.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ThirdPartyAppAnalyticsSettings.pm new file mode 100644 index 000000000..0c3bfb205 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ThirdPartyAppAnalyticsSettings.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::ThirdPartyAppAnalyticsSettings; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {eventName => $args->{eventName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/TopicConstant.pm b/lib/Google/Ads/GoogleAds/V4/Resources/TopicConstant.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/TopicConstant.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/TopicConstant.pm index 87bd4594a..3498f29e7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/TopicConstant.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/TopicConstant.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::TopicConstant; +package Google::Ads::GoogleAds::V4::Resources::TopicConstant; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/TopicView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/TopicView.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/TopicView.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/TopicView.pm index 27a1d9189..ddf95d5f8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/TopicView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/TopicView.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::TopicView; +package Google::Ads::GoogleAds::V4::Resources::TopicView; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/TrackingSetting.pm b/lib/Google/Ads/GoogleAds/V4/Resources/TrackingSetting.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Resources/TrackingSetting.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/TrackingSetting.pm index fe4578bd1..bc1d00164 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/TrackingSetting.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/TrackingSetting.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::TrackingSetting; +package Google::Ads::GoogleAds::V4::Resources::TrackingSetting; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/UserInterest.pm b/lib/Google/Ads/GoogleAds/V4/Resources/UserInterest.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/UserInterest.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/UserInterest.pm index 40342d92e..69619a33e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/UserInterest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/UserInterest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::UserInterest; +package Google::Ads::GoogleAds::V4::Resources::UserInterest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/UserList.pm b/lib/Google/Ads/GoogleAds/V4/Resources/UserList.pm similarity index 96% rename from lib/Google/Ads/GoogleAds/V1/Resources/UserList.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/UserList.pm index b702dc232..5b2a4c296 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/UserList.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/UserList.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::UserList; +package Google::Ads::GoogleAds::V4::Resources::UserList; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Resources/UserLocationView.pm b/lib/Google/Ads/GoogleAds/V4/Resources/UserLocationView.pm new file mode 100644 index 000000000..f3cb09dde --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Resources/UserLocationView.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Resources::UserLocationView; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + countryCriterionId => $args->{countryCriterionId}, + resourceName => $args->{resourceName}, + targetingLocation => $args->{targetingLocation}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/ValueSettings.pm b/lib/Google/Ads/GoogleAds/V4/Resources/ValueSettings.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Resources/ValueSettings.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/ValueSettings.pm index c70468a96..ffd97aa62 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/ValueSettings.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/ValueSettings.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::ValueSettings; +package Google::Ads::GoogleAds::V4::Resources::ValueSettings; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/VanityPharma.pm b/lib/Google/Ads/GoogleAds/V4/Resources/VanityPharma.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Resources/VanityPharma.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/VanityPharma.pm index 262b86855..6d17623e7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/VanityPharma.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/VanityPharma.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::VanityPharma; +package Google::Ads::GoogleAds::V4::Resources::VanityPharma; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/Video.pm b/lib/Google/Ads/GoogleAds/V4/Resources/Video.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Resources/Video.pm rename to lib/Google/Ads/GoogleAds/V4/Resources/Video.pm index 69453b657..712e5d200 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/Video.pm +++ b/lib/Google/Ads/GoogleAds/V4/Resources/Video.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::Video; +package Google::Ads::GoogleAds::V4::Resources::Video; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService.pm index 41789a77a..ed102fc22 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalService; +package Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal'; + 'Google::Ads::GoogleAds::V4::Resources::AccountBudgetProposal'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/accountBudgetProposals:mutate'; + my $request_path = 'v4/customers/{+customerId}/accountBudgetProposals:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalService::MutateAccountBudgetProposalResponse'; +'Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalService::MutateAccountBudgetProposalResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/AccountBudgetProposalOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/AccountBudgetProposalOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/AccountBudgetProposalOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/AccountBudgetProposalOperation.pm index f4b8af6ab..665bad605 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/AccountBudgetProposalOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/AccountBudgetProposalOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalService::AccountBudgetProposalOperation; +package Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalService::AccountBudgetProposalOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/GetAccountBudgetProposalRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/GetAccountBudgetProposalRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/GetAccountBudgetProposalRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/GetAccountBudgetProposalRequest.pm index e5769b3e5..d2f9504ca 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/GetAccountBudgetProposalRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/GetAccountBudgetProposalRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalService::GetAccountBudgetProposalRequest; +package Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalService::GetAccountBudgetProposalRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/MutateAccountBudgetProposalRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/MutateAccountBudgetProposalRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/MutateAccountBudgetProposalRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/MutateAccountBudgetProposalRequest.pm index 77e311df6..639e20c61 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/MutateAccountBudgetProposalRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/MutateAccountBudgetProposalRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalService::MutateAccountBudgetProposalRequest; +package Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalService::MutateAccountBudgetProposalRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResponse.pm index b4318a607..e0e12d43c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalService::MutateAccountBudgetProposalResponse; +package Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalService::MutateAccountBudgetProposalResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResult.pm index e32d1f48a..dc180c6d2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetProposalService/MutateAccountBudgetProposalResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalService::MutateAccountBudgetProposalResult; +package Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalService::MutateAccountBudgetProposalResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetService.pm index 3fcd813d9..eb3211d07 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AccountBudgetService; +package Google::Ads::GoogleAds::V4::Services::AccountBudgetService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AccountBudget'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AccountBudget'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetService/GetAccountBudgetRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetService/GetAccountBudgetRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetService/GetAccountBudgetRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetService/GetAccountBudgetRequest.pm index 1c7c60639..cb7f78bb7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AccountBudgetService/GetAccountBudgetRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountBudgetService/GetAccountBudgetRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AccountBudgetService::GetAccountBudgetRequest; +package Google::Ads::GoogleAds::V4::Services::AccountBudgetService::GetAccountBudgetRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService.pm similarity index 65% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService.pm index 9ffc1a7ba..d7e062ef5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,19 +12,18 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordService; +package Google::Ads::GoogleAds::V4::Services::AccountLinkService; use strict; use warnings; use base qw(Google::Ads::GoogleAds::BaseService); sub get { - my $self = shift; - my $request_body = shift; - my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword'; + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AccountLink'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/keywordPlanKeywords:mutate'; + my $request_path = 'v4/customers/{+customerId}/accountLinks:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordService::MutateKeywordPlanKeywordsResponse'; +'Google::Ads::GoogleAds::V4::Services::AccountLinkService::MutateAccountLinkResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/AccountLinkOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/AccountLinkOperation.pm new file mode 100644 index 000000000..8b33cdbee --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/AccountLinkOperation.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::AccountLinkService::AccountLinkOperation; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + create => $args->{create}, + remove => $args->{remove}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/CreateMutateJobResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/GetAccountLinkRequest.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/CreateMutateJobResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/GetAccountLinkRequest.pm index 50e56cca0..9f07b86a8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/CreateMutateJobResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/GetAccountLinkRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService::CreateMutateJobResponse; +package Google::Ads::GoogleAds::V4::Services::AccountLinkService::GetAccountLinkRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/MutateAccountLinkRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/MutateAccountLinkRequest.pm new file mode 100644 index 000000000..070dfd5cf --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/MutateAccountLinkRequest.pm @@ -0,0 +1,38 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::AccountLinkService::MutateAccountLinkRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + customerId => $args->{customerId}, + operation => $args->{operation}, + partialFailure => $args->{partialFailure}, + validateOnly => $args->{validateOnly}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/MutateAccountLinkResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/MutateAccountLinkResponse.pm new file mode 100644 index 000000000..1bbc1ef1e --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/MutateAccountLinkResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::AccountLinkService::MutateAccountLinkResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {result => $args->{result}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/GetKeywordPlanKeywordRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/MutateAccountLinkResult.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/GetKeywordPlanKeywordRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/MutateAccountLinkResult.pm index 3e2d7ef01..f4061e417 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/GetKeywordPlanKeywordRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AccountLinkService/MutateAccountLinkResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordService::GetKeywordPlanKeywordRequest; +package Google::Ads::GoogleAds::V4::Services::AccountLinkService::MutateAccountLinkResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdAssetViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdAssetViewService.pm new file mode 100644 index 000000000..669b1c4d4 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdAssetViewService.pm @@ -0,0 +1,33 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::AdGroupAdAssetViewService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub get { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = + 'Google::Ads::GoogleAds::V4::Resources::AdGroupAdAssetView'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdAssetViewService/GetAdGroupAdAssetViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdAssetViewService/GetAdGroupAdAssetViewRequest.pm new file mode 100644 index 000000000..08fb67c3d --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdAssetViewService/GetAdGroupAdAssetViewRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::AdGroupAdAssetViewService::GetAdGroupAdAssetViewRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService.pm index a9c8a58c7..ff14f0473 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelService; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AdGroupAdLabel'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/adGroupAdLabels:mutate'; + my $request_path = 'v4/customers/{+customerId}/adGroupAdLabels:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelService::MutateAdGroupAdLabelsResponse'; +'Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelService::MutateAdGroupAdLabelsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/AdGroupAdLabelOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/AdGroupAdLabelOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/AdGroupAdLabelOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/AdGroupAdLabelOperation.pm index da4a636db..a3becb9a6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/AdGroupAdLabelOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/AdGroupAdLabelOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelService::AdGroupAdLabelOperation; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelService::AdGroupAdLabelOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/GetAdGroupAdLabelRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/GetAdGroupAdLabelRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/GetAdGroupAdLabelRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/GetAdGroupAdLabelRequest.pm index f3fe4575e..3a9b12864 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/GetAdGroupAdLabelRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/GetAdGroupAdLabelRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelService::GetAdGroupAdLabelRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelService::GetAdGroupAdLabelRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/MutateAdGroupAdLabelResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/MutateAdGroupAdLabelResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/MutateAdGroupAdLabelResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/MutateAdGroupAdLabelResult.pm index c355b9718..5ede19af9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/MutateAdGroupAdLabelResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/MutateAdGroupAdLabelResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelService::MutateAdGroupAdLabelResult; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelService::MutateAdGroupAdLabelResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsRequest.pm index 9b6f46b67..68d1c2da0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelService::MutateAdGroupAdLabelsRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelService::MutateAdGroupAdLabelsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsResponse.pm index f7bf3d8dc..c50f9d741 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdLabelService/MutateAdGroupAdLabelsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelService::MutateAdGroupAdLabelsResponse; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelService::MutateAdGroupAdLabelsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService.pm index 1919eaad2..6c97f79bd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdService; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AdGroupAd'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AdGroupAd'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/adGroupAds:mutate'; + my $request_path = 'v4/customers/{+customerId}/adGroupAds:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdGroupAdService::MutateAdGroupAdsResponse'; +'Google::Ads::GoogleAds::V4::Services::AdGroupAdService::MutateAdGroupAdsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/AdGroupAdOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/AdGroupAdOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/AdGroupAdOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/AdGroupAdOperation.pm index 7dcbdb4c8..ada8c2164 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/AdGroupAdOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/AdGroupAdOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdService::AdGroupAdOperation; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdService::AdGroupAdOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/GetAdGroupAdRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/GetAdGroupAdRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/GetAdGroupAdRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/GetAdGroupAdRequest.pm index db02c170e..b1c09129b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/GetAdGroupAdRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/GetAdGroupAdRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdService::GetAdGroupAdRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdService::GetAdGroupAdRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/MutateAdGroupAdResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/MutateAdGroupAdResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/MutateAdGroupAdResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/MutateAdGroupAdResult.pm index 24310a3fc..14fa10217 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/MutateAdGroupAdResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/MutateAdGroupAdResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdService::MutateAdGroupAdResult; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdService::MutateAdGroupAdResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/MutateAdGroupAdsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/MutateAdGroupAdsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/MutateAdGroupAdsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/MutateAdGroupAdsRequest.pm index 8ec24a2c6..db17e324c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/MutateAdGroupAdsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/MutateAdGroupAdsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdService::MutateAdGroupAdsRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdService::MutateAdGroupAdsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/MutateAdGroupAdsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/MutateAdGroupAdsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/MutateAdGroupAdsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/MutateAdGroupAdsResponse.pm index 6697c592b..ee4fa6a18 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAdService/MutateAdGroupAdsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAdService/MutateAdGroupAdsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAdService::MutateAdGroupAdsResponse; +package Google::Ads::GoogleAds::V4::Services::AdGroupAdService::MutateAdGroupAdsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAudienceViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAudienceViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAudienceViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAudienceViewService.pm index 00b8fdf64..2215a0362 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAudienceViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAudienceViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAudienceViewService; +package Google::Ads::GoogleAds::V4::Services::AdGroupAudienceViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::AdGroupAudienceView'; + 'Google::Ads::GoogleAds::V4::Resources::AdGroupAudienceView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAudienceViewService/GetAdGroupAudienceViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAudienceViewService/GetAdGroupAudienceViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupAudienceViewService/GetAdGroupAudienceViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupAudienceViewService/GetAdGroupAudienceViewRequest.pm index 0666b79ae..0f8deb2c3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupAudienceViewService/GetAdGroupAudienceViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupAudienceViewService/GetAdGroupAudienceViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupAudienceViewService::GetAdGroupAudienceViewRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupAudienceViewService::GetAdGroupAudienceViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService.pm index 55cf18bc5..e04332ffa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierService; +package Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::AdGroupBidModifier'; + 'Google::Ads::GoogleAds::V4::Resources::AdGroupBidModifier'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/adGroupBidModifiers:mutate'; + my $request_path = 'v4/customers/{+customerId}/adGroupBidModifiers:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierService::MutateAdGroupBidModifiersResponse'; +'Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::MutateAdGroupBidModifiersResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/AdGroupBidModifierOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/AdGroupBidModifierOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/AdGroupBidModifierOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/AdGroupBidModifierOperation.pm index 342990fca..41b6efe04 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/AdGroupBidModifierOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/AdGroupBidModifierOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierService::AdGroupBidModifierOperation; +package Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::AdGroupBidModifierOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/GetAdGroupBidModifierRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/GetAdGroupBidModifierRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/GetAdGroupBidModifierRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/GetAdGroupBidModifierRequest.pm index bb2f664ad..439860a37 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/GetAdGroupBidModifierRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/GetAdGroupBidModifierRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierService::GetAdGroupBidModifierRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::GetAdGroupBidModifierRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/MutateAdGroupBidModifierResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/MutateAdGroupBidModifierResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/MutateAdGroupBidModifierResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/MutateAdGroupBidModifierResult.pm index e4f2a87d9..cbf5df0b6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/MutateAdGroupBidModifierResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/MutateAdGroupBidModifierResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierService::MutateAdGroupBidModifierResult; +package Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::MutateAdGroupBidModifierResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersRequest.pm index 63f1c51d4..a4df3ceef 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierService::MutateAdGroupBidModifiersRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::MutateAdGroupBidModifiersRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersResponse.pm index 7c145bbe7..515cdfe9f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupBidModifierService/MutateAdGroupBidModifiersResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierService::MutateAdGroupBidModifiersResponse; +package Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierService::MutateAdGroupBidModifiersResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService.pm index 6b36177e4..ac3d8ebb8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelService; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel'; + 'Google::Ads::GoogleAds::V4::Resources::AdGroupCriterionLabel'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/adGroupCriterionLabels:mutate'; + my $request_path = 'v4/customers/{+customerId}/adGroupCriterionLabels:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelService::MutateAdGroupCriterionLabelsResponse'; +'Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelService::MutateAdGroupCriterionLabelsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/AdGroupCriterionLabelOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/AdGroupCriterionLabelOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/AdGroupCriterionLabelOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/AdGroupCriterionLabelOperation.pm index 5ef82e18f..555cccb48 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/AdGroupCriterionLabelOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/AdGroupCriterionLabelOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelService::AdGroupCriterionLabelOperation; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelService::AdGroupCriterionLabelOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/GetAdGroupCriterionLabelRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/GetAdGroupCriterionLabelRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/GetAdGroupCriterionLabelRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/GetAdGroupCriterionLabelRequest.pm index 9445f35c6..39f9a96e2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/GetAdGroupCriterionLabelRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/GetAdGroupCriterionLabelRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelService::GetAdGroupCriterionLabelRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelService::GetAdGroupCriterionLabelRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelResult.pm index 3a47f32ee..c93834638 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelService::MutateAdGroupCriterionLabelResult; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelService::MutateAdGroupCriterionLabelResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsRequest.pm index 6eda71f76..abb163125 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelService::MutateAdGroupCriterionLabelsRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelService::MutateAdGroupCriterionLabelsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsResponse.pm index 087a18c22..ef6a28167 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionLabelService/MutateAdGroupCriterionLabelsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelService::MutateAdGroupCriterionLabelsResponse; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelService::MutateAdGroupCriterionLabelsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService.pm index 76ac2684f..38b307314 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionService; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/adGroupCriteria:mutate'; + my $request_path = 'v4/customers/{+customerId}/adGroupCriteria:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdGroupCriterionService::MutateAdGroupCriteriaResponse'; +'Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::MutateAdGroupCriteriaResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/AdGroupCriterionOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/AdGroupCriterionOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/AdGroupCriterionOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/AdGroupCriterionOperation.pm index 3a5634b2c..f398c3b1d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/AdGroupCriterionOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/AdGroupCriterionOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionService::AdGroupCriterionOperation; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::AdGroupCriterionOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/GetAdGroupCriterionRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/GetAdGroupCriterionRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/GetAdGroupCriterionRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/GetAdGroupCriterionRequest.pm index 69e53b7e5..0c4f236b6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/GetAdGroupCriterionRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/GetAdGroupCriterionRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionService::GetAdGroupCriterionRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::GetAdGroupCriterionRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/MutateAdGroupCriteriaRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/MutateAdGroupCriteriaRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/MutateAdGroupCriteriaRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/MutateAdGroupCriteriaRequest.pm index 582064525..405f57e51 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/MutateAdGroupCriteriaRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/MutateAdGroupCriteriaRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionService::MutateAdGroupCriteriaRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::MutateAdGroupCriteriaRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/MutateAdGroupCriteriaResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/MutateAdGroupCriteriaResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/MutateAdGroupCriteriaResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/MutateAdGroupCriteriaResponse.pm index a8af986ae..14c4a8eea 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/MutateAdGroupCriteriaResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/MutateAdGroupCriteriaResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionService::MutateAdGroupCriteriaResponse; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::MutateAdGroupCriteriaResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/MutateAdGroupCriterionResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/MutateAdGroupCriterionResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/MutateAdGroupCriterionResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/MutateAdGroupCriterionResult.pm index 8492ce8cb..2c2b89cba 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionService/MutateAdGroupCriterionResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionService/MutateAdGroupCriterionResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionService::MutateAdGroupCriterionResult; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionService::MutateAdGroupCriterionResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionSimulationService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionSimulationService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionSimulationService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionSimulationService.pm index ce8a86afb..2b143e3e8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionSimulationService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionSimulationService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionSimulationService; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionSimulationService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionSimulation'; + 'Google::Ads::GoogleAds::V4::Resources::AdGroupCriterionSimulation'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionSimulationService/GetAdGroupCriterionSimulationRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionSimulationService/GetAdGroupCriterionSimulationRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionSimulationService/GetAdGroupCriterionSimulationRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionSimulationService/GetAdGroupCriterionSimulationRequest.pm index 6833db1d9..853025187 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupCriterionSimulationService/GetAdGroupCriterionSimulationRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupCriterionSimulationService/GetAdGroupCriterionSimulationRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupCriterionSimulationService::GetAdGroupCriterionSimulationRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupCriterionSimulationService::GetAdGroupCriterionSimulationRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService.pm index 1918575df..c02dd6dbd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingService; +package Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting'; + 'Google::Ads::GoogleAds::V4::Resources::AdGroupExtensionSetting'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -35,9 +35,9 @@ sub mutate { my $request_body = shift; my $http_method = 'POST'; my $request_path = - 'v1/customers/{+customerId}/adGroupExtensionSettings:mutate'; + 'v4/customers/{+customerId}/adGroupExtensionSettings:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingService::MutateAdGroupExtensionSettingsResponse'; +'Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingService::MutateAdGroupExtensionSettingsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/AdGroupExtensionSettingOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/AdGroupExtensionSettingOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/AdGroupExtensionSettingOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/AdGroupExtensionSettingOperation.pm index 4bdaa67f3..2d028ed52 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/AdGroupExtensionSettingOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/AdGroupExtensionSettingOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingService::AdGroupExtensionSettingOperation; +package Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingService::AdGroupExtensionSettingOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/GetAdGroupExtensionSettingRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/GetAdGroupExtensionSettingRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/GetAdGroupExtensionSettingRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/GetAdGroupExtensionSettingRequest.pm index f5674f827..fdaea618c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/GetAdGroupExtensionSettingRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/GetAdGroupExtensionSettingRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingService::GetAdGroupExtensionSettingRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingService::GetAdGroupExtensionSettingRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingResult.pm index 8ce9176b6..2c96f5852 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingService::MutateAdGroupExtensionSettingResult; +package Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingService::MutateAdGroupExtensionSettingResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsRequest.pm index 1ef82cabc..f07a8a661 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingService::MutateAdGroupExtensionSettingsRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingService::MutateAdGroupExtensionSettingsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsResponse.pm index 96a8f39df..e4c0ca407 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupExtensionSettingService/MutateAdGroupExtensionSettingsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingService::MutateAdGroupExtensionSettingsResponse; +package Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingService::MutateAdGroupExtensionSettingsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService.pm index 7b5d974ea..b62d7f689 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupFeedService; +package Google::Ads::GoogleAds::V4::Services::AdGroupFeedService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AdGroupFeed'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AdGroupFeed'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/adGroupFeeds:mutate'; + my $request_path = 'v4/customers/{+customerId}/adGroupFeeds:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdGroupFeedService::MutateAdGroupFeedsResponse'; +'Google::Ads::GoogleAds::V4::Services::AdGroupFeedService::MutateAdGroupFeedsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/AdGroupFeedOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/AdGroupFeedOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/AdGroupFeedOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/AdGroupFeedOperation.pm index d087aadf4..4139d3a0a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/AdGroupFeedOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/AdGroupFeedOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupFeedService::AdGroupFeedOperation; +package Google::Ads::GoogleAds::V4::Services::AdGroupFeedService::AdGroupFeedOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/GetAdGroupFeedRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/GetAdGroupFeedRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/GetAdGroupFeedRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/GetAdGroupFeedRequest.pm index 91e04695d..61e3d56e8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/GetAdGroupFeedRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/GetAdGroupFeedRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupFeedService::GetAdGroupFeedRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupFeedService::GetAdGroupFeedRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/MutateAdGroupFeedResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/MutateAdGroupFeedResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/MutateAdGroupFeedResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/MutateAdGroupFeedResult.pm index cafe6e597..f43d9fbab 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/MutateAdGroupFeedResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/MutateAdGroupFeedResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupFeedService::MutateAdGroupFeedResult; +package Google::Ads::GoogleAds::V4::Services::AdGroupFeedService::MutateAdGroupFeedResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/MutateAdGroupFeedsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/MutateAdGroupFeedsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/MutateAdGroupFeedsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/MutateAdGroupFeedsRequest.pm index 19023346d..84510b1d2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/MutateAdGroupFeedsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/MutateAdGroupFeedsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupFeedService::MutateAdGroupFeedsRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupFeedService::MutateAdGroupFeedsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/MutateAdGroupFeedsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/MutateAdGroupFeedsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/MutateAdGroupFeedsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/MutateAdGroupFeedsResponse.pm index 582acf587..68445d47f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupFeedService/MutateAdGroupFeedsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupFeedService/MutateAdGroupFeedsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupFeedService::MutateAdGroupFeedsResponse; +package Google::Ads::GoogleAds::V4::Services::AdGroupFeedService::MutateAdGroupFeedsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService.pm index 44806df90..3da2fa3d5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupLabelService; +package Google::Ads::GoogleAds::V4::Services::AdGroupLabelService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AdGroupLabel'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AdGroupLabel'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/adGroupLabels:mutate'; + my $request_path = 'v4/customers/{+customerId}/adGroupLabels:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdGroupLabelService::MutateAdGroupLabelsResponse'; +'Google::Ads::GoogleAds::V4::Services::AdGroupLabelService::MutateAdGroupLabelsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/AdGroupLabelOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/AdGroupLabelOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/AdGroupLabelOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/AdGroupLabelOperation.pm index 240c94e8d..00f0257ed 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/AdGroupLabelOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/AdGroupLabelOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupLabelService::AdGroupLabelOperation; +package Google::Ads::GoogleAds::V4::Services::AdGroupLabelService::AdGroupLabelOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/GetAdGroupLabelRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/GetAdGroupLabelRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/GetAdGroupLabelRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/GetAdGroupLabelRequest.pm index 6a9ea20f0..3d8b3097c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/GetAdGroupLabelRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/GetAdGroupLabelRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupLabelService::GetAdGroupLabelRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupLabelService::GetAdGroupLabelRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/MutateAdGroupLabelResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/MutateAdGroupLabelResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/MutateAdGroupLabelResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/MutateAdGroupLabelResult.pm index 113b283ee..ef8e66b1a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/MutateAdGroupLabelResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/MutateAdGroupLabelResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupLabelService::MutateAdGroupLabelResult; +package Google::Ads::GoogleAds::V4::Services::AdGroupLabelService::MutateAdGroupLabelResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/MutateAdGroupLabelsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/MutateAdGroupLabelsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/MutateAdGroupLabelsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/MutateAdGroupLabelsRequest.pm index 8eddbf958..540942e32 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/MutateAdGroupLabelsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/MutateAdGroupLabelsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupLabelService::MutateAdGroupLabelsRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupLabelService::MutateAdGroupLabelsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/MutateAdGroupLabelsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/MutateAdGroupLabelsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/MutateAdGroupLabelsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/MutateAdGroupLabelsResponse.pm index 7aa7c98fe..5beef420a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupLabelService/MutateAdGroupLabelsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupLabelService/MutateAdGroupLabelsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupLabelService::MutateAdGroupLabelsResponse; +package Google::Ads::GoogleAds::V4::Services::AdGroupLabelService::MutateAdGroupLabelsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupService.pm index 362ce6318..2d87ebb0b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupService; +package Google::Ads::GoogleAds::V4::Services::AdGroupService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AdGroup'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AdGroup'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/adGroups:mutate'; + my $request_path = 'v4/customers/{+customerId}/adGroups:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdGroupService::MutateAdGroupsResponse'; +'Google::Ads::GoogleAds::V4::Services::AdGroupService::MutateAdGroupsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/AdGroupOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/AdGroupOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/AdGroupOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/AdGroupOperation.pm index 094d8c400..3bde6b30f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/AdGroupOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/AdGroupOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupService::AdGroupOperation; +package Google::Ads::GoogleAds::V4::Services::AdGroupService::AdGroupOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/GetAdGroupRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/GetAdGroupRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/GetAdGroupRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/GetAdGroupRequest.pm index 230eefce4..2f1d0df75 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/GetAdGroupRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/GetAdGroupRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupService::GetAdGroupRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupService::GetAdGroupRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/MutateAdGroupResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/MutateAdGroupResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/MutateAdGroupResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/MutateAdGroupResult.pm index ecafcb1fd..d1adcc3e6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/MutateAdGroupResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/MutateAdGroupResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupService::MutateAdGroupResult; +package Google::Ads::GoogleAds::V4::Services::AdGroupService::MutateAdGroupResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/MutateAdGroupsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/MutateAdGroupsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/MutateAdGroupsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/MutateAdGroupsRequest.pm index 39b1ca352..4beff22fa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/MutateAdGroupsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/MutateAdGroupsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupService::MutateAdGroupsRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupService::MutateAdGroupsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/MutateAdGroupsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/MutateAdGroupsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/MutateAdGroupsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/MutateAdGroupsResponse.pm index 8ef12c4b3..ac682f06d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupService/MutateAdGroupsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupService/MutateAdGroupsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupService::MutateAdGroupsResponse; +package Google::Ads::GoogleAds::V4::Services::AdGroupService::MutateAdGroupsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupSimulationService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupSimulationService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupSimulationService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupSimulationService.pm index 2267ef620..96bb766c2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupSimulationService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupSimulationService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupSimulationService; +package Google::Ads::GoogleAds::V4::Services::AdGroupSimulationService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::AdGroupSimulation'; + 'Google::Ads::GoogleAds::V4::Resources::AdGroupSimulation'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupSimulationService/GetAdGroupSimulationRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupSimulationService/GetAdGroupSimulationRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdGroupSimulationService/GetAdGroupSimulationRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdGroupSimulationService/GetAdGroupSimulationRequest.pm index 45d5a0fad..9925905c2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdGroupSimulationService/GetAdGroupSimulationRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdGroupSimulationService/GetAdGroupSimulationRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdGroupSimulationService::GetAdGroupSimulationRequest; +package Google::Ads::GoogleAds::V4::Services::AdGroupSimulationService::GetAdGroupSimulationRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/AdParameterService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdParameterService.pm index 1f0cc0201..40a479a62 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdParameterService; +package Google::Ads::GoogleAds::V4::Services::AdParameterService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AdParameter'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AdParameter'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/adParameters:mutate'; + my $request_path = 'v4/customers/{+customerId}/adParameters:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::AdParameterService::MutateAdParametersResponse'; +'Google::Ads::GoogleAds::V4::Services::AdParameterService::MutateAdParametersResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/AdParameterOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/AdParameterOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/AdParameterOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/AdParameterOperation.pm index d85b36033..3eea5dc3a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/AdParameterOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/AdParameterOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdParameterService::AdParameterOperation; +package Google::Ads::GoogleAds::V4::Services::AdParameterService::AdParameterOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/GetAdParameterRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/GetAdParameterRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/GetAdParameterRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/GetAdParameterRequest.pm index 2262a475f..480b5f0d8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/GetAdParameterRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/GetAdParameterRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdParameterService::GetAdParameterRequest; +package Google::Ads::GoogleAds::V4::Services::AdParameterService::GetAdParameterRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/MutateAdParameterResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/MutateAdParameterResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/MutateAdParameterResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/MutateAdParameterResult.pm index 337c85fc3..3176f7196 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/MutateAdParameterResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/MutateAdParameterResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdParameterService::MutateAdParameterResult; +package Google::Ads::GoogleAds::V4::Services::AdParameterService::MutateAdParameterResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/MutateAdParametersRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/MutateAdParametersRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/MutateAdParametersRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/MutateAdParametersRequest.pm index 7dd7eedcc..055e91948 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/MutateAdParametersRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/MutateAdParametersRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdParameterService::MutateAdParametersRequest; +package Google::Ads::GoogleAds::V4::Services::AdParameterService::MutateAdParametersRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/MutateAdParametersResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/MutateAdParametersResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/MutateAdParametersResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/MutateAdParametersResponse.pm index 7cef98d4b..266d235e7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdParameterService/MutateAdParametersResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdParameterService/MutateAdParametersResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdParameterService::MutateAdParametersResponse; +package Google::Ads::GoogleAds::V4::Services::AdParameterService::MutateAdParametersResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdScheduleViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdScheduleViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/AdScheduleViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdScheduleViewService.pm index 9246025fd..5435e64db 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdScheduleViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdScheduleViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdScheduleViewService; +package Google::Ads::GoogleAds::V4::Services::AdScheduleViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AdScheduleView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AdScheduleView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AdScheduleViewService/GetAdScheduleViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdScheduleViewService/GetAdScheduleViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AdScheduleViewService/GetAdScheduleViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdScheduleViewService/GetAdScheduleViewRequest.pm index d698ba943..37deabbcd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AdScheduleViewService/GetAdScheduleViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdScheduleViewService/GetAdScheduleViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AdScheduleViewService::GetAdScheduleViewRequest; +package Google::Ads::GoogleAds::V4::Services::AdScheduleViewService::GetAdScheduleViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdService.pm similarity index 64% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdService.pm index f4531ecc3..1372a65d4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,31 +12,30 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsService; +package Google::Ads::GoogleAds::V4::Services::AdService; use strict; use warnings; use base qw(Google::Ads::GoogleAds::BaseService); -sub mutate { - my $self = shift; - my $request_body = shift; - my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/googleAds:mutate'; - my $response_type = -'Google::Ads::GoogleAds::V1::Services::GoogleAdsService::MutateGoogleAdsResponse'; +sub get { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::Ad'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); } -sub search { +sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/googleAds:search'; + my $request_path = 'v4/customers/{+customerId}/ads:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::GoogleAdsService::SearchGoogleAdsResponse'; + 'Google::Ads::GoogleAds::V4::Services::AdService::MutateAdsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V4/Services/AdService/AdOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdService/AdOperation.pm new file mode 100644 index 000000000..840eb2046 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdService/AdOperation.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::AdService::AdOperation; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + update => $args->{update}, + updateMask => $args->{updateMask}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/GetMutateJobRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdService/GetAdRequest.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/GetMutateJobRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AdService/GetAdRequest.pm index 953726ec6..f93c620d5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/GetMutateJobRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdService/GetAdRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService::GetMutateJobRequest; +package Google::Ads::GoogleAds::V4::Services::AdService::GetAdRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/AdService/MutateAdResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdService/MutateAdResult.pm new file mode 100644 index 000000000..938f92e60 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdService/MutateAdResult.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::AdService::MutateAdResult; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/AdService/MutateAdsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdService/MutateAdsRequest.pm new file mode 100644 index 000000000..a1a1738ed --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdService/MutateAdsRequest.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::AdService::MutateAdsRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + customerId => $args->{customerId}, + operations => $args->{operations}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/AdService/MutateAdsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AdService/MutateAdsResponse.pm new file mode 100644 index 000000000..387d1c9ec --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/AdService/MutateAdsResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::AdService::MutateAdsResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {results => $args->{results}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AgeRangeViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AgeRangeViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/AgeRangeViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AgeRangeViewService.pm index b37e83cc7..c58a3adae 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AgeRangeViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AgeRangeViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AgeRangeViewService; +package Google::Ads::GoogleAds::V4::Services::AgeRangeViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::AgeRangeView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::AgeRangeView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AgeRangeViewService/GetAgeRangeViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AgeRangeViewService/GetAgeRangeViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AgeRangeViewService/GetAgeRangeViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AgeRangeViewService/GetAgeRangeViewRequest.pm index 181508780..cd65932b7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AgeRangeViewService/GetAgeRangeViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AgeRangeViewService/GetAgeRangeViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AgeRangeViewService::GetAgeRangeViewRequest; +package Google::Ads::GoogleAds::V4::Services::AgeRangeViewService::GetAgeRangeViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AssetService.pm b/lib/Google/Ads/GoogleAds/V4/Services/AssetService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/AssetService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AssetService.pm index 6bdd81c42..e673060f3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AssetService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AssetService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AssetService; +package Google::Ads::GoogleAds::V4::Services::AssetService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::Asset'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::Asset'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/assets:mutate'; + my $request_path = 'v4/customers/{+customerId}/assets:mutate'; my $response_type = - 'Google::Ads::GoogleAds::V1::Services::AssetService::MutateAssetsResponse'; + 'Google::Ads::GoogleAds::V4::Services::AssetService::MutateAssetsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/AssetOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/AssetOperation.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Services/AssetService/AssetOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AssetService/AssetOperation.pm index 41704e03c..cb253e305 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/AssetOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/AssetOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AssetService::AssetOperation; +package Google::Ads::GoogleAds::V4::Services::AssetService::AssetOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/GetAssetRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/GetAssetRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AssetService/GetAssetRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AssetService/GetAssetRequest.pm index 78d8311b9..56cc3484a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/GetAssetRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/GetAssetRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AssetService::GetAssetRequest; +package Google::Ads::GoogleAds::V4::Services::AssetService::GetAssetRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/MutateAssetResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/MutateAssetResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AssetService/MutateAssetResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AssetService/MutateAssetResult.pm index 7d9555199..e548e6d92 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/MutateAssetResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/MutateAssetResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AssetService::MutateAssetResult; +package Google::Ads::GoogleAds::V4::Services::AssetService::MutateAssetResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/MutateAssetsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/MutateAssetsRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AssetService/MutateAssetsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AssetService/MutateAssetsRequest.pm index cd794f589..f13899453 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/MutateAssetsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/MutateAssetsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AssetService::MutateAssetsRequest; +package Google::Ads::GoogleAds::V4::Services::AssetService::MutateAssetsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/MutateAssetsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/MutateAssetsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/AssetService/MutateAssetsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/AssetService/MutateAssetsResponse.pm index 9cc9d792d..d02399c4c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/AssetService/MutateAssetsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/AssetService/MutateAssetsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::AssetService::MutateAssetsResponse; +package Google::Ads::GoogleAds::V4::Services::AssetService::MutateAssetsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService.pm similarity index 70% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BatchJobService.pm index fae209922..4c6a92bbc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService; +package Google::Ads::GoogleAds::V4::Services::BatchJobService; use strict; use warnings; @@ -22,21 +22,9 @@ sub add_operations { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/{+resourceName}:addOperations'; + my $request_path = 'v4/{+resourceName}:addOperations'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::MutateJobService::AddMutateJobOperationsResponse'; - - return $self->SUPER::call($http_method, $request_path, $request_body, - $response_type); -} - -sub create { - my $self = shift; - my $request_body = shift; - my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/mutateJobs:create'; - my $response_type = -'Google::Ads::GoogleAds::V1::Services::MutateJobService::CreateMutateJobResponse'; +'Google::Ads::GoogleAds::V4::Services::BatchJobService::AddBatchJobOperationsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -46,8 +34,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::MutateJob'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::BatchJob'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -57,9 +45,21 @@ sub list_results { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}:listResults'; + my $request_path = 'v4/{+resourceName}:listResults'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::BatchJobService::ListBatchJobResultsResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub mutate { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/customers/{+customerId}/batchJobs:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::MutateJobService::ListMutateJobResultsResponse'; +'Google::Ads::GoogleAds::V4::Services::BatchJobService::MutateBatchJobResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -69,7 +69,7 @@ sub run { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/{+resourceName}:run'; + my $request_path = 'v4/{+resourceName}:run'; my $response_type = 'Google::Ads::GoogleAds::LongRunning::Operation'; return $self->SUPER::call($http_method, $request_path, $request_body, diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/AddMutateJobOperationsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/AddBatchJobOperationsRequest.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/AddMutateJobOperationsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/AddBatchJobOperationsRequest.pm index c964f7d5d..35465c9f8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/AddMutateJobOperationsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/AddBatchJobOperationsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService::AddMutateJobOperationsRequest; +package Google::Ads::GoogleAds::V4::Services::BatchJobService::AddBatchJobOperationsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/AddMutateJobOperationsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/AddBatchJobOperationsResponse.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/AddMutateJobOperationsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/AddBatchJobOperationsResponse.pm index fb060ebc6..7c6bffd2c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/AddMutateJobOperationsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/AddBatchJobOperationsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService::AddMutateJobOperationsResponse; +package Google::Ads::GoogleAds::V4::Services::BatchJobService::AddBatchJobOperationsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/BatchJobOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/BatchJobOperation.pm new file mode 100644 index 000000000..88f06d1fd --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/BatchJobOperation.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::BatchJobService::BatchJobOperation; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + create => $args->{create}, + remove => $args->{remove}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/MutateJobResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/BatchJobResult.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/MutateJobResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/BatchJobResult.pm index e0a1972e0..7143675bb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/MutateJobResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/BatchJobResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService::MutateJobResult; +package Google::Ads::GoogleAds::V4::Services::BatchJobService::BatchJobResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/GetBatchJobRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/GetBatchJobRequest.pm new file mode 100644 index 000000000..eaf1fb4e3 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/GetBatchJobRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::BatchJobService::GetBatchJobRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/ListMutateJobResultsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/ListBatchJobResultsRequest.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/ListMutateJobResultsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/ListBatchJobResultsRequest.pm index 9d28892b2..5c50ab532 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/ListMutateJobResultsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/ListBatchJobResultsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService::ListMutateJobResultsRequest; +package Google::Ads::GoogleAds::V4::Services::BatchJobService::ListBatchJobResultsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/ListMutateJobResultsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/ListBatchJobResultsResponse.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/ListMutateJobResultsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/ListBatchJobResultsResponse.pm index a9dfb62a2..034e4ae49 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MutateJobService/ListMutateJobResultsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/ListBatchJobResultsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MutateJobService::ListMutateJobResultsResponse; +package Google::Ads::GoogleAds::V4::Services::BatchJobService::ListBatchJobResultsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/MutateBatchJobRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/MutateBatchJobRequest.pm new file mode 100644 index 000000000..1141d0dd9 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/MutateBatchJobRequest.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::BatchJobService::MutateBatchJobRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + customerId => $args->{customerId}, + operation => $args->{operation}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/MutateBatchJobResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/MutateBatchJobResponse.pm new file mode 100644 index 000000000..e73d1d9cf --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/MutateBatchJobResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::BatchJobService::MutateBatchJobResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {result => $args->{result}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/MutateBatchJobResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/MutateBatchJobResult.pm new file mode 100644 index 000000000..7a51ac2c2 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/MutateBatchJobResult.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::BatchJobService::MutateBatchJobResult; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/RunBatchJobRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/RunBatchJobRequest.pm new file mode 100644 index 000000000..c588474ab --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/BatchJobService/RunBatchJobRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::BatchJobService::RunBatchJobRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService.pm b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService.pm index 49e094863..4b1552aad 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BiddingStrategyService; +package Google::Ads::GoogleAds::V4::Services::BiddingStrategyService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::BiddingStrategy'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::BiddingStrategy'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/biddingStrategies:mutate'; + my $request_path = 'v4/customers/{+customerId}/biddingStrategies:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::BiddingStrategyService::MutateBiddingStrategiesResponse'; +'Google::Ads::GoogleAds::V4::Services::BiddingStrategyService::MutateBiddingStrategiesResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/BiddingStrategyOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/BiddingStrategyOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/BiddingStrategyOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/BiddingStrategyOperation.pm index 0d906e929..75e220682 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/BiddingStrategyOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/BiddingStrategyOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BiddingStrategyService::BiddingStrategyOperation; +package Google::Ads::GoogleAds::V4::Services::BiddingStrategyService::BiddingStrategyOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/GetBiddingStrategyRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/GetBiddingStrategyRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/GetBiddingStrategyRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/GetBiddingStrategyRequest.pm index 0e778b54e..9576fbd43 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/GetBiddingStrategyRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/GetBiddingStrategyRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BiddingStrategyService::GetBiddingStrategyRequest; +package Google::Ads::GoogleAds::V4::Services::BiddingStrategyService::GetBiddingStrategyRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/MutateBiddingStrategiesRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/MutateBiddingStrategiesRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/MutateBiddingStrategiesRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/MutateBiddingStrategiesRequest.pm index 81da8d0da..d885cb869 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/MutateBiddingStrategiesRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/MutateBiddingStrategiesRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BiddingStrategyService::MutateBiddingStrategiesRequest; +package Google::Ads::GoogleAds::V4::Services::BiddingStrategyService::MutateBiddingStrategiesRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/MutateBiddingStrategiesResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/MutateBiddingStrategiesResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/MutateBiddingStrategiesResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/MutateBiddingStrategiesResponse.pm index 84b3aa1b4..27c1be1c1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/MutateBiddingStrategiesResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/MutateBiddingStrategiesResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BiddingStrategyService::MutateBiddingStrategiesResponse; +package Google::Ads::GoogleAds::V4::Services::BiddingStrategyService::MutateBiddingStrategiesResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/MutateBiddingStrategyResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/MutateBiddingStrategyResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/MutateBiddingStrategyResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/MutateBiddingStrategyResult.pm index 50c731bcc..b42c406ed 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BiddingStrategyService/MutateBiddingStrategyResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BiddingStrategyService/MutateBiddingStrategyResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BiddingStrategyService::MutateBiddingStrategyResult; +package Google::Ads::GoogleAds::V4::Services::BiddingStrategyService::MutateBiddingStrategyResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService.pm b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService.pm index 164d14477..0805db2c3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BillingSetupService; +package Google::Ads::GoogleAds::V4::Services::BillingSetupService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::BillingSetup'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::BillingSetup'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/billingSetups:mutate'; + my $request_path = 'v4/customers/{+customerId}/billingSetups:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::BillingSetupService::MutateBillingSetupResponse'; +'Google::Ads::GoogleAds::V4::Services::BillingSetupService::MutateBillingSetupResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/BillingSetupOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/BillingSetupOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/BillingSetupOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/BillingSetupOperation.pm index 7763b6c09..29a0a9f83 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/BillingSetupOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/BillingSetupOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BillingSetupService::BillingSetupOperation; +package Google::Ads::GoogleAds::V4::Services::BillingSetupService::BillingSetupOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/GetBillingSetupRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/GetBillingSetupRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/GetBillingSetupRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/GetBillingSetupRequest.pm index bc6f283ec..7ee3b1be4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/GetBillingSetupRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/GetBillingSetupRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BillingSetupService::GetBillingSetupRequest; +package Google::Ads::GoogleAds::V4::Services::BillingSetupService::GetBillingSetupRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/MutateBillingSetupRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/MutateBillingSetupRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/MutateBillingSetupRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/MutateBillingSetupRequest.pm index 382d0d1b3..c84afb5bc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/MutateBillingSetupRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/MutateBillingSetupRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BillingSetupService::MutateBillingSetupRequest; +package Google::Ads::GoogleAds::V4::Services::BillingSetupService::MutateBillingSetupRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/MutateBillingSetupResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/MutateBillingSetupResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/MutateBillingSetupResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/MutateBillingSetupResponse.pm index f74f85694..7ba02a958 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/MutateBillingSetupResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/MutateBillingSetupResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BillingSetupService::MutateBillingSetupResponse; +package Google::Ads::GoogleAds::V4::Services::BillingSetupService::MutateBillingSetupResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/MutateBillingSetupResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/MutateBillingSetupResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/MutateBillingSetupResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/MutateBillingSetupResult.pm index ab696e00b..ea029fd17 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/BillingSetupService/MutateBillingSetupResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/BillingSetupService/MutateBillingSetupResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::BillingSetupService::MutateBillingSetupResult; +package Google::Ads::GoogleAds::V4::Services::BillingSetupService::MutateBillingSetupResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignAudienceViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignAudienceViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignAudienceViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignAudienceViewService.pm index 37d1bf35a..429e1ef06 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignAudienceViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignAudienceViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignAudienceViewService; +package Google::Ads::GoogleAds::V4::Services::CampaignAudienceViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CampaignAudienceView'; + 'Google::Ads::GoogleAds::V4::Resources::CampaignAudienceView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignAudienceViewService/GetCampaignAudienceViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignAudienceViewService/GetCampaignAudienceViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignAudienceViewService/GetCampaignAudienceViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignAudienceViewService/GetCampaignAudienceViewRequest.pm index 604a032a2..08fae7ea7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignAudienceViewService/GetCampaignAudienceViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignAudienceViewService/GetCampaignAudienceViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignAudienceViewService::GetCampaignAudienceViewRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignAudienceViewService::GetCampaignAudienceViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService.pm index aad319ead..40cb8d3d7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBidModifierService; +package Google::Ads::GoogleAds::V4::Services::CampaignBidModifierService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier'; + 'Google::Ads::GoogleAds::V4::Resources::CampaignBidModifier'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaignBidModifiers:mutate'; + my $request_path = 'v4/customers/{+customerId}/campaignBidModifiers:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignBidModifierService::MutateCampaignBidModifiersResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignBidModifierService::MutateCampaignBidModifiersResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/CampaignBidModifierOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/CampaignBidModifierOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/CampaignBidModifierOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/CampaignBidModifierOperation.pm index ac1f04d99..3f878966a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/CampaignBidModifierOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/CampaignBidModifierOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBidModifierService::CampaignBidModifierOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignBidModifierService::CampaignBidModifierOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/GetCampaignBidModifierRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/GetCampaignBidModifierRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/GetCampaignBidModifierRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/GetCampaignBidModifierRequest.pm index 38bc77f3d..5ef45848f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/GetCampaignBidModifierRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/GetCampaignBidModifierRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBidModifierService::GetCampaignBidModifierRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignBidModifierService::GetCampaignBidModifierRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/MutateCampaignBidModifierResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/MutateCampaignBidModifierResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/MutateCampaignBidModifierResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/MutateCampaignBidModifierResult.pm index b5201da7f..537022df5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/MutateCampaignBidModifierResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/MutateCampaignBidModifierResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBidModifierService::MutateCampaignBidModifierResult; +package Google::Ads::GoogleAds::V4::Services::CampaignBidModifierService::MutateCampaignBidModifierResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/MutateCampaignBidModifiersRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/MutateCampaignBidModifiersRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/MutateCampaignBidModifiersRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/MutateCampaignBidModifiersRequest.pm index 2615e7ba0..2fa5b66fe 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/MutateCampaignBidModifiersRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/MutateCampaignBidModifiersRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBidModifierService::MutateCampaignBidModifiersRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignBidModifierService::MutateCampaignBidModifiersRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/MutateCampaignBidModifiersResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/MutateCampaignBidModifiersResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/MutateCampaignBidModifiersResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/MutateCampaignBidModifiersResponse.pm index ec6160d49..18ed424bf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBidModifierService/MutateCampaignBidModifiersResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBidModifierService/MutateCampaignBidModifiersResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBidModifierService::MutateCampaignBidModifiersResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignBidModifierService::MutateCampaignBidModifiersResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService.pm index e021b0759..d976c300a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBudgetService; +package Google::Ads::GoogleAds::V4::Services::CampaignBudgetService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::CampaignBudget'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CampaignBudget'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaignBudgets:mutate'; + my $request_path = 'v4/customers/{+customerId}/campaignBudgets:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignBudgetService::MutateCampaignBudgetsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::MutateCampaignBudgetsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/CampaignBudgetOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/CampaignBudgetOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/CampaignBudgetOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/CampaignBudgetOperation.pm index 5764eb156..6c39e1a8a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/CampaignBudgetOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/CampaignBudgetOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBudgetService::CampaignBudgetOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::CampaignBudgetOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/GetCampaignBudgetRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/GetCampaignBudgetRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/GetCampaignBudgetRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/GetCampaignBudgetRequest.pm index 1ee521b57..4c22f20c8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/GetCampaignBudgetRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/GetCampaignBudgetRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBudgetService::GetCampaignBudgetRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::GetCampaignBudgetRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/MutateCampaignBudgetResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/MutateCampaignBudgetResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/MutateCampaignBudgetResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/MutateCampaignBudgetResult.pm index 895f434e0..2cccf4fdf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/MutateCampaignBudgetResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/MutateCampaignBudgetResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBudgetService::MutateCampaignBudgetResult; +package Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::MutateCampaignBudgetResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/MutateCampaignBudgetsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/MutateCampaignBudgetsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/MutateCampaignBudgetsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/MutateCampaignBudgetsRequest.pm index 9896b16aa..c1926b942 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/MutateCampaignBudgetsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/MutateCampaignBudgetsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBudgetService::MutateCampaignBudgetsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::MutateCampaignBudgetsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/MutateCampaignBudgetsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/MutateCampaignBudgetsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/MutateCampaignBudgetsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/MutateCampaignBudgetsResponse.pm index d9f561163..dec9c4399 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignBudgetService/MutateCampaignBudgetsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignBudgetService/MutateCampaignBudgetsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignBudgetService::MutateCampaignBudgetsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignBudgetService::MutateCampaignBudgetsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService.pm index 577e2bd1e..28b365a1a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignCriterionService; +package Google::Ads::GoogleAds::V4::Services::CampaignCriterionService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CampaignCriterion'; + 'Google::Ads::GoogleAds::V4::Resources::CampaignCriterion'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaignCriteria:mutate'; + my $request_path = 'v4/customers/{+customerId}/campaignCriteria:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignCriterionService::MutateCampaignCriteriaResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::MutateCampaignCriteriaResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/CampaignCriterionOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/CampaignCriterionOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/CampaignCriterionOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/CampaignCriterionOperation.pm index b31b2b56f..6953d7a8d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/CampaignCriterionOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/CampaignCriterionOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignCriterionService::CampaignCriterionOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::CampaignCriterionOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/GetCampaignCriterionRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/GetCampaignCriterionRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/GetCampaignCriterionRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/GetCampaignCriterionRequest.pm index 7e946cf33..88da554e7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/GetCampaignCriterionRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/GetCampaignCriterionRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignCriterionService::GetCampaignCriterionRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::GetCampaignCriterionRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/MutateCampaignCriteriaRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/MutateCampaignCriteriaRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/MutateCampaignCriteriaRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/MutateCampaignCriteriaRequest.pm index bb4c8a58a..ec9943cfb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/MutateCampaignCriteriaRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/MutateCampaignCriteriaRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignCriterionService::MutateCampaignCriteriaRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::MutateCampaignCriteriaRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/MutateCampaignCriteriaResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/MutateCampaignCriteriaResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/MutateCampaignCriteriaResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/MutateCampaignCriteriaResponse.pm index e88d7b37a..21a72a0c1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/MutateCampaignCriteriaResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/MutateCampaignCriteriaResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignCriterionService::MutateCampaignCriteriaResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::MutateCampaignCriteriaResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/MutateCampaignCriterionResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/MutateCampaignCriterionResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/MutateCampaignCriterionResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/MutateCampaignCriterionResult.pm index 77a45ab68..3f6c0f832 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionService/MutateCampaignCriterionResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionService/MutateCampaignCriterionResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignCriterionService::MutateCampaignCriterionResult; +package Google::Ads::GoogleAds::V4::Services::CampaignCriterionService::MutateCampaignCriterionResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionSimulationService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionSimulationService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionSimulationService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionSimulationService.pm index c8e32cb1b..675ace30b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionSimulationService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionSimulationService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignCriterionSimulationService; +package Google::Ads::GoogleAds::V4::Services::CampaignCriterionSimulationService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CampaignCriterionSimulation'; + 'Google::Ads::GoogleAds::V4::Resources::CampaignCriterionSimulation'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionSimulationService/GetCampaignCriterionSimulationRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionSimulationService/GetCampaignCriterionSimulationRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionSimulationService/GetCampaignCriterionSimulationRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionSimulationService/GetCampaignCriterionSimulationRequest.pm index 8161878b7..058e8e607 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignCriterionSimulationService/GetCampaignCriterionSimulationRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignCriterionSimulationService/GetCampaignCriterionSimulationRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignCriterionSimulationService::GetCampaignCriterionSimulationRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignCriterionSimulationService::GetCampaignCriterionSimulationRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService.pm index 64fa4332f..5204b8820 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignDraftService; +package Google::Ads::GoogleAds::V4::Services::CampaignDraftService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::CampaignDraft'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CampaignDraft'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub list_async_errors { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}:listAsyncErrors'; + my $request_path = 'v4/{+resourceName}:listAsyncErrors'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignDraftService::ListCampaignDraftAsyncErrorsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignDraftService::ListCampaignDraftAsyncErrorsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -45,9 +45,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaignDrafts:mutate'; + my $request_path = 'v4/customers/{+customerId}/campaignDrafts:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignDraftService::MutateCampaignDraftsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignDraftService::MutateCampaignDraftsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -57,7 +57,7 @@ sub promote { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/{+campaignDraft}:promote'; + my $request_path = 'v4/{+campaignDraft}:promote'; my $response_type = 'Google::Ads::GoogleAds::LongRunning::Operation'; return $self->SUPER::call($http_method, $request_path, $request_body, diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/CampaignDraftOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/CampaignDraftOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/CampaignDraftOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/CampaignDraftOperation.pm index e72353dc2..750c4930d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/CampaignDraftOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/CampaignDraftOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignDraftService::CampaignDraftOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignDraftService::CampaignDraftOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/GetCampaignDraftRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/GetCampaignDraftRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/GetCampaignDraftRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/GetCampaignDraftRequest.pm index 8180e63d4..0fc89e125 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/GetCampaignDraftRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/GetCampaignDraftRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignDraftService::GetCampaignDraftRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignDraftService::GetCampaignDraftRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsRequest.pm index 7fc6cd6ac..2f297943f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignDraftService::ListCampaignDraftAsyncErrorsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignDraftService::ListCampaignDraftAsyncErrorsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsResponse.pm index 2fcb3551c..7a1817003 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/ListCampaignDraftAsyncErrorsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignDraftService::ListCampaignDraftAsyncErrorsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignDraftService::ListCampaignDraftAsyncErrorsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/MutateCampaignDraftResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/MutateCampaignDraftResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/MutateCampaignDraftResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/MutateCampaignDraftResult.pm index 24f79435f..a019e3e3a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/MutateCampaignDraftResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/MutateCampaignDraftResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignDraftService::MutateCampaignDraftResult; +package Google::Ads::GoogleAds::V4::Services::CampaignDraftService::MutateCampaignDraftResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/MutateCampaignDraftsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/MutateCampaignDraftsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/MutateCampaignDraftsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/MutateCampaignDraftsRequest.pm index 659fdfbf4..bf561739f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/MutateCampaignDraftsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/MutateCampaignDraftsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignDraftService::MutateCampaignDraftsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignDraftService::MutateCampaignDraftsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/MutateCampaignDraftsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/MutateCampaignDraftsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/MutateCampaignDraftsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/MutateCampaignDraftsResponse.pm index 47a7b84e4..4f91b067e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/MutateCampaignDraftsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/MutateCampaignDraftsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignDraftService::MutateCampaignDraftsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignDraftService::MutateCampaignDraftsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/PromoteCampaignDraftRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/PromoteCampaignDraftRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/PromoteCampaignDraftRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/PromoteCampaignDraftRequest.pm index 2b7e0b806..37a5ce52c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignDraftService/PromoteCampaignDraftRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignDraftService/PromoteCampaignDraftRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignDraftService::PromoteCampaignDraftRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignDraftService::PromoteCampaignDraftRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService.pm index 79e7aa24e..0c0d7150b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService; use strict; use warnings; @@ -22,7 +22,7 @@ sub create { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaignExperiments:create'; + my $request_path = 'v4/customers/{+customerId}/campaignExperiments:create'; my $response_type = 'Google::Ads::GoogleAds::LongRunning::Operation'; return $self->SUPER::call($http_method, $request_path, $request_body, @@ -33,7 +33,7 @@ sub end { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/{+campaignExperiment}:end'; + my $request_path = 'v4/{+campaignExperiment}:end'; my $response_type = ''; return $self->SUPER::call($http_method, $request_path, $request_body, @@ -44,9 +44,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CampaignExperiment'; + 'Google::Ads::GoogleAds::V4::Resources::CampaignExperiment'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -56,9 +56,9 @@ sub graduate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/{+campaignExperiment}:graduate'; + my $request_path = 'v4/{+campaignExperiment}:graduate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::GraduateCampaignExperimentResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::GraduateCampaignExperimentResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -68,9 +68,9 @@ sub list_async_errors { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}:listAsyncErrors'; + my $request_path = 'v4/{+resourceName}:listAsyncErrors'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::ListCampaignExperimentAsyncErrorsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::ListCampaignExperimentAsyncErrorsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -80,9 +80,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaignExperiments:mutate'; + my $request_path = 'v4/customers/{+customerId}/campaignExperiments:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::MutateCampaignExperimentsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::MutateCampaignExperimentsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -92,7 +92,7 @@ sub promote { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/{+campaignExperiment}:promote'; + my $request_path = 'v4/{+campaignExperiment}:promote'; my $response_type = 'Google::Ads::GoogleAds::LongRunning::Operation'; return $self->SUPER::call($http_method, $request_path, $request_body, diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/CampaignExperimentOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/CampaignExperimentOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/CampaignExperimentOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/CampaignExperimentOperation.pm index 5b7f1cdc6..e63139819 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/CampaignExperimentOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/CampaignExperimentOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::CampaignExperimentOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::CampaignExperimentOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/CreateCampaignExperimentMetadata.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/CreateCampaignExperimentMetadata.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/CreateCampaignExperimentMetadata.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/CreateCampaignExperimentMetadata.pm index 5c938adbd..d49970e13 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/CreateCampaignExperimentMetadata.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/CreateCampaignExperimentMetadata.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::CreateCampaignExperimentMetadata; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::CreateCampaignExperimentMetadata; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/CreateCampaignExperimentRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/CreateCampaignExperimentRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/CreateCampaignExperimentRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/CreateCampaignExperimentRequest.pm index 58ecb14ec..bbfb0615e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/CreateCampaignExperimentRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/CreateCampaignExperimentRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::CreateCampaignExperimentRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::CreateCampaignExperimentRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/EndCampaignExperimentRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/EndCampaignExperimentRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/EndCampaignExperimentRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/EndCampaignExperimentRequest.pm index b1cf70fe0..1c2742235 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/EndCampaignExperimentRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/EndCampaignExperimentRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::EndCampaignExperimentRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::EndCampaignExperimentRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/GetCampaignExperimentRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/GetCampaignExperimentRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/GetCampaignExperimentRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/GetCampaignExperimentRequest.pm index 9e8c88936..348c3e13d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/GetCampaignExperimentRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/GetCampaignExperimentRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::GetCampaignExperimentRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::GetCampaignExperimentRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/GraduateCampaignExperimentRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/GraduateCampaignExperimentRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/GraduateCampaignExperimentRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/GraduateCampaignExperimentRequest.pm index 604c3d8b2..08f74f452 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/GraduateCampaignExperimentRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/GraduateCampaignExperimentRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::GraduateCampaignExperimentRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::GraduateCampaignExperimentRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/GraduateCampaignExperimentResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/GraduateCampaignExperimentResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/GraduateCampaignExperimentResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/GraduateCampaignExperimentResponse.pm index 22ff54cb8..8a115fbd7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/GraduateCampaignExperimentResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/GraduateCampaignExperimentResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::GraduateCampaignExperimentResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::GraduateCampaignExperimentResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsRequest.pm index 830393e1d..23de01ee8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::ListCampaignExperimentAsyncErrorsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::ListCampaignExperimentAsyncErrorsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsResponse.pm index dd173effd..e5bbf2b65 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/ListCampaignExperimentAsyncErrorsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::ListCampaignExperimentAsyncErrorsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::ListCampaignExperimentAsyncErrorsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/MutateCampaignExperimentResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/MutateCampaignExperimentResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/MutateCampaignExperimentResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/MutateCampaignExperimentResult.pm index 4976cf290..d57de95a0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/MutateCampaignExperimentResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/MutateCampaignExperimentResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::MutateCampaignExperimentResult; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::MutateCampaignExperimentResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/MutateCampaignExperimentsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/MutateCampaignExperimentsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/MutateCampaignExperimentsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/MutateCampaignExperimentsRequest.pm index d37f41caa..67e9857a1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/MutateCampaignExperimentsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/MutateCampaignExperimentsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::MutateCampaignExperimentsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::MutateCampaignExperimentsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/MutateCampaignExperimentsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/MutateCampaignExperimentsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/MutateCampaignExperimentsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/MutateCampaignExperimentsResponse.pm index da90e31eb..155729e79 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/MutateCampaignExperimentsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/MutateCampaignExperimentsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::MutateCampaignExperimentsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::MutateCampaignExperimentsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/PromoteCampaignExperimentRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/PromoteCampaignExperimentRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/PromoteCampaignExperimentRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/PromoteCampaignExperimentRequest.pm index a7e6c7e70..787412999 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExperimentService/PromoteCampaignExperimentRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExperimentService/PromoteCampaignExperimentRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExperimentService::PromoteCampaignExperimentRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignExperimentService::PromoteCampaignExperimentRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService.pm index d63e29f64..5dec0a3bb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingService; +package Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting'; + 'Google::Ads::GoogleAds::V4::Resources::CampaignExtensionSetting'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -35,9 +35,9 @@ sub mutate { my $request_body = shift; my $http_method = 'POST'; my $request_path = - 'v1/customers/{+customerId}/campaignExtensionSettings:mutate'; + 'v4/customers/{+customerId}/campaignExtensionSettings:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingService::MutateCampaignExtensionSettingsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::MutateCampaignExtensionSettingsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/CampaignExtensionSettingOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/CampaignExtensionSettingOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/CampaignExtensionSettingOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/CampaignExtensionSettingOperation.pm index f5edd1aba..fda88caa9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/CampaignExtensionSettingOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/CampaignExtensionSettingOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::CampaignExtensionSettingOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/GetCampaignExtensionSettingRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/GetCampaignExtensionSettingRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/GetCampaignExtensionSettingRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/GetCampaignExtensionSettingRequest.pm index 3ab732b59..f53474641 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/GetCampaignExtensionSettingRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/GetCampaignExtensionSettingRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingService::GetCampaignExtensionSettingRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::GetCampaignExtensionSettingRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingResult.pm index f598feab8..d3d5f9d9b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingService::MutateCampaignExtensionSettingResult; +package Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::MutateCampaignExtensionSettingResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsRequest.pm index 77b160b95..d3f383cb7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingService::MutateCampaignExtensionSettingsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::MutateCampaignExtensionSettingsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsResponse.pm index bb40dd687..ce44fa9b7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignExtensionSettingService/MutateCampaignExtensionSettingsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingService::MutateCampaignExtensionSettingsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingService::MutateCampaignExtensionSettingsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService.pm index 38cc989a1..9c2682a07 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignFeedService; +package Google::Ads::GoogleAds::V4::Services::CampaignFeedService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::CampaignFeed'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CampaignFeed'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaignFeeds:mutate'; + my $request_path = 'v4/customers/{+customerId}/campaignFeeds:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignFeedService::MutateCampaignFeedsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignFeedService::MutateCampaignFeedsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/CampaignFeedOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/CampaignFeedOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/CampaignFeedOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/CampaignFeedOperation.pm index 6c37d45ec..7b4ad84ff 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/CampaignFeedOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/CampaignFeedOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignFeedService::CampaignFeedOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignFeedService::CampaignFeedOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/GetCampaignFeedRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/GetCampaignFeedRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/GetCampaignFeedRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/GetCampaignFeedRequest.pm index bd68c75c2..1bd8907c2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/GetCampaignFeedRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/GetCampaignFeedRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignFeedService::GetCampaignFeedRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignFeedService::GetCampaignFeedRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/MutateCampaignFeedResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/MutateCampaignFeedResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/MutateCampaignFeedResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/MutateCampaignFeedResult.pm index 2e3a01985..602c59f71 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/MutateCampaignFeedResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/MutateCampaignFeedResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignFeedService::MutateCampaignFeedResult; +package Google::Ads::GoogleAds::V4::Services::CampaignFeedService::MutateCampaignFeedResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/MutateCampaignFeedsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/MutateCampaignFeedsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/MutateCampaignFeedsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/MutateCampaignFeedsRequest.pm index 2c5321969..8ac19a396 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/MutateCampaignFeedsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/MutateCampaignFeedsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignFeedService::MutateCampaignFeedsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignFeedService::MutateCampaignFeedsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/MutateCampaignFeedsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/MutateCampaignFeedsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/MutateCampaignFeedsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/MutateCampaignFeedsResponse.pm index e82a055f0..6e38692a3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignFeedService/MutateCampaignFeedsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignFeedService/MutateCampaignFeedsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignFeedService::MutateCampaignFeedsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignFeedService::MutateCampaignFeedsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService.pm index 831ef533a..43d60b15b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignLabelService; +package Google::Ads::GoogleAds::V4::Services::CampaignLabelService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::CampaignLabel'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CampaignLabel'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaignLabels:mutate'; + my $request_path = 'v4/customers/{+customerId}/campaignLabels:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignLabelService::MutateCampaignLabelsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignLabelService::MutateCampaignLabelsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/CampaignLabelOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/CampaignLabelOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/CampaignLabelOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/CampaignLabelOperation.pm index c13874050..31780129c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/CampaignLabelOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/CampaignLabelOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignLabelService::CampaignLabelOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignLabelService::CampaignLabelOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/GetCampaignLabelRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/GetCampaignLabelRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/GetCampaignLabelRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/GetCampaignLabelRequest.pm index 50c07adcf..3d58ccde9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/GetCampaignLabelRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/GetCampaignLabelRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignLabelService::GetCampaignLabelRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignLabelService::GetCampaignLabelRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/MutateCampaignLabelResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/MutateCampaignLabelResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/MutateCampaignLabelResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/MutateCampaignLabelResult.pm index 536696888..609e20e31 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/MutateCampaignLabelResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/MutateCampaignLabelResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignLabelService::MutateCampaignLabelResult; +package Google::Ads::GoogleAds::V4::Services::CampaignLabelService::MutateCampaignLabelResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/MutateCampaignLabelsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/MutateCampaignLabelsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/MutateCampaignLabelsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/MutateCampaignLabelsRequest.pm index 89a812fd8..6e8a84508 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/MutateCampaignLabelsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/MutateCampaignLabelsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignLabelService::MutateCampaignLabelsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignLabelService::MutateCampaignLabelsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/MutateCampaignLabelsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/MutateCampaignLabelsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/MutateCampaignLabelsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/MutateCampaignLabelsResponse.pm index 6e7341d64..2f2bb2457 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignLabelService/MutateCampaignLabelsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignLabelService/MutateCampaignLabelsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignLabelService::MutateCampaignLabelsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignLabelService::MutateCampaignLabelsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignService.pm index a0332a357..c2f15aabf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignService; +package Google::Ads::GoogleAds::V4::Services::CampaignService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::Campaign'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::Campaign'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaigns:mutate'; + my $request_path = 'v4/customers/{+customerId}/campaigns:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignService::MutateCampaignsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignService::MutateCampaignsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/CampaignOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/CampaignOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignService/CampaignOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignService/CampaignOperation.pm index 57eaf9545..c4340de07 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/CampaignOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/CampaignOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignService::CampaignOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignService::CampaignOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/GetCampaignRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/GetCampaignRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignService/GetCampaignRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignService/GetCampaignRequest.pm index a0a854531..eb9191f39 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/GetCampaignRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/GetCampaignRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignService::GetCampaignRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignService::GetCampaignRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/MutateCampaignResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/MutateCampaignResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignService/MutateCampaignResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignService/MutateCampaignResult.pm index 565f593b6..c352caf2f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/MutateCampaignResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/MutateCampaignResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignService::MutateCampaignResult; +package Google::Ads::GoogleAds::V4::Services::CampaignService::MutateCampaignResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/MutateCampaignsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/MutateCampaignsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignService/MutateCampaignsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignService/MutateCampaignsRequest.pm index 30674c617..ef3a3ad7f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/MutateCampaignsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/MutateCampaignsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignService::MutateCampaignsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignService::MutateCampaignsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/MutateCampaignsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/MutateCampaignsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignService/MutateCampaignsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignService/MutateCampaignsResponse.pm index 2e44918a2..52b9e7a75 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignService/MutateCampaignsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignService/MutateCampaignsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignService::MutateCampaignsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignService::MutateCampaignsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService.pm index 86bb1ec4a..d9d0fceef 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignSharedSetService; +package Google::Ads::GoogleAds::V4::Services::CampaignSharedSetService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CampaignSharedSet'; + 'Google::Ads::GoogleAds::V4::Resources::CampaignSharedSet'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/campaignSharedSets:mutate'; + my $request_path = 'v4/customers/{+customerId}/campaignSharedSets:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CampaignSharedSetService::MutateCampaignSharedSetsResponse'; +'Google::Ads::GoogleAds::V4::Services::CampaignSharedSetService::MutateCampaignSharedSetsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/CampaignSharedSetOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/CampaignSharedSetOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/CampaignSharedSetOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/CampaignSharedSetOperation.pm index 3e8d2743e..da83ddd1a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/CampaignSharedSetOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/CampaignSharedSetOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignSharedSetService::CampaignSharedSetOperation; +package Google::Ads::GoogleAds::V4::Services::CampaignSharedSetService::CampaignSharedSetOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/GetCampaignSharedSetRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/GetCampaignSharedSetRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/GetCampaignSharedSetRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/GetCampaignSharedSetRequest.pm index 0ed724ee7..f7ad1613b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/GetCampaignSharedSetRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/GetCampaignSharedSetRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignSharedSetService::GetCampaignSharedSetRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignSharedSetService::GetCampaignSharedSetRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/MutateCampaignSharedSetResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/MutateCampaignSharedSetResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/MutateCampaignSharedSetResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/MutateCampaignSharedSetResult.pm index 86a08c8d3..d7460a04b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/MutateCampaignSharedSetResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/MutateCampaignSharedSetResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignSharedSetService::MutateCampaignSharedSetResult; +package Google::Ads::GoogleAds::V4::Services::CampaignSharedSetService::MutateCampaignSharedSetResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/MutateCampaignSharedSetsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/MutateCampaignSharedSetsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/MutateCampaignSharedSetsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/MutateCampaignSharedSetsRequest.pm index 8a5c18581..f12f4fcaf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/MutateCampaignSharedSetsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/MutateCampaignSharedSetsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignSharedSetService::MutateCampaignSharedSetsRequest; +package Google::Ads::GoogleAds::V4::Services::CampaignSharedSetService::MutateCampaignSharedSetsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/MutateCampaignSharedSetsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/MutateCampaignSharedSetsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/MutateCampaignSharedSetsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/MutateCampaignSharedSetsResponse.pm index 1ffbcb245..d73fe706e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CampaignSharedSetService/MutateCampaignSharedSetsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CampaignSharedSetService/MutateCampaignSharedSetsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CampaignSharedSetService::MutateCampaignSharedSetsResponse; +package Google::Ads::GoogleAds::V4::Services::CampaignSharedSetService::MutateCampaignSharedSetsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CarrierConstantService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CarrierConstantService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/CarrierConstantService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CarrierConstantService.pm index 921b5202d..3a3f5bebc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CarrierConstantService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CarrierConstantService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CarrierConstantService; +package Google::Ads::GoogleAds::V4::Services::CarrierConstantService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::CarrierConstant'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CarrierConstant'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CarrierConstantService/GetCarrierConstantRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CarrierConstantService/GetCarrierConstantRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CarrierConstantService/GetCarrierConstantRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CarrierConstantService/GetCarrierConstantRequest.pm index b51c1a2fe..821a73301 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CarrierConstantService/GetCarrierConstantRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CarrierConstantService/GetCarrierConstantRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CarrierConstantService::GetCarrierConstantRequest; +package Google::Ads::GoogleAds::V4::Services::CarrierConstantService::GetCarrierConstantRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ChangeStatusService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ChangeStatusService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/ChangeStatusService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ChangeStatusService.pm index d58059ab6..53e1a87e8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ChangeStatusService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ChangeStatusService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ChangeStatusService; +package Google::Ads::GoogleAds::V4::Services::ChangeStatusService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::ChangeStatus'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::ChangeStatus'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ChangeStatusService/GetChangeStatusRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ChangeStatusService/GetChangeStatusRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ChangeStatusService/GetChangeStatusRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ChangeStatusService/GetChangeStatusRequest.pm index 6853a5029..230df8c88 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ChangeStatusService/GetChangeStatusRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ChangeStatusService/GetChangeStatusRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ChangeStatusService::GetChangeStatusRequest; +package Google::Ads::GoogleAds::V4::Services::ChangeStatusService::GetChangeStatusRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ClickViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ClickViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/ClickViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ClickViewService.pm index a3270d234..3b66e2ce4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ClickViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ClickViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ClickViewService; +package Google::Ads::GoogleAds::V4::Services::ClickViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::ClickView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::ClickView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ClickViewService/GetClickViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ClickViewService/GetClickViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ClickViewService/GetClickViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ClickViewService/GetClickViewRequest.pm index f1e5805c9..8f76959b2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ClickViewService/GetClickViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ClickViewService/GetClickViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ClickViewService::GetClickViewRequest; +package Google::Ads::GoogleAds::V4::Services::ClickViewService::GetClickViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService.pm index 4749fc171..c95161206 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionActionService; +package Google::Ads::GoogleAds::V4::Services::ConversionActionService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::ConversionAction'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::ConversionAction'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/conversionActions:mutate'; + my $request_path = 'v4/customers/{+customerId}/conversionActions:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::ConversionActionService::MutateConversionActionsResponse'; +'Google::Ads::GoogleAds::V4::Services::ConversionActionService::MutateConversionActionsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/ConversionActionOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/ConversionActionOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/ConversionActionOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/ConversionActionOperation.pm index 23c86a7c5..2cdedee55 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/ConversionActionOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/ConversionActionOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionActionService::ConversionActionOperation; +package Google::Ads::GoogleAds::V4::Services::ConversionActionService::ConversionActionOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/GetConversionActionRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/GetConversionActionRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/GetConversionActionRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/GetConversionActionRequest.pm index 0c2a9b145..24522ea48 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/GetConversionActionRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/GetConversionActionRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionActionService::GetConversionActionRequest; +package Google::Ads::GoogleAds::V4::Services::ConversionActionService::GetConversionActionRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/MutateConversionActionResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/MutateConversionActionResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/MutateConversionActionResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/MutateConversionActionResult.pm index 0820828ff..4a9cc1f72 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/MutateConversionActionResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/MutateConversionActionResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionActionService::MutateConversionActionResult; +package Google::Ads::GoogleAds::V4::Services::ConversionActionService::MutateConversionActionResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/MutateConversionActionsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/MutateConversionActionsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/MutateConversionActionsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/MutateConversionActionsRequest.pm index 4b4695cf9..5e99d264d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/MutateConversionActionsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/MutateConversionActionsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionActionService::MutateConversionActionsRequest; +package Google::Ads::GoogleAds::V4::Services::ConversionActionService::MutateConversionActionsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/MutateConversionActionsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/MutateConversionActionsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/MutateConversionActionsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/MutateConversionActionsResponse.pm index c09301b7f..965f27079 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionActionService/MutateConversionActionsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionActionService/MutateConversionActionsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionActionService::MutateConversionActionsResponse; +package Google::Ads::GoogleAds::V4::Services::ConversionActionService::MutateConversionActionsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService.pm index 1fbeba672..09e576d9e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionAdjustmentUploadService; +package Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService; use strict; use warnings; @@ -22,9 +22,9 @@ sub upload_conversion_adjustments { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}:uploadConversionAdjustments'; + my $request_path = 'v4/customers/{+customerId}:uploadConversionAdjustments'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::ConversionAdjustmentUploadService::UploadConversionAdjustmentsResponse'; +'Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::UploadConversionAdjustmentsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/ConversionAdjustment.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/ConversionAdjustment.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/ConversionAdjustment.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/ConversionAdjustment.pm index c31e2acd6..f665bbb28 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/ConversionAdjustment.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/ConversionAdjustment.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionAdjustmentUploadService::ConversionAdjustment; +package Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::ConversionAdjustment; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/ConversionAdjustmentResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/ConversionAdjustmentResult.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/ConversionAdjustmentResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/ConversionAdjustmentResult.pm index 2a460a32e..d75c37e95 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/ConversionAdjustmentResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/ConversionAdjustmentResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionAdjustmentUploadService::ConversionAdjustmentResult; +package Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::ConversionAdjustmentResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/GclidDateTimePair.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/GclidDateTimePair.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/GclidDateTimePair.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/GclidDateTimePair.pm index a06d59bae..d725df1dc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/GclidDateTimePair.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/GclidDateTimePair.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionAdjustmentUploadService::GclidDateTimePair; +package Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::GclidDateTimePair; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/RestatementValue.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/RestatementValue.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/RestatementValue.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/RestatementValue.pm index 5c156eaad..b2ae7c7e3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/RestatementValue.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/RestatementValue.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionAdjustmentUploadService::RestatementValue; +package Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::RestatementValue; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsRequest.pm index a85e7580c..c92eeca3e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionAdjustmentUploadService::UploadConversionAdjustmentsRequest; +package Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::UploadConversionAdjustmentsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsResponse.pm index 63d660b4a..8f443beca 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionAdjustmentUploadService/UploadConversionAdjustmentsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionAdjustmentUploadService::UploadConversionAdjustmentsResponse; +package Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadService::UploadConversionAdjustmentsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService.pm index 46b1e2f96..3196976a3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService; use strict; use warnings; @@ -22,9 +22,9 @@ sub upload_call_conversions { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}:uploadCallConversions'; + my $request_path = 'v4/customers/{+customerId}:uploadCallConversions'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::ConversionUploadService::UploadCallConversionsResponse'; +'Google::Ads::GoogleAds::V4::Services::ConversionUploadService::UploadCallConversionsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub upload_click_conversions { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}:uploadClickConversions'; + my $request_path = 'v4/customers/{+customerId}:uploadClickConversions'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::ConversionUploadService::UploadClickConversionsResponse'; +'Google::Ads::GoogleAds::V4::Services::ConversionUploadService::UploadClickConversionsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/CallConversion.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/CallConversion.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/CallConversion.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/CallConversion.pm index 4dc948892..26792f772 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/CallConversion.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/CallConversion.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService::CallConversion; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService::CallConversion; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/CallConversionResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/CallConversionResult.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/CallConversionResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/CallConversionResult.pm index 5c6094641..0bf4a8b89 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/CallConversionResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/CallConversionResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService::CallConversionResult; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService::CallConversionResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/ClickConversion.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/ClickConversion.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/ClickConversion.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/ClickConversion.pm index 7590cd8df..7df749ccc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/ClickConversion.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/ClickConversion.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService::ClickConversion; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService::ClickConversion; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/ClickConversionResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/ClickConversionResult.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/ClickConversionResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/ClickConversionResult.pm index 2f6e55d15..7e554a27a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/ClickConversionResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/ClickConversionResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService::ClickConversionResult; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService::ClickConversionResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/ExternalAttributionData.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/ExternalAttributionData.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/ExternalAttributionData.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/ExternalAttributionData.pm index fe170fd20..d73de0ba0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/ExternalAttributionData.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/ExternalAttributionData.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService::ExternalAttributionData; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService::ExternalAttributionData; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadCallConversionsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadCallConversionsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadCallConversionsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadCallConversionsRequest.pm index 66179bb80..e523f9aee 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadCallConversionsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadCallConversionsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService::UploadCallConversionsRequest; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService::UploadCallConversionsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadCallConversionsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadCallConversionsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadCallConversionsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadCallConversionsResponse.pm index 7d5baa51e..5ba2d6a35 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadCallConversionsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadCallConversionsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService::UploadCallConversionsResponse; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService::UploadCallConversionsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadClickConversionsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadClickConversionsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadClickConversionsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadClickConversionsRequest.pm index 7ad97b50f..13c304df0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadClickConversionsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadClickConversionsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService::UploadClickConversionsRequest; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService::UploadClickConversionsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadClickConversionsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadClickConversionsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadClickConversionsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadClickConversionsResponse.pm index 5038f9e10..145ee8ab0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ConversionUploadService/UploadClickConversionsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ConversionUploadService/UploadClickConversionsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ConversionUploadService::UploadClickConversionsResponse; +package Google::Ads::GoogleAds::V4::Services::ConversionUploadService::UploadClickConversionsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/CurrencyConstantService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CurrencyConstantService.pm new file mode 100644 index 000000000..3bbed42bf --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/CurrencyConstantService.pm @@ -0,0 +1,32 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::CurrencyConstantService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub get { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CurrencyConstant'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/CurrencyConstantService/GetCurrencyConstantRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CurrencyConstantService/GetCurrencyConstantRequest.pm new file mode 100644 index 000000000..a675387cf --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/CurrencyConstantService/GetCurrencyConstantRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::CurrencyConstantService::GetCurrencyConstantRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService.pm index 1c601f255..63cc15ca2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomInterestService; +package Google::Ads::GoogleAds::V4::Services::CustomInterestService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::CustomInterest'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CustomInterest'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/customInterests:mutate'; + my $request_path = 'v4/customers/{+customerId}/customInterests:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomInterestService::MutateCustomInterestsResponse'; +'Google::Ads::GoogleAds::V4::Services::CustomInterestService::MutateCustomInterestsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/CustomInterestOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/CustomInterestOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/CustomInterestOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/CustomInterestOperation.pm index 3de67b7ce..e236e16ef 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/CustomInterestOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/CustomInterestOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomInterestService::CustomInterestOperation; +package Google::Ads::GoogleAds::V4::Services::CustomInterestService::CustomInterestOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/GetCustomInterestRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/GetCustomInterestRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/GetCustomInterestRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/GetCustomInterestRequest.pm index 054e87c59..99f2adaa9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/GetCustomInterestRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/GetCustomInterestRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomInterestService::GetCustomInterestRequest; +package Google::Ads::GoogleAds::V4::Services::CustomInterestService::GetCustomInterestRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/MutateCustomInterestResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/MutateCustomInterestResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/MutateCustomInterestResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/MutateCustomInterestResult.pm index 475b04abb..b3bd45efd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/MutateCustomInterestResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/MutateCustomInterestResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomInterestService::MutateCustomInterestResult; +package Google::Ads::GoogleAds::V4::Services::CustomInterestService::MutateCustomInterestResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/MutateCustomInterestsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/MutateCustomInterestsRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/MutateCustomInterestsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/MutateCustomInterestsRequest.pm index 73b20ed50..71f75daf1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/MutateCustomInterestsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/MutateCustomInterestsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomInterestService::MutateCustomInterestsRequest; +package Google::Ads::GoogleAds::V4::Services::CustomInterestService::MutateCustomInterestsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/MutateCustomInterestsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/MutateCustomInterestsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/MutateCustomInterestsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/MutateCustomInterestsResponse.pm index b99fc6a44..e39a9c010 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomInterestService/MutateCustomInterestsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomInterestService/MutateCustomInterestsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomInterestService::MutateCustomInterestsResponse; +package Google::Ads::GoogleAds::V4::Services::CustomInterestService::MutateCustomInterestsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService.pm index dbbd43677..cb4b043e2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerClientLinkService; +package Google::Ads::GoogleAds::V4::Services::CustomerClientLinkService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CustomerClientLink'; + 'Google::Ads::GoogleAds::V4::Resources::CustomerClientLink'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/customerClientLinks:mutate'; + my $request_path = 'v4/customers/{+customerId}/customerClientLinks:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomerClientLinkService::MutateCustomerClientLinkResponse'; +'Google::Ads::GoogleAds::V4::Services::CustomerClientLinkService::MutateCustomerClientLinkResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/CustomerClientLinkOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/CustomerClientLinkOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/CustomerClientLinkOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/CustomerClientLinkOperation.pm index 88ea0e615..7db4c8ca3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/CustomerClientLinkOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/CustomerClientLinkOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerClientLinkService::CustomerClientLinkOperation; +package Google::Ads::GoogleAds::V4::Services::CustomerClientLinkService::CustomerClientLinkOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/GetCustomerClientLinkRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/GetCustomerClientLinkRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/GetCustomerClientLinkRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/GetCustomerClientLinkRequest.pm index ddd963f9c..551624472 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/GetCustomerClientLinkRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/GetCustomerClientLinkRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerClientLinkService::GetCustomerClientLinkRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerClientLinkService::GetCustomerClientLinkRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/MutateCustomerClientLinkRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/MutateCustomerClientLinkRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/MutateCustomerClientLinkRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/MutateCustomerClientLinkRequest.pm index 3485df579..86e2d5bb4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/MutateCustomerClientLinkRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/MutateCustomerClientLinkRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerClientLinkService::MutateCustomerClientLinkRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerClientLinkService::MutateCustomerClientLinkRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/MutateCustomerClientLinkResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/MutateCustomerClientLinkResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/MutateCustomerClientLinkResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/MutateCustomerClientLinkResponse.pm index 94d4cf0a3..a1c030d49 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/MutateCustomerClientLinkResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/MutateCustomerClientLinkResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerClientLinkService::MutateCustomerClientLinkResponse; +package Google::Ads::GoogleAds::V4::Services::CustomerClientLinkService::MutateCustomerClientLinkResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/MutateCustomerClientLinkResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/MutateCustomerClientLinkResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/MutateCustomerClientLinkResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/MutateCustomerClientLinkResult.pm index a582dda7a..56355d980 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientLinkService/MutateCustomerClientLinkResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientLinkService/MutateCustomerClientLinkResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerClientLinkService::MutateCustomerClientLinkResult; +package Google::Ads::GoogleAds::V4::Services::CustomerClientLinkService::MutateCustomerClientLinkResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerClientService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerClientService.pm index c04070a49..579138100 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerClientService; +package Google::Ads::GoogleAds::V4::Services::CustomerClientService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::CustomerClient'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CustomerClient'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientService/GetCustomerClientRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientService/GetCustomerClientRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerClientService/GetCustomerClientRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerClientService/GetCustomerClientRequest.pm index 67eafc447..59c07e39c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerClientService/GetCustomerClientRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerClientService/GetCustomerClientRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerClientService::GetCustomerClientRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerClientService::GetCustomerClientRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService.pm index 54eab44a3..755bd48ba 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerExtensionSettingService; +package Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CustomerExtensionSetting'; + 'Google::Ads::GoogleAds::V4::Resources::CustomerExtensionSetting'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -35,9 +35,9 @@ sub mutate { my $request_body = shift; my $http_method = 'POST'; my $request_path = - 'v1/customers/{+customerId}/customerExtensionSettings:mutate'; + 'v4/customers/{+customerId}/customerExtensionSettings:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomerExtensionSettingService::MutateCustomerExtensionSettingsResponse'; +'Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::MutateCustomerExtensionSettingsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/CustomerExtensionSettingOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/CustomerExtensionSettingOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/CustomerExtensionSettingOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/CustomerExtensionSettingOperation.pm index a30009621..26a29d162 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/CustomerExtensionSettingOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/CustomerExtensionSettingOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation; +package Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::CustomerExtensionSettingOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/GetCustomerExtensionSettingRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/GetCustomerExtensionSettingRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/GetCustomerExtensionSettingRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/GetCustomerExtensionSettingRequest.pm index fb97de252..bf4552d39 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/GetCustomerExtensionSettingRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/GetCustomerExtensionSettingRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerExtensionSettingService::GetCustomerExtensionSettingRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::GetCustomerExtensionSettingRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingResult.pm index 524a76f26..3be3d9824 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerExtensionSettingService::MutateCustomerExtensionSettingResult; +package Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::MutateCustomerExtensionSettingResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsRequest.pm index 0796f5adb..0c786f94c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerExtensionSettingService::MutateCustomerExtensionSettingsRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::MutateCustomerExtensionSettingsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsResponse.pm index cf95a051c..554105436 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerExtensionSettingService/MutateCustomerExtensionSettingsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerExtensionSettingService::MutateCustomerExtensionSettingsResponse; +package Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingService::MutateCustomerExtensionSettingsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService.pm index 7502774fc..9c5b86ee4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerFeedService; +package Google::Ads::GoogleAds::V4::Services::CustomerFeedService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::CustomerFeed'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CustomerFeed'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/customerFeeds:mutate'; + my $request_path = 'v4/customers/{+customerId}/customerFeeds:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomerFeedService::MutateCustomerFeedsResponse'; +'Google::Ads::GoogleAds::V4::Services::CustomerFeedService::MutateCustomerFeedsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/CustomerFeedOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/CustomerFeedOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/CustomerFeedOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/CustomerFeedOperation.pm index 2bd839577..391e998cb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/CustomerFeedOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/CustomerFeedOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerFeedService::CustomerFeedOperation; +package Google::Ads::GoogleAds::V4::Services::CustomerFeedService::CustomerFeedOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/GetCustomerFeedRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/GetCustomerFeedRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/GetCustomerFeedRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/GetCustomerFeedRequest.pm index 4bd222370..e1c3d18d2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/GetCustomerFeedRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/GetCustomerFeedRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerFeedService::GetCustomerFeedRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerFeedService::GetCustomerFeedRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/MutateCustomerFeedResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/MutateCustomerFeedResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/MutateCustomerFeedResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/MutateCustomerFeedResult.pm index 8facf0b98..2b9c99ba0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/MutateCustomerFeedResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/MutateCustomerFeedResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerFeedService::MutateCustomerFeedResult; +package Google::Ads::GoogleAds::V4::Services::CustomerFeedService::MutateCustomerFeedResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/MutateCustomerFeedsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/MutateCustomerFeedsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/MutateCustomerFeedsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/MutateCustomerFeedsRequest.pm index 1c2d26feb..82f82edeb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/MutateCustomerFeedsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/MutateCustomerFeedsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerFeedService::MutateCustomerFeedsRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerFeedService::MutateCustomerFeedsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/MutateCustomerFeedsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/MutateCustomerFeedsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/MutateCustomerFeedsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/MutateCustomerFeedsResponse.pm index 923b6b61f..1277cdc3c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerFeedService/MutateCustomerFeedsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerFeedService/MutateCustomerFeedsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerFeedService::MutateCustomerFeedsResponse; +package Google::Ads::GoogleAds::V4::Services::CustomerFeedService::MutateCustomerFeedsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService.pm index 5cfbc77e6..cba0001f8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerLabelService; +package Google::Ads::GoogleAds::V4::Services::CustomerLabelService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::CustomerLabel'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::CustomerLabel'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/customerLabels:mutate'; + my $request_path = 'v4/customers/{+customerId}/customerLabels:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomerLabelService::MutateCustomerLabelsResponse'; +'Google::Ads::GoogleAds::V4::Services::CustomerLabelService::MutateCustomerLabelsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/CustomerLabelOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/CustomerLabelOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/CustomerLabelOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/CustomerLabelOperation.pm index a2e5de6ba..19b683c46 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/CustomerLabelOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/CustomerLabelOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerLabelService::CustomerLabelOperation; +package Google::Ads::GoogleAds::V4::Services::CustomerLabelService::CustomerLabelOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/GetCustomerLabelRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/GetCustomerLabelRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/GetCustomerLabelRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/GetCustomerLabelRequest.pm index 20bee01ed..597f1bb7c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/GetCustomerLabelRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/GetCustomerLabelRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerLabelService::GetCustomerLabelRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerLabelService::GetCustomerLabelRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/MutateCustomerLabelResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/MutateCustomerLabelResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/MutateCustomerLabelResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/MutateCustomerLabelResult.pm index efb98c850..6d72c777b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/MutateCustomerLabelResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/MutateCustomerLabelResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerLabelService::MutateCustomerLabelResult; +package Google::Ads::GoogleAds::V4::Services::CustomerLabelService::MutateCustomerLabelResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/MutateCustomerLabelsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/MutateCustomerLabelsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/MutateCustomerLabelsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/MutateCustomerLabelsRequest.pm index 16d734463..dab44ba51 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/MutateCustomerLabelsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/MutateCustomerLabelsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerLabelService::MutateCustomerLabelsRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerLabelService::MutateCustomerLabelsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/MutateCustomerLabelsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/MutateCustomerLabelsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/MutateCustomerLabelsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/MutateCustomerLabelsResponse.pm index 5ea9d3b70..2c29193d9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerLabelService/MutateCustomerLabelsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerLabelService/MutateCustomerLabelsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerLabelService::MutateCustomerLabelsResponse; +package Google::Ads::GoogleAds::V4::Services::CustomerLabelService::MutateCustomerLabelsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService.pm new file mode 100644 index 000000000..79b4e74e6 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService.pm @@ -0,0 +1,58 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub get { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = + 'Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub move_manager_link { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = + 'v4/customers/{+customerId}/customerManagerLinks:moveManagerLink'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::MoveManagerLinkResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub mutate { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/customers/{+customerId}/customerManagerLinks:mutate'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::MutateCustomerManagerLinkResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/CustomerManagerLinkOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/CustomerManagerLinkOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/CustomerManagerLinkOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/CustomerManagerLinkOperation.pm index ae613a379..792835390 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/CustomerManagerLinkOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/CustomerManagerLinkOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkService::CustomerManagerLinkOperation; +package Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::CustomerManagerLinkOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/GetCustomerManagerLinkRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/GetCustomerManagerLinkRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/GetCustomerManagerLinkRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/GetCustomerManagerLinkRequest.pm index 6acc00ad2..5af0f6a45 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/GetCustomerManagerLinkRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/GetCustomerManagerLinkRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkService::GetCustomerManagerLinkRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::GetCustomerManagerLinkRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Resources/DynamicSearchAdsSearchTermView.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MoveManagerLinkRequest.pm similarity index 74% rename from lib/Google/Ads/GoogleAds/V1/Resources/DynamicSearchAdsSearchTermView.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MoveManagerLinkRequest.pm index 1090af224..0b879dcf5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Resources/DynamicSearchAdsSearchTermView.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MoveManagerLinkRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Resources::DynamicSearchAdsSearchTermView; +package Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::MoveManagerLinkRequest; use strict; use warnings; @@ -23,11 +23,9 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { - headline => $args->{headline}, - landingPage => $args->{landingPage}, - pageUrl => $args->{pageUrl}, - resourceName => $args->{resourceName}, - searchTerm => $args->{searchTerm}}; + customerId => $args->{customerId}, + newManager => $args->{newManager}, + previousCustomerManagerLink => $args->{previousCustomerManagerLink}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MoveManagerLinkResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MoveManagerLinkResponse.pm new file mode 100644 index 000000000..76a4642c7 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MoveManagerLinkResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::MoveManagerLinkResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/MutateCustomerManagerLinkRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MutateCustomerManagerLinkRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/MutateCustomerManagerLinkRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MutateCustomerManagerLinkRequest.pm index f69e7c4d6..90997f188 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/MutateCustomerManagerLinkRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MutateCustomerManagerLinkRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkService::MutateCustomerManagerLinkRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::MutateCustomerManagerLinkRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResponse.pm index 590597be0..713f45f8e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkService::MutateCustomerManagerLinkResponse; +package Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::MutateCustomerManagerLinkResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResult.pm index 67e1af9ce..bd1ba1a10 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerManagerLinkService/MutateCustomerManagerLinkResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkService::MutateCustomerManagerLinkResult; +package Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkService::MutateCustomerManagerLinkResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService.pm index bf2d95f1e..8965909e5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionService; +package Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CustomerNegativeCriterion'; + 'Google::Ads::GoogleAds::V4::Resources::CustomerNegativeCriterion'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -35,9 +35,9 @@ sub mutate { my $request_body = shift; my $http_method = 'POST'; my $request_path = - 'v1/customers/{+customerId}/customerNegativeCriteria:mutate'; + 'v4/customers/{+customerId}/customerNegativeCriteria:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionService::MutateCustomerNegativeCriteriaResponse'; +'Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionService::MutateCustomerNegativeCriteriaResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/CustomerNegativeCriterionOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/CustomerNegativeCriterionOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/CustomerNegativeCriterionOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/CustomerNegativeCriterionOperation.pm index 1381d7b7a..45db3d8ed 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/CustomerNegativeCriterionOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/CustomerNegativeCriterionOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionService::CustomerNegativeCriterionOperation; +package Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionService::CustomerNegativeCriterionOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/GetCustomerNegativeCriterionRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/GetCustomerNegativeCriterionRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/GetCustomerNegativeCriterionRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/GetCustomerNegativeCriterionRequest.pm index ebb650814..f97586e51 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/GetCustomerNegativeCriterionRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/GetCustomerNegativeCriterionRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionService::GetCustomerNegativeCriterionRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionService::GetCustomerNegativeCriterionRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaRequest.pm index d5af14042..1f0f65768 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionService::MutateCustomerNegativeCriteriaRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionService::MutateCustomerNegativeCriteriaRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResponse.pm index 15532f104..91c27659b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionService::MutateCustomerNegativeCriteriaResponse; +package Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionService::MutateCustomerNegativeCriteriaResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResult.pm index d9fbfdfce..6fd668904 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerNegativeCriterionService/MutateCustomerNegativeCriteriaResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionService::MutateCustomerNegativeCriteriaResult; +package Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionService::MutateCustomerNegativeCriteriaResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService.pm similarity index 73% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService.pm index 4af171827..0b2995720 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService; +package Google::Ads::GoogleAds::V4::Services::CustomerService; use strict; use warnings; @@ -22,9 +22,9 @@ sub create_customer_client { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}:createCustomerClient'; + my $request_path = 'v4/customers/{+customerId}:createCustomerClient'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomerService::CreateCustomerClientResponse'; +'Google::Ads::GoogleAds::V4::Services::CustomerService::CreateCustomerClientResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,8 +34,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::Customer'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::Customer'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -45,9 +45,9 @@ sub list_accessible_customers { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/customers:listAccessibleCustomers'; + my $request_path = 'v4/customers:listAccessibleCustomers'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomerService::ListAccessibleCustomersResponse'; +'Google::Ads::GoogleAds::V4::Services::CustomerService::ListAccessibleCustomersResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -57,9 +57,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}:mutate'; + my $request_path = 'v4/customers/{+customerId}:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomerService::MutateCustomerResponse'; +'Google::Ads::GoogleAds::V4::Services::CustomerService::MutateCustomerResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/CreateCustomerClientRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/CreateCustomerClientRequest.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService/CreateCustomerClientRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService/CreateCustomerClientRequest.pm index b40b3ede9..6f0b75413 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/CreateCustomerClientRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/CreateCustomerClientRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService::CreateCustomerClientRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerService::CreateCustomerClientRequest; use strict; use warnings; @@ -23,8 +23,10 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { + accessRole => $args->{accessRole}, customerClient => $args->{customerClient}, - customerId => $args->{customerId}}; + customerId => $args->{customerId}, + emailAddress => $args->{emailAddress}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/CreateCustomerClientResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/CreateCustomerClientResponse.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService/CreateCustomerClientResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService/CreateCustomerClientResponse.pm index 364e6fdab..fe5659c85 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/CreateCustomerClientResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/CreateCustomerClientResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService::CreateCustomerClientResponse; +package Google::Ads::GoogleAds::V4::Services::CustomerService::CreateCustomerClientResponse; use strict; use warnings; @@ -22,7 +22,9 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; - my $self = {resourceName => $args->{resourceName}}; + my $self = { + invitationLink => $args->{invitationLink}, + resourceName => $args->{resourceName}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/CustomerOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/CustomerOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService/CustomerOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService/CustomerOperation.pm index 91136b1df..2d310f699 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/CustomerOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/CustomerOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService::CustomerOperation; +package Google::Ads::GoogleAds::V4::Services::CustomerService::CustomerOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/GetCustomerRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/GetCustomerRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService/GetCustomerRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService/GetCustomerRequest.pm index c628755c3..9de5b9855 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/GetCustomerRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/GetCustomerRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService::GetCustomerRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerService::GetCustomerRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/ListAccessibleCustomersRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/ListAccessibleCustomersRequest.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService/ListAccessibleCustomersRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService/ListAccessibleCustomersRequest.pm index a9db77c1c..acc6a01fd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/ListAccessibleCustomersRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/ListAccessibleCustomersRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService::ListAccessibleCustomersRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerService::ListAccessibleCustomersRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/ListAccessibleCustomersResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/ListAccessibleCustomersResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService/ListAccessibleCustomersResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService/ListAccessibleCustomersResponse.pm index 5ad891316..f5f814d85 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/ListAccessibleCustomersResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/ListAccessibleCustomersResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService::ListAccessibleCustomersResponse; +package Google::Ads::GoogleAds::V4::Services::CustomerService::ListAccessibleCustomersResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/MutateCustomerRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/MutateCustomerRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService/MutateCustomerRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService/MutateCustomerRequest.pm index 0177d72fa..6fda59139 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/MutateCustomerRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/MutateCustomerRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService::MutateCustomerRequest; +package Google::Ads::GoogleAds::V4::Services::CustomerService::MutateCustomerRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/MutateCustomerResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/MutateCustomerResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService/MutateCustomerResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService/MutateCustomerResponse.pm index 747103c90..3749c9a27 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/MutateCustomerResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/MutateCustomerResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService::MutateCustomerResponse; +package Google::Ads::GoogleAds::V4::Services::CustomerService::MutateCustomerResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/MutateCustomerResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/MutateCustomerResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerService/MutateCustomerResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/CustomerService/MutateCustomerResult.pm index f6293137a..22a5f94db 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerService/MutateCustomerResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/CustomerService/MutateCustomerResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerService::MutateCustomerResult; +package Google::Ads::GoogleAds::V4::Services::CustomerService::MutateCustomerResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/DetailPlacementViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/DetailPlacementViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/DetailPlacementViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/DetailPlacementViewService.pm index 433305733..19280bc1a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/DetailPlacementViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/DetailPlacementViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::DetailPlacementViewService; +package Google::Ads::GoogleAds::V4::Services::DetailPlacementViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::DetailPlacementView'; + 'Google::Ads::GoogleAds::V4::Resources::DetailPlacementView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/DetailPlacementViewService/GetDetailPlacementViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/DetailPlacementViewService/GetDetailPlacementViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/DetailPlacementViewService/GetDetailPlacementViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/DetailPlacementViewService/GetDetailPlacementViewRequest.pm index a7ebdbd47..d16c48d23 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/DetailPlacementViewService/GetDetailPlacementViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/DetailPlacementViewService/GetDetailPlacementViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::DetailPlacementViewService::GetDetailPlacementViewRequest; +package Google::Ads::GoogleAds::V4::Services::DetailPlacementViewService::GetDetailPlacementViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/DisplayKeywordViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/DisplayKeywordViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/DisplayKeywordViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/DisplayKeywordViewService.pm index b8a522d63..1de2172cb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/DisplayKeywordViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/DisplayKeywordViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::DisplayKeywordViewService; +package Google::Ads::GoogleAds::V4::Services::DisplayKeywordViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::DisplayKeywordView'; + 'Google::Ads::GoogleAds::V4::Resources::DisplayKeywordView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/DisplayKeywordViewService/GetDisplayKeywordViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/DisplayKeywordViewService/GetDisplayKeywordViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/DisplayKeywordViewService/GetDisplayKeywordViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/DisplayKeywordViewService/GetDisplayKeywordViewRequest.pm index aacaebdf4..e48e60a4f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/DisplayKeywordViewService/GetDisplayKeywordViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/DisplayKeywordViewService/GetDisplayKeywordViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::DisplayKeywordViewService::GetDisplayKeywordViewRequest; +package Google::Ads::GoogleAds::V4::Services::DisplayKeywordViewService::GetDisplayKeywordViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/DistanceViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/DistanceViewService.pm new file mode 100644 index 000000000..8755e7e85 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/DistanceViewService.pm @@ -0,0 +1,32 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::DistanceViewService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub get { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::DistanceView'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/DistanceViewService/GetDistanceViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/DistanceViewService/GetDistanceViewRequest.pm new file mode 100644 index 000000000..a605501f4 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/DistanceViewService/GetDistanceViewRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::DistanceViewService::GetDistanceViewRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/DomainCategoryService.pm b/lib/Google/Ads/GoogleAds/V4/Services/DomainCategoryService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/DomainCategoryService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/DomainCategoryService.pm index 3dd14f150..0839cf900 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/DomainCategoryService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/DomainCategoryService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::DomainCategoryService; +package Google::Ads::GoogleAds::V4::Services::DomainCategoryService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::DomainCategory'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::DomainCategory'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/DomainCategoryService/GetDomainCategoryRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/DomainCategoryService/GetDomainCategoryRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/DomainCategoryService/GetDomainCategoryRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/DomainCategoryService/GetDomainCategoryRequest.pm index fe2fa0926..c027cc58c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/DomainCategoryService/GetDomainCategoryRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/DomainCategoryService/GetDomainCategoryRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::DomainCategoryService::GetDomainCategoryRequest; +package Google::Ads::GoogleAds::V4::Services::DomainCategoryService::GetDomainCategoryRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/DynamicSearchAdsSearchTermViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/DynamicSearchAdsSearchTermViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/DynamicSearchAdsSearchTermViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/DynamicSearchAdsSearchTermViewService.pm index 718c3204f..c7a2edea2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/DynamicSearchAdsSearchTermViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/DynamicSearchAdsSearchTermViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::DynamicSearchAdsSearchTermViewService; +package Google::Ads::GoogleAds::V4::Services::DynamicSearchAdsSearchTermViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::DynamicSearchAdsSearchTermView'; + 'Google::Ads::GoogleAds::V4::Resources::DynamicSearchAdsSearchTermView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/DynamicSearchAdsSearchTermViewService/GetDynamicSearchAdsSearchTermViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/DynamicSearchAdsSearchTermViewService/GetDynamicSearchAdsSearchTermViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/DynamicSearchAdsSearchTermViewService/GetDynamicSearchAdsSearchTermViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/DynamicSearchAdsSearchTermViewService/GetDynamicSearchAdsSearchTermViewRequest.pm index f5daf3b73..d6448bc01 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/DynamicSearchAdsSearchTermViewService/GetDynamicSearchAdsSearchTermViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/DynamicSearchAdsSearchTermViewService/GetDynamicSearchAdsSearchTermViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::DynamicSearchAdsSearchTermViewService::GetDynamicSearchAdsSearchTermViewRequest; +package Google::Ads::GoogleAds::V4::Services::DynamicSearchAdsSearchTermViewService::GetDynamicSearchAdsSearchTermViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ExpandedLandingPageViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ExpandedLandingPageViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/ExpandedLandingPageViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ExpandedLandingPageViewService.pm index 0f134df01..4a7086603 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ExpandedLandingPageViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ExpandedLandingPageViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ExpandedLandingPageViewService; +package Google::Ads::GoogleAds::V4::Services::ExpandedLandingPageViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::ExpandedLandingPageView'; + 'Google::Ads::GoogleAds::V4::Resources::ExpandedLandingPageView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ExpandedLandingPageViewService/GetExpandedLandingPageViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ExpandedLandingPageViewService/GetExpandedLandingPageViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ExpandedLandingPageViewService/GetExpandedLandingPageViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ExpandedLandingPageViewService/GetExpandedLandingPageViewRequest.pm index 033debaff..df3cffab2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ExpandedLandingPageViewService/GetExpandedLandingPageViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ExpandedLandingPageViewService/GetExpandedLandingPageViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ExpandedLandingPageViewService::GetExpandedLandingPageViewRequest; +package Google::Ads::GoogleAds::V4::Services::ExpandedLandingPageViewService::GetExpandedLandingPageViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService.pm index 447c6956c..8b75e7c9c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemService; +package Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::ExtensionFeedItem'; + 'Google::Ads::GoogleAds::V4::Resources::ExtensionFeedItem'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/extensionFeedItems:mutate'; + my $request_path = 'v4/customers/{+customerId}/extensionFeedItems:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemService::MutateExtensionFeedItemsResponse'; +'Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::MutateExtensionFeedItemsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/ExtensionFeedItemOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/ExtensionFeedItemOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/ExtensionFeedItemOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/ExtensionFeedItemOperation.pm index d90e3f1c0..641dde154 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/ExtensionFeedItemOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/ExtensionFeedItemOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemService::ExtensionFeedItemOperation; +package Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::ExtensionFeedItemOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/GetExtensionFeedItemRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/GetExtensionFeedItemRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/GetExtensionFeedItemRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/GetExtensionFeedItemRequest.pm index b533fb6d1..d78b559a9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/GetExtensionFeedItemRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/GetExtensionFeedItemRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemService::GetExtensionFeedItemRequest; +package Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::GetExtensionFeedItemRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/MutateExtensionFeedItemResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/MutateExtensionFeedItemResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/MutateExtensionFeedItemResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/MutateExtensionFeedItemResult.pm index 586f3271b..f652dd60d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/MutateExtensionFeedItemResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/MutateExtensionFeedItemResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemService::MutateExtensionFeedItemResult; +package Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::MutateExtensionFeedItemResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/MutateExtensionFeedItemsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/MutateExtensionFeedItemsRequest.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/MutateExtensionFeedItemsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/MutateExtensionFeedItemsRequest.pm index 9245cc61c..46e112f1b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/MutateExtensionFeedItemsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/MutateExtensionFeedItemsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemService::MutateExtensionFeedItemsRequest; +package Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::MutateExtensionFeedItemsRequest; use strict; use warnings; @@ -23,9 +23,10 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { - customerId => $args->{customerId}, - operations => $args->{operations}, - validateOnly => $args->{validateOnly}}; + customerId => $args->{customerId}, + operations => $args->{operations}, + partialFailure => $args->{partialFailure}, + validateOnly => $args->{validateOnly}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/MutateExtensionFeedItemsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/MutateExtensionFeedItemsResponse.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/MutateExtensionFeedItemsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/MutateExtensionFeedItemsResponse.pm index 71551b808..f05a3a166 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ExtensionFeedItemService/MutateExtensionFeedItemsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ExtensionFeedItemService/MutateExtensionFeedItemsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemService::MutateExtensionFeedItemsResponse; +package Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemService::MutateExtensionFeedItemsResponse; use strict; use warnings; @@ -22,7 +22,9 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; - my $self = {results => $args->{results}}; + my $self = { + partialFailureError => $args->{partialFailureError}, + results => $args->{results}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemService.pm index ce69178f7..183bff813 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemService; +package Google::Ads::GoogleAds::V4::Services::FeedItemService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::FeedItem'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::FeedItem'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/feedItems:mutate'; + my $request_path = 'v4/customers/{+customerId}/feedItems:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::FeedItemService::MutateFeedItemsResponse'; +'Google::Ads::GoogleAds::V4::Services::FeedItemService::MutateFeedItemsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/FeedItemOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/FeedItemOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/FeedItemOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/FeedItemOperation.pm index 45d44dcce..700606e45 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/FeedItemOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/FeedItemOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemService::FeedItemOperation; +package Google::Ads::GoogleAds::V4::Services::FeedItemService::FeedItemOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/GetFeedItemRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/GetFeedItemRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/GetFeedItemRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/GetFeedItemRequest.pm index a14c6c676..7cdfade11 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/GetFeedItemRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/GetFeedItemRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemService::GetFeedItemRequest; +package Google::Ads::GoogleAds::V4::Services::FeedItemService::GetFeedItemRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/MutateFeedItemResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/MutateFeedItemResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/MutateFeedItemResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/MutateFeedItemResult.pm index 32b4d3f6c..c9840ea19 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/MutateFeedItemResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/MutateFeedItemResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemService::MutateFeedItemResult; +package Google::Ads::GoogleAds::V4::Services::FeedItemService::MutateFeedItemResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/MutateFeedItemsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/MutateFeedItemsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/MutateFeedItemsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/MutateFeedItemsRequest.pm index 1f8eea24f..8b314f16a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/MutateFeedItemsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/MutateFeedItemsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemService::MutateFeedItemsRequest; +package Google::Ads::GoogleAds::V4::Services::FeedItemService::MutateFeedItemsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/MutateFeedItemsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/MutateFeedItemsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/MutateFeedItemsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/MutateFeedItemsResponse.pm index 57178ced0..6d8daee02 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemService/MutateFeedItemsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemService/MutateFeedItemsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemService::MutateFeedItemsResponse; +package Google::Ads::GoogleAds::V4::Services::FeedItemService::MutateFeedItemsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService.pm index 4f2feebe0..26cd1e70d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemTargetService; +package Google::Ads::GoogleAds::V4::Services::FeedItemTargetService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::FeedItemTarget'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::FeedItemTarget'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/feedItemTargets:mutate'; + my $request_path = 'v4/customers/{+customerId}/feedItemTargets:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::FeedItemTargetService::MutateFeedItemTargetsResponse'; +'Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::MutateFeedItemTargetsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/FeedItemTargetOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/FeedItemTargetOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/FeedItemTargetOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/FeedItemTargetOperation.pm index 7a8bd9b3f..c0d7dc2b9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/FeedItemTargetOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/FeedItemTargetOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemTargetService::FeedItemTargetOperation; +package Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::FeedItemTargetOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/GetFeedItemTargetRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/GetFeedItemTargetRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/GetFeedItemTargetRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/GetFeedItemTargetRequest.pm index 02b108702..3209d9836 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/GetFeedItemTargetRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/GetFeedItemTargetRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemTargetService::GetFeedItemTargetRequest; +package Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::GetFeedItemTargetRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/MutateFeedItemTargetResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/MutateFeedItemTargetResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/MutateFeedItemTargetResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/MutateFeedItemTargetResult.pm index b216018c3..b6762fca2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/MutateFeedItemTargetResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/MutateFeedItemTargetResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemTargetService::MutateFeedItemTargetResult; +package Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::MutateFeedItemTargetResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/MutateFeedItemTargetsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/MutateFeedItemTargetsRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/MutateFeedItemTargetsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/MutateFeedItemTargetsRequest.pm index 5cd4af3fc..2e42670b8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/MutateFeedItemTargetsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/MutateFeedItemTargetsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemTargetService::MutateFeedItemTargetsRequest; +package Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::MutateFeedItemTargetsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/MutateFeedItemTargetsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/MutateFeedItemTargetsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/MutateFeedItemTargetsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/MutateFeedItemTargetsResponse.pm index 055f951b9..e6b70253f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedItemTargetService/MutateFeedItemTargetsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedItemTargetService/MutateFeedItemTargetsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedItemTargetService::MutateFeedItemTargetsResponse; +package Google::Ads::GoogleAds::V4::Services::FeedItemTargetService::MutateFeedItemTargetsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService.pm index bd609b3ac..dbc6671f9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedMappingService; +package Google::Ads::GoogleAds::V4::Services::FeedMappingService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::FeedMapping'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::FeedMapping'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/feedMappings:mutate'; + my $request_path = 'v4/customers/{+customerId}/feedMappings:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::FeedMappingService::MutateFeedMappingsResponse'; +'Google::Ads::GoogleAds::V4::Services::FeedMappingService::MutateFeedMappingsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/FeedMappingOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/FeedMappingOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/FeedMappingOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/FeedMappingOperation.pm index a4fb2e33e..10e95debb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/FeedMappingOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/FeedMappingOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedMappingService::FeedMappingOperation; +package Google::Ads::GoogleAds::V4::Services::FeedMappingService::FeedMappingOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/GetFeedMappingRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/GetFeedMappingRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/GetFeedMappingRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/GetFeedMappingRequest.pm index 2aff4e9c2..d2b646b37 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/GetFeedMappingRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/GetFeedMappingRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedMappingService::GetFeedMappingRequest; +package Google::Ads::GoogleAds::V4::Services::FeedMappingService::GetFeedMappingRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/MutateFeedMappingResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/MutateFeedMappingResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/MutateFeedMappingResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/MutateFeedMappingResult.pm index 8c73d083e..8af6b7e7e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/MutateFeedMappingResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/MutateFeedMappingResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedMappingService::MutateFeedMappingResult; +package Google::Ads::GoogleAds::V4::Services::FeedMappingService::MutateFeedMappingResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/MutateFeedMappingsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/MutateFeedMappingsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/MutateFeedMappingsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/MutateFeedMappingsRequest.pm index ef12cb0d6..25075e8f6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/MutateFeedMappingsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/MutateFeedMappingsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedMappingService::MutateFeedMappingsRequest; +package Google::Ads::GoogleAds::V4::Services::FeedMappingService::MutateFeedMappingsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/MutateFeedMappingsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/MutateFeedMappingsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/MutateFeedMappingsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/MutateFeedMappingsResponse.pm index 63920b95e..59d2af52f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedMappingService/MutateFeedMappingsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedMappingService/MutateFeedMappingsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedMappingService::MutateFeedMappingsResponse; +package Google::Ads::GoogleAds::V4::Services::FeedMappingService::MutateFeedMappingsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedPlaceholderViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedPlaceholderViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedPlaceholderViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedPlaceholderViewService.pm index 830db941d..e2c7cc1a6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedPlaceholderViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedPlaceholderViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedPlaceholderViewService; +package Google::Ads::GoogleAds::V4::Services::FeedPlaceholderViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::FeedPlaceholderView'; + 'Google::Ads::GoogleAds::V4::Resources::FeedPlaceholderView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedPlaceholderViewService/GetFeedPlaceholderViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedPlaceholderViewService/GetFeedPlaceholderViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedPlaceholderViewService/GetFeedPlaceholderViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedPlaceholderViewService/GetFeedPlaceholderViewRequest.pm index 5673ae378..fcb712c4f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedPlaceholderViewService/GetFeedPlaceholderViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedPlaceholderViewService/GetFeedPlaceholderViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedPlaceholderViewService::GetFeedPlaceholderViewRequest; +package Google::Ads::GoogleAds::V4::Services::FeedPlaceholderViewService::GetFeedPlaceholderViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedService.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedService.pm index 1b4cecd4b..38fb60a50 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedService; +package Google::Ads::GoogleAds::V4::Services::FeedService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::Feed'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::Feed'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/feeds:mutate'; + my $request_path = 'v4/customers/{+customerId}/feeds:mutate'; my $response_type = - 'Google::Ads::GoogleAds::V1::Services::FeedService::MutateFeedsResponse'; + 'Google::Ads::GoogleAds::V4::Services::FeedService::MutateFeedsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/FeedOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/FeedOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedService/FeedOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedService/FeedOperation.pm index 14a672a7c..15782982f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/FeedOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/FeedOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedService::FeedOperation; +package Google::Ads::GoogleAds::V4::Services::FeedService::FeedOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/GetFeedRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/GetFeedRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedService/GetFeedRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedService/GetFeedRequest.pm index a988afc24..84e46bf56 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/GetFeedRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/GetFeedRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedService::GetFeedRequest; +package Google::Ads::GoogleAds::V4::Services::FeedService::GetFeedRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/MutateFeedResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/MutateFeedResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedService/MutateFeedResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedService/MutateFeedResult.pm index d95e8b9cf..40bfb0256 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/MutateFeedResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/MutateFeedResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedService::MutateFeedResult; +package Google::Ads::GoogleAds::V4::Services::FeedService::MutateFeedResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/MutateFeedsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/MutateFeedsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedService/MutateFeedsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedService/MutateFeedsRequest.pm index 554ae0e1b..3e7c08f75 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/MutateFeedsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/MutateFeedsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedService::MutateFeedsRequest; +package Google::Ads::GoogleAds::V4::Services::FeedService::MutateFeedsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/MutateFeedsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/MutateFeedsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/FeedService/MutateFeedsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/FeedService/MutateFeedsResponse.pm index de0639b33..bd8b7c402 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/FeedService/MutateFeedsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/FeedService/MutateFeedsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::FeedService::MutateFeedsResponse; +package Google::Ads::GoogleAds::V4::Services::FeedService::MutateFeedsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GenderViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/GenderViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/GenderViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GenderViewService.pm index 2aabede87..96a3af07b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GenderViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GenderViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GenderViewService; +package Google::Ads::GoogleAds::V4::Services::GenderViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::GenderView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::GenderView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GenderViewService/GetGenderViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GenderViewService/GetGenderViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GenderViewService/GetGenderViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GenderViewService/GetGenderViewRequest.pm index f0c40b272..cd743e435 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GenderViewService/GetGenderViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GenderViewService/GetGenderViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GenderViewService::GetGenderViewRequest; +package Google::Ads::GoogleAds::V4::Services::GenderViewService::GetGenderViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService.pm b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService.pm index 4b5c1c086..59cca9028 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GeoTargetConstantService; +package Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::GeoTargetConstant'; + 'Google::Ads::GoogleAds::V4::Resources::GeoTargetConstant'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub suggest { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/geoTargetConstants:suggest'; + my $request_path = 'v4/geoTargetConstants:suggest'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::GeoTargetConstantService::SuggestGeoTargetConstantsResponse'; +'Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService::SuggestGeoTargetConstantsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/GeoTargetConstantSuggestion.pm b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/GeoTargetConstantSuggestion.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/GeoTargetConstantSuggestion.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/GeoTargetConstantSuggestion.pm index 66145694f..e8ee2c934 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/GeoTargetConstantSuggestion.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/GeoTargetConstantSuggestion.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GeoTargetConstantService::GeoTargetConstantSuggestion; +package Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService::GeoTargetConstantSuggestion; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/GeoTargets.pm b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/GeoTargets.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/GeoTargets.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/GeoTargets.pm index 5fb595921..9d2580760 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/GeoTargets.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/GeoTargets.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GeoTargetConstantService::GeoTargets; +package Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService::GeoTargets; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/GetGeoTargetConstantRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/GetGeoTargetConstantRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/GetGeoTargetConstantRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/GetGeoTargetConstantRequest.pm index 4c0e896f1..5d30b67ca 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/GetGeoTargetConstantRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/GetGeoTargetConstantRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GeoTargetConstantService::GetGeoTargetConstantRequest; +package Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService::GetGeoTargetConstantRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/LocationNames.pm b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/LocationNames.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/LocationNames.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/LocationNames.pm index 0f4be8f71..e568da4f2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/LocationNames.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/LocationNames.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GeoTargetConstantService::LocationNames; +package Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService::LocationNames; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/SuggestGeoTargetConstantsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/SuggestGeoTargetConstantsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/SuggestGeoTargetConstantsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/SuggestGeoTargetConstantsRequest.pm index d95b4f767..cbca6301e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/SuggestGeoTargetConstantsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/SuggestGeoTargetConstantsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GeoTargetConstantService::SuggestGeoTargetConstantsRequest; +package Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService::SuggestGeoTargetConstantsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/SuggestGeoTargetConstantsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/SuggestGeoTargetConstantsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/SuggestGeoTargetConstantsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/SuggestGeoTargetConstantsResponse.pm index 68865364e..5ace621aa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GeoTargetConstantService/SuggestGeoTargetConstantsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GeoTargetConstantService/SuggestGeoTargetConstantsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GeoTargetConstantService::SuggestGeoTargetConstantsResponse; +package Google::Ads::GoogleAds::V4::Services::GeoTargetConstantService::SuggestGeoTargetConstantsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GeographicViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/GeographicViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/GeographicViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GeographicViewService.pm index 5a84169a3..fc365f10c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GeographicViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GeographicViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GeographicViewService; +package Google::Ads::GoogleAds::V4::Services::GeographicViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::GeographicView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::GeographicView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GeographicViewService/GetGeographicViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GeographicViewService/GetGeographicViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GeographicViewService/GetGeographicViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GeographicViewService/GetGeographicViewRequest.pm index f4a412c47..bd0515341 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GeographicViewService/GetGeographicViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GeographicViewService/GetGeographicViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GeographicViewService::GetGeographicViewRequest; +package Google::Ads::GoogleAds::V4::Services::GeographicViewService::GetGeographicViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService.pm index b441caa12..4e493d8d1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsFieldService; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsFieldService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::GoogleAdsField'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::GoogleAdsField'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub search { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/googleAdsFields:search'; + my $request_path = 'v4/googleAdsFields:search'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::GoogleAdsFieldService::SearchGoogleAdsFieldsResponse'; +'Google::Ads::GoogleAds::V4::Services::GoogleAdsFieldService::SearchGoogleAdsFieldsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService/GetGoogleAdsFieldRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService/GetGoogleAdsFieldRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService/GetGoogleAdsFieldRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService/GetGoogleAdsFieldRequest.pm index eef66fa2f..3f59fbd16 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService/GetGoogleAdsFieldRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService/GetGoogleAdsFieldRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsFieldService::GetGoogleAdsFieldRequest; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsFieldService::GetGoogleAdsFieldRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsRequest.pm index b6496ba09..a438327b2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsFieldService::SearchGoogleAdsFieldsRequest; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsFieldService::SearchGoogleAdsFieldsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsResponse.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsResponse.pm index 859e25558..d848e4442 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsFieldService/SearchGoogleAdsFieldsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsFieldService::SearchGoogleAdsFieldsResponse; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsFieldService::SearchGoogleAdsFieldsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService.pm new file mode 100644 index 000000000..a1c2d872e --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService.pm @@ -0,0 +1,60 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub mutate { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/customers/{+customerId}/googleAds:mutate'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateGoogleAdsResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub search { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/customers/{+customerId}/googleAds:search'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub search_stream { + my $self = shift; + my $request_body = shift; + my $content_callback = shift; + my $http_method = 'POST'; + my $request_path = 'v4/customers/{+customerId}/googleAds:searchStream'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamResponse'; + + return $self->SUPER::call( + $http_method, $request_path, $request_body, + $response_type, $content_callback + ); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/GoogleAdsRow.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/GoogleAdsRow.pm similarity index 89% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/GoogleAdsRow.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/GoogleAdsRow.pm index abf6c8312..97efd4bcc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/GoogleAdsRow.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/GoogleAdsRow.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsService::GoogleAdsRow; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService::GoogleAdsRow; use strict; use warnings; @@ -25,8 +25,10 @@ sub new { my $self = { accountBudget => $args->{accountBudget}, accountBudgetProposal => $args->{accountBudgetProposal}, + accountLink => $args->{accountLink}, adGroup => $args->{adGroup}, adGroupAd => $args->{adGroupAd}, + adGroupAdAssetView => $args->{adGroupAdAssetView}, adGroupAdLabel => $args->{adGroupAdLabel}, adGroupAudienceView => $args->{adGroupAudienceView}, adGroupBidModifier => $args->{adGroupBidModifier}, @@ -41,6 +43,7 @@ sub new { adScheduleView => $args->{adScheduleView}, ageRangeView => $args->{ageRangeView}, asset => $args->{asset}, + batchJob => $args->{batchJob}, biddingStrategy => $args->{biddingStrategy}, billingSetup => $args->{billingSetup}, campaign => $args->{campaign}, @@ -59,6 +62,7 @@ sub new { changeStatus => $args->{changeStatus}, clickView => $args->{clickView}, conversionAction => $args->{conversionAction}, + currencyConstant => $args->{currencyConstant}, customInterest => $args->{customInterest}, customer => $args->{customer}, customerClient => $args->{customerClient}, @@ -70,6 +74,7 @@ sub new { customerNegativeCriterion => $args->{customerNegativeCriterion}, detailPlacementView => $args->{detailPlacementView}, displayKeywordView => $args->{displayKeywordView}, + distanceView => $args->{distanceView}, domainCategory => $args->{domainCategory}, dynamicSearchAdsSearchTermView => $args->{dynamicSearchAdsSearchTermView}, expandedLandingPageView => $args->{expandedLandingPageView}, @@ -85,11 +90,12 @@ sub new { groupPlacementView => $args->{groupPlacementView}, hotelGroupView => $args->{hotelGroupView}, hotelPerformanceView => $args->{hotelPerformanceView}, + incomeRangeView => $args->{incomeRangeView}, keywordPlan => $args->{keywordPlan}, keywordPlanAdGroup => $args->{keywordPlanAdGroup}, + keywordPlanAdGroupKeyword => $args->{keywordPlanAdGroupKeyword}, keywordPlanCampaign => $args->{keywordPlanCampaign}, - keywordPlanKeyword => $args->{keywordPlanKeyword}, - keywordPlanNegativeKeyword => $args->{keywordPlanNegativeKeyword}, + keywordPlanCampaignKeyword => $args->{keywordPlanCampaignKeyword}, keywordView => $args->{keywordView}, label => $args->{label}, landingPageView => $args->{landingPageView}, @@ -100,7 +106,7 @@ sub new { metrics => $args->{metrics}, mobileAppCategoryConstant => $args->{mobileAppCategoryConstant}, mobileDeviceConstant => $args->{mobileDeviceConstant}, - mutateJob => $args->{mutateJob}, + offlineUserDataJob => $args->{offlineUserDataJob}, operatingSystemVersionConstant => $args->{operatingSystemVersionConstant}, paidOrganicSearchTermView => $args->{paidOrganicSearchTermView}, parentalStatusView => $args->{parentalStatusView}, @@ -113,10 +119,12 @@ sub new { sharedCriterion => $args->{sharedCriterion}, sharedSet => $args->{sharedSet}, shoppingPerformanceView => $args->{shoppingPerformanceView}, + thirdPartyAppAnalyticsLink => $args->{thirdPartyAppAnalyticsLink}, topicConstant => $args->{topicConstant}, topicView => $args->{topicView}, userInterest => $args->{userInterest}, userList => $args->{userList}, + userLocationView => $args->{userLocationView}, video => $args->{video}}; # Delete the unassigned fields in this object for a more concise JSON payload diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateGoogleAdsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateGoogleAdsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateGoogleAdsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateGoogleAdsRequest.pm index a3532bda2..aad6fdd20 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateGoogleAdsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateGoogleAdsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsService::MutateGoogleAdsRequest; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateGoogleAdsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateGoogleAdsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateGoogleAdsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateGoogleAdsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateGoogleAdsResponse.pm index f886b5dca..037e5ef6c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateGoogleAdsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateGoogleAdsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsService::MutateGoogleAdsResponse; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateGoogleAdsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateOperation.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateOperation.pm index 1e9a35d7c..b00fdfda5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsService::MutateOperation; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateOperation; use strict; use warnings; @@ -33,6 +33,7 @@ sub new { adGroupFeedOperation => $args->{adGroupFeedOperation}, adGroupLabelOperation => $args->{adGroupLabelOperation}, adGroupOperation => $args->{adGroupOperation}, + adOperation => $args->{adOperation}, adParameterOperation => $args->{adParameterOperation}, assetOperation => $args->{assetOperation}, biddingStrategyOperation => $args->{biddingStrategyOperation}, @@ -60,12 +61,19 @@ sub new { feedItemTargetOperation => $args->{feedItemTargetOperation}, feedMappingOperation => $args->{feedMappingOperation}, feedOperation => $args->{feedOperation}, - labelOperation => $args->{labelOperation}, - mediaFileOperation => $args->{mediaFileOperation}, - remarketingActionOperation => $args->{remarketingActionOperation}, - sharedCriterionOperation => $args->{sharedCriterionOperation}, - sharedSetOperation => $args->{sharedSetOperation}, - userListOperation => $args->{userListOperation}}; + keywordPlanAdGroupKeywordOperation => + $args->{keywordPlanAdGroupKeywordOperation}, + keywordPlanAdGroupOperation => $args->{keywordPlanAdGroupOperation}, + keywordPlanCampaignKeywordOperation => + $args->{keywordPlanCampaignKeywordOperation}, + keywordPlanCampaignOperation => $args->{keywordPlanCampaignOperation}, + keywordPlanOperation => $args->{keywordPlanOperation}, + labelOperation => $args->{labelOperation}, + mediaFileOperation => $args->{mediaFileOperation}, + remarketingActionOperation => $args->{remarketingActionOperation}, + sharedCriterionOperation => $args->{sharedCriterionOperation}, + sharedSetOperation => $args->{sharedSetOperation}, + userListOperation => $args->{userListOperation}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateOperationResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateOperationResponse.pm similarity index 78% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateOperationResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateOperationResponse.pm index 4ddaad57f..74de23e1f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/MutateOperationResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/MutateOperationResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsService::MutateOperationResponse; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService::MutateOperationResponse; use strict; use warnings; @@ -33,6 +33,7 @@ sub new { adGroupLabelResult => $args->{adGroupLabelResult}, adGroupResult => $args->{adGroupResult}, adParameterResult => $args->{adParameterResult}, + adResult => $args->{adResult}, assetResult => $args->{assetResult}, biddingStrategyResult => $args->{biddingStrategyResult}, campaignBidModifierResult => $args->{campaignBidModifierResult}, @@ -56,12 +57,18 @@ sub new { feedItemTargetResult => $args->{feedItemTargetResult}, feedMappingResult => $args->{feedMappingResult}, feedResult => $args->{feedResult}, - labelResult => $args->{labelResult}, - mediaFileResult => $args->{mediaFileResult}, - remarketingActionResult => $args->{remarketingActionResult}, - sharedCriterionResult => $args->{sharedCriterionResult}, - sharedSetResult => $args->{sharedSetResult}, - userListResult => $args->{userListResult}}; + keywordPlanAdGroupKeywordResult => $args->{keywordPlanAdGroupKeywordResult}, + keywordPlanAdGroupResult => $args->{keywordPlanAdGroupResult}, + keywordPlanCampaignKeywordResult => + $args->{keywordPlanCampaignKeywordResult}, + keywordPlanCampaignResult => $args->{keywordPlanCampaignResult}, + keywordPlanResult => $args->{keywordPlanResult}, + labelResult => $args->{labelResult}, + mediaFileResult => $args->{mediaFileResult}, + remarketingActionResult => $args->{remarketingActionResult}, + sharedCriterionResult => $args->{sharedCriterionResult}, + sharedSetResult => $args->{sharedSetResult}, + userListResult => $args->{userListResult}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsRequest.pm new file mode 100644 index 000000000..a876f1fb4 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsRequest.pm @@ -0,0 +1,41 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + customerId => $args->{customerId}, + pageSize => $args->{pageSize}, + pageToken => $args->{pageToken}, + query => $args->{query}, + returnTotalResultsCount => $args->{returnTotalResultsCount}, + summaryRowSetting => $args->{summaryRowSetting}, + validateOnly => $args->{validateOnly}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/SearchGoogleAdsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsResponse.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/SearchGoogleAdsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsResponse.pm index 63c542032..40fec3f15 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/SearchGoogleAdsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsService::SearchGoogleAdsResponse; +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsResponse; use strict; use warnings; @@ -26,6 +26,7 @@ sub new { fieldMask => $args->{fieldMask}, nextPageToken => $args->{nextPageToken}, results => $args->{results}, + summaryRow => $args->{summaryRow}, totalResultsCount => $args->{totalResultsCount}}; # Delete the unassigned fields in this object for a more concise JSON payload diff --git a/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsStreamRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsStreamRequest.pm new file mode 100644 index 000000000..e4e7c644a --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsStreamRequest.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + customerId => $args->{customerId}, + query => $args->{query}, + summaryRowSetting => $args->{summaryRowSetting}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsStreamResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsStreamResponse.pm new file mode 100644 index 000000000..de919e6cb --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/GoogleAdsService/SearchGoogleAdsStreamResponse.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + fieldMask => $args->{fieldMask}, + results => $args->{results}, + summaryRow => $args->{summaryRow}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GroupPlacementViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/GroupPlacementViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/GroupPlacementViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GroupPlacementViewService.pm index 98c051ea0..1dce7b7b3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GroupPlacementViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GroupPlacementViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GroupPlacementViewService; +package Google::Ads::GoogleAds::V4::Services::GroupPlacementViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::GroupPlacementView'; + 'Google::Ads::GoogleAds::V4::Resources::GroupPlacementView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GroupPlacementViewService/GetGroupPlacementViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/GroupPlacementViewService/GetGroupPlacementViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/GroupPlacementViewService/GetGroupPlacementViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/GroupPlacementViewService/GetGroupPlacementViewRequest.pm index fe3747e33..e1d24cef0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GroupPlacementViewService/GetGroupPlacementViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/GroupPlacementViewService/GetGroupPlacementViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GroupPlacementViewService::GetGroupPlacementViewRequest; +package Google::Ads::GoogleAds::V4::Services::GroupPlacementViewService::GetGroupPlacementViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/HotelGroupViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/HotelGroupViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/HotelGroupViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/HotelGroupViewService.pm index 42d2edfd4..5ef760703 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/HotelGroupViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/HotelGroupViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::HotelGroupViewService; +package Google::Ads::GoogleAds::V4::Services::HotelGroupViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::HotelGroupView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::HotelGroupView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/HotelGroupViewService/GetHotelGroupViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/HotelGroupViewService/GetHotelGroupViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/HotelGroupViewService/GetHotelGroupViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/HotelGroupViewService/GetHotelGroupViewRequest.pm index 0498f5b93..577d2958e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/HotelGroupViewService/GetHotelGroupViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/HotelGroupViewService/GetHotelGroupViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::HotelGroupViewService::GetHotelGroupViewRequest; +package Google::Ads::GoogleAds::V4::Services::HotelGroupViewService::GetHotelGroupViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/HotelPerformanceViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/HotelPerformanceViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/HotelPerformanceViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/HotelPerformanceViewService.pm index 433c2e785..5a6fdc9cd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/HotelPerformanceViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/HotelPerformanceViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::HotelPerformanceViewService; +package Google::Ads::GoogleAds::V4::Services::HotelPerformanceViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::HotelPerformanceView'; + 'Google::Ads::GoogleAds::V4::Resources::HotelPerformanceView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/HotelPerformanceViewService/GetHotelPerformanceViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/HotelPerformanceViewService/GetHotelPerformanceViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/HotelPerformanceViewService/GetHotelPerformanceViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/HotelPerformanceViewService/GetHotelPerformanceViewRequest.pm index 77d9dd095..77ea88531 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/HotelPerformanceViewService/GetHotelPerformanceViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/HotelPerformanceViewService/GetHotelPerformanceViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::HotelPerformanceViewService::GetHotelPerformanceViewRequest; +package Google::Ads::GoogleAds::V4::Services::HotelPerformanceViewService::GetHotelPerformanceViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/IncomeRangeViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/IncomeRangeViewService.pm new file mode 100644 index 000000000..496f9d9dd --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/IncomeRangeViewService.pm @@ -0,0 +1,32 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::IncomeRangeViewService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub get { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::IncomeRangeView'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/IncomeRangeViewService/GetIncomeRangeViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/IncomeRangeViewService/GetIncomeRangeViewRequest.pm new file mode 100644 index 000000000..ed576f490 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/IncomeRangeViewService/GetIncomeRangeViewRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::IncomeRangeViewService::GetIncomeRangeViewRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/InvoiceService.pm b/lib/Google/Ads/GoogleAds/V4/Services/InvoiceService.pm new file mode 100644 index 000000000..e7083068f --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/InvoiceService.pm @@ -0,0 +1,33 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::InvoiceService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub list { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/customers/{+customerId}/invoices'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::InvoiceService::ListInvoicesResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/SearchGoogleAdsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/InvoiceService/ListInvoicesRequest.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/SearchGoogleAdsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/InvoiceService/ListInvoicesRequest.pm index dba9004cf..de784cabb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/GoogleAdsService/SearchGoogleAdsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/InvoiceService/ListInvoicesRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::GoogleAdsService::SearchGoogleAdsRequest; +package Google::Ads::GoogleAds::V4::Services::InvoiceService::ListInvoicesRequest; use strict; use warnings; @@ -23,11 +23,10 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { + billingSetup => $args->{billingSetup}, customerId => $args->{customerId}, - pageSize => $args->{pageSize}, - pageToken => $args->{pageToken}, - query => $args->{query}, - validateOnly => $args->{validateOnly}}; + issueMonth => $args->{issueMonth}, + issueYear => $args->{issueYear}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V4/Services/InvoiceService/ListInvoicesResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/InvoiceService/ListInvoicesResponse.pm new file mode 100644 index 000000000..1edd8922f --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/InvoiceService/ListInvoicesResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::InvoiceService::ListInvoicesResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {invoices => $args->{invoices}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService.pm similarity index 71% rename from lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService.pm index da580931d..11712fd8d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/CustomerManagerLinkService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkService; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::CustomerManagerLink'; + 'Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,10 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/customerManagerLinks:mutate'; + my $request_path = + 'v4/customers/{+customerId}/keywordPlanAdGroupKeywords:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkService::MutateCustomerManagerLinkResponse'; +'Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService::MutateKeywordPlanAdGroupKeywordsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/GetKeywordPlanAdGroupKeywordRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/GetKeywordPlanAdGroupKeywordRequest.pm new file mode 100644 index 000000000..784b1c3ae --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/GetKeywordPlanAdGroupKeywordRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService::GetKeywordPlanAdGroupKeywordRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/KeywordPlanKeywordOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/KeywordPlanAdGroupKeywordOperation.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/KeywordPlanKeywordOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/KeywordPlanAdGroupKeywordOperation.pm index 8b8566fdb..e937690a2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/KeywordPlanKeywordOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/KeywordPlanAdGroupKeywordOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordService::KeywordPlanKeywordOperation; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService::KeywordPlanAdGroupKeywordOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/GetKeywordPlanNegativeKeywordRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordResult.pm similarity index 86% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/GetKeywordPlanNegativeKeywordRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordResult.pm index 8ec99b54d..9fba992fe 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/GetKeywordPlanNegativeKeywordRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordService::GetKeywordPlanNegativeKeywordRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService::MutateKeywordPlanAdGroupKeywordResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/MutateKeywordPlanKeywordsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordsRequest.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/MutateKeywordPlanKeywordsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordsRequest.pm index a5ba62496..787c6afd9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/MutateKeywordPlanKeywordsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordService::MutateKeywordPlanKeywordsRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService::MutateKeywordPlanAdGroupKeywordsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/MutateKeywordPlanKeywordsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordsResponse.pm similarity index 86% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/MutateKeywordPlanKeywordsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordsResponse.pm index 6c3627144..cd7e953d4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/MutateKeywordPlanKeywordsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywordsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordService::MutateKeywordPlanKeywordsResponse; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService::MutateKeywordPlanAdGroupKeywordsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService.pm index 704fd8e3a..d3446c563 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupService; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup'; + 'Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroup'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/keywordPlanAdGroups:mutate'; + my $request_path = 'v4/customers/{+customerId}/keywordPlanAdGroups:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupService::MutateKeywordPlanAdGroupsResponse'; +'Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupService::MutateKeywordPlanAdGroupsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/GetKeywordPlanAdGroupRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/GetKeywordPlanAdGroupRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/GetKeywordPlanAdGroupRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/GetKeywordPlanAdGroupRequest.pm index 1fdf7f02e..f9e8998b2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/GetKeywordPlanAdGroupRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/GetKeywordPlanAdGroupRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupService::GetKeywordPlanAdGroupRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupService::GetKeywordPlanAdGroupRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/KeywordPlanAdGroupOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/KeywordPlanAdGroupOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/KeywordPlanAdGroupOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/KeywordPlanAdGroupOperation.pm index 46dd356e7..96d4e4a20 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/KeywordPlanAdGroupOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/KeywordPlanAdGroupOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupService::KeywordPlanAdGroupOperation; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupService::KeywordPlanAdGroupOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupResult.pm index 966d93760..86f6e9f45 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupService::MutateKeywordPlanAdGroupResult; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupService::MutateKeywordPlanAdGroupResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsRequest.pm index 9ac0d6666..d30a9b0a8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupService::MutateKeywordPlanAdGroupsRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupService::MutateKeywordPlanAdGroupsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsResponse.pm index 2bed172a4..002c268fd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanAdGroupService/MutateKeywordPlanAdGroupsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupService::MutateKeywordPlanAdGroupsResponse; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupService::MutateKeywordPlanAdGroupsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService.pm similarity index 73% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService.pm index b338c95b5..db5a540d6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordService; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword'; + 'Google::Ads::GoogleAds::V4::Resources::KeywordPlanCampaignKeyword'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -35,9 +35,9 @@ sub mutate { my $request_body = shift; my $http_method = 'POST'; my $request_path = - 'v1/customers/{+customerId}/keywordPlanNegativeKeywords:mutate'; + 'v4/customers/{+customerId}/keywordPlanCampaignKeywords:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordService::MutateKeywordPlanNegativeKeywordsResponse'; +'Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService::MutateKeywordPlanCampaignKeywordsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/GetKeywordPlanCampaignKeywordRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/GetKeywordPlanCampaignKeywordRequest.pm new file mode 100644 index 000000000..cc1ac91bc --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/GetKeywordPlanCampaignKeywordRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService::GetKeywordPlanCampaignKeywordRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/KeywordPlanNegativeKeywordOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/KeywordPlanCampaignKeywordOperation.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/KeywordPlanNegativeKeywordOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/KeywordPlanCampaignKeywordOperation.pm index a94af2b62..f0ca7a259 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/KeywordPlanNegativeKeywordOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/KeywordPlanCampaignKeywordOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordService::KeywordPlanNegativeKeywordOperation; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService::KeywordPlanCampaignKeywordOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywordResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywordResult.pm similarity index 86% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywordResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywordResult.pm index aafabb5c0..a518266d3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywordResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywordResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordService::MutateKeywordPlanNegativeKeywordResult; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService::MutateKeywordPlanCampaignKeywordResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywordsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywordsRequest.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywordsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywordsRequest.pm index b6609c30f..df2fb0ae1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywordsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywordsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordService::MutateKeywordPlanNegativeKeywordsRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService::MutateKeywordPlanCampaignKeywordsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywordsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywordsResponse.pm similarity index 86% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywordsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywordsResponse.pm index 8be7c8173..712952630 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywordsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywordsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordService::MutateKeywordPlanNegativeKeywordsResponse; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService::MutateKeywordPlanCampaignKeywordsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService.pm index 93fec9618..00b0fe77c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignService; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign'; + 'Google::Ads::GoogleAds::V4::Resources::KeywordPlanCampaign'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/keywordPlanCampaigns:mutate'; + my $request_path = 'v4/customers/{+customerId}/keywordPlanCampaigns:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignService::MutateKeywordPlanCampaignsResponse'; +'Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignService::MutateKeywordPlanCampaignsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/GetKeywordPlanCampaignRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/GetKeywordPlanCampaignRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/GetKeywordPlanCampaignRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/GetKeywordPlanCampaignRequest.pm index 0c430c5a1..5916e4e3e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/GetKeywordPlanCampaignRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/GetKeywordPlanCampaignRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignService::GetKeywordPlanCampaignRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignService::GetKeywordPlanCampaignRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/KeywordPlanCampaignOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/KeywordPlanCampaignOperation.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/KeywordPlanCampaignOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/KeywordPlanCampaignOperation.pm index 372909663..02a33283f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/KeywordPlanCampaignOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/KeywordPlanCampaignOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignService::KeywordPlanCampaignOperation; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignService::KeywordPlanCampaignOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignResult.pm index a2f10d0fb..e436e3c89 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignService::MutateKeywordPlanCampaignResult; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignService::MutateKeywordPlanCampaignResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsRequest.pm index 303553776..8ea3079c9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignService::MutateKeywordPlanCampaignsRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignService::MutateKeywordPlanCampaignsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsResponse.pm index f728b6bf1..d45bc6202 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanCampaignService/MutateKeywordPlanCampaignsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignService::MutateKeywordPlanCampaignsResponse; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignService::MutateKeywordPlanCampaignsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService.pm index b290520c5..dcadee00a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanIdeaService; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService; use strict; use warnings; @@ -22,9 +22,9 @@ sub generate_keyword_ideas { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}:generateKeywordIdeas'; + my $request_path = 'v4/customers/{+customerId}:generateKeywordIdeas'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::KeywordPlanIdeaService::GenerateKeywordIdeaResponse'; +'Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::GenerateKeywordIdeaResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResponse.pm similarity index 79% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResponse.pm index 0184ef6ff..5d4d21e54 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanIdeaService::GenerateKeywordIdeaResponse; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::GenerateKeywordIdeaResponse; use strict; use warnings; @@ -22,7 +22,10 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; - my $self = {results => $args->{results}}; + my $self = { + nextPageToken => $args->{nextPageToken}, + results => $args->{results}, + totalSize => $args->{totalSize}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResult.pm index 2cdb9ee63..1f55f65a0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/GenerateKeywordIdeaResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanIdeaService::GenerateKeywordIdeaResult; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::GenerateKeywordIdeaResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/GenerateKeywordIdeasRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/GenerateKeywordIdeasRequest.pm similarity index 58% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/GenerateKeywordIdeasRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/GenerateKeywordIdeasRequest.pm index 5d95d36e1..86f285565 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/GenerateKeywordIdeasRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/GenerateKeywordIdeasRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanIdeaService::GenerateKeywordIdeasRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::GenerateKeywordIdeasRequest; use strict; use warnings; @@ -23,13 +23,17 @@ use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; sub new { my ($class, $args) = @_; my $self = { - customerId => $args->{customerId}, - geoTargetConstants => $args->{geoTargetConstants}, - keywordAndUrlSeed => $args->{keywordAndUrlSeed}, - keywordPlanNetwork => $args->{keywordPlanNetwork}, - keywordSeed => $args->{keywordSeed}, - language => $args->{language}, - urlSeed => $args->{urlSeed}}; + customerId => $args->{customerId}, + geoTargetConstants => $args->{geoTargetConstants}, + includeAdultKeywords => $args->{includeAdultKeywords}, + keywordAndUrlSeed => $args->{keywordAndUrlSeed}, + keywordPlanNetwork => $args->{keywordPlanNetwork}, + keywordSeed => $args->{keywordSeed}, + language => $args->{language}, + pageSize => $args->{pageSize}, + pageToken => $args->{pageToken}, + siteSeed => $args->{siteSeed}, + urlSeed => $args->{urlSeed}}; # Delete the unassigned fields in this object for a more concise JSON payload remove_unassigned_fields($self, $args); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/KeywordAndUrlSeed.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/KeywordAndUrlSeed.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/KeywordAndUrlSeed.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/KeywordAndUrlSeed.pm index 860f4ad30..6b021f46b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/KeywordAndUrlSeed.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/KeywordAndUrlSeed.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanIdeaService::KeywordAndUrlSeed; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::KeywordAndUrlSeed; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/KeywordSeed.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/KeywordSeed.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/KeywordSeed.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/KeywordSeed.pm index 28bb00c2a..d09dd290a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/KeywordSeed.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/KeywordSeed.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanIdeaService::KeywordSeed; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::KeywordSeed; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/SiteSeed.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/SiteSeed.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/SiteSeed.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/SiteSeed.pm index e01105c39..a2f35e3bd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/SiteSeed.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/SiteSeed.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanIdeaService::SiteSeed; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::SiteSeed; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/UrlSeed.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/UrlSeed.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/UrlSeed.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/UrlSeed.pm index d1091d61d..54d0471de 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanIdeaService/UrlSeed.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanIdeaService/UrlSeed.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanIdeaService::UrlSeed; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaService::UrlSeed; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService.pm similarity index 62% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService.pm index e8eb06dd9..da19eeeeb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,19 +12,31 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService; use strict; use warnings; use base qw(Google::Ads::GoogleAds::BaseService); +sub generate_forecast_curve { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/{+keywordPlan}:generateForecastCurve'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GenerateForecastCurveResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + sub generate_forecast_metrics { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/{+keywordPlan}:generateForecastMetrics'; + my $request_path = 'v4/{+keywordPlan}:generateForecastMetrics'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::KeywordPlanService::GenerateForecastMetricsResponse'; +'Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GenerateForecastMetricsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +46,9 @@ sub generate_historical_metrics { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/{+keywordPlan}:generateHistoricalMetrics'; + my $request_path = 'v4/{+keywordPlan}:generateHistoricalMetrics'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::KeywordPlanService::GenerateHistoricalMetricsResponse'; +'Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GenerateHistoricalMetricsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -46,8 +58,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::KeywordPlan'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::KeywordPlan'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -57,9 +69,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/keywordPlans:mutate'; + my $request_path = 'v4/customers/{+customerId}/keywordPlans:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::KeywordPlanService::MutateKeywordPlansResponse'; +'Google::Ads::GoogleAds::V4::Services::KeywordPlanService::MutateKeywordPlansResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/ForecastMetrics.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/ForecastMetrics.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/ForecastMetrics.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/ForecastMetrics.pm index 62a47ac21..2cfc7bcef 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/ForecastMetrics.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/ForecastMetrics.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::ForecastMetrics; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::ForecastMetrics; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastCurveRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastCurveRequest.pm new file mode 100644 index 000000000..2cac59b37 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastCurveRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GenerateForecastCurveRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {keywordPlan => $args->{keywordPlan}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastCurveResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastCurveResponse.pm new file mode 100644 index 000000000..2c48854de --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastCurveResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GenerateForecastCurveResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {campaignForecastCurves => $args->{campaignForecastCurves}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateForecastMetricsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastMetricsRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateForecastMetricsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastMetricsRequest.pm index 8bb3e3c67..545ecce1f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateForecastMetricsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastMetricsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::GenerateForecastMetricsRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GenerateForecastMetricsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateForecastMetricsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastMetricsResponse.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateForecastMetricsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastMetricsResponse.pm index 82cf75b80..26840ac4a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateForecastMetricsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateForecastMetricsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::GenerateForecastMetricsResponse; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GenerateForecastMetricsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateHistoricalMetricsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateHistoricalMetricsRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateHistoricalMetricsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateHistoricalMetricsRequest.pm index 693174ff4..0e842a1e5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateHistoricalMetricsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateHistoricalMetricsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::GenerateHistoricalMetricsRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GenerateHistoricalMetricsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateHistoricalMetricsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateHistoricalMetricsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateHistoricalMetricsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateHistoricalMetricsResponse.pm index b2797b07c..952da2093 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GenerateHistoricalMetricsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GenerateHistoricalMetricsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::GenerateHistoricalMetricsResponse; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GenerateHistoricalMetricsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GetKeywordPlanRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GetKeywordPlanRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GetKeywordPlanRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GetKeywordPlanRequest.pm index 367c09c3a..8ea7c15a7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/GetKeywordPlanRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/GetKeywordPlanRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::GetKeywordPlanRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::GetKeywordPlanRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanAdGroupForecast.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanAdGroupForecast.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanAdGroupForecast.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanAdGroupForecast.pm index 3e9e707d6..bacd05e21 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanAdGroupForecast.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanAdGroupForecast.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::KeywordPlanAdGroupForecast; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanAdGroupForecast; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanCampaignForecast.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanCampaignForecast.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanCampaignForecast.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanCampaignForecast.pm index 34b287e19..08b19b43b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanCampaignForecast.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanCampaignForecast.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::KeywordPlanCampaignForecast; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanCampaignForecast; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanCampaignForecastCurve.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanCampaignForecastCurve.pm new file mode 100644 index 000000000..9b177d3de --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanCampaignForecastCurve.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanCampaignForecastCurve; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + keywordPlanCampaign => $args->{keywordPlanCampaign}, + maxCpcBidForecastCurve => $args->{maxCpcBidForecastCurve}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanKeywordForecast.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanKeywordForecast.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanKeywordForecast.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanKeywordForecast.pm index 347c40fec..cb681a617 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanKeywordForecast.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanKeywordForecast.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::KeywordPlanKeywordForecast; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanKeywordForecast; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanKeywordHistoricalMetrics.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanKeywordHistoricalMetrics.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanKeywordHistoricalMetrics.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanKeywordHistoricalMetrics.pm index 916bab918..229deb519 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanKeywordHistoricalMetrics.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanKeywordHistoricalMetrics.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::KeywordPlanKeywordHistoricalMetrics; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanKeywordHistoricalMetrics; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanMaxCpcBidForecast.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanMaxCpcBidForecast.pm new file mode 100644 index 000000000..1679d17d5 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanMaxCpcBidForecast.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanMaxCpcBidForecast; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + maxCpcBidForecast => $args->{maxCpcBidForecast}, + maxCpcBidMicros => $args->{maxCpcBidMicros}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanMaxCpcBidForecastCurve.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanMaxCpcBidForecastCurve.pm new file mode 100644 index 000000000..476d4db74 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanMaxCpcBidForecastCurve.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanMaxCpcBidForecastCurve; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {maxCpcBidForecasts => $args->{maxCpcBidForecasts}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanOperation.pm index da962f109..f0177fb29 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/KeywordPlanOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/KeywordPlanOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::KeywordPlanOperation; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::KeywordPlanOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/MutateKeywordPlansRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/MutateKeywordPlansRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/MutateKeywordPlansRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/MutateKeywordPlansRequest.pm index ff3ee926e..16ebc3986 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/MutateKeywordPlansRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/MutateKeywordPlansRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::MutateKeywordPlansRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::MutateKeywordPlansRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/MutateKeywordPlansResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/MutateKeywordPlansResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/MutateKeywordPlansResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/MutateKeywordPlansResponse.pm index 58bf4d4bb..329750dc8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/MutateKeywordPlansResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/MutateKeywordPlansResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::MutateKeywordPlansResponse; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::MutateKeywordPlansResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/MutateKeywordPlansResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/MutateKeywordPlansResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/MutateKeywordPlansResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/MutateKeywordPlansResult.pm index cbc9dd404..4d6e97418 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanService/MutateKeywordPlansResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordPlanService/MutateKeywordPlansResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanService::MutateKeywordPlansResult; +package Google::Ads::GoogleAds::V4::Services::KeywordPlanService::MutateKeywordPlansResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordViewService.pm index 41c68990e..3b4333aca 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordViewService; +package Google::Ads::GoogleAds::V4::Services::KeywordViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::KeywordView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::KeywordView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordViewService/GetKeywordViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/KeywordViewService/GetKeywordViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordViewService/GetKeywordViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/KeywordViewService/GetKeywordViewRequest.pm index 75927a13d..222efd3cf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordViewService/GetKeywordViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/KeywordViewService/GetKeywordViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordViewService::GetKeywordViewRequest; +package Google::Ads::GoogleAds::V4::Services::KeywordViewService::GetKeywordViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LabelService.pm b/lib/Google/Ads/GoogleAds/V4/Services/LabelService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/LabelService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LabelService.pm index d2f5875cd..9b0b0fb3a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LabelService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LabelService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LabelService; +package Google::Ads::GoogleAds::V4::Services::LabelService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::Label'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::Label'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/labels:mutate'; + my $request_path = 'v4/customers/{+customerId}/labels:mutate'; my $response_type = - 'Google::Ads::GoogleAds::V1::Services::LabelService::MutateLabelsResponse'; + 'Google::Ads::GoogleAds::V4::Services::LabelService::MutateLabelsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/GetLabelRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/GetLabelRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/LabelService/GetLabelRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LabelService/GetLabelRequest.pm index 559eb9f07..d7500e702 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/GetLabelRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/GetLabelRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LabelService::GetLabelRequest; +package Google::Ads::GoogleAds::V4::Services::LabelService::GetLabelRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/LabelOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/LabelOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/LabelService/LabelOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LabelService/LabelOperation.pm index 31fa15820..dc898c60d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/LabelOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/LabelOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LabelService::LabelOperation; +package Google::Ads::GoogleAds::V4::Services::LabelService::LabelOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/MutateLabelResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/MutateLabelResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/LabelService/MutateLabelResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LabelService/MutateLabelResult.pm index 96caf6038..bc81de523 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/MutateLabelResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/MutateLabelResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LabelService::MutateLabelResult; +package Google::Ads::GoogleAds::V4::Services::LabelService::MutateLabelResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/MutateLabelsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/MutateLabelsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/LabelService/MutateLabelsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LabelService/MutateLabelsRequest.pm index 1329443f8..0a92fc874 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/MutateLabelsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/MutateLabelsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LabelService::MutateLabelsRequest; +package Google::Ads::GoogleAds::V4::Services::LabelService::MutateLabelsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/MutateLabelsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/MutateLabelsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/LabelService/MutateLabelsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LabelService/MutateLabelsResponse.pm index 3286860d1..b1fcdee27 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LabelService/MutateLabelsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LabelService/MutateLabelsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LabelService::MutateLabelsResponse; +package Google::Ads::GoogleAds::V4::Services::LabelService::MutateLabelsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LandingPageViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/LandingPageViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/LandingPageViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LandingPageViewService.pm index fd14080b5..89008536b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LandingPageViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LandingPageViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LandingPageViewService; +package Google::Ads::GoogleAds::V4::Services::LandingPageViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::LandingPageView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::LandingPageView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LandingPageViewService/GetLandingPageViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/LandingPageViewService/GetLandingPageViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/LandingPageViewService/GetLandingPageViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LandingPageViewService/GetLandingPageViewRequest.pm index 33902843d..303fbcec1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LandingPageViewService/GetLandingPageViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LandingPageViewService/GetLandingPageViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LandingPageViewService::GetLandingPageViewRequest; +package Google::Ads::GoogleAds::V4::Services::LandingPageViewService::GetLandingPageViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LanguageConstantService.pm b/lib/Google/Ads/GoogleAds/V4/Services/LanguageConstantService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/LanguageConstantService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LanguageConstantService.pm index 35febcded..613bb1144 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LanguageConstantService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LanguageConstantService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LanguageConstantService; +package Google::Ads::GoogleAds::V4::Services::LanguageConstantService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::LanguageConstant'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::LanguageConstant'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LanguageConstantService/GetLanguageConstantRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/LanguageConstantService/GetLanguageConstantRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/LanguageConstantService/GetLanguageConstantRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LanguageConstantService/GetLanguageConstantRequest.pm index ac0bb0e5b..8433e7fc2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LanguageConstantService/GetLanguageConstantRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LanguageConstantService/GetLanguageConstantRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LanguageConstantService::GetLanguageConstantRequest; +package Google::Ads::GoogleAds::V4::Services::LanguageConstantService::GetLanguageConstantRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LocationViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/LocationViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/LocationViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LocationViewService.pm index d58f9e975..c5489468b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LocationViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LocationViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LocationViewService; +package Google::Ads::GoogleAds::V4::Services::LocationViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::LocationView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::LocationView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/LocationViewService/GetLocationViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/LocationViewService/GetLocationViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/LocationViewService/GetLocationViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/LocationViewService/GetLocationViewRequest.pm index dc6d4cd84..ad1c6bab2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/LocationViewService/GetLocationViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/LocationViewService/GetLocationViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::LocationViewService::GetLocationViewRequest; +package Google::Ads::GoogleAds::V4::Services::LocationViewService::GetLocationViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ManagedPlacementViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ManagedPlacementViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/ManagedPlacementViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ManagedPlacementViewService.pm index 518689bbf..afaecf7dc 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ManagedPlacementViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ManagedPlacementViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ManagedPlacementViewService; +package Google::Ads::GoogleAds::V4::Services::ManagedPlacementViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::ManagedPlacementView'; + 'Google::Ads::GoogleAds::V4::Resources::ManagedPlacementView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ManagedPlacementViewService/GetManagedPlacementViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ManagedPlacementViewService/GetManagedPlacementViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ManagedPlacementViewService/GetManagedPlacementViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ManagedPlacementViewService/GetManagedPlacementViewRequest.pm index 3f23bf8b5..79123fd7f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ManagedPlacementViewService/GetManagedPlacementViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ManagedPlacementViewService/GetManagedPlacementViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ManagedPlacementViewService::GetManagedPlacementViewRequest; +package Google::Ads::GoogleAds::V4::Services::ManagedPlacementViewService::GetManagedPlacementViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService.pm b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/MediaFileService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MediaFileService.pm index 07bf93d7c..baf1f416b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MediaFileService; +package Google::Ads::GoogleAds::V4::Services::MediaFileService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::MediaFile'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::MediaFile'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/mediaFiles:mutate'; + my $request_path = 'v4/customers/{+customerId}/mediaFiles:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::MediaFileService::MutateMediaFilesResponse'; +'Google::Ads::GoogleAds::V4::Services::MediaFileService::MutateMediaFilesResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/GetMediaFileRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/GetMediaFileRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/GetMediaFileRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/GetMediaFileRequest.pm index 9b0c248d0..b718c0ee6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/GetMediaFileRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/GetMediaFileRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MediaFileService::GetMediaFileRequest; +package Google::Ads::GoogleAds::V4::Services::MediaFileService::GetMediaFileRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MediaFileOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MediaFileOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MediaFileOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MediaFileOperation.pm index e814f35ad..6b1c01f33 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MediaFileOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MediaFileOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MediaFileService::MediaFileOperation; +package Google::Ads::GoogleAds::V4::Services::MediaFileService::MediaFileOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MutateMediaFileResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MutateMediaFileResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MutateMediaFileResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MutateMediaFileResult.pm index 334f653cf..1330c3f9b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MutateMediaFileResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MutateMediaFileResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MediaFileService::MutateMediaFileResult; +package Google::Ads::GoogleAds::V4::Services::MediaFileService::MutateMediaFileResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MutateMediaFilesRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MutateMediaFilesRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MutateMediaFilesRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MutateMediaFilesRequest.pm index 3b107bbd7..ca7b25727 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MutateMediaFilesRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MutateMediaFilesRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MediaFileService::MutateMediaFilesRequest; +package Google::Ads::GoogleAds::V4::Services::MediaFileService::MutateMediaFilesRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MutateMediaFilesResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MutateMediaFilesResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MutateMediaFilesResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MutateMediaFilesResponse.pm index 1300176bd..226a1cf59 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MediaFileService/MutateMediaFilesResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MediaFileService/MutateMediaFilesResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MediaFileService::MutateMediaFilesResponse; +package Google::Ads::GoogleAds::V4::Services::MediaFileService::MutateMediaFilesResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService.pm b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService.pm similarity index 75% rename from lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService.pm index 07d0dfc25..a330a4d64 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService; +package Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink'; + 'Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub list { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/customers/{+customerId}/merchantCenterLinks'; + my $request_path = 'v4/customers/{+customerId}/merchantCenterLinks'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService::ListMerchantCenterLinksResponse'; +'Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::ListMerchantCenterLinksResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -46,9 +46,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/merchantCenterLinks:mutate'; + my $request_path = 'v4/customers/{+customerId}/merchantCenterLinks:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService::MutateMerchantCenterLinkResponse'; +'Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::MutateMerchantCenterLinkResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/GetMerchantCenterLinkRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/GetMerchantCenterLinkRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/GetMerchantCenterLinkRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/GetMerchantCenterLinkRequest.pm index 1bbbf0a63..a62421e25 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/GetMerchantCenterLinkRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/GetMerchantCenterLinkRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService::GetMerchantCenterLinkRequest; +package Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::GetMerchantCenterLinkRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/ListMerchantCenterLinksRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/ListMerchantCenterLinksRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/ListMerchantCenterLinksRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/ListMerchantCenterLinksRequest.pm index 06d0a941b..97582756b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/ListMerchantCenterLinksRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/ListMerchantCenterLinksRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService::ListMerchantCenterLinksRequest; +package Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::ListMerchantCenterLinksRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/ListMerchantCenterLinksResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/ListMerchantCenterLinksResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/ListMerchantCenterLinksResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/ListMerchantCenterLinksResponse.pm index d9ead9003..c05691760 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/ListMerchantCenterLinksResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/ListMerchantCenterLinksResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService::ListMerchantCenterLinksResponse; +package Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::ListMerchantCenterLinksResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MerchantCenterLinkOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MerchantCenterLinkOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MerchantCenterLinkOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MerchantCenterLinkOperation.pm index 169b21b95..21b2c7442 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MerchantCenterLinkOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MerchantCenterLinkOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService::MerchantCenterLinkOperation; +package Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::MerchantCenterLinkOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MutateMerchantCenterLinkRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MutateMerchantCenterLinkRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MutateMerchantCenterLinkRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MutateMerchantCenterLinkRequest.pm index b292eda29..0bb4e48e5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MutateMerchantCenterLinkRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MutateMerchantCenterLinkRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService::MutateMerchantCenterLinkRequest; +package Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::MutateMerchantCenterLinkRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResponse.pm index 95d74bf3d..4ab309f10 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService::MutateMerchantCenterLinkResponse; +package Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::MutateMerchantCenterLinkResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResult.pm index e21b4a8e9..5f76aade8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MerchantCenterLinkService/MutateMerchantCenterLinkResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkService::MutateMerchantCenterLinkResult; +package Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkService::MutateMerchantCenterLinkResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MobileAppCategoryConstantService.pm b/lib/Google/Ads/GoogleAds/V4/Services/MobileAppCategoryConstantService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/MobileAppCategoryConstantService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MobileAppCategoryConstantService.pm index 2dc71526d..b791797d2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MobileAppCategoryConstantService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MobileAppCategoryConstantService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MobileAppCategoryConstantService; +package Google::Ads::GoogleAds::V4::Services::MobileAppCategoryConstantService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::MobileAppCategoryConstant'; + 'Google::Ads::GoogleAds::V4::Resources::MobileAppCategoryConstant'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MobileAppCategoryConstantService/GetMobileAppCategoryConstantRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/MobileAppCategoryConstantService/GetMobileAppCategoryConstantRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MobileAppCategoryConstantService/GetMobileAppCategoryConstantRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MobileAppCategoryConstantService/GetMobileAppCategoryConstantRequest.pm index 8b3b9eea2..c2753d71f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MobileAppCategoryConstantService/GetMobileAppCategoryConstantRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MobileAppCategoryConstantService/GetMobileAppCategoryConstantRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MobileAppCategoryConstantService::GetMobileAppCategoryConstantRequest; +package Google::Ads::GoogleAds::V4::Services::MobileAppCategoryConstantService::GetMobileAppCategoryConstantRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MobileDeviceConstantService.pm b/lib/Google/Ads/GoogleAds/V4/Services/MobileDeviceConstantService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/MobileDeviceConstantService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MobileDeviceConstantService.pm index 34009ab7e..76844808b 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MobileDeviceConstantService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MobileDeviceConstantService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MobileDeviceConstantService; +package Google::Ads::GoogleAds::V4::Services::MobileDeviceConstantService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::MobileDeviceConstant'; + 'Google::Ads::GoogleAds::V4::Resources::MobileDeviceConstant'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/MobileDeviceConstantService/GetMobileDeviceConstantRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/MobileDeviceConstantService/GetMobileDeviceConstantRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/MobileDeviceConstantService/GetMobileDeviceConstantRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/MobileDeviceConstantService/GetMobileDeviceConstantRequest.pm index 581f12ca3..85f5566ad 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/MobileDeviceConstantService/GetMobileDeviceConstantRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/MobileDeviceConstantService/GetMobileDeviceConstantRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::MobileDeviceConstantService::GetMobileDeviceConstantRequest; +package Google::Ads::GoogleAds::V4::Services::MobileDeviceConstantService::GetMobileDeviceConstantRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService.pm b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService.pm new file mode 100644 index 000000000..2e42b6db6 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService.pm @@ -0,0 +1,68 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub add_operations { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/{+resourceName}:addOperations'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::AddOfflineUserDataJobOperationsResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub create { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/customers/{+customerId}/offlineUserDataJobs:create'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::CreateOfflineUserDataJobResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub get { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = + 'Google::Ads::GoogleAds::V4::Resources::OfflineUserDataJob'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub run { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/{+resourceName}:run'; + my $response_type = 'Google::Ads::GoogleAds::LongRunning::Operation'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/AddOfflineUserDataJobOperationsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/AddOfflineUserDataJobOperationsRequest.pm new file mode 100644 index 000000000..ba97bb89c --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/AddOfflineUserDataJobOperationsRequest.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::AddOfflineUserDataJobOperationsRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + enablePartialFailure => $args->{enablePartialFailure}, + operations => $args->{operations}, + resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/AddOfflineUserDataJobOperationsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/AddOfflineUserDataJobOperationsResponse.pm new file mode 100644 index 000000000..a2c31dcbb --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/AddOfflineUserDataJobOperationsResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::AddOfflineUserDataJobOperationsResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {partialFailureError => $args->{partialFailureError}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/CreateOfflineUserDataJobRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/CreateOfflineUserDataJobRequest.pm new file mode 100644 index 000000000..fd80ea560 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/CreateOfflineUserDataJobRequest.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::CreateOfflineUserDataJobRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + customerId => $args->{customerId}, + job => $args->{job}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/MutateKeywordPlanKeywordResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/CreateOfflineUserDataJobResponse.pm similarity index 87% rename from lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/MutateKeywordPlanKeywordResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/CreateOfflineUserDataJobResponse.pm index 21a8cb5d9..4db42c976 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/KeywordPlanKeywordService/MutateKeywordPlanKeywordResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/CreateOfflineUserDataJobResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordService::MutateKeywordPlanKeywordResult; +package Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::CreateOfflineUserDataJobResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/GetOfflineUserDataJobRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/GetOfflineUserDataJobRequest.pm new file mode 100644 index 000000000..4cbabbbb3 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/GetOfflineUserDataJobRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::GetOfflineUserDataJobRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/OfflineUserDataJobOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/OfflineUserDataJobOperation.pm new file mode 100644 index 000000000..74c95e933 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/OfflineUserDataJobOperation.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::OfflineUserDataJobOperation; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + create => $args->{create}, + remove => $args->{remove}, + removeAll => $args->{removeAll}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/RunOfflineUserDataJobRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/RunOfflineUserDataJobRequest.pm new file mode 100644 index 000000000..1dbd04fc5 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/OfflineUserDataJobService/RunOfflineUserDataJobRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobService::RunOfflineUserDataJobRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/OperatingSystemVersionConstantService.pm b/lib/Google/Ads/GoogleAds/V4/Services/OperatingSystemVersionConstantService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/OperatingSystemVersionConstantService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/OperatingSystemVersionConstantService.pm index 668872488..9498df7f2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/OperatingSystemVersionConstantService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/OperatingSystemVersionConstantService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::OperatingSystemVersionConstantService; +package Google::Ads::GoogleAds::V4::Services::OperatingSystemVersionConstantService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::OperatingSystemVersionConstant'; + 'Google::Ads::GoogleAds::V4::Resources::OperatingSystemVersionConstant'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/OperatingSystemVersionConstantService/GetOperatingSystemVersionConstantRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/OperatingSystemVersionConstantService/GetOperatingSystemVersionConstantRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/OperatingSystemVersionConstantService/GetOperatingSystemVersionConstantRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/OperatingSystemVersionConstantService/GetOperatingSystemVersionConstantRequest.pm index 6a342dfcd..3c3b01451 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/OperatingSystemVersionConstantService/GetOperatingSystemVersionConstantRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/OperatingSystemVersionConstantService/GetOperatingSystemVersionConstantRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::OperatingSystemVersionConstantService::GetOperatingSystemVersionConstantRequest; +package Google::Ads::GoogleAds::V4::Services::OperatingSystemVersionConstantService::GetOperatingSystemVersionConstantRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/PaidOrganicSearchTermViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/PaidOrganicSearchTermViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/PaidOrganicSearchTermViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/PaidOrganicSearchTermViewService.pm index 4a33ce293..5cc705dd1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/PaidOrganicSearchTermViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/PaidOrganicSearchTermViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::PaidOrganicSearchTermViewService; +package Google::Ads::GoogleAds::V4::Services::PaidOrganicSearchTermViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::PaidOrganicSearchTermView'; + 'Google::Ads::GoogleAds::V4::Resources::PaidOrganicSearchTermView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/PaidOrganicSearchTermViewService/GetPaidOrganicSearchTermViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/PaidOrganicSearchTermViewService/GetPaidOrganicSearchTermViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/PaidOrganicSearchTermViewService/GetPaidOrganicSearchTermViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/PaidOrganicSearchTermViewService/GetPaidOrganicSearchTermViewRequest.pm index 0fc2d1e87..fe78a545d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/PaidOrganicSearchTermViewService/GetPaidOrganicSearchTermViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/PaidOrganicSearchTermViewService/GetPaidOrganicSearchTermViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::PaidOrganicSearchTermViewService::GetPaidOrganicSearchTermViewRequest; +package Google::Ads::GoogleAds::V4::Services::PaidOrganicSearchTermViewService::GetPaidOrganicSearchTermViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ParentalStatusViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ParentalStatusViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/ParentalStatusViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ParentalStatusViewService.pm index d5518c8a0..65b06384c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ParentalStatusViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ParentalStatusViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ParentalStatusViewService; +package Google::Ads::GoogleAds::V4::Services::ParentalStatusViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::ParentalStatusView'; + 'Google::Ads::GoogleAds::V4::Resources::ParentalStatusView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ParentalStatusViewService/GetParentalStatusViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ParentalStatusViewService/GetParentalStatusViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ParentalStatusViewService/GetParentalStatusViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ParentalStatusViewService/GetParentalStatusViewRequest.pm index 883aa6526..a2086d1db 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ParentalStatusViewService/GetParentalStatusViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ParentalStatusViewService/GetParentalStatusViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ParentalStatusViewService::GetParentalStatusViewRequest; +package Google::Ads::GoogleAds::V4::Services::ParentalStatusViewService::GetParentalStatusViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/PaymentsAccountService.pm b/lib/Google/Ads/GoogleAds/V4/Services/PaymentsAccountService.pm similarity index 79% rename from lib/Google/Ads/GoogleAds/V1/Services/PaymentsAccountService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/PaymentsAccountService.pm index 1d27ca491..7ff662f38 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/PaymentsAccountService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/PaymentsAccountService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::PaymentsAccountService; +package Google::Ads::GoogleAds::V4::Services::PaymentsAccountService; use strict; use warnings; @@ -22,9 +22,9 @@ sub list { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/customers/{+customerId}/paymentsAccounts'; + my $request_path = 'v4/customers/{+customerId}/paymentsAccounts'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::PaymentsAccountService::ListPaymentsAccountsResponse'; +'Google::Ads::GoogleAds::V4::Services::PaymentsAccountService::ListPaymentsAccountsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/PaymentsAccountService/ListPaymentsAccountsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/PaymentsAccountService/ListPaymentsAccountsRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/PaymentsAccountService/ListPaymentsAccountsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/PaymentsAccountService/ListPaymentsAccountsRequest.pm index 930d410db..25a8a9b1e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/PaymentsAccountService/ListPaymentsAccountsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/PaymentsAccountService/ListPaymentsAccountsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::PaymentsAccountService::ListPaymentsAccountsRequest; +package Google::Ads::GoogleAds::V4::Services::PaymentsAccountService::ListPaymentsAccountsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/PaymentsAccountService/ListPaymentsAccountsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/PaymentsAccountService/ListPaymentsAccountsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/PaymentsAccountService/ListPaymentsAccountsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/PaymentsAccountService/ListPaymentsAccountsResponse.pm index e29ea4409..4385d44f3 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/PaymentsAccountService/ListPaymentsAccountsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/PaymentsAccountService/ListPaymentsAccountsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::PaymentsAccountService::ListPaymentsAccountsResponse; +package Google::Ads::GoogleAds::V4::Services::PaymentsAccountService::ListPaymentsAccountsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ProductBiddingCategoryConstantService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ProductBiddingCategoryConstantService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/ProductBiddingCategoryConstantService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ProductBiddingCategoryConstantService.pm index f0d2d3cac..739d9043c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ProductBiddingCategoryConstantService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ProductBiddingCategoryConstantService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ProductBiddingCategoryConstantService; +package Google::Ads::GoogleAds::V4::Services::ProductBiddingCategoryConstantService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::ProductBiddingCategoryConstant'; + 'Google::Ads::GoogleAds::V4::Resources::ProductBiddingCategoryConstant'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ProductBiddingCategoryConstantService/GetProductBiddingCategoryConstantRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ProductBiddingCategoryConstantService/GetProductBiddingCategoryConstantRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ProductBiddingCategoryConstantService/GetProductBiddingCategoryConstantRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ProductBiddingCategoryConstantService/GetProductBiddingCategoryConstantRequest.pm index aeb5ab0ed..9b1167b2d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ProductBiddingCategoryConstantService/GetProductBiddingCategoryConstantRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ProductBiddingCategoryConstantService/GetProductBiddingCategoryConstantRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ProductBiddingCategoryConstantService::GetProductBiddingCategoryConstantRequest; +package Google::Ads::GoogleAds::V4::Services::ProductBiddingCategoryConstantService::GetProductBiddingCategoryConstantRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ProductGroupViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ProductGroupViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/ProductGroupViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ProductGroupViewService.pm index 1596c1572..e0c8607f6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ProductGroupViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ProductGroupViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ProductGroupViewService; +package Google::Ads::GoogleAds::V4::Services::ProductGroupViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::ProductGroupView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::ProductGroupView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ProductGroupViewService/GetProductGroupViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ProductGroupViewService/GetProductGroupViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ProductGroupViewService/GetProductGroupViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ProductGroupViewService/GetProductGroupViewRequest.pm index 957787dc0..86c1ccbc0 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ProductGroupViewService/GetProductGroupViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ProductGroupViewService/GetProductGroupViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ProductGroupViewService::GetProductGroupViewRequest; +package Google::Ads::GoogleAds::V4::Services::ProductGroupViewService::GetProductGroupViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService.pm new file mode 100644 index 000000000..eecd263b8 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService.pm @@ -0,0 +1,69 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub generate_product_mix_ideas { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/customers/{+customerId}:generateProductMixIdeas'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::ReachPlanService::GenerateProductMixIdeasResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub generate_reach_forecast { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/customers/{+customerId}:generateReachForecast'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::ReachPlanService::GenerateReachForecastResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub list_plannable_locations { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4:listPlannableLocations'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::ReachPlanService::ListPlannableLocationsResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +sub list_plannable_products { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4:listPlannableProducts'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::ReachPlanService::ListPlannableProductsResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/CampaignDuration.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/CampaignDuration.pm new file mode 100644 index 000000000..40a3e61c1 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/CampaignDuration.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::CampaignDuration; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {durationInDays => $args->{durationInDays}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/Forecast.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/Forecast.pm new file mode 100644 index 000000000..77756ff89 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/Forecast.pm @@ -0,0 +1,38 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::Forecast; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + onTargetImpressions => $args->{onTargetImpressions}, + onTargetReach => $args->{onTargetReach}, + totalImpressions => $args->{totalImpressions}, + totalReach => $args->{totalReach}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/FrequencyCap.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/FrequencyCap.pm new file mode 100644 index 000000000..69e52de22 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/FrequencyCap.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::FrequencyCap; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + impressions => $args->{impressions}, + timeUnit => $args->{timeUnit}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateProductMixIdeasRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateProductMixIdeasRequest.pm new file mode 100644 index 000000000..dddc12f75 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateProductMixIdeasRequest.pm @@ -0,0 +1,39 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::GenerateProductMixIdeasRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + budgetMicros => $args->{budgetMicros}, + currencyCode => $args->{currencyCode}, + customerId => $args->{customerId}, + plannableLocationId => $args->{plannableLocationId}, + preferences => $args->{preferences}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateProductMixIdeasResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateProductMixIdeasResponse.pm new file mode 100644 index 000000000..0d71ce044 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateProductMixIdeasResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::GenerateProductMixIdeasResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {productAllocation => $args->{productAllocation}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateReachForecastRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateReachForecastRequest.pm new file mode 100644 index 000000000..e41c310ab --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateReachForecastRequest.pm @@ -0,0 +1,42 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::GenerateReachForecastRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + campaignDuration => $args->{campaignDuration}, + cookieFrequencyCap => $args->{cookieFrequencyCap}, + cookieFrequencyCapSetting => $args->{cookieFrequencyCapSetting}, + currencyCode => $args->{currencyCode}, + customerId => $args->{customerId}, + minEffectiveFrequency => $args->{minEffectiveFrequency}, + plannedProducts => $args->{plannedProducts}, + targeting => $args->{targeting}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateReachForecastResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateReachForecastResponse.pm new file mode 100644 index 000000000..908eb11b9 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/GenerateReachForecastResponse.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::GenerateReachForecastResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + onTargetAudienceMetrics => $args->{onTargetAudienceMetrics}, + reachCurve => $args->{reachCurve}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableLocationsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableLocationsRequest.pm new file mode 100644 index 000000000..0a6c127e0 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableLocationsRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::ListPlannableLocationsRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableLocationsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableLocationsResponse.pm new file mode 100644 index 000000000..e2872cdb7 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableLocationsResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::ListPlannableLocationsResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {plannableLocations => $args->{plannableLocations}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableProductsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableProductsRequest.pm new file mode 100644 index 000000000..629c52c55 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableProductsRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::ListPlannableProductsRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {plannableLocationId => $args->{plannableLocationId}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableProductsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableProductsResponse.pm new file mode 100644 index 000000000..94a81f72a --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ListPlannableProductsResponse.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::ListPlannableProductsResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {productMetadata => $args->{productMetadata}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/OnTargetAudienceMetrics.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/OnTargetAudienceMetrics.pm new file mode 100644 index 000000000..2c28a5bc6 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/OnTargetAudienceMetrics.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::OnTargetAudienceMetrics; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + censusAudienceSize => $args->{censusAudienceSize}, + youtubeAudienceSize => $args->{youtubeAudienceSize}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/PlannableLocation.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/PlannableLocation.pm new file mode 100644 index 000000000..4b58917f9 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/PlannableLocation.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::PlannableLocation; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + id => $args->{id}, + name => $args->{name}, + parentCountryId => $args->{parentCountryId}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/PlannableTargeting.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/PlannableTargeting.pm new file mode 100644 index 000000000..ae0abbce4 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/PlannableTargeting.pm @@ -0,0 +1,38 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::PlannableTargeting; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + ageRanges => $args->{ageRanges}, + devices => $args->{devices}, + genders => $args->{genders}, + networks => $args->{networks}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/PlannedProduct.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/PlannedProduct.pm new file mode 100644 index 000000000..abdd1d300 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/PlannedProduct.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::PlannedProduct; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + budgetMicros => $args->{budgetMicros}, + plannableProductCode => $args->{plannableProductCode}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/Preferences.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/Preferences.pm new file mode 100644 index 000000000..780821fc3 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/Preferences.pm @@ -0,0 +1,39 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::Preferences; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + adLength => $args->{adLength}, + hasGuaranteedPrice => $args->{hasGuaranteedPrice}, + isSkippable => $args->{isSkippable}, + startsWithSound => $args->{startsWithSound}, + topContentOnly => $args->{topContentOnly}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ProductAllocation.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ProductAllocation.pm new file mode 100644 index 000000000..dd69b9822 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ProductAllocation.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::ProductAllocation; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + budgetMicros => $args->{budgetMicros}, + plannableProductCode => $args->{plannableProductCode}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ProductMetadata.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ProductMetadata.pm new file mode 100644 index 000000000..b55d92876 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ProductMetadata.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::ProductMetadata; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + plannableProductCode => $args->{plannableProductCode}, + plannableTargeting => $args->{plannableTargeting}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ReachCurve.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ReachCurve.pm new file mode 100644 index 000000000..359c3e31b --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ReachCurve.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::ReachCurve; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {reachForecasts => $args->{reachForecasts}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ReachForecast.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ReachForecast.pm new file mode 100644 index 000000000..8e03d3d93 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/ReachForecast.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::ReachForecast; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + costMicros => $args->{costMicros}, + forecast => $args->{forecast}, + forecastedProductAllocations => $args->{forecastedProductAllocations}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/Targeting.pm b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/Targeting.pm new file mode 100644 index 000000000..23907cd49 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ReachPlanService/Targeting.pm @@ -0,0 +1,39 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ReachPlanService::Targeting; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + ageRange => $args->{ageRange}, + devices => $args->{devices}, + genders => $args->{genders}, + network => $args->{network}, + plannableLocationId => $args->{plannableLocationId}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService.pm similarity index 74% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService.pm index e5f82b511..fb08a99b2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService; +package Google::Ads::GoogleAds::V4::Services::RecommendationService; use strict; use warnings; @@ -22,9 +22,9 @@ sub apply { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/recommendations:apply'; + my $request_path = 'v4/customers/{+customerId}/recommendations:apply'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::RecommendationService::ApplyRecommendationResponse'; +'Google::Ads::GoogleAds::V4::Services::RecommendationService::ApplyRecommendationResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub dismiss { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/recommendations:dismiss'; + my $request_path = 'v4/customers/{+customerId}/recommendations:dismiss'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::RecommendationService::DismissRecommendationResponse'; +'Google::Ads::GoogleAds::V4::Services::RecommendationService::DismissRecommendationResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -46,8 +46,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::Recommendation'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::Recommendation'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationOperation.pm similarity index 93% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationOperation.pm index 8afd7474d..65f38c4b8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::ApplyRecommendationOperation; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::ApplyRecommendationOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationRequest.pm index 801fc97c6..0a95e049d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::ApplyRecommendationRequest; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::ApplyRecommendationRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationResponse.pm index 5e72408ab..ed20b5895 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::ApplyRecommendationResponse; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::ApplyRecommendationResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationResult.pm index 25eb30c11..1c35eb8d1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/ApplyRecommendationResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/ApplyRecommendationResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::ApplyRecommendationResult; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::ApplyRecommendationResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/CallExtensionParameters.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/CallExtensionParameters.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/CallExtensionParameters.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/CallExtensionParameters.pm index 1325a8d73..3accc3399 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/CallExtensionParameters.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/CallExtensionParameters.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::CallExtensionParameters; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::CallExtensionParameters; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/CalloutExtensionParameters.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/CalloutExtensionParameters.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/CalloutExtensionParameters.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/CalloutExtensionParameters.pm index 84efceb03..acca5b110 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/CalloutExtensionParameters.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/CalloutExtensionParameters.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::CalloutExtensionParameters; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::CalloutExtensionParameters; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/CampaignBudgetParameters.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/CampaignBudgetParameters.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/CampaignBudgetParameters.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/CampaignBudgetParameters.pm index a3295cf21..cb48fb8a9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/CampaignBudgetParameters.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/CampaignBudgetParameters.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::CampaignBudgetParameters; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::CampaignBudgetParameters; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationOperation.pm index 254cd8d80..2504434db 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::DismissRecommendationOperation; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::DismissRecommendationOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationRequest.pm index 190a048ee..4a1ddc306 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::DismissRecommendationRequest; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::DismissRecommendationRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationResponse.pm index 6954b6d02..fd583f1e1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::DismissRecommendationResponse; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::DismissRecommendationResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationResult.pm index 0f90ae0ac..5b7b9c9fb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/DismissRecommendationResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/DismissRecommendationResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::DismissRecommendationResult; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::DismissRecommendationResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/GetRecommendationRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/GetRecommendationRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/GetRecommendationRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/GetRecommendationRequest.pm index fc354f703..c09ad524d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/GetRecommendationRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/GetRecommendationRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::GetRecommendationRequest; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::GetRecommendationRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/KeywordParameters.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/KeywordParameters.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/KeywordParameters.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/KeywordParameters.pm index 210a753c3..483b071e4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/KeywordParameters.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/KeywordParameters.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::KeywordParameters; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::KeywordParameters; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/MoveUnusedBudgetParameters.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/MoveUnusedBudgetParameters.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/MoveUnusedBudgetParameters.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/MoveUnusedBudgetParameters.pm index 9018b8844..ff46bbff5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/MoveUnusedBudgetParameters.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/MoveUnusedBudgetParameters.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::MoveUnusedBudgetParameters; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::MoveUnusedBudgetParameters; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/SitelinkExtensionParameters.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/SitelinkExtensionParameters.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/SitelinkExtensionParameters.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/SitelinkExtensionParameters.pm index 338011cda..068561859 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/SitelinkExtensionParameters.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/SitelinkExtensionParameters.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::SitelinkExtensionParameters; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::SitelinkExtensionParameters; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/TargetCpaOptInParameters.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/TargetCpaOptInParameters.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/TargetCpaOptInParameters.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/TargetCpaOptInParameters.pm index a19c9d2f6..c2bbd0ab1 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/TargetCpaOptInParameters.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/TargetCpaOptInParameters.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::TargetCpaOptInParameters; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::TargetCpaOptInParameters; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/TextAdParameters.pm b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/TextAdParameters.pm similarity index 90% rename from lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/TextAdParameters.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/TextAdParameters.pm index 7245984d6..95303884d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RecommendationService/TextAdParameters.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RecommendationService/TextAdParameters.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RecommendationService::TextAdParameters; +package Google::Ads::GoogleAds::V4::Services::RecommendationService::TextAdParameters; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService.pm b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService.pm similarity index 77% rename from lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService.pm index a39941f8f..fcd064279 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RemarketingActionService; +package Google::Ads::GoogleAds::V4::Services::RemarketingActionService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::RemarketingAction'; + 'Google::Ads::GoogleAds::V4::Resources::RemarketingAction'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -34,9 +34,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/remarketingActions:mutate'; + my $request_path = 'v4/customers/{+customerId}/remarketingActions:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::RemarketingActionService::MutateRemarketingActionsResponse'; +'Google::Ads::GoogleAds::V4::Services::RemarketingActionService::MutateRemarketingActionsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/GetRemarketingActionRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/GetRemarketingActionRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/GetRemarketingActionRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/GetRemarketingActionRequest.pm index fa61479b7..d4ca184c5 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/GetRemarketingActionRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/GetRemarketingActionRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RemarketingActionService::GetRemarketingActionRequest; +package Google::Ads::GoogleAds::V4::Services::RemarketingActionService::GetRemarketingActionRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/MutateRemarketingActionResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/MutateRemarketingActionResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/MutateRemarketingActionResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/MutateRemarketingActionResult.pm index e720842e4..aec25b0fb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/MutateRemarketingActionResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/MutateRemarketingActionResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RemarketingActionService::MutateRemarketingActionResult; +package Google::Ads::GoogleAds::V4::Services::RemarketingActionService::MutateRemarketingActionResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/MutateRemarketingActionsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/MutateRemarketingActionsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/MutateRemarketingActionsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/MutateRemarketingActionsRequest.pm index f8bc03cd7..40983cee9 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/MutateRemarketingActionsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/MutateRemarketingActionsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RemarketingActionService::MutateRemarketingActionsRequest; +package Google::Ads::GoogleAds::V4::Services::RemarketingActionService::MutateRemarketingActionsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/MutateRemarketingActionsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/MutateRemarketingActionsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/MutateRemarketingActionsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/MutateRemarketingActionsResponse.pm index 4a1f7a49e..dca38b8cb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/MutateRemarketingActionsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/MutateRemarketingActionsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RemarketingActionService::MutateRemarketingActionsResponse; +package Google::Ads::GoogleAds::V4::Services::RemarketingActionService::MutateRemarketingActionsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/RemarketingActionOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/RemarketingActionOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/RemarketingActionOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/RemarketingActionOperation.pm index 024883741..af7988fd2 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/RemarketingActionService/RemarketingActionOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/RemarketingActionService/RemarketingActionOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::RemarketingActionService::RemarketingActionOperation; +package Google::Ads::GoogleAds::V4::Services::RemarketingActionService::RemarketingActionOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SearchTermViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/SearchTermViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/SearchTermViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SearchTermViewService.pm index 1888abe3b..19a87ab6a 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SearchTermViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SearchTermViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SearchTermViewService; +package Google::Ads::GoogleAds::V4::Services::SearchTermViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::SearchTermView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::SearchTermView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SearchTermViewService/GetSearchTermViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/SearchTermViewService/GetSearchTermViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/SearchTermViewService/GetSearchTermViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SearchTermViewService/GetSearchTermViewRequest.pm index 695f5ac88..3c35012cf 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SearchTermViewService/GetSearchTermViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SearchTermViewService/GetSearchTermViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SearchTermViewService::GetSearchTermViewRequest; +package Google::Ads::GoogleAds::V4::Services::SearchTermViewService::GetSearchTermViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService.pm index 793cf7fe9..3b687be26 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedCriterionService; +package Google::Ads::GoogleAds::V4::Services::SharedCriterionService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::SharedCriterion'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::SharedCriterion'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/sharedCriteria:mutate'; + my $request_path = 'v4/customers/{+customerId}/sharedCriteria:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::SharedCriterionService::MutateSharedCriteriaResponse'; +'Google::Ads::GoogleAds::V4::Services::SharedCriterionService::MutateSharedCriteriaResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/GetSharedCriterionRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/GetSharedCriterionRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/GetSharedCriterionRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/GetSharedCriterionRequest.pm index d2f7b3c12..f3c902674 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/GetSharedCriterionRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/GetSharedCriterionRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedCriterionService::GetSharedCriterionRequest; +package Google::Ads::GoogleAds::V4::Services::SharedCriterionService::GetSharedCriterionRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/MutateSharedCriteriaRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/MutateSharedCriteriaRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/MutateSharedCriteriaRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/MutateSharedCriteriaRequest.pm index 4571ccce0..a0cd29c01 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/MutateSharedCriteriaRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/MutateSharedCriteriaRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedCriterionService::MutateSharedCriteriaRequest; +package Google::Ads::GoogleAds::V4::Services::SharedCriterionService::MutateSharedCriteriaRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/MutateSharedCriteriaResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/MutateSharedCriteriaResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/MutateSharedCriteriaResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/MutateSharedCriteriaResponse.pm index 32ee6f0f8..96d06ff36 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/MutateSharedCriteriaResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/MutateSharedCriteriaResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedCriterionService::MutateSharedCriteriaResponse; +package Google::Ads::GoogleAds::V4::Services::SharedCriterionService::MutateSharedCriteriaResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/MutateSharedCriterionResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/MutateSharedCriterionResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/MutateSharedCriterionResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/MutateSharedCriterionResult.pm index 1463f23bb..55a998265 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/MutateSharedCriterionResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/MutateSharedCriterionResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedCriterionService::MutateSharedCriterionResult; +package Google::Ads::GoogleAds::V4::Services::SharedCriterionService::MutateSharedCriterionResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/SharedCriterionOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/SharedCriterionOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/SharedCriterionOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/SharedCriterionOperation.pm index 670915e8b..62b13e2bd 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedCriterionService/SharedCriterionOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedCriterionService/SharedCriterionOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedCriterionService::SharedCriterionOperation; +package Google::Ads::GoogleAds::V4::Services::SharedCriterionService::SharedCriterionOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedSetService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedSetService.pm index 2351b8bdc..fb98494b7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedSetService; +package Google::Ads::GoogleAds::V4::Services::SharedSetService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::SharedSet'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::SharedSet'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/sharedSets:mutate'; + my $request_path = 'v4/customers/{+customerId}/sharedSets:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::SharedSetService::MutateSharedSetsResponse'; +'Google::Ads::GoogleAds::V4::Services::SharedSetService::MutateSharedSetsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/GetSharedSetRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/GetSharedSetRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/GetSharedSetRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/GetSharedSetRequest.pm index f62988905..276503950 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/GetSharedSetRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/GetSharedSetRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedSetService::GetSharedSetRequest; +package Google::Ads::GoogleAds::V4::Services::SharedSetService::GetSharedSetRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/MutateSharedSetResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/MutateSharedSetResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/MutateSharedSetResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/MutateSharedSetResult.pm index df9bcf003..b0f5b67a7 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/MutateSharedSetResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/MutateSharedSetResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedSetService::MutateSharedSetResult; +package Google::Ads::GoogleAds::V4::Services::SharedSetService::MutateSharedSetResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/MutateSharedSetsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/MutateSharedSetsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/MutateSharedSetsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/MutateSharedSetsRequest.pm index e9fb0f705..932f19004 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/MutateSharedSetsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/MutateSharedSetsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedSetService::MutateSharedSetsRequest; +package Google::Ads::GoogleAds::V4::Services::SharedSetService::MutateSharedSetsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/MutateSharedSetsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/MutateSharedSetsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/MutateSharedSetsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/MutateSharedSetsResponse.pm index 79cd67032..0cfe37a14 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/MutateSharedSetsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/MutateSharedSetsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedSetService::MutateSharedSetsResponse; +package Google::Ads::GoogleAds::V4::Services::SharedSetService::MutateSharedSetsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/SharedSetOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/SharedSetOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/SharedSetOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/SharedSetOperation.pm index 76fb0e10f..0b347717f 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/SharedSetService/SharedSetOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/SharedSetService/SharedSetOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::SharedSetService::SharedSetOperation; +package Google::Ads::GoogleAds::V4::Services::SharedSetService::SharedSetOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ShoppingPerformanceViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ShoppingPerformanceViewService.pm similarity index 81% rename from lib/Google/Ads/GoogleAds/V1/Services/ShoppingPerformanceViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ShoppingPerformanceViewService.pm index 3510db71a..4a83a9ffb 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ShoppingPerformanceViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ShoppingPerformanceViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ShoppingPerformanceViewService; +package Google::Ads::GoogleAds::V4::Services::ShoppingPerformanceViewService; use strict; use warnings; @@ -22,9 +22,9 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; + my $request_path = 'v4/{+resourceName}'; my $response_type = - 'Google::Ads::GoogleAds::V1::Resources::ShoppingPerformanceView'; + 'Google::Ads::GoogleAds::V4::Resources::ShoppingPerformanceView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/ShoppingPerformanceViewService/GetShoppingPerformanceViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ShoppingPerformanceViewService/GetShoppingPerformanceViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/ShoppingPerformanceViewService/GetShoppingPerformanceViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/ShoppingPerformanceViewService/GetShoppingPerformanceViewRequest.pm index 5f1cb4284..fa354381c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/ShoppingPerformanceViewService/GetShoppingPerformanceViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/ShoppingPerformanceViewService/GetShoppingPerformanceViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::ShoppingPerformanceViewService::GetShoppingPerformanceViewRequest; +package Google::Ads::GoogleAds::V4::Services::ShoppingPerformanceViewService::GetShoppingPerformanceViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ThirdPartyAppAnalyticsLinkService.pm b/lib/Google/Ads/GoogleAds/V4/Services/ThirdPartyAppAnalyticsLinkService.pm new file mode 100644 index 000000000..df3439cd0 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ThirdPartyAppAnalyticsLinkService.pm @@ -0,0 +1,33 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ThirdPartyAppAnalyticsLinkService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub get { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = + 'Google::Ads::GoogleAds::V4::Resources::ThirdPartyAppAnalyticsLink'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/ThirdPartyAppAnalyticsLinkService/GetThirdPartyAppAnalyticsLinkRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/ThirdPartyAppAnalyticsLinkService/GetThirdPartyAppAnalyticsLinkRequest.pm new file mode 100644 index 000000000..ec86e4575 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/ThirdPartyAppAnalyticsLinkService/GetThirdPartyAppAnalyticsLinkRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::ThirdPartyAppAnalyticsLinkService::GetThirdPartyAppAnalyticsLinkRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/TopicConstantService.pm b/lib/Google/Ads/GoogleAds/V4/Services/TopicConstantService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/TopicConstantService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/TopicConstantService.pm index 13760f66f..f70ecef47 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/TopicConstantService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/TopicConstantService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::TopicConstantService; +package Google::Ads::GoogleAds::V4::Services::TopicConstantService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::TopicConstant'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::TopicConstant'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/TopicConstantService/GetTopicConstantRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/TopicConstantService/GetTopicConstantRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/TopicConstantService/GetTopicConstantRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/TopicConstantService/GetTopicConstantRequest.pm index 056928ee4..b0b91e08d 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/TopicConstantService/GetTopicConstantRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/TopicConstantService/GetTopicConstantRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::TopicConstantService::GetTopicConstantRequest; +package Google::Ads::GoogleAds::V4::Services::TopicConstantService::GetTopicConstantRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/TopicViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/TopicViewService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/TopicViewService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/TopicViewService.pm index 6ec0a9419..f87e21b9e 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/TopicViewService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/TopicViewService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::TopicViewService; +package Google::Ads::GoogleAds::V4::Services::TopicViewService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::TopicView'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::TopicView'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/TopicViewService/GetTopicViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/TopicViewService/GetTopicViewRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/TopicViewService/GetTopicViewRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/TopicViewService/GetTopicViewRequest.pm index dbb471be3..7e25638fa 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/TopicViewService/GetTopicViewRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/TopicViewService/GetTopicViewRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::TopicViewService::GetTopicViewRequest; +package Google::Ads::GoogleAds::V4::Services::TopicViewService::GetTopicViewRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/UserDataService.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserDataService.pm new file mode 100644 index 000000000..8526e6054 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserDataService.pm @@ -0,0 +1,33 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::UserDataService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub upload_user_data { + my $self = shift; + my $request_body = shift; + my $http_method = 'POST'; + my $request_path = 'v4/customers/{+customerId}:uploadUserData'; + my $response_type = +'Google::Ads::GoogleAds::V4::Services::UserDataService::UploadUserDataResponse'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/UserDataService/UploadUserDataRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserDataService/UploadUserDataRequest.pm new file mode 100644 index 000000000..6a0ca9c9a --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserDataService/UploadUserDataRequest.pm @@ -0,0 +1,37 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::UserDataService::UploadUserDataRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + customerId => $args->{customerId}, + customerMatchUserListMetadata => $args->{customerMatchUserListMetadata}, + operations => $args->{operations}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/UserDataService/UploadUserDataResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserDataService/UploadUserDataResponse.pm new file mode 100644 index 000000000..5a81b02d5 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserDataService/UploadUserDataResponse.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::UserDataService::UploadUserDataResponse; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + receivedOperationsCount => $args->{receivedOperationsCount}, + uploadDateTime => $args->{uploadDateTime}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/UserDataService/UserDataOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserDataService/UserDataOperation.pm new file mode 100644 index 000000000..46d89be18 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserDataService/UserDataOperation.pm @@ -0,0 +1,36 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::UserDataService::UserDataOperation; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = { + create => $args->{create}, + remove => $args->{remove}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/UserInterestService.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserInterestService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/UserInterestService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/UserInterestService.pm index 7dc404c25..13426fd62 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/UserInterestService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserInterestService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::UserInterestService; +package Google::Ads::GoogleAds::V4::Services::UserInterestService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::UserInterest'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::UserInterest'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/UserInterestService/GetUserInterestRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserInterestService/GetUserInterestRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/UserInterestService/GetUserInterestRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/UserInterestService/GetUserInterestRequest.pm index 4e824f9ca..2b43d5af6 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/UserInterestService/GetUserInterestRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserInterestService/GetUserInterestRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::UserInterestService::GetUserInterestRequest; +package Google::Ads::GoogleAds::V4::Services::UserInterestService::GetUserInterestRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/UserListService.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserListService.pm similarity index 76% rename from lib/Google/Ads/GoogleAds/V1/Services/UserListService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/UserListService.pm index 31ab1810d..d34947925 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/UserListService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserListService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::UserListService; +package Google::Ads::GoogleAds::V4::Services::UserListService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::UserList'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::UserList'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); @@ -33,9 +33,9 @@ sub mutate { my $self = shift; my $request_body = shift; my $http_method = 'POST'; - my $request_path = 'v1/customers/{+customerId}/userLists:mutate'; + my $request_path = 'v4/customers/{+customerId}/userLists:mutate'; my $response_type = -'Google::Ads::GoogleAds::V1::Services::UserListService::MutateUserListsResponse'; +'Google::Ads::GoogleAds::V4::Services::UserListService::MutateUserListsResponse'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/GetUserListRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/GetUserListRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/UserListService/GetUserListRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/UserListService/GetUserListRequest.pm index 50c6a083a..b162e3152 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/GetUserListRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/GetUserListRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::UserListService::GetUserListRequest; +package Google::Ads::GoogleAds::V4::Services::UserListService::GetUserListRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/MutateUserListResult.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/MutateUserListResult.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/UserListService/MutateUserListResult.pm rename to lib/Google/Ads/GoogleAds/V4/Services/UserListService/MutateUserListResult.pm index 70a426b0e..5f8a02c8c 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/MutateUserListResult.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/MutateUserListResult.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::UserListService::MutateUserListResult; +package Google::Ads::GoogleAds::V4::Services::UserListService::MutateUserListResult; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/MutateUserListsRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/MutateUserListsRequest.pm similarity index 92% rename from lib/Google/Ads/GoogleAds/V1/Services/UserListService/MutateUserListsRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/UserListService/MutateUserListsRequest.pm index 0f7a98533..94593bf96 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/MutateUserListsRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/MutateUserListsRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::UserListService::MutateUserListsRequest; +package Google::Ads::GoogleAds::V4::Services::UserListService::MutateUserListsRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/MutateUserListsResponse.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/MutateUserListsResponse.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/UserListService/MutateUserListsResponse.pm rename to lib/Google/Ads/GoogleAds/V4/Services/UserListService/MutateUserListsResponse.pm index b65122dd5..3cd52d1d8 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/MutateUserListsResponse.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/MutateUserListsResponse.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::UserListService::MutateUserListsResponse; +package Google::Ads::GoogleAds::V4::Services::UserListService::MutateUserListsResponse; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/UserListOperation.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/UserListOperation.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/UserListService/UserListOperation.pm rename to lib/Google/Ads/GoogleAds/V4/Services/UserListService/UserListOperation.pm index e07301070..917d15be4 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/UserListService/UserListOperation.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserListService/UserListOperation.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::UserListService::UserListOperation; +package Google::Ads::GoogleAds::V4::Services::UserListService::UserListOperation; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/UserLocationViewService.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserLocationViewService.pm new file mode 100644 index 000000000..917644a6f --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserLocationViewService.pm @@ -0,0 +1,32 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::UserLocationViewService; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseService); + +sub get { + my $self = shift; + my $request_body = shift; + my $http_method = 'GET'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::UserLocationView'; + + return $self->SUPER::call($http_method, $request_path, $request_body, + $response_type); +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V4/Services/UserLocationViewService/GetUserLocationViewRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/UserLocationViewService/GetUserLocationViewRequest.pm new file mode 100644 index 000000000..a89dc5095 --- /dev/null +++ b/lib/Google/Ads/GoogleAds/V4/Services/UserLocationViewService/GetUserLocationViewRequest.pm @@ -0,0 +1,34 @@ +# Copyright 2020, Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package Google::Ads::GoogleAds::V4::Services::UserLocationViewService::GetUserLocationViewRequest; + +use strict; +use warnings; +use base qw(Google::Ads::GoogleAds::BaseEntity); + +use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; + +sub new { + my ($class, $args) = @_; + my $self = {resourceName => $args->{resourceName}}; + + # Delete the unassigned fields in this object for a more concise JSON payload + remove_unassigned_fields($self, $args); + + bless $self, $class; + return $self; +} + +1; diff --git a/lib/Google/Ads/GoogleAds/V1/Services/VideoService.pm b/lib/Google/Ads/GoogleAds/V4/Services/VideoService.pm similarity index 80% rename from lib/Google/Ads/GoogleAds/V1/Services/VideoService.pm rename to lib/Google/Ads/GoogleAds/V4/Services/VideoService.pm index 7d846dade..2a3e92e95 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/VideoService.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/VideoService.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::VideoService; +package Google::Ads::GoogleAds::V4::Services::VideoService; use strict; use warnings; @@ -22,8 +22,8 @@ sub get { my $self = shift; my $request_body = shift; my $http_method = 'GET'; - my $request_path = 'v1/{+resourceName}'; - my $response_type = 'Google::Ads::GoogleAds::V1::Resources::Video'; + my $request_path = 'v4/{+resourceName}'; + my $response_type = 'Google::Ads::GoogleAds::V4::Resources::Video'; return $self->SUPER::call($http_method, $request_path, $request_body, $response_type); diff --git a/lib/Google/Ads/GoogleAds/V1/Services/VideoService/GetVideoRequest.pm b/lib/Google/Ads/GoogleAds/V4/Services/VideoService/GetVideoRequest.pm similarity index 91% rename from lib/Google/Ads/GoogleAds/V1/Services/VideoService/GetVideoRequest.pm rename to lib/Google/Ads/GoogleAds/V4/Services/VideoService/GetVideoRequest.pm index 71bca6f0b..297a91419 100644 --- a/lib/Google/Ads/GoogleAds/V1/Services/VideoService/GetVideoRequest.pm +++ b/lib/Google/Ads/GoogleAds/V4/Services/VideoService/GetVideoRequest.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -package Google::Ads::GoogleAds::V1::Services::VideoService::GetVideoRequest; +package Google::Ads::GoogleAds::V4::Services::VideoService::GetVideoRequest; use strict; use warnings; diff --git a/lib/Google/Ads/GoogleAds/V1/Utils/ResourceNames.pm b/lib/Google/Ads/GoogleAds/V4/Utils/ResourceNames.pm similarity index 88% rename from lib/Google/Ads/GoogleAds/V1/Utils/ResourceNames.pm rename to lib/Google/Ads/GoogleAds/V4/Utils/ResourceNames.pm index c9eeedd45..62ca9b862 100644 --- a/lib/Google/Ads/GoogleAds/V1/Utils/ResourceNames.pm +++ b/lib/Google/Ads/GoogleAds/V4/Utils/ResourceNames.pm @@ -1,4 +1,4 @@ -# Copyright 2019, Google LLC +# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ # # This module provides methods to generate resource names. -package Google::Ads::GoogleAds::V1::Utils::ResourceNames; +package Google::Ads::GoogleAds::V4::Utils::ResourceNames; use strict; use warnings; @@ -43,6 +43,24 @@ sub account_budget_proposal { [$customer_id, $account_budget_proposal_id]); } +# Returns the account_link resource name for the specified components. +sub account_link { + my ($customer_id, $account_link_id) = @_; + + my $path_template = 'customers/{customer_id}/accountLinks/{account_link_id}'; + + return expand_path_template($path_template, [$customer_id, $account_link_id]); +} + +# Returns the ad resource name for the specified components. +sub ad { + my ($customer_id, $ad_id) = @_; + + my $path_template = 'customers/{customer_id}/ads/{ad_id}'; + + return expand_path_template($path_template, [$customer_id, $ad_id]); +} + # Returns the ad_group resource name for the specified components. sub ad_group { my ($customer_id, $ad_group_id) = @_; @@ -63,6 +81,17 @@ sub ad_group_ad { [$customer_id, $ad_group_id, $ad_id]); } +# Returns the ad_group_ad_asset_view resource name for the specified components. +sub ad_group_ad_asset_view { + my ($customer_id, $ad_group_id, $ad_id, $asset_id, $field_type) = @_; + + my $path_template = +'customers/{customer_id}/adGroupAdAssets/{ad_group_id}~{ad_id}~{asset_id}~{field_type}'; + + return expand_path_template($path_template, + [$customer_id, $ad_group_id, $ad_id, $asset_id, $field_type]); +} + # Returns the ad_group_ad_label resource name for the specified components. sub ad_group_ad_label { my ($customer_id, $ad_group_id, $ad_id, $label_id) = @_; @@ -227,6 +256,15 @@ sub asset { return expand_path_template($path_template, [$customer_id, $asset_id]); } +# Returns the batch_job resource name for the specified components. +sub batch_job { + my ($customer_id, $batch_job_id) = @_; + + my $path_template = 'customers/{customer_id}/batchJobs/{batch_job_id}'; + + return expand_path_template($path_template, [$customer_id, $batch_job_id]); +} + # Returns the bidding_strategy resource name for the specified components. sub bidding_strategy { my ($customer_id, $bidding_strategy_id) = @_; @@ -424,6 +462,15 @@ sub conversion_action { [$customer_id, $conversion_action_id]); } +# Returns the currency_constant resource name for the specified components. +sub currency_constant { + my ($currency_code) = @_; + + my $path_template = 'currencyConstants/{currency_code}'; + + return expand_path_template($path_template, [$currency_code]); +} + # Returns the custom_interest resource name for the specified components. sub custom_interest { my ($customer_id, $custom_interest_id) = @_; @@ -537,6 +584,16 @@ sub display_keyword_view { [$customer_id, $ad_group_id, $criterion_id]); } +# Returns the distance_view resource name for the specified components. +sub distance_view { + my ($customer_id, $distance_bucket) = @_; + + my $path_template = + 'customers/{customer_id}/distanceViews/1~{distance_bucket}'; + + return expand_path_template($path_template, [$customer_id, $distance_bucket]); +} + # Returns the domain_category resource name for the specified components. sub domain_category { my ($customer_id, $campaign_id, $category_base64, $language_code) = @_; @@ -717,6 +774,26 @@ sub hotel_performance_view { return expand_path_template($path_template, [$customer_id]); } +# Returns the income_range_view resource name for the specified components. +sub income_range_view { + my ($customer_id, $ad_group_id, $criterion_id) = @_; + + my $path_template = + 'customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}'; + + return expand_path_template($path_template, + [$customer_id, $ad_group_id, $criterion_id]); +} + +# Returns the invoice resource name for the specified components. +sub invoice { + my ($customer_id, $invoice_id) = @_; + + my $path_template = 'customers/{customer_id}/invoices/{invoice_id}'; + + return expand_path_template($path_template, [$customer_id, $invoice_id]); +} + # Returns the keyword_plan resource name for the specified components. sub keyword_plan { my ($customer_id, $kp_plan_id) = @_; @@ -736,36 +813,36 @@ sub keyword_plan_ad_group { return expand_path_template($path_template, [$customer_id, $kp_ad_group_id]); } -# Returns the keyword_plan_campaign resource name for the specified components. -sub keyword_plan_campaign { - my ($customer_id, $kp_campaign_id) = @_; +# Returns the keyword_plan_ad_group_keyword resource name for the specified components. +sub keyword_plan_ad_group_keyword { + my ($customer_id, $kp_ad_group_keyword_id) = @_; my $path_template = - 'customers/{customer_id}/keywordPlanCampaigns/{kp_campaign_id}'; +'customers/{customer_id}/keywordPlanAdGroupKeywords/{kp_ad_group_keyword_id}'; - return expand_path_template($path_template, [$customer_id, $kp_campaign_id]); + return expand_path_template($path_template, + [$customer_id, $kp_ad_group_keyword_id]); } -# Returns the keyword_plan_keyword resource name for the specified components. -sub keyword_plan_keyword { - my ($customer_id, $kp_ad_group_keyword_id) = @_; +# Returns the keyword_plan_campaign resource name for the specified components. +sub keyword_plan_campaign { + my ($customer_id, $kp_campaign_id) = @_; my $path_template = - 'customers/{customer_id}/keywordPlanKeywords/{kp_ad_group_keyword_id}'; + 'customers/{customer_id}/keywordPlanCampaigns/{kp_campaign_id}'; - return expand_path_template($path_template, - [$customer_id, $kp_ad_group_keyword_id]); + return expand_path_template($path_template, [$customer_id, $kp_campaign_id]); } -# Returns the keyword_plan_negative_keyword resource name for the specified components. -sub keyword_plan_negative_keyword { - my ($customer_id, $kp_negative_keyword_id) = @_; +# Returns the keyword_plan_campaign_keyword resource name for the specified components. +sub keyword_plan_campaign_keyword { + my ($customer_id, $kp_campaign_keyword_id) = @_; my $path_template = -'customers/{customer_id}/keywordPlanNegativeKeywords/{kp_negative_keyword_id}'; +'customers/{customer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}'; return expand_path_template($path_template, - [$customer_id, $kp_negative_keyword_id]); + [$customer_id, $kp_campaign_keyword_id]); } # Returns the keyword_view resource name for the specified components. @@ -868,13 +945,15 @@ sub mobile_device_constant { return expand_path_template($path_template, [$criterion_id]); } -# Returns the mutate_job resource name for the specified components. -sub mutate_job { - my ($customer_id, $mutate_job_id) = @_; +# Returns the offline_user_data_job resource name for the specified components. +sub offline_user_data_job { + my ($customer_id, $offline_user_data_job_id) = @_; - my $path_template = 'customers/{customer_id}/mutateJobs/{mutate_job_id}'; + my $path_template = + 'customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}'; - return expand_path_template($path_template, [$customer_id, $mutate_job_id]); + return expand_path_template($path_template, + [$customer_id, $offline_user_data_job_id]); } # Returns the operating_system_version_constant resource name for the specified components. @@ -1002,6 +1081,16 @@ sub shopping_performance_view { return expand_path_template($path_template, [$customer_id]); } +# Returns the third_party_app_analytics_link resource name for the specified components. +sub third_party_app_analytics_link { + my ($customer_id, $account_link_id) = @_; + + my $path_template = + 'customers/{customer_id}/thirdPartyAppAnalyticsLinks/{account_link_id}'; + + return expand_path_template($path_template, [$customer_id, $account_link_id]); +} + # Returns the topic_constant resource name for the specified components. sub topic_constant { my ($topic_id) = @_; @@ -1042,6 +1131,17 @@ sub user_list { return expand_path_template($path_template, [$customer_id, $user_list_id]); } +# Returns the user_location_view resource name for the specified components. +sub user_location_view { + my ($customer_id, $country_criterion_id, $targeting_location) = @_; + + my $path_template = +'customers/{customer_id}/userLocationViews/{country_criterion_id}~{targeting_location}'; + + return expand_path_template($path_template, + [$customer_id, $country_criterion_id, $targeting_location]); +} + # Returns the video resource name for the specified components. sub video { my ($customer_id, $video_id) = @_; diff --git a/t/011_Client.t b/t/011_Client.t index 9d2bbbd86..4a019d5ed 100644 --- a/t/011_Client.t +++ b/t/011_Client.t @@ -25,7 +25,7 @@ use lib qw(lib); use File::Basename; use File::Spec; -use Test::More (tests => 17); +use Test::More (tests => 18); # Tests use Google::Ads::GoogleAds::Client. use_ok("Google::Ads::GoogleAds::Client") @@ -44,6 +44,8 @@ my $api_client = Google::Ads::GoogleAds::Client->new({ is($api_client->get_developer_token(), "dev-token", "Read of developer token."); is($api_client->get_login_customer_id(), $login_customer_id, "Override of login customer ID."); +is($api_client->get_linked_customer_id(), + "linked-customer-id", "Read of linked customer ID."); is( $api_client->get_service_address(), "https://alternate.googleapis.com:443/", diff --git a/t/012_GoogleAdsException.t b/t/012_GoogleAdsException.t index f39f9d83e..7ff2a6660 100644 --- a/t/012_GoogleAdsException.t +++ b/t/012_GoogleAdsException.t @@ -57,7 +57,7 @@ my $google_ads_failure = $exception->get_google_ads_failure; ok( $google_ads_failure->isa( - "Google::Ads::GoogleAds::V3::Errors::GoogleAdsFailure"), + "Google::Ads::GoogleAds::V4::Errors::GoogleAdsFailure"), "GoogleAdsFailure : Get the GoogleAdsFailure object." ); diff --git a/t/014_GoogleAdsHelper.t b/t/014_GoogleAdsHelper.t index 9c9158531..f19926924 100644 --- a/t/014_GoogleAdsHelper.t +++ b/t/014_GoogleAdsHelper.t @@ -20,7 +20,7 @@ use strict; use warnings; use lib qw(lib); -use Google::Ads::GoogleAds::V3::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::Campaign; use Test::More(tests => 39); @@ -88,17 +88,17 @@ is(trim($to_trim_str), $str, is(trim(undef), undef, "Test trim: with undefined arguments."); # Tests the expand_path_template() method. -my $path_template = "v3/googleAdsFields:search"; +my $path_template = "v4/googleAdsFields:search"; is(expand_path_template($path_template), $path_template, "Test expand_path_template(): no expand."); is(expand_path_template($path_template, undef), $path_template, "Test expand_path_template(): with undefined arguments."); -$path_template = "v3/{+resourceName}"; +$path_template = "v4/{+resourceName}"; my $resource_name = "customers/12345/campaigns/54321"; is( expand_path_template($path_template, $resource_name), - "v3/customers/12345/campaigns/54321", + "v4/customers/12345/campaigns/54321", "Test expand_path_template(): normal expand with scalar." ); @@ -123,7 +123,7 @@ is( "Test expand_path_template(): expand with less array elements." ); -$path_template = "v3/customers/{+customerId}/adGroups:mutate"; +$path_template = "v4/customers/{+customerId}/adGroups:mutate"; is( expand_path_template( $path_template, @@ -131,11 +131,11 @@ is( customerId => $customer_id, operations => []} ), - "v3/customers/12345/adGroups:mutate", + "v4/customers/12345/adGroups:mutate", "Test expand_path_template(): normal expand with hash reference." ); -$path_template = "v3/{+resourceName}:listAsyncErrors"; +$path_template = "v4/{+resourceName}:listAsyncErrors"; $args = { resourceName => "customers/12345/campaignDrafts/98765", pageSize => 1000, @@ -143,14 +143,14 @@ $args = { }; is( expand_path_template($path_template, $args), - "v3/customers/12345/campaignDrafts/98765:listAsyncErrors", + "v4/customers/12345/campaignDrafts/98765:listAsyncErrors", "Test expand_path_template(): normal expand with args as hash reference." ); is(scalar(keys %$args), 2, "Test expand_path_template(): expand arg removed from hash."); # Tests the copy_from() method. -my $original_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +my $original_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Interplanetary Cruise", advertisingChannelType => "SEARCH", status => "PAUSED", diff --git a/t/015_SearchGoogleAdsIterator.t b/t/015_SearchGoogleAdsIterator.t index 83aef0c66..affb0b215 100644 --- a/t/015_SearchGoogleAdsIterator.t +++ b/t/015_SearchGoogleAdsIterator.t @@ -23,7 +23,7 @@ use lib qw(lib t/utils); use TestUtils qw(read_file_content); use Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest; use JSON::XS; use Test::More(tests => 11); @@ -45,7 +45,7 @@ $google_ads_service_mock->mock( # Creates the SearchGoogleAdsRequest. my $search_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsRequest ->new({ customerId => 1234567890, query => diff --git a/t/016_FieldMasks.t b/t/016_FieldMasks.t index 265581abb..7194fbd44 100644 --- a/t/016_FieldMasks.t +++ b/t/016_FieldMasks.t @@ -21,10 +21,10 @@ use warnings; use lib qw(lib t/utils); use TestUtils qw(read_file_content); -use Google::Ads::GoogleAds::V3::Resources::Campaign; -use Google::Ads::GoogleAds::V3::Resources::NetworkSettings; -use Google::Ads::GoogleAds::V3::Resources::Ad; -use Google::Ads::GoogleAds::V3::Common::TextAdInfo; +use Google::Ads::GoogleAds::V4::Resources::Campaign; +use Google::Ads::GoogleAds::V4::Resources::NetworkSettings; +use Google::Ads::GoogleAds::V4::Resources::Ad; +use Google::Ads::GoogleAds::V4::Common::TextAdInfo; use JSON::XS; use Test::More qw(no_plan); @@ -33,11 +33,11 @@ use Test::More qw(no_plan); use_ok("Google::Ads::GoogleAds::Utils::FieldMasks"); # Tests the field_mask() method : Campaign - previous values change. -my $original_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +my $original_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "test name", id => 1234 }); -my $modified_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +my $modified_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "test string", id => 5678 }); @@ -46,8 +46,8 @@ ok(eq_set($field_mask->{paths}, ["name", "id"]), "Test field_mask() : Campaign - previous values change [name, id]."); # Tests the field_mask() method : Campaign - from null values. -$original_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new(); -$modified_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$original_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new(); +$modified_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "test string", id => 5678 }); @@ -56,10 +56,10 @@ ok(eq_set($field_mask->{paths}, ["name", "id"]), "Test field_mask() : Campaign - from null values [name, id]."); # Tests the field_mask() method : Campaign - set to null value. -$original_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$original_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "test name", }); -$modified_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$modified_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => undef }); $field_mask = field_mask($original_campaign, $modified_campaign); @@ -67,10 +67,10 @@ ok(eq_set($field_mask->{paths}, ["name"]), "Test field_mask() : Campaign - set to null value [name]."); # Tests the field_mask() method : Campaign - no change. -$original_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$original_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "test name", }); -$modified_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$modified_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "test name" }); $field_mask = field_mask($original_campaign, $modified_campaign); @@ -78,32 +78,32 @@ ok(eq_set($field_mask->{paths}, []), "Test field_mask() : Campaign - no change []."); # Tests the field_mask() method : Ad - repeated field addition. -my $original_ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ +my $original_ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ finalUrls => ["url 1"], }); -my $modified_ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ +my $modified_ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ finalUrls => ["url 1", "url 2"]}); $field_mask = field_mask($original_ad, $modified_ad); ok(eq_set($field_mask->{paths}, ["final_urls"]), "Test field_mask() : Ad - repeated field addition [final_urls]."); # Tests the field_mask() method : Ad - repeated field removal. -$original_ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ +$original_ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ finalUrls => ["url 1", "url 2"], }); -$modified_ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ +$modified_ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ finalUrls => ["url 1"]}); $field_mask = field_mask($original_ad, $modified_ad); ok(eq_set($field_mask->{paths}, ["final_urls"]), "Test field_mask() : Ad - repeated field removal [final_urls]."); # Tests the field_mask() method : Ad - nested field change. -$original_ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ - textAd => Google::Ads::GoogleAds::V3::Common::TextAdInfo->new({ +$original_ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ + textAd => Google::Ads::GoogleAds::V4::Common::TextAdInfo->new({ headline => "headline" })}); -$modified_ad = Google::Ads::GoogleAds::V3::Resources::Ad->new({ - textAd => Google::Ads::GoogleAds::V3::Common::TextAdInfo->new({ +$modified_ad = Google::Ads::GoogleAds::V4::Resources::Ad->new({ + textAd => Google::Ads::GoogleAds::V4::Common::TextAdInfo->new({ headline => "new headline" })}); $field_mask = field_mask($original_ad, $modified_ad); @@ -111,10 +111,10 @@ ok(eq_set($field_mask->{paths}, ["text_ad.headline"]), "Test field_mask() : Ad - nested field change [text_ad.headline]."); # Tests the all_set_fields_of() method : Campaign. -$modified_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$modified_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Name", networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetSearchNetwork => "true", })}); $field_mask = all_set_fields_of($modified_campaign); @@ -126,13 +126,13 @@ ok( ); # Tests the field_mask() method : Campaign - nested field for update. -$original_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$original_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "test name", }); -$modified_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$modified_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "new name", networkSettings => - Google::Ads::GoogleAds::V3::Resources::NetworkSettings->new({ + Google::Ads::GoogleAds::V4::Resources::NetworkSettings->new({ targetSearchNetwork => "true", })}); $field_mask = field_mask($original_campaign, $modified_campaign); @@ -145,10 +145,10 @@ ok( ); # Tests the field_mask() method: Campaign - non-existing field to undef. -$original_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$original_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "test name", }); -$modified_campaign = Google::Ads::GoogleAds::V3::Resources::Campaign->new({ +$modified_campaign = Google::Ads::GoogleAds::V4::Resources::Campaign->new({ name => "Name", id => undef }); diff --git a/t/017_PartialFailureUtils.t b/t/017_PartialFailureUtils.t index e873d9f1b..0c6d8d610 100644 --- a/t/017_PartialFailureUtils.t +++ b/t/017_PartialFailureUtils.t @@ -50,7 +50,7 @@ my $google_ads_failure = get_google_ads_failure( $partial_failure_response->{partialFailureError}{details}[0]); ok( $google_ads_failure->isa( - "Google::Ads::GoogleAds::V3::Errors::GoogleAdsFailure"), + "Google::Ads::GoogleAds::V4::Errors::GoogleAdsFailure"), "Test get_google_ads_failure(): class type." ); is($google_ads_failure->{errors}[0]{errorCode}{requestError}, @@ -67,7 +67,7 @@ is(scalar @$google_ads_errors_1, 1, "Test get_google_ads_errors(): operation 1 - number of elements."); ok( $google_ads_errors_1->[0] - ->isa("Google::Ads::GoogleAds::V3::Errors::GoogleAdsError"), + ->isa("Google::Ads::GoogleAds::V4::Errors::GoogleAdsError"), "Test get_google_ads_errors(): operation 1 - element type." ); is($google_ads_errors_1->[0]{errorCode}{requestError}, @@ -90,7 +90,7 @@ is(scalar @$google_ads_errors_2, 1, "Test get_google_ads_errors(): operation 2 - number or elements."); ok( $google_ads_errors_2->[0] - ->isa("Google::Ads::GoogleAds::V3::Errors::GoogleAdsError"), + ->isa("Google::Ads::GoogleAds::V4::Errors::GoogleAdsError"), "Test get_google_ads_errors(): operation 2 - element type." ); is($google_ads_errors_2->[0]{errorCode}{adGroupError}, diff --git a/t/019_GoogleAdsLogger.t b/t/019_GoogleAdsLogger.t index 5ac115837..1cb4102b2 100644 --- a/t/019_GoogleAdsLogger.t +++ b/t/019_GoogleAdsLogger.t @@ -152,7 +152,7 @@ sub __extract_summary_log_value { # The last key "FaultMessage" in the summary log. return $1 if $key eq "FaultMessage" and $log =~ /$key=(.+)/; - return $1 if $log =~ /$key=(\S+)/; + return $1 if $log =~ /$key=(\S+)/; } # The private method to extract the JSON object for a specific key in the detail log. diff --git a/t/020_ResourcesNames.t b/t/020_ResourcesNames.t index 8346342fd..0a7c80758 100644 --- a/t/020_ResourcesNames.t +++ b/t/020_ResourcesNames.t @@ -23,13 +23,13 @@ use lib qw(lib); use Test::More(tests => 30); -# Tests use Google::Ads::GoogleAds::V3::Utils::ResourceNames. -use_ok("Google::Ads::GoogleAds::V3::Utils::ResourceNames"); +# Tests use Google::Ads::GoogleAds::V4::Utils::ResourceNames. +use_ok("Google::Ads::GoogleAds::V4::Utils::ResourceNames"); # Tests account_budget_proposal(). my $expected = "customers/1234/accountBudgetProposals/5678"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::account_budget_proposal( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::account_budget_proposal( 1234, 5678 ), $expected, @@ -39,7 +39,7 @@ is( # Tests ad_group_ad(). $expected = "customers/1234/adGroupAds/5678~1011"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_ad( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_ad( 1234, 5678, 1011 ), $expected, @@ -49,7 +49,7 @@ is( # Tests ad_group_bid_modifier(). $expected = "customers/1234/adGroupBidModifiers/5678~1011"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_bid_modifier( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_bid_modifier( 1234, 5678, 1011 ), $expected, @@ -59,7 +59,7 @@ is( # Tests ad_group_criterion(). $expected = "customers/1234/adGroupCriteria/5678~1011"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group_criterion( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group_criterion( 1234, 5678, 1011 ), $expected, @@ -68,13 +68,13 @@ is( # Tests ad_group(). $expected = "customers/1234/adGroups/5678"; -is(Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group(1234, 5678), +is(Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group(1234, 5678), $expected, "ad_group"); # Tests ad_parameter(). $expected = "customers/1234/adParameters/5678~1011~3"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_parameter( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_parameter( 1234, 5678, 1011, 3 ), $expected, @@ -84,7 +84,7 @@ is( # Tests ad_schedule_view(). $expected = "customers/1234/adScheduleViews/5678~1011"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_schedule_view( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_schedule_view( 1234, 5678, 1011 ), $expected, @@ -94,7 +94,7 @@ is( # Tests bidding_strategy(). $expected = "customers/1234/biddingStrategies/5678"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::bidding_strategy( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::bidding_strategy( 1234, 5678 ), $expected, @@ -103,18 +103,18 @@ is( # Tests billing_setup(). $expected = "customers/1234/billingSetups/5678"; -is(Google::Ads::GoogleAds::V3::Utils::ResourceNames::billing_setup(1234, 5678), +is(Google::Ads::GoogleAds::V4::Utils::ResourceNames::billing_setup(1234, 5678), $expected, "billing_setup"); # Tests campaign(). $expected = "customers/1234/campaigns/5678"; -is(Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign(1234, 5678), +is(Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign(1234, 5678), $expected, "campaign"); # Tests campaign_bid_modifier(). $expected = "customers/1234/campaignBidModifiers/5678~1011"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_bid_modifier( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_bid_modifier( 1234, 5678, 1011 ), $expected, @@ -124,14 +124,14 @@ is( # Tests campaign_budget(). $expected = "customers/1234/campaignBudgets/5678"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_budget(1234, 5678), + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_budget(1234, 5678), $expected, "campaign_budget" ); # Tests campaign_criterion(). $expected = "customers/1234/campaignCriteria/5678~1011"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_criterion( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_criterion( 1234, 5678, 1011 ), $expected, @@ -141,7 +141,7 @@ is( # Tests campaign_shared_set(). $expected = "customers/1234/campaignSharedSets/5678~91011"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign_shared_set( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign_shared_set( 1234, 5678, 91011 ), $expected, @@ -151,7 +151,7 @@ is( # Tests change_status(). $expected = "customers/1234/changeStatus/5678asd"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::change_status( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::change_status( 1234, "5678asd" ), $expected, @@ -161,7 +161,7 @@ is( # Tests click_view(). $expected = "customers/1234/clickViews/2019_05_22~5678asd"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::click_view( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::click_view( 1234, "2019_05_22", "5678asd" ), $expected, @@ -171,7 +171,7 @@ is( # Tests conversion_action(). $expected = "customers/1234/conversionActions/5678"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::conversion_action( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::conversion_action( 1234, 5678 ), $expected, @@ -180,18 +180,18 @@ is( # Tests customer(). $expected = "customers/1234"; -is(Google::Ads::GoogleAds::V3::Utils::ResourceNames::customer(1234), +is(Google::Ads::GoogleAds::V4::Utils::ResourceNames::customer(1234), $expected, "customer"); # Tests geo_target_constant(). $expected = "geoTargetConstants/1234"; -is(Google::Ads::GoogleAds::V3::Utils::ResourceNames::geo_target_constant(1234), +is(Google::Ads::GoogleAds::V4::Utils::ResourceNames::geo_target_constant(1234), $expected, "geo_target_constant"); # Tests google_ads_field(). $expected = "googleAdsFields/ad_group_criterion.effective_cpm_bid_micros"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::google_ads_field( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::google_ads_field( "ad_group_criterion.effective_cpm_bid_micros"), $expected, "google_ads_field" @@ -200,7 +200,7 @@ is( # Tests keyword_view(). $expected = "customers/1234/keywordViews/5678~1011"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::keyword_view( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::keyword_view( 1234, 5678, 1011 ), $expected, @@ -210,7 +210,7 @@ is( # Tests mobile_app_category_constant(). $expected = "mobileAppCategoryConstants/1234"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::mobile_app_category_constant( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::mobile_app_category_constant( 1234), $expected, "mobile_app_category_constant" @@ -219,7 +219,7 @@ is( # Tests mobile_device_constant(). $expected = "mobileDeviceConstants/1234"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::mobile_device_constant( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::mobile_device_constant( 1234), $expected, "mobile_device_constant" @@ -228,7 +228,7 @@ is( # Tests operating_system_version_constant(). $expected = "operatingSystemVersionConstants/1234"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::operating_system_version_constant( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::operating_system_version_constant( 1234), $expected, "operating_system_version_constant" @@ -237,7 +237,7 @@ is( # Tests remarketing_action(). $expected = "customers/1234/remarketingActions/5678"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::remarketing_action( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::remarketing_action( 1234, 5678 ), $expected, @@ -247,7 +247,7 @@ is( # Tests search_term_view(). $expected = "customers/1234/searchTermViews/5678~91011~5678asd"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::search_term_view( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::search_term_view( 1234, 5678, 91011, "5678asd" ), $expected, @@ -256,13 +256,13 @@ is( # Tests shared_set(). $expected = "customers/1234/sharedSets/5678"; -is(Google::Ads::GoogleAds::V3::Utils::ResourceNames::shared_set(1234, 5678), +is(Google::Ads::GoogleAds::V4::Utils::ResourceNames::shared_set(1234, 5678), $expected, "shared_set"); # Tests shared_criterion(). $expected = "customers/1234/sharedCriteria/5678~91011"; is( - Google::Ads::GoogleAds::V3::Utils::ResourceNames::shared_criterion( + Google::Ads::GoogleAds::V4::Utils::ResourceNames::shared_criterion( 1234, 5678, 91011 ), $expected, @@ -271,5 +271,5 @@ is( # Tests video(). $expected = "customers/1234/videos/5678asd"; -is(Google::Ads::GoogleAds::V3::Utils::ResourceNames::video(1234, "5678asd"), +is(Google::Ads::GoogleAds::V4::Utils::ResourceNames::video(1234, "5678asd"), $expected, "video"); diff --git a/t/022_SearchStreamHandler.t b/t/022_SearchStreamHandler.t index 6607fca74..3d4e32a0c 100644 --- a/t/022_SearchStreamHandler.t +++ b/t/022_SearchStreamHandler.t @@ -23,9 +23,9 @@ use lib qw(lib t/utils); use TestUtils qw(read_file_content get_mock_client_with_auth); use Google::Ads::GoogleAds::Logging::GoogleAdsLogger; use Google::Ads::GoogleAds::Utils::SearchStreamHandler; -use Google::Ads::GoogleAds::V3::Services::GoogleAdsService; +use Google::Ads::GoogleAds::V4::Services::GoogleAdsService; use - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest; use HTTP::Request::Common; use JSON::XS; @@ -48,7 +48,7 @@ $google_ads_service_mock->mock( # Creates the SearchGoogleAdsStreamRequest. my $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => 1234567890, query => @@ -96,14 +96,14 @@ $lwp_agent_mock->mock( # Creates the GoogleAdsService. my $google_ads_service = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService->new({ + Google::Ads::GoogleAds::V4::Services::GoogleAdsService->new({ api_client => $api_client_mock, __lwp_agent => $lwp_agent_mock }); # Creates the SearchGoogleAdsStreamRequest with invalid query. $search_stream_request = - Google::Ads::GoogleAds::V3::Services::GoogleAdsService::SearchGoogleAdsStreamRequest + Google::Ads::GoogleAds::V4::Services::GoogleAdsService::SearchGoogleAdsStreamRequest ->new({ customerId => 1234567890, query => @@ -152,8 +152,8 @@ my $google_ads_failure = $google_ads_exception->get_google_ads_failure(); ok( $google_ads_failure->isa( - "Google::Ads::GoogleAds::V3::Errors::GoogleAdsFailure"), -"GoogleAdsFailure : Is a Google::Ads::GoogleAds::V3::Errors::GoogleAdsFailure." + "Google::Ads::GoogleAds::V4::Errors::GoogleAdsFailure"), +"GoogleAdsFailure : Is a Google::Ads::GoogleAds::V4::Errors::GoogleAdsFailure." ); ok( diff --git a/t/101_CodeExamples.ft b/t/101_CodeExamples.ft index a8461bc2f..409ffeb75 100644 --- a/t/101_CodeExamples.ft +++ b/t/101_CodeExamples.ft @@ -295,10 +295,10 @@ ok( "Test of add_campaign_labels example." ); require qw( - examples/campaign_management/add_complete_campaigns_using_mutate_job.pl); + examples/campaign_management/add_complete_campaigns_using_batch_job.pl); ok( - add_complete_campaigns_using_mutate_job($api_client, $customer_id), - "Test of add_complete_campaigns_using_mutate_job example." + add_complete_campaigns_using_batch_job($api_client, $customer_id), + "Test of add_complete_campaigns_using_batch_job example." ); # NOTE: Skip the create_campaign_experiment.pl as it requires additional setup. require qw( diff --git a/t/testdata/exception_google_ads_failure.json b/t/testdata/exception_google_ads_failure.json index 4f396c258..dbab1c599 100644 --- a/t/testdata/exception_google_ads_failure.json +++ b/t/testdata/exception_google_ads_failure.json @@ -5,7 +5,7 @@ "status": "INVALID_ARGUMENT", "details": [ { - "@type": "type.googleapis.com/google.ads.googleads.v3.errors.GoogleAdsFailure", + "@type": "type.googleapis.com/google.ads.googleads.v4.errors.GoogleAdsFailure", "errors": [ { "errorCode": { diff --git a/t/testdata/exception_stream_search.json b/t/testdata/exception_stream_search.json index 71c6b95c6..684b7cf22 100644 --- a/t/testdata/exception_stream_search.json +++ b/t/testdata/exception_stream_search.json @@ -6,7 +6,7 @@ "status": "INVALID_ARGUMENT", "details": [ { - "@type": "type.googleapis.com/google.ads.googleads.v3.errors.GoogleAdsFailure", + "@type": "type.googleapis.com/google.ads.googleads.v4.errors.GoogleAdsFailure", "errors": [ { "errorCode": { diff --git a/t/testdata/googleads_mock.properties b/t/testdata/googleads_mock.properties index af9a0b0c1..3dabe8c07 100755 --- a/t/testdata/googleads_mock.properties +++ b/t/testdata/googleads_mock.properties @@ -1,6 +1,7 @@ # This file is only for Client class unit tests, do not modify. developerToken=dev-token loginCustomerId=login-customer-id +linkedCustomerId=linked-customer-id serviceAddress=https://alternate.googleapis.com:443/ clientId=client_1+user@domain.com clientSecret=oauth2-client-secret diff --git a/t/testdata/googleads_test.properties b/t/testdata/googleads_test.properties index 3a511d64c..39dcd4013 100755 --- a/t/testdata/googleads_test.properties +++ b/t/testdata/googleads_test.properties @@ -14,6 +14,15 @@ developerToken=INSERT_DEVELOPER_TOKEN_HERE # application uses multiple manager account + OAuth pairs # loginCustomerId=INSERT_LOGIN_CUSTOMER_ID_HERE +# This header is only required for methods that update the resources of an +# entity when permissioned via Linked Accounts in the Google Ads UI (AccountLink +# resource in the Google Ads API). Set this value to the customer ID of the data +# provider that updates the resources of the specified customer ID. It should be +# set without dashes, for example: 1234567890 instead of 123-456-7890. Read +# https://support.google.com/google-ads/answer/7365001 to learn more about +# Linked Accounts. +# linkedCustomerId=INSERT_LINKED_CUSTOMER_ID_HERE + # To use an alternative Google Ads API service address. # serviceAddress=INSERT_GOOGLE_ADS_API_SERVICE_ADDRESS_HERE diff --git a/t/testdata/logger_tests.json b/t/testdata/logger_tests.json index 14225d509..c2657bfca 100644 --- a/t/testdata/logger_tests.json +++ b/t/testdata/logger_tests.json @@ -2,7 +2,7 @@ "success_logging": { "request": { "method": "POST", - "url": "https://googleads.googleapis.com/v3/customers/1234567890/campaignBudgets:mutate", + "url": "https://googleads.googleapis.com/v4/customers/1234567890/campaignBudgets:mutate", "headers": [ "Content-Type", "application/json; charset=utf-8", @@ -51,7 +51,7 @@ "error_logging": { "request": { "method": "POST", - "url": "https://googleads.googleapis.com/v3/customers/1234567890/googleAds:search", + "url": "https://googleads.googleapis.com/v4/customers/1234567890/googleAds:search", "headers": [ "Content-Type", "application/json; charset=utf-8", @@ -90,7 +90,7 @@ "status": "INVALID_ARGUMENT", "details": [ { - "@type": "type.googleapis.com/google.ads.googleads.v3.errors.GoogleAdsFailure", + "@type": "type.googleapis.com/google.ads.googleads.v4.errors.GoogleAdsFailure", "errors": [ { "errorCode": { diff --git a/t/testdata/partial_failure_response.json b/t/testdata/partial_failure_response.json index a1cb57a0d..e7d6e4bfb 100644 --- a/t/testdata/partial_failure_response.json +++ b/t/testdata/partial_failure_response.json @@ -13,7 +13,7 @@ "message": "Multiple errors in 'details'. First error: '{campaign_id}' part of the resource name is invalid., at operations[1].create.campaign", "details": [ { - "@type": "type.googleapis.com/google.ads.googleads.v3.errors.GoogleAdsFailure", + "@type": "type.googleapis.com/google.ads.googleads.v4.errors.GoogleAdsFailure", "errors": [ { "errorCode": { diff --git a/t/utils/TestAPIUtils.pm b/t/utils/TestAPIUtils.pm index c7370cd92..5b1dc4380 100644 --- a/t/utils/TestAPIUtils.pm +++ b/t/utils/TestAPIUtils.pm @@ -17,7 +17,7 @@ package TestAPIUtils; use strict; use warnings; -use Google::Ads::GoogleAds::V3::Utils::ResourceNames; +use Google::Ads::GoogleAds::V4::Utils::ResourceNames; use Data::Uniqid qw(uniqid); @@ -131,7 +131,7 @@ sub create_ad_group { my $ad_group = __get_api_package($api_client, "Resources", "AdGroup", 1)->new({ name => "Ad group #" . uniqid(), - campaign => Google::Ads::GoogleAds::V3::Utils::ResourceNames::campaign( + campaign => Google::Ads::GoogleAds::V4::Utils::ResourceNames::campaign( $customer_id, $campaign_id ), cpcBidMicros => 500000 @@ -159,7 +159,7 @@ sub create_keyword { my $ad_group_criterion = __get_api_package($api_client, "Resources", "AdGroupCriterion", 1)->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), keyword => @@ -198,7 +198,7 @@ sub create_text_ad { my $ad_group_ad = __get_api_package($api_client, "Resources", "AdGroupAd", 1)->new({ - adGroup => Google::Ads::GoogleAds::V3::Utils::ResourceNames::ad_group( + adGroup => Google::Ads::GoogleAds::V4::Utils::ResourceNames::ad_group( $customer_id, $ad_group_id ), ad => __get_api_package($api_client, "Resources", "Ad", 1)->new({ @@ -247,7 +247,7 @@ sub delete_label { my $label_operation = __get_api_package($api_client, "LabelService", "LabelOperation", 1)->new({ - remove => Google::Ads::GoogleAds::V3::Utils::ResourceNames::label( + remove => Google::Ads::GoogleAds::V4::Utils::ResourceNames::label( $customer_id, $label_id )});