Skip to content

Commit

Permalink
feat: Automated regeneration of SearchAds360 client (#12507)
Browse files Browse the repository at this point in the history
Auto-created at 2024-11-10 13:15:47 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Nov 10, 2024
1 parent 0f8a571 commit d803507
Show file tree
Hide file tree
Showing 9 changed files with 213 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/search_ads360/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_search_ads360, "~> 0.8"}]
[{:google_api_search_ads360, "~> 0.9"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.SearchAds360.V0 do
API client metadata for GoogleApi.SearchAds360.V0.
"""

@discovery_revision "20241002"
@discovery_revision "20241108"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGro
* `ad` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad.t`, *default:* `nil`) - Immutable. The ad.
* `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp when this ad_group_ad was created. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
* `effectiveLabels` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The resource names of effective labels attached to this ad. An effective label is a label inherited or directly assigned to this ad.
* `engineId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the ad in the external engine account. This field is for Search Ads 360 account only, for example, Yahoo Japan, Microsoft, Baidu etc. For non-Search Ads 360 entity, use "ad_group_ad.ad.id" instead.
* `engineStatus` (*type:* `String.t`, *default:* `nil`) - Output only. Additional status of the ad in the external engine account. Possible statuses (depending on the type of external account) include active, eligible, pending review, etc.
* `labels` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The resource names of labels attached to this ad group ad.
Expand All @@ -36,6 +37,7 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGro
@type t :: %__MODULE__{
:ad => GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad.t() | nil,
:creationTime => String.t() | nil,
:effectiveLabels => list(String.t()) | nil,
:engineId => String.t() | nil,
:engineStatus => String.t() | nil,
:labels => list(String.t()) | nil,
Expand All @@ -46,6 +48,7 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGro

field(:ad, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad)
field(:creationTime)
field(:effectiveLabels, type: :list)
field(:engineId)
field(:engineStatus)
field(:labels, type: :list)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdEffectiveLabel do
@moduledoc """
A relationship between an ad group ad and an effective label. An effective label is a label inherited or directly assigned to this ad group ad.
## Attributes
* `adGroupAd` (*type:* `String.t`, *default:* `nil`) - Immutable. The ad group ad to which the effective label is attached.
* `label` (*type:* `String.t`, *default:* `nil`) - Immutable. The effective label assigned to the ad group ad.
* `ownerCustomerId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the Customer which owns the effective label.
* `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group ad effective label. Ad group ad effective label resource names have the form: `customers/{customer_id}/adGroupAdEffectiveLabels/{ad_group_id}~{ad_id}~{label_id}`
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:adGroupAd => String.t() | nil,
:label => String.t() | nil,
:ownerCustomerId => String.t() | nil,
:resourceName => String.t() | nil
}

field(:adGroupAd)
field(:label)
field(:ownerCustomerId)
field(:resourceName)
end

defimpl Poison.Decoder,
for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdEffectiveLabel do
def decode(value, options) do
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdEffectiveLabel.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdEffectiveLabel do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGro
* `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp when this ad group criterion was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format.
* `criterionId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the criterion.
* `effectiveCpcBidMicros` (*type:* `String.t`, *default:* `nil`) - Output only. The effective CPC (cost-per-click) bid.
* `effectiveLabels` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The resource names of effective labels attached to this ad group criterion. An effective label is a label inherited or directly assigned to this ad group criterion.
* `engineId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the ad group criterion in the external engine account. This field is for non-Google Ads account only, for example, Yahoo Japan, Microsoft, Baidu etc. For Google Ads entity, use "ad_group_criterion.criterion_id" instead.
* `engineStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The Engine Status for ad group criterion.
* `finalUrlSuffix` (*type:* `String.t`, *default:* `nil`) - URL template for appending params to final URL.
Expand Down Expand Up @@ -60,6 +61,7 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGro
:creationTime => String.t() | nil,
:criterionId => String.t() | nil,
:effectiveCpcBidMicros => String.t() | nil,
:effectiveLabels => list(String.t()) | nil,
:engineId => String.t() | nil,
:engineStatus => String.t() | nil,
:finalUrlSuffix => String.t() | nil,
Expand Down Expand Up @@ -99,6 +101,7 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGro
field(:creationTime)
field(:criterionId)
field(:effectiveCpcBidMicros)
field(:effectiveLabels, type: :list)
field(:engineId)
field(:engineStatus)
field(:finalUrlSuffix)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 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.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionEffectiveLabel do
@moduledoc """
A relationship between an ad group criterion and an effective label. An effective label is a label inherited or directly assigned to this ad group criterion.
## Attributes
* `adGroupCriterion` (*type:* `String.t`, *default:* `nil`) - Immutable. The ad group criterion to which the effective label is attached.
* `label` (*type:* `String.t`, *default:* `nil`) - Immutable. The effective label assigned to the ad group criterion.
* `ownerCustomerId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the Customer which owns the effective label.
* `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group criterion effective label. Ad group criterion effective label resource names have the form: `customers/{customer_id}/adGroupCriterionEffectiveLabels/{ad_group_id}~{criterion_id}~{label_id}`
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:adGroupCriterion => String.t() | nil,
:label => String.t() | nil,
:ownerCustomerId => String.t() | nil,
:resourceName => String.t() | nil
}

field(:adGroupCriterion)
field(:label)
field(:ownerCustomerId)
field(:resourceName)
end

defimpl Poison.Decoder,
for:
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionEffectiveLabel do
def decode(value, options) do
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionEffectiveLabel.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for:
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionEffectiveLabel do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserLocationView do
@moduledoc """
A user location view. User Location View includes all metrics aggregated at the country level, one row per country. It reports metrics at the actual physical location of the user by targeted or not targeted location. If other segment fields are used, you may get more than one row per country.
## Attributes
* `countryCriterionId` (*type:* `String.t`, *default:* `nil`) - Output only. Criterion Id for the country.
* `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the user location view. UserLocation view resource names have the form: `customers/{customer_id}/userLocationViews/{country_criterion_id}~{targeting_location}`
* `targetingLocation` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates whether location was targeted or not.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:countryCriterionId => String.t() | nil,
:resourceName => String.t() | nil,
:targetingLocation => boolean() | nil
}

field(:countryCriterionId)
field(:resourceName)
field(:targetingLocation)
end

defimpl Poison.Decoder,
for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserLocationView do
def decode(value, options) do
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserLocationView.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserLocationView do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_Search
* `conversionCustomVariable` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable.t`, *default:* `nil`) - The conversion custom variable referenced in the query.
* `adGroupAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAsset.t`, *default:* `nil`) - The ad group asset referenced in the query.
* `geoTargetConstant` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant.t`, *default:* `nil`) - The geo target constant referenced in the query.
* `adGroupAdEffectiveLabel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdEffectiveLabel.t`, *default:* `nil`) - The ad group ad effective label referenced in the query.
* `adGroupAd` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd.t`, *default:* `nil`) - The ad referenced in the query.
* `cartDataSalesView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CartDataSalesView.t`, *default:* `nil`) - The cart data sales view referenced in the query.
* `adGroupEffectiveLabel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupEffectiveLabel.t`, *default:* `nil`) - The ad group effective label referenced in the query.
Expand All @@ -51,6 +52,7 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_Search
* `campaignCriterion` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignCriterion.t`, *default:* `nil`) - The campaign criterion referenced in the query.
* `assetGroupSignal` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupSignal.t`, *default:* `nil`) - The asset group signal referenced in the query.
* `languageConstant` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant.t`, *default:* `nil`) - The language constant referenced in the query.
* `adGroupCriterionEffectiveLabel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionEffectiveLabel.t`, *default:* `nil`) - The ad group criterion effective label referenced in the query.
* `userList` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList.t`, *default:* `nil`) - The user list referenced in the query.
* `customerAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAsset.t`, *default:* `nil`) - The customer asset referenced in the query.
* `campaignAudienceView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAudienceView.t`, *default:* `nil`) - The campaign audience view referenced in the query.
Expand All @@ -71,6 +73,7 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_Search
* `adGroupBidModifier` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupBidModifier.t`, *default:* `nil`) - The bid modifier referenced in the query.
* `genderView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GenderView.t`, *default:* `nil`) - The gender view referenced in the query.
* `adGroupAssetSet` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet.t`, *default:* `nil`) - The ad group asset set referenced in the query.
* `userLocationView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserLocationView.t`, *default:* `nil`) - The user location view referenced in the query.
* `accessibleBiddingStrategy` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AccessibleBiddingStrategy.t`, *default:* `nil`) - The accessible bidding strategy referenced in the query.
* `adGroupCriterionLabel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionLabel.t`, *default:* `nil`) - The ad group criterion label referenced in the query.
* `productGroupView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductGroupView.t`, *default:* `nil`) - The product group view referenced in the query.
Expand Down Expand Up @@ -106,6 +109,9 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_Search
:geoTargetConstant =>
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant.t()
| nil,
:adGroupAdEffectiveLabel =>
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdEffectiveLabel.t()
| nil,
:adGroupAd =>
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd.t() | nil,
:cartDataSalesView =>
Expand Down Expand Up @@ -161,6 +167,9 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_Search
:languageConstant =>
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant.t()
| nil,
:adGroupCriterionEffectiveLabel =>
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionEffectiveLabel.t()
| nil,
:userList =>
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList.t() | nil,
:customerAsset =>
Expand Down Expand Up @@ -215,6 +224,9 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_Search
:adGroupAssetSet =>
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet.t()
| nil,
:userLocationView =>
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserLocationView.t()
| nil,
:accessibleBiddingStrategy =>
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AccessibleBiddingStrategy.t()
| nil,
Expand Down Expand Up @@ -265,6 +277,10 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_Search
as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant
)

field(:adGroupAdEffectiveLabel,
as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdEffectiveLabel
)

field(:adGroupAd, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd)

field(:cartDataSalesView,
Expand Down Expand Up @@ -345,6 +361,11 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_Search
as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant
)

field(:adGroupCriterionEffectiveLabel,
as:
GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionEffectiveLabel
)

field(:userList, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList)

field(:customerAsset,
Expand Down Expand Up @@ -414,6 +435,10 @@ defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_Search
as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet
)

field(:userLocationView,
as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserLocationView
)

field(:accessibleBiddingStrategy,
as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AccessibleBiddingStrategy
)
Expand Down
2 changes: 1 addition & 1 deletion clients/search_ads360/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.SearchAds360.Mixfile do
use Mix.Project

@version "0.8.0"
@version "0.9.0"

def project() do
[
Expand Down

0 comments on commit d803507

Please sign in to comment.