Skip to content

Changes needed for MPA support#555

Open
dorasun wants to merge 2 commits into
mainfrom
add_mpa_examples
Open

Changes needed for MPA support#555
dorasun wants to merge 2 commits into
mainfrom
add_mpa_examples

Conversation

@dorasun

@dorasun dorasun commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Change-Id: Iaefffce0a2955c3df4369affc6335fb9313151df

Change-Id: Iaefffce0a2955c3df4369affc6335fb9313151df
@dorasun
dorasun requested a review from a team as a code owner July 16, 2026 16:05
# code.
#
# Running the example with -h will print the command line usage.
options[:customer_id] = 'INSERT_CUSTOMER_ID_HERE'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do you check whether the user has replaced this placeholder before invoking the main method?


# Create a query that will retrieve all the pending MPA reviews.
query = <<~QUERY
SELECT

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHERE clause fields must be present in the SELECT clause. Added multi_party_auth_review.review_status to the SELECT clause.

client = Google::Ads::GoogleAds::GoogleAdsClient.new

# Retrieve the list of pending MPA reviews.
pending_reviews = fetch_pending_mpa_reviews(client, customer_id)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a helpful message if pending_reviews is empty to alert the user.

],
)

result_or_error = response.result_or_error.first

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible for result_or_error to be empty? If so, first will return nil , and result_or_error.result will raise a NoMethodError on NilClass .

Change-Id: Ie7f15d5ef3968dd177b8eddfbf43b566f72fca3c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants