Advertiser identity verification  |  Google Ads API  |  Google for Developers (2024)

  • Home
  • Products
  • Google Ads API
Stay organized with collections Save and categorize content based on your preferences.

To provide a safe and trustworthy ad ecosystem for users, and to comply withemerging regulations, Google now requires advertisers to complete one or moreverification programs.

If you're required to complete a verification program, a deadline might be setfor the verification process. If the deadline is passed without verificationcompletion, your account could be paused.

You can also proactively undergo verification without being required to do so.The IdentityVerificationServiceoffers methods to do the following:

  • Retrieve the status of the verification process for a customer account,including any deadlines
  • Start a verification process

Retrieve verification status

To retrieve the status of the advertiser identity verification process for acustomer account, call the GetIdentityVerification method:

Java

This example is not yet available in Java; you can take a look at the other languages. 

C#

private static IdentityVerification GetIdentityVerification( GoogleAdsClient client, long customerId){ IdentityVerificationServiceClient identityVerificationService = client.GetService(Services.V17.IdentityVerificationService); try { GetIdentityVerificationResponse response = identityVerificationService.GetIdentityVerification( new GetIdentityVerificationRequest() { CustomerId = customerId.ToString() } ); if (response.IdentityVerification.Count == 0) { return null; } IdentityVerification identityVerification = response.IdentityVerification[0]; string deadline = identityVerification.IdentityVerificationRequirement.VerificationCompletionDeadlineTime; IdentityVerificationProgress identityVerificationProgress = identityVerification.VerificationProgress; Console.WriteLine($"Account {customerId} has a verification completion " + $"deadline of {deadline} and status " + $"{identityVerificationProgress.ProgramStatus} for advertiser identity " + "verification."); return identityVerification; } catch (GoogleAdsException e) { Console.WriteLine("Failure:"); Console.WriteLine($"Message: {e.Message}"); Console.WriteLine($"Failure: {e.Failure}"); Console.WriteLine($"Request ID: {e.RequestId}"); throw; }} 

PHP

This example is not yet available in PHP; you can take a look at the other languages. 

Python

This example is not yet available in Python; you can take a look at the other languages. 

Ruby

def get_identity_verification(client, customer_id) response = client.service.identity_verification.get_identity_verification( customer_id: customer_id ) return nil if response.nil? || response.identity_verification.empty? identity_verification = response.identity_verification.first deadline = identity_verification. identity_verification_requirement. verification_completion_deadline_time progress = identity_verification.verification_progress puts "Account #{customer_id} has a verification completion deadline " \ "of #{deadline} and status #{progress.program_status} for advertiser " \ "identity verification." identity_verificationend 

Perl

sub get_identity_verification { my ($api_client, $customer_id) = @_; my $response = $api_client->IdentityVerificationService()->get({ customerId => $customer_id }); if (!defined $response->{identityVerification}) { printf "Account %s does not require advertiser identity verification.", $customer_id; return; } my $identity_verification = $response->{identityVerification}[0]; my $deadline = $identity_verification->{identityVerificationRequirement} {verificationCompletionDeadlineTime}; my $identity_verification_progress = $identity_verification->{verificationProgress}; printf "Account %s has a verification completion deadline of %s and status " . "%s for advertiser identity verification.", $customer_id, $deadline, $identity_verification_progress->{programStatus}; return $identity_verification;} 

If the customer account is enrolled in the mandatory advertiser identityverification program, the service returns a non-empty response containing alist of IdentityVerification objects. Anempty response indicates that the customer account is not required to undergoadvertiser identity verification.

As of v16, the Google Ads API only supports the ADVERTISER_IDENTITY_VERIFICATIONprogram, so that would be the only item in the list.

An IdentityVerification object contains the following properties:

  • An IdentityVerificationRequirement describing the deadlines tostart and to complete the verification process

  • An IdentityVerificationProgress describing the current status ofthe verification process: this can also include the action URL for the userto complete the verification process.

Start verification process

If a customer account is enrolled in the mandatory advertiser identityverification program —GetIdentityVerification returned a non-emptyresponse with a deadline for the verification process completion, you can starta verification session by calling StartIdentityVerification:

Java

This example is not yet available in Java; you can take a look at the other languages. 

C#

