Class: Google::Apis::ContentV2_1::AccountAdsLink
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountAdsLink
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#ads_id ⇒ Fixnum
Customer ID of the Ads account.
-
#status ⇒ String
Status of the link between this Merchant Center account and the Ads account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountAdsLink
constructor
A new instance of AccountAdsLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountAdsLink
Returns a new instance of AccountAdsLink.
205 206 207 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 205 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ads_id ⇒ Fixnum
Customer ID of the Ads account.
Corresponds to the JSON property adsId
189 190 191 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 189 def ads_id @ads_id end |
#status ⇒ String
Status of the link between this Merchant Center account and the Ads account.
Upon retrieval, it represents the actual status of the link and can be either
active if it was approved in Google Ads or pending if it's pending approval.
Upon insertion, it represents the intended status of the link. Re-uploading
a link with status active when it's still pending or with status pending
when it's already active will have no effect: the status will remain unchanged.
Re-uploading a link with deprecated status inactive is equivalent to not
submitting the link at all and will delete the link if it was active or cancel
the link request if it was pending. Acceptable values are: - "active" - "
pending"
Corresponds to the JSON property status
203 204 205 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 203 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
210 211 212 213 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 210 def update!(**args) @ads_id = args[:ads_id] if args.key?(:ads_id) @status = args[:status] if args.key?(:status) end |