| 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::AdGroup; | ||
| 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 | adRotationMode => $args->{adRotationMode}, | ||
| 27 | aiMaxAdGroupSetting => $args->{aiMaxAdGroupSetting}, | ||
| 28 | audienceSetting => $args->{audienceSetting}, | ||
| 29 | baseAdGroup => $args->{baseAdGroup}, | ||
| 30 | campaign => $args->{campaign}, | ||
| 31 | cpcBidMicros => $args->{cpcBidMicros}, | ||
| 32 | cpmBidMicros => $args->{cpmBidMicros}, | ||
| 33 | cpvBidMicros => $args->{cpvBidMicros}, | ||
| 34 | demandGenAdGroupSettings => $args->{demandGenAdGroupSettings}, | ||
| 35 | displayCustomBidDimension => $args->{displayCustomBidDimension}, | ||
| 36 | effectiveCpcBidMicros => $args->{effectiveCpcBidMicros}, | ||
| 37 | effectiveTargetCpaMicros => $args->{effectiveTargetCpaMicros}, | ||
| 38 | effectiveTargetCpaSource => $args->{effectiveTargetCpaSource}, | ||
| 39 | effectiveTargetCpc => $args->{effectiveTargetCpc}, | ||
| 40 | effectiveTargetCpcSource => $args->{effectiveTargetCpcSource}, | ||
| 41 | effectiveTargetRoas => $args->{effectiveTargetRoas}, | ||
| 42 | effectiveTargetRoasSource => $args->{effectiveTargetRoasSource}, | ||
| 43 | excludeDemographicExpansion => $args->{excludeDemographicExpansion}, | ||
| 44 | excludedParentAssetFieldTypes => $args->{excludedParentAssetFieldTypes}, | ||
| 45 | excludedParentAssetSetTypes => $args->{excludedParentAssetSetTypes}, | ||
| 46 | finalUrlSuffix => $args->{finalUrlSuffix}, | ||
| 47 | fixedCpmMicros => $args->{fixedCpmMicros}, | ||
| 48 | id => $args->{id}, | ||
| 49 | labels => $args->{labels}, | ||
| 50 | name => $args->{name}, | ||
| 51 | optimizedTargetingEnabled => $args->{optimizedTargetingEnabled}, | ||
| 52 | percentCpcBidMicros => $args->{percentCpcBidMicros}, | ||
| 53 | primaryStatus => $args->{primaryStatus}, | ||
| 54 | primaryStatusReasons => $args->{primaryStatusReasons}, | ||
| 55 | resourceName => $args->{resourceName}, | ||
| 56 | status => $args->{status}, | ||
| 57 | targetCpaMicros => $args->{targetCpaMicros}, | ||
| 58 | targetCpcMicros => $args->{targetCpcMicros}, | ||
| 59 | targetCpmMicros => $args->{targetCpmMicros}, | ||
| 60 | targetCpvMicros => $args->{targetCpvMicros}, | ||
| 61 | targetRoas => $args->{targetRoas}, | ||
| 62 | targetingSetting => $args->{targetingSetting}, | ||
| 63 | trackingUrlTemplate => $args->{trackingUrlTemplate}, | ||
| 64 | type => $args->{type}, | ||
| 65 | urlCustomParameters => $args->{urlCustomParameters}, | ||
| 66 | verticalAdsFormatSetting => $args->{verticalAdsFormatSetting}, | ||
| 67 | 0 | videoAdGroupSettings => $args->{videoAdGroupSettings}}; | |
| 68 | |||
| 69 | # Delete the unassigned fields in this object for a more concise JSON payload | ||
| 70 | 0 | remove_unassigned_fields($self, $args); | |
| 71 | |||
| 72 | 0 | bless $self, $class; | |
| 73 | 0 | return $self; | |
| 74 | } | ||
| 75 | |||
| 76 | 1 | 1; | |