SAP-Google Ads Integration Guide
SAP-Google Ads Integration Guide
2022-12-15
1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Document History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3 Setting Up Google. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.1 Setting Up Secured Communication Between SAP Marketing and SAP Cloud Integration. . . . . . . . . . 11
5.2 Setting Up Secured Communication Between SAP Cloud Integration and Google. . . . . . . . . . . . . . . 15
7 Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7.2 FAQs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
2 PUBLIC Content
1 Introduction
Note
Before you start, make sure you have the required version of this document. You can find the available
versions at the following location: [Link]
• Assign Google Ads campaigns to SAP Marketing campaigns to analyze the performance of these
campaigns in SAP Marketing.
• Send a target group to Google Ads to create a custom audience that can be used for campaign targeting in
Google Ads.
This guide is for administrators responsible for performing the configuration activities required to set up the
integration.
SAP Cloud Integration is used as a middleware between SAP Marketing and Google Ads. It's responsible for
OAuth 2.0 token management and any communication between SAP Marketing and the Google Ads API.
Configuration
To run the SAP Marketing - Google Ads integration scenario, configuration settings are required in the following
systems:
• Google Ads
• SAP Cloud Integration
• SAP Marketing
We've added an FAQ to address frequently asked questions about the integration. Please refer to it before you
contact SAP Support. For more information, see FAQs [page 27].
Note
In the PDF version of this guide, some links to certain topics may be missing. All links are available in the
HTML version of the guide.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Introduction PUBLIC 3
2 Document History
The following table provides an overview of the most important document changes.
Document History
Date Description
2020-10-07 Initial version for the Google Ads integration with SAP Marketing
2020 via SAP Cloud Integration.
2021-04-16 Removed defective and unnecessary link from Step 1 in the fol
lowing topic: Set Up the OAuth Authorization Code Grant [page
22].
Note
2202-10-03 For integration package 3.1.0, updates about the Google OAuth
setup were added because of Google's OAuth out-of-band flow
deprecation. Information about certificate-based authentication
was added.
2022-10-12 Added link to blog entry about integration package updates. For
more information see, Integration Package Updates [page 30].
2022-12-15 Corrected SAP Cloud Integration redirect URI. For more informa
tion, see Creating Your Google OAuth Client [page 5].
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
4 PUBLIC Document History
3 Setting Up Google
Set up your Google Manager Account and OAuth client for communication with your SAP Cloud Integration
tenant.
Set up your Google Manager Account for integration with SAP Marketing.
Manager Account
Ensure that all of your Google Ads accounts are grouped under a single Manager Account in Google Ads.
To create a Manager Account and to grant access to all other accounts that you want to appear in SAP
Marketing, see Manager Accounts .
Note
If you want to transfer target groups from SAP Marketing to Google Ads, ensure that your Google Ads
account meets the necessary requirements. For example, your Google Ads account must have a good
history of policy compliance, a good payment history, and more. For more information, see Advertising
Policies Help .
Create your OAuth Client to allow the authentication on the communication between SAP Cloud Integration
and Google services.
Context
Create a Google API Console project and set up the OAuth client. The OAuth client is used for the OAuth token
exchange for the Google Ads API call.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up Google PUBLIC 5
Procedure
1. Log in to Google Cloud with your manager account and create a Google API Console project. For more
information, see Configure a Google API Console Project for the Google Ads API .
2. Enable the Google Ads API.
3. Configure the consent screen.
a. In the OAuth consent screen, choose one of the following user types:
• Internal if you're using the Google Workspace.
• External if you're not using the Google Workspace.
Note
A Google Cloud Platform project with an OAuth consent screen configured for an external user
type and a publishing status of "Testing" is issued a refresh token that expires in 7 days. To avoid
the limitation of short-lived refresh tokens, your Google App needs to go through a verification
process. For more information about Google's verification process, see OAuth API verification
FAQs . Until the verification is completed, the app is in test mode, can only be used by test users,
and the issued refresh token expires in 7 days. For more information about refresh token expiration,
see Refresh Token Expiration .
You can change the list of authorized redirect URIs when you edit the related OAuth 2.0 Client ID.
Results
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
6 PUBLIC Setting Up Google
4 Setting Up SAP Marketing
The integration between SAP Marketing and SAP Cloud Integration requires Web Service Logical Port
configuration.
Web Service Logical Port configuration must be done for each service in SAP Marketing to trigger the related
IFlow in your SAP Cloud Integration tenant.
To complete the integration between SAP Marketing and SAP Cloud Integration, you must do the following:
Set up the communication between SAP Marketing and SAP Cloud Integration by configuring the Web Service
Logical Port for each service.
Context
Configure each of the following services by following the procedure to set up the connection between SAP
Marketing and SAP Cloud Integration:
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up SAP Marketing PUBLIC 7
Service Name Changed Entry Values
Procedure
7. Choose Next.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
8 PUBLIC Setting Up SAP Marketing
8. In the Authentication Settings section, select X509 SSL Client Certificate.
9. In the X.509 SSL Client PSE section, select SSL Client (Standard).
10. Click Next.
11. Select URL components.
12. Enter the following information:
Protocol HTTPS
Port 443
Path The path value for your service, as identified in the above
table that lists the services to configure.
Related Information
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up SAP Marketing PUBLIC 9
5 Setting Up Secured Communications
Across the Landscape
Certificates are required to securely communicate across the landscape. You must set up the certificates to
allow this communication to occur.
SAP Marketing must contain the root certificate from the SAP Cloud Integration tenant load balancer. The SAP
Cloud Integration tenant must contain the SSL certificate used by the gateway in SAP Marketing .
The SAP Cloud Integration tenant must also contain the root certificates from Google services, which allows
the communication on OAuth 2.0 token exchange.
The following diagram provides an overview of the integration process when using certificates:
To set up the certificates, complete the steps in the following sections of this guide:
• Setting Up Secured Communication Between SAP Marketing and SAP Cloud Integration
• Setting Up Secured Communication Between SAP Cloud Integration and Google
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
10 PUBLIC Setting Up Secured Communications Across the Landscape
5.1 Setting Up Secured Communication Between SAP
Marketing and SAP Cloud Integration
Download the root certificate from the SAP Cloud Integration load balancer.
Context
SAP Marketing needs to trust SAP Cloud Integration as a server. The SAP Cloud Integration tenant worker
node URL has the certificate chain that needs to be imported into the SAP Marketing System Certificate Trust
List.
Procedure
1. Open a web browser and enter the URL of the SAP Cloud Integration tenant worker node that was provided
in the activation email. Then add the path /cxf at the end.
2. In the web browser, click the certificate icon to see the certificate.
3. Under the Certification Path tab, select the root certificate, for example, the Baltimore CyberTrust Root and
click View Certificate.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up Secured Communications Across the Landscape PUBLIC 11
You'll use this certificate file later on when you import the root certificate.
7. Click Finish.
Prerequisites
Verify if your SAP Marketing application has the related root certificate by transaction STRUST. Check the PSE
or PSEs that you have, either SSL client SSL Client (Anonymous) PSE, SSL client SSL Client (Standard)
PSE, or both, to see if the related root certificate is listed under the Certificate List of relevant PSEs. If it isn't
listed there, do the following steps:
Procedure
1. Select the PSE where you would like to add the root certificate. If you have both the Standard and
Anonymous PSE, you must import the certificate into both of them.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
12 PUBLIC Setting Up Secured Communications Across the Landscape
2. In the Certificate section, import the root SSL certificate you downloaded in the previous step Download
Root SSL Certificate [page 11].
Download SAP Gateway's client server certificate from the SSL Client Standard PSE in SAP Marketing.
Procedure
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up Secured Communications Across the Landscape PUBLIC 13
5.1.4 Set Up the Certificate-to-User Mapping in the SAP
Cloud Integration Tenant
Use certificate-to-user mapping to authenticate the request to an iFlow in the SAP Cloud Integration tenant.
Procedure
• Application: <tenantID>iflmap
• Role: ESBMessaging:send
b. Certificate: Choose the SSL certificate you downloaded from SAP Marketing. For more information,
see Download SSL Certificate [page 13].
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
14 PUBLIC Setting Up Secured Communications Across the Landscape
5.2 Setting Up Secured Communication Between SAP
Cloud Integration and Google
Download the certificates from Google to set up a secure connection to Google services.
Procedure
Note
You can find the repository of Documentation and Certificates from Google Trust Services in the
following location: [Link] .
Google has published their strategy on their Certificate Authority and Certificates in the following blog:
The Foundation of a More Secure Web .
Prerequisites
Context
We recommend deploying all of the certificates listed in the [Link] file in your SAP
Cloud Integration tenant.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up Secured Communications Across the Landscape PUBLIC 15
Procedure
3. Choose the Examine Examine File menu option to open the [Link] file that you saved.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
16 PUBLIC Setting Up Secured Communications Across the Landscape
A popup titled Certificate Details for file '[Link]' displays all certificates listed in the [Link] file.
4. Add the certificates one at a time by clicking on the certificate name, then click on Import to bring the
certificate into the keystore.
Ensure that each certificate in the hierarchy has a different alias during the import process. Otherwise, the
certificates with the same alias will be overridden and you won't have all of the certificates in the keystore.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up Secured Communications Across the Landscape PUBLIC 17
5. Click OK once you have imported all of the certificates from the certificate hierarchy.
6. Save the keystore with a password. You need this password to import the keystore into your SAP Cloud
Integration tenant.
Import the local keystore you created into the tenant keystore.
Procedure
1. Navigate to the Web UI of your SAP Cloud Integration tenant, for example <[Link]
itspaces>.
2. From the left-hand menu, select Monitor.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
18 PUBLIC Setting Up Secured Communications Across the Landscape
3. Under Manage Security, you see the Keystore tile, which informs you about the number of keys and
certificates available in the tenant keystore.
4. Click the Keystore tile and then click Add.
5. Select the local keystore you created and enter the password of your local keystore.
Note
Ensure that the selected action is Add. The Replace and Overwrite actions will overwrite existing
entries.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up Secured Communications Across the Landscape PUBLIC 19
6 Setting Up SAP Cloud Integration
SAP Cloud Integration must be set up in order to establish a connection between SAP Marketing and Google
Ads.
Before configuring your integration, you must have an SAP Cloud Integration tenant and account. For more
information, see the SAP Cloud Integration onboarding guide.
Caution
Maintain an e-mail in your tenant to receive e-mails about important information and updates.
Create an SAP Support ticket to allow your SAP Cloud Integration tenant to send a request to Google Ads using
the SAP central tenant.
Prerequisites
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
20 PUBLIC Setting Up SAP Cloud Integration
Note
We recommend using a dedicated user for communicating with the central tenant. For security
reasons, we don't recommend using your developer or admin user for your connection to the SAP
central tenant.
The same user can be used in both your quality and productive tenants. You only need to request
access to the SAP central tenant once for that user.
Procedure
1. Use the following the link to open an incident ticket to SAP Support to grant access to your dedicated user:
Contact SAP Support .
2. Enter the following information:
Note
Priority Medium
After creating the incident, you can continue to set up the configuration by working through the other
steps. However, before you start testing the integration scenario from the Campaigns application, the
incident should be processed and have the status Solution Provided.
Next task: Copy the Integration Package to your Workspace [page 22]
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up SAP Cloud Integration PUBLIC 21
6.2 Copy the Integration Package to your Workspace
Copy the integration package to your workspace and deploy its integration flows.
Procedure
1. Go to the SAP Cloud Integration tenant Web UI and search for Google Ads in Discover.
2. Click the Google Ads Integration with SAP Marketing Cloud/SAP Marketing tile.
3. Click Copy.
Next task: Set Up the OAuth Authorization Code Grant [page 22]
Set up OAuth authorization code grant to allow SAP Cloud Integration to manage the Google OAuth tokens.
The tokens are used to authenticate the communication from SAP Cloud Integration to the Google Ads API.
Context
The Google Ads API requires OAuth 2.0 authentication for all incoming requests. Each call to the Google Ads
API from SAP Cloud Integration must contain a valid OAuth token.
Note
We don’t support Google OAuth token sharing between multiple SAP Cloud Integration tenants. Therefore,
if you're planning to use the same Google Ads Manager Account for the Google Ads integration in your
quality (Q) and production (P) SAP Marketing systems, the OAuth code grant needs to be configured in
each SAP Cloud Integration tenant separately.
For a more information about the options for setting up your landscape, see Setting Up Google Ads [page
5].
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
22 PUBLIC Setting Up SAP Cloud Integration
Procedure
1. Create security material for the OAuth Authorization Code under Manage Security Material.
Name GoogleAdsOAuth
Provider Generic
Client Secret The Client Secret you obtained when setting up Google OAuth Client.
Scope [Link]
Note
For Google Cloud Platform projects with the OAuth consent screen configured for user type External,
your refresh token expires in 7 days. You need to reauthorize the OAuth 2.0 authorization code weekly
to keep your OAuth tokens up to date. However, if your app verification is complete, any tokens
issued after the verification don't expire. For more information about app verification, see OAuth API
Verification FAQs .
The Google identity service prompts you with a login screen and requests the user's approval to use the
Google app.
• Use the email address associated with your Google Ads manager account to log in.
• If your Google app is still in test mode with an external user type, you see a message about the app
not being verified by Google. You can ignore the message and continue. For more information, see
Unverified Apps .
• The user gives the approval, and the initial token exchange is handled and stored by the SAP Cloud
Integration tenant.
Previous task: Copy the Integration Package to your Workspace [page 22]
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Setting Up SAP Cloud Integration PUBLIC 23
6.4 Set Up the Integration Flows
Configure the integration flows to manage the mapping on requests and responses between SAP Marketing
services and the Google Ads API.
Procedure
Previous task: Set Up the OAuth Authorization Code Grant [page 22]
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
24 PUBLIC Setting Up SAP Cloud Integration
7 Support
Once the setup is complete, you can monitor messages. If you run into a problem, you can contact support.
To report a technical problem, go to SAP Support Portal at SAP Support . Use the component CEC-MKT-
SEM-PSI.
You can use the following methods to investigate possible issues you are having with your iFlows:
You can find detailed information about your iFlow execution under Monitor Message Processing in the
Operations View page in your SAP Cloud Integration tenant.
Procedure
Under Monitor Message Processing, choose the message related to the iFlow you're investigating.
If exceptions occur during runtime, the Attachments tab is visible with a detailed log as text files. You can look
for files named XXX_Response_Body and XX_Response_Header for more information.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Support PUBLIC 25
Example
The following image shows an example of a completed message that contains a text file named
HTTP_Receiver_Adapter_Response_Body.
Related Information
Collect runtime steps of iFlows under Message Monitoring for debugging purposes.
Procedure
Under Manage Integration Content, set the Log Level to Trace for each iFlow that you want to debug.
Results
All runtime information is collected for the iFlow for 1 hour. Review the runtime information for the iFlows to
identify the errors.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
26 PUBLIC Support
Example
The following image shows where to set the Log Level to Trace for an iFlow.
Related Information
7.2 FAQs
Provides answers to frequently asked questions about the integration between SAP Marketing and Google Ads.
The following table lists frequently asked questions and their answers.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Support PUBLIC 27
FAQs
Question Answer
In my Google Ads campaign in SAP Marketing, There are 2 types of accounts in Google Ads:
why aren't any accounts displayed in the value
help for Google Ads Account? 1. Google Ads manager accounts
The manager accounts are used to view and manage multiple Google
Ads accounts and manager accounts.
2. Google Ads accounts
Google Ads accounts are used for managing Google Ads campaigns.
Check your account setup in Google Ads to ensure that all of the related
accounts are under the same manager account.
SAP Marketing assumes that all Google Ads accounts that you want to
access in the Campaigns application are managed by a single manager
account in Google Ads. You use this manager account as the root man
ager account when you configure the integration package in SAP Cloud
Integration.
Note
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
28 PUBLIC Support
Question Answer
In my Google Ads campaign in SAP Marketing, Ensure that your Google Ads account is whitelisted by Google Ads.
why isn't my target group transferred to
Google Ads after I release my campaign?
Note
When you release a campaign, errors can occur when SAP Cloud
Integration communicates with Google Ads. These errors can block the
transfer of the target group. In most cases, the error is because the Google
Ads account isn't whitelisted by Google Ads.
The following steps identify how to confirm the cause of the error:
Otherwise, contact SAP support. For more information, see Support [page
25].
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Support PUBLIC 29
Question Answer
Why did the integration between SAP If the integration was working and it suddenly stops, it could be an authen
Marketing and Google Ads stop working when
tication problem.
it was working before?
To confirm if the problem is related to the certificates, do the following:
Note
Look for the failed messages of related iFlows in Message Monitoring, and
check if error details contain information similar to “Access token request
via refresh_token grant type for OAuth2 Authorization Code credential
'GoogleAdsOAuth' failed after 5 retries”. If the error is identified, it's likely
that your Google Cloud Platform project with an OAuth consent screen is
configured for an external user type and a publishing status of "Testing".
The issued refresh token expires in 7 days and you need to reauthorize the
OAuth authorization code. To obtain a long-term OAuth token in this case,
your Google app needs to have the publishing status “In production”.
If the problem persists, contact SAP Support. For more information, see
Support [page 25].
Verify follow-up actions required for specific versions before updating your integration package.
If you're configuring the integration for the first time, ignore this topic and follow the integration setup
procedure in this guide, starting with Setting Up Google Ads [page 5].
If you're already using the Google Ads Integration with SAP Marketing Cloud/SAP Marketing integration
package and plan on updating to a newer version, see the relevant SAP Notes and blog post for information
about which actions to take before and after updating your integration package.
3.0.1 3128556
3.1.0 3255040
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
30 PUBLIC Support
Blog Post
For more information about how to prepare and complete the integration package update to version 3.1.0, see
the blog post Google Ads Integration with SAP Marketing Cloud or SAP Marketing - Integration package update
to version 3.1.0 .
Note
The blog post isn't part of the official documentation of SAP Marketing.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Support PUBLIC 31
Important Disclaimers and Legal Information
Hyperlinks
Some links are classified by an icon and/or a mouseover text. These links provide additional information.
About the icons:
• Links with the icon : You are entering a Web site that is not hosted by SAP. By using such links, you agree (unless expressly stated otherwise in your
agreements with SAP) to this:
• The content of the linked-to site is not SAP documentation. You may not infer any product claims against SAP based on this information.
• SAP does not agree or disagree with the content on the linked-to site, nor does SAP warrant the availability and correctness. SAP shall not be liable for any
damages caused by the use of such content unless damages have been caused by SAP's gross negligence or willful misconduct.
• Links with the icon : You are leaving the documentation for that particular SAP product or service and are entering a SAP-hosted Web site. By using
such links, you agree that (unless expressly stated otherwise in your agreements with SAP) you may not infer any product claims against SAP based on this
information.
Example Code
Any software coding and/or code snippets are examples. They are not for productive use. The example code is only intended to better explain and visualize the syntax
and phrasing rules. SAP does not warrant the correctness and completeness of the example code. SAP shall not be liable for errors or damages caused by the use of
example code unless damages have been caused by SAP's gross negligence or willful misconduct.
Bias-Free Language
SAP supports a culture of diversity and inclusion. Whenever possible, we use unbiased language in our documentation to refer to people of all cultures, ethnicities,
genders, and abilities.
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
32 PUBLIC Important Disclaimers and Legal Information
Integrating SAP Marketing with Google Ads via SAP Cloud Integration
Important Disclaimers and Legal Information PUBLIC 33
[Link]/contactsap
SAP and other SAP products and services mentioned herein as well as
their respective logos are trademarks or registered trademarks of SAP
SE (or an SAP affiliate company) in Germany and other countries. All
other product and service names mentioned are the trademarks of their
respective companies.