| 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::V23::Resources::Asset; | ||
| 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 | appDeepLinkAsset => $args->{appDeepLinkAsset}, | ||
| 27 | bookOnGoogleAsset => $args->{bookOnGoogleAsset}, | ||
| 28 | businessMessageAsset => $args->{businessMessageAsset}, | ||
| 29 | callAsset => $args->{callAsset}, | ||
| 30 | callToActionAsset => $args->{callToActionAsset}, | ||
| 31 | calloutAsset => $args->{calloutAsset}, | ||
| 32 | demandGenCarouselCardAsset => $args->{demandGenCarouselCardAsset}, | ||
| 33 | dynamicCustomAsset => $args->{dynamicCustomAsset}, | ||
| 34 | dynamicEducationAsset => $args->{dynamicEducationAsset}, | ||
| 35 | dynamicFlightsAsset => $args->{dynamicFlightsAsset}, | ||
| 36 | dynamicHotelsAndRentalsAsset => $args->{dynamicHotelsAndRentalsAsset}, | ||
| 37 | dynamicJobsAsset => $args->{dynamicJobsAsset}, | ||
| 38 | dynamicLocalAsset => $args->{dynamicLocalAsset}, | ||
| 39 | dynamicRealEstateAsset => $args->{dynamicRealEstateAsset}, | ||
| 40 | dynamicTravelAsset => $args->{dynamicTravelAsset}, | ||
| 41 | fieldTypePolicySummaries => $args->{fieldTypePolicySummaries}, | ||
| 42 | finalMobileUrls => $args->{finalMobileUrls}, | ||
| 43 | finalUrlSuffix => $args->{finalUrlSuffix}, | ||
| 44 | finalUrls => $args->{finalUrls}, | ||
| 45 | hotelCalloutAsset => $args->{hotelCalloutAsset}, | ||
| 46 | hotelPropertyAsset => $args->{hotelPropertyAsset}, | ||
| 47 | id => $args->{id}, | ||
| 48 | imageAsset => $args->{imageAsset}, | ||
| 49 | leadFormAsset => $args->{leadFormAsset}, | ||
| 50 | locationAsset => $args->{locationAsset}, | ||
| 51 | mediaBundleAsset => $args->{mediaBundleAsset}, | ||
| 52 | mobileAppAsset => $args->{mobileAppAsset}, | ||
| 53 | name => $args->{name}, | ||
| 54 | orientation => $args->{orientation}, | ||
| 55 | pageFeedAsset => $args->{pageFeedAsset}, | ||
| 56 | policySummary => $args->{policySummary}, | ||
| 57 | priceAsset => $args->{priceAsset}, | ||
| 58 | promotionAsset => $args->{promotionAsset}, | ||
| 59 | resourceName => $args->{resourceName}, | ||
| 60 | sitelinkAsset => $args->{sitelinkAsset}, | ||
| 61 | source => $args->{source}, | ||
| 62 | structuredSnippetAsset => $args->{structuredSnippetAsset}, | ||
| 63 | syntheticContentInfo => $args->{syntheticContentInfo}, | ||
| 64 | textAsset => $args->{textAsset}, | ||
| 65 | trackingUrlTemplate => $args->{trackingUrlTemplate}, | ||
| 66 | type => $args->{type}, | ||
| 67 | urlCustomParameters => $args->{urlCustomParameters}, | ||
| 68 | youtubeVideoAsset => $args->{youtubeVideoAsset}, | ||
| 69 | 0 | youtubeVideoListAsset => $args->{youtubeVideoListAsset}}; | |
| 70 | |||
| 71 | # Delete the unassigned fields in this object for a more concise JSON payload | ||
| 72 | 0 | remove_unassigned_fields($self, $args); | |
| 73 | |||
| 74 | 0 | bless $self, $class; | |
| 75 | 0 | return $self; | |
| 76 | } | ||
| 77 | |||
| 78 | 1 | 1; | |