private static void StartIdentityVerification(GoogleAdsClient client, long customerId){ IdentityVerificationServiceClient identityVerificationService = client.GetService(Services.V17.IdentityVerificationService); StartIdentityVerificationRequest request = new StartIdentityVerificationRequest() { CustomerId = customerId.ToString(), VerificationProgram = IdentityVerificationProgram.AdvertiserIdentityVerification }; try { identityVerificationService.StartIdentityVerification(request); } catch (GoogleAdsException e) { Console.WriteLine("Failure:"); Console.WriteLine($"Message: {e.Message}"); Console.WriteLine($"Failure: {e.Failure}"); Console.WriteLine($"Request ID: {e.RequestId}"); throw; }} 

PHP

This example is not yet available in PHP; you can take a look at the other languages. 

Python

This example is not yet available in Python; you can take a look at the other languages. 

Ruby

def start_identity_verification(client, customer_id) client.service.identity_verification.start_identity_verification( customer_id: customer_id, verification_program: :ADVERTISER_IDENTITY_VERIFICATION, )end 

Perl

sub start_identity_verification { my ($api_client, $customer_id) = @_; my $request = Google::Ads::GoogleAds::V17::Services::IdentityVerificationService::StartIdentityVerificationRequest ->new({ customerId => $customer_id, verificationProgram => ADVERTISER_IDENTITY_VERIFICATION }); $api_client->AdvertiserIdentityVerificationService() ->start_identity_verification($request);} 

This will only succeed if there isn't another verification session in progress;once you have started a verification session, subsequent calls toGetIdentityVerification will return the action URL for the user to completethe verification process and the expiration time of the action URL.

After the expiration time has passed, you can call StartIdentityVerificationagain to start a new verification session.

Previous arrow_back Change event

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-06 UTC.

Advertiser identity verification  |  Google Ads API  |  Google for Developers (2024)
Top Articles
How to Unfreeze Your Credit - NerdWallet
Ripple Price Prediction 2025, 2030, 2035, 2040, 2050, 2060
Tesla Supercharger La Crosse Photos
Here are all the MTV VMA winners, even the awards they announced during the ads
Jeremy Corbell Twitter
Georgia Vehicle Registration Fees Calculator
DL1678 (DAL1678) Delta Historial y rastreo de vuelos - FlightAware
Mohawkind Docagent
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Ogeechee Tech Blackboard
What Does Dwb Mean In Instagram
Turbocharged Cars
Why Is Stemtox So Expensive
Binghamton Ny Cars Craigslist
“In my day, you were butch or you were femme”
House Party 2023 Showtimes Near Marcus North Shore Cinema
Top tips for getting around Buenos Aires
Lima Funeral Home Bristol Ri Obituaries
Craigslist In Flagstaff
24 Hour Drive Thru Car Wash Near Me
Lazarillo De Tormes Summary and Study Guide | SuperSummary
Craigslist Clinton Ar
Bekijk ons gevarieerde aanbod occasions in Oss.
How many days until 12 December - Calendarr
Ford F-350 Models Trim Levels and Packages
1973 Coupe Comparo: HQ GTS 350 + XA Falcon GT + VH Charger E55 + Leyland Force 7V
Wnem Tv5 Obituaries
Del Amo Fashion Center Map
Mandy Rose - WWE News, Rumors, & Updates
Parkeren Emmen | Reserveren vanaf €9,25 per dag | Q-Park
Plost Dental
Keyn Car Shows
140000 Kilometers To Miles
Fridley Tsa Precheck
Cl Bellingham
Planet Fitness Lebanon Nh
Hingham Police Scanner Wicked Local
Anderson Tribute Center Hood River
Arnesons Webcam
Citymd West 146Th Urgent Care - Nyc Photos
20 Mr. Miyagi Inspirational Quotes For Wisdom
Minterns German Shepherds
Das schönste Comeback des Jahres: Warum die Vengaboys nie wieder gehen dürfen
Minute Clinic Mooresville Nc
Billings City Landfill Hours
Immobiliare di Felice| Appartamento | Appartamento in vendita Porto San
Famous Dave's BBQ Catering, BBQ Catering Packages, Handcrafted Catering, Famous Dave's | Famous Dave's BBQ Restaurant
OSF OnCall Urgent Care treats minor illnesses and injuries
Fishing Hook Memorial Tattoo
Cataz.net Android Movies Apk
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 6448

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.