Skip to content

Commit 9f9fdee

Browse files
committed
release version 2.1.2
1 parent 1237a10 commit 9f9fdee

2,021 files changed

Lines changed: 8331 additions & 8301 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎dataforseo_client/api_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(
6262
self.default_headers[header_name] = header_value
6363
self.cookie = cookie
6464
# Set default User-Agent.
65-
self.user_agent = 'python-client/2.1.1'
65+
self.user_agent = 'python-client/2.1.2'
6666
self.client_side_validation = configuration.client_side_validation
6767

6868
def __enter__(self):

‎dataforseo_client/models/ads_search.py‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ class AdsSearch(BaseModel):
1717
AdsSearch
1818
""" # noqa: E501
1919
type: Optional[StrictStr] = Field(default=None, description=r"type of element")
20-
rank_group: Optional[StrictInt] = Field(default=None, description=r"group rank in SERP. position within a group of elements with identical type values. positions of elements with different type values are omitted from rank_group")
21-
rank_absolute: Optional[StrictInt] = Field(default=None, description=r"absolute rank in SERP. absolute position among all the elements in SERP")
22-
advertiser_id: Optional[StrictStr] = Field(default=None, description=r"unique identifier of the advertiser account")
23-
creative_id: Optional[StrictStr] = Field(default=None, description=r"unique identifier of the advertisement")
24-
title: Optional[StrictStr] = Field(default=None, description=r"title of the element")
25-
url: Optional[StrictStr] = Field(default=None, description=r"search URL with refinement parameters")
26-
verified: Optional[StrictBool] = Field(default=None, description=r"verified advertiser account. equals true if advertiser account is verified by Google Ads")
27-
format: Optional[StrictStr] = Field(default=None, description=r"format of the advertisement. possible values: text, image, video")
28-
preview_image: Optional[PreviewImage] = Field(default=None, description=r"preview image of the advertisement")
29-
preview_url: Optional[StrictStr] = Field(default=None, description=r"url pointing to the ad preview")
30-
first_shown: Optional[StrictStr] = Field(default=None, description=r"date and time when the ad was shown for the first time. in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”")
31-
last_shown: Optional[StrictStr] = Field(default=None, description=r"date and time when the ad was shown the last time. in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”")
20+
rank_group: Optional[StrictInt] = Field(default=None, description=r"*group rank in SERP*. position within a group of elements with identical `type` values. positions of elements with different `type` values are omitted from `rank_group`")
21+
rank_absolute: Optional[StrictInt] = Field(default=None, description=r"*absolute rank in SERP*. absolute position among all the elements in SERP")
22+
advertiser_id: Optional[StrictStr] = Field(default=None, description=r"*unique identifier of the advertiser account*")
23+
creative_id: Optional[StrictStr] = Field(default=None, description=r"*unique identifier of the advertisement*")
24+
title: Optional[StrictStr] = Field(default=None, description=r"*title of the element*")
25+
url: Optional[StrictStr] = Field(default=None, description=r"*search URL with refinement parameters*")
26+
verified: Optional[StrictBool] = Field(default=None, description=r"*verified advertiser account*. equals `true` if advertiser account is verified by Google Ads")
27+
format: Optional[StrictStr] = Field(default=None, description=r"*format of the advertisement*. possible values: `text`, `image`, `video`")
28+
preview_image: Optional[PreviewImage] = Field(default=None, description=r"*preview image of the advertisement*")
29+
preview_url: Optional[StrictStr] = Field(default=None, description=r"*url pointing to the ad preview*")
30+
first_shown: Optional[StrictStr] = Field(default=None, description=r"*date and time when the ad was shown for the first time*. in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”")
31+
last_shown: Optional[StrictStr] = Field(default=None, description=r"*date and time when the ad was shown the last time*. in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”")
3232
__properties: ClassVar[List[str]] = [
3333
"type",
3434
"rank_group",

‎dataforseo_client/models/advertiser.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ class Advertiser(BaseModel):
1616
Advertiser
1717
""" # noqa: E501
1818
type: Optional[StrictStr] = Field(default=None, description=r"type of element")
19-
advertiser_id: Optional[StrictStr] = Field(default=None, description=r"unique identifier of the advertiser account. can be used to obtain data on advertising campaigns from the Google Ads Search endpoint")
20-
location: Optional[StrictStr] = Field(default=None, description=r"location of the advertiser account. country code associated with the advertiser account")
21-
verified: Optional[StrictBool] = Field(default=None, description=r"verified advertiser account. equals true if advertiser account is verified by Google Ads")
22-
approx_ads_count: Optional[StrictInt] = Field(default=None, description=r"ads count. the approximate number of ads that are run by the advertiser account across all available Google Ads platforms")
19+
advertiser_id: Optional[StrictStr] = Field(default=None, description=r"*unique identifier of the advertiser account*. can be used to obtain data on advertising campaigns from the [Google Ads Search endpoint](/v3/serp/google/ads_search/task_post/)")
20+
location: Optional[StrictStr] = Field(default=None, description=r"*location of the advertiser account*. country code associated with the advertiser account")
21+
verified: Optional[StrictBool] = Field(default=None, description=r"*verified advertiser account*. equals `true` if advertiser account is verified by Google Ads")
22+
approx_ads_count: Optional[StrictInt] = Field(default=None, description=r"*ads count*. the approximate number of ads that are run by the advertiser account across all available Google Ads platforms")
2323
__properties: ClassVar[List[str]] = [
2424
"type",
2525
"advertiser_id",

‎dataforseo_client/models/ai_mode_ai_overview_shopping_element_info.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing_extensions import Self
1010

1111
from dataforseo_client.models.rating_info import RatingInfo
12-
from dataforseo_client.models.price_info import PriceInfo
12+
from dataforseo_client.models.ai_mode_price_info import AiModePriceInfo
1313

1414

1515

@@ -25,7 +25,7 @@ class AiModeAiOverviewShoppingElementInfo(BaseModel):
2525
url: Optional[StrictStr] = Field(default=None, description=r"*URL in link*")
2626
domain: Optional[StrictStr] = Field(default=None, description=r"*domain in link*")
2727
rating: Optional[RatingInfo] = Field(default=None, description=r"*product rating*. the popularity rate based on reviews. if there is none, the value will be `null`")
28-
price: Optional[PriceInfo] = Field(default=None, description=r"*product price*. product price details on the seller's website;. if there is none, the value will be `null`")
28+
price: Optional[AiModePriceInfo] = Field(default=None, description=r"*product price*. product price details on the seller's website;. if there is none, the value will be `null`")
2929
seller: Optional[StrictStr] = Field(default=None, description=r"*product seller*. name of the product's seller as displayed in search results")
3030
snippet: Optional[StrictStr] = Field(default=None, description=r"*additional information about the result*")
3131
marketplace: Optional[StrictStr] = Field(default=None, description=r"*merchant account provider*. e-commerce site that hosts products or websites of individual sellers under the same merchant account. example:. `by Google`")
@@ -106,7 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
106106
"url": obj.get("url"),
107107
"domain": obj.get("domain"),
108108
"rating": RatingInfo.from_dict(obj["rating"]) if obj.get("rating") is not None else None,
109-
"price": PriceInfo.from_dict(obj["price"]) if obj.get("price") is not None else None,
109+
"price": AiModePriceInfo.from_dict(obj["price"]) if obj.get("price") is not None else None,
110110
"seller": obj.get("seller"),
111111
"snippet": obj.get("snippet"),
112112
"marketplace": obj.get("marketplace"),

‎dataforseo_client/models/ai_mode_price_info.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ class AiModePriceInfo(BaseModel):
1515
"""
1616
AiModePriceInfo
1717
""" # noqa: E501
18-
current: Optional[StrictInt] = Field(default=None, description=r"current priceindicates the current price of the shopping element")
19-
regular: Optional[StrictFloat] = Field(default=None, description=r"regular priceindicates the regular price of the shopping element")
20-
max_value: Optional[StrictFloat] = Field(default=None, description=r"the maximum priceindicates the maximum price of the shopping element")
21-
currency: Optional[StrictStr] = Field(default=None, description=r"currency of the listed priceISO code of the currency applied to the price")
22-
is_price_range: Optional[StrictBool] = Field(default=None, description=r"price is provided as a rangeindicates whether a price is provided in a range")
23-
displayed_price: Optional[StrictStr] = Field(default=None, description=r"price string in the resultraw price string as provided in the result")
18+
current: Optional[StrictInt] = Field(default=None, description=r"*current price*. indicates the current price of the shopping element")
19+
regular: Optional[StrictFloat] = Field(default=None, description=r"*regular price*. indicates the regular price of the shopping element")
20+
max_value: Optional[StrictFloat] = Field(default=None, description=r"*the maximum price*. indicates the maximum price of the shopping element")
21+
currency: Optional[StrictStr] = Field(default=None, description=r"*currency of the listed price*. ISO code of the currency applied to the price")
22+
is_price_range: Optional[StrictBool] = Field(default=None, description=r"*price is provided as a range*. indicates whether a price is provided in a range")
23+
displayed_price: Optional[StrictStr] = Field(default=None, description=r"*price string in the result*. raw price string as provided in the result")
2424
__properties: ClassVar[List[str]] = [
2525
"current",
2626
"regular",

‎dataforseo_client/models/amazon_applicable_vouchers_item.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ class AmazonApplicableVouchersItem(BaseModel):
1616
AmazonApplicableVouchersItem
1717
""" # noqa: E501
1818
type: Optional[StrictStr] = Field(default=None, description=r"type of element")
19-
text: Optional[StrictStr] = Field(default=None, description=r"text of the voucher")
20-
fixed_discount: Optional[StrictFloat] = Field(default=None, description=r"value of the fixed discount")
21-
fixed_discount_currency: Optional[StrictStr] = Field(default=None, description=r"currency code of the fixed discount")
22-
percentage_discount: Optional[StrictFloat] = Field(default=None, description=r"value of the percentage discount. if the discount is fixed, the value will be null")
23-
important_details: Optional[StrictStr] = Field(default=None, description=r"important details about the terms of discount vouchers")
19+
text: Optional[StrictStr] = Field(default=None, description=r"*text of the voucher*")
20+
fixed_discount: Optional[StrictFloat] = Field(default=None, description=r"*value of the fixed discount*")
21+
fixed_discount_currency: Optional[StrictStr] = Field(default=None, description=r"*currency code of the fixed discount*")
22+
percentage_discount: Optional[StrictFloat] = Field(default=None, description=r"*value of the percentage discount*. if the discount is fixed, the value will be `null`")
23+
important_details: Optional[StrictStr] = Field(default=None, description=r"*important details about the terms of discount vouchers*")
2424
__properties: ClassVar[List[str]] = [
2525
"type",
2626
"text",

‎dataforseo_client/models/amazon_metrics_bundle_info.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class AmazonMetricsBundleInfo(BaseModel):
1616
"""
1717
AmazonMetricsBundleInfo
1818
""" # noqa: E501
19-
amazon_serp: Optional[AppMetricsInfo] = Field(default=None, description=r"ranking data from Amazon organic SERP")
20-
amazon_paid: Optional[AppMetricsInfo] = Field(default=None, description=r"ranking data from Amazon paid SERP")
19+
amazon_serp: Optional[AppMetricsInfo] = Field(default=None, description=r"*ranking data from Amazon organic SERP*")
20+
amazon_paid: Optional[AppMetricsInfo] = Field(default=None, description=r"*ranking data from Amazon paid SERP*")
2121
__properties: ClassVar[List[str]] = [
2222
"amazon_serp",
2323
"amazon_paid",

0 commit comments

Comments
 (0)