V24/Resources/Ad.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 70.8% 17 / 24 CC 1 SCAR 1.8
CC
1
Cov
72%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« V24/Resources/AccountSummary.pm ↑ Summary V24/Resources/AdGroup.pm »
1 # Copyright 2026, Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14  
15 package Google::Ads::GoogleAds::V24::Resources::Ad;
16  
17 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use base qw(Google::Ads::GoogleAds::BaseEntity);
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 ▶use Google::Ads::GoogleAds::Utils::GoogleAdsHelper;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
24 0 my ($class, $args) = @_;
25 my $self = {
26 addedByGoogleAds => $args->{addedByGoogleAds},
27 appAd => $args->{appAd},
28 appEngagementAd => $args->{appEngagementAd},
29 appPreRegistrationAd => $args->{appPreRegistrationAd},
30 demandGenCarouselAd => $args->{demandGenCarouselAd},
31 demandGenMultiAssetAd => $args->{demandGenMultiAssetAd},
32 demandGenProductAd => $args->{demandGenProductAd},
33 demandGenVideoResponsiveAd => $args->{demandGenVideoResponsiveAd},
34 devicePreference => $args->{devicePreference},
35 displayUploadAd => $args->{displayUploadAd},
36 displayUrl => $args->{displayUrl},
37 expandedDynamicSearchAd => $args->{expandedDynamicSearchAd},
38 expandedTextAd => $args->{expandedTextAd},
39 finalAppUrls => $args->{finalAppUrls},
40 finalMobileUrls => $args->{finalMobileUrls},
41 finalUrlSuffix => $args->{finalUrlSuffix},
42 finalUrls => $args->{finalUrls},
43 hotelAd => $args->{hotelAd},
44 id => $args->{id},
45 imageAd => $args->{imageAd},
46 legacyAppInstallAd => $args->{legacyAppInstallAd},
47 legacyResponsiveDisplayAd => $args->{legacyResponsiveDisplayAd},
48 localAd => $args->{localAd},
49 name => $args->{name},
50 resourceName => $args->{resourceName},
51 responsiveDisplayAd => $args->{responsiveDisplayAd},
52 responsiveSearchAd => $args->{responsiveSearchAd},
53 shoppingComparisonListingAd => $args->{shoppingComparisonListingAd},
54 shoppingProductAd => $args->{shoppingProductAd},
55 shoppingSmartAd => $args->{shoppingSmartAd},
56 smartCampaignAd => $args->{smartCampaignAd},
57 syntheticContentInfo => $args->{syntheticContentInfo},
58 systemManagedResourceSource => $args->{systemManagedResourceSource},
59 textAd => $args->{textAd},
60 trackingUrlTemplate => $args->{trackingUrlTemplate},
61 travelAd => $args->{travelAd},
62 type => $args->{type},
63 urlCollections => $args->{urlCollections},
64 urlCustomParameters => $args->{urlCustomParameters},
65 videoAd => $args->{videoAd},
66 0 videoResponsiveAd => $args->{videoResponsiveAd}};
67  
68 # Delete the unassigned fields in this object for a more concise JSON payload
69 0 remove_unassigned_fields($self, $args);
70  
71 0 bless $self, $class;
72 0 return $self;
73 }
74  
75 1 1;
« V24/Resources/AccountSummary.pm ↑ Summary V24/Resources/AdGroup.pm »