+91 9216549878
we are committed to delivering innovative solutions that drive growth and add value to our clients. With a team of experienced professionals and a passion for excellence.

Follow us

Google Ads API Postman Integration Guide

Google Ads API Integration Using Postman: Step-by-Step Guide

Images
Authored by
Inno Valley Works
Date Released
December 1, 2026
Comments
No Comments
Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Click ondr53xc“
‘Configure Consent Screen” to first configure “OAuth Consent screen” before
generating credentials. Select the ‘external’ radio button to configure test users to
access the application and click on “CREATE”. If testing is done as part of the
organization internally the option “INTERNAL” can be used.

google-ads-api-integration-using-postman-09 Google Ads API Integration Using Postman: Step-by-Step Guide

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Once your “Google Ads API is enabled”, you will get the below screen. Click on
“Create Credentials” on top right. Fill in the details and create the credentials for
Application.

google-ads-api-integration-using-postman-08 Google Ads API Integration Using Postman: Step-by-Step Guide

Click ondr53xc“
‘Configure Consent Screen” to first configure “OAuth Consent screen” before
generating credentials. Select the ‘external’ radio button to configure test users to
access the application and click on “CREATE”. If testing is done as part of the
organization internally the option “INTERNAL” can be used.

google-ads-api-integration-using-postman-09 Google Ads API Integration Using Postman: Step-by-Step Guide

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Click on “Enable” button.

google-ads-api-integration-using-postman-07 Google Ads API Integration Using Postman: Step-by-Step Guide

Once your “Google Ads API is enabled”, you will get the below screen. Click on
“Create Credentials” on top right. Fill in the details and create the credentials for
Application.

google-ads-api-integration-using-postman-08 Google Ads API Integration Using Postman: Step-by-Step Guide

Click ondr53xc“
‘Configure Consent Screen” to first configure “OAuth Consent screen” before
generating credentials. Select the ‘external’ radio button to configure test users to
access the application and click on “CREATE”. If testing is done as part of the
organization internally the option “INTERNAL” can be used.

google-ads-api-integration-using-postman-09 Google Ads API Integration Using Postman: Step-by-Step Guide

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Search and find the “Google Ads” in the listed API library and click on it.

google-ads-api-integration-using-postman-06 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Enable” button.

google-ads-api-integration-using-postman-07 Google Ads API Integration Using Postman: Step-by-Step Guide

Once your “Google Ads API is enabled”, you will get the below screen. Click on
“Create Credentials” on top right. Fill in the details and create the credentials for
Application.

google-ads-api-integration-using-postman-08 Google Ads API Integration Using Postman: Step-by-Step Guide

Click ondr53xc“
‘Configure Consent Screen” to first configure “OAuth Consent screen” before
generating credentials. Select the ‘external’ radio button to configure test users to
access the application and click on “CREATE”. If testing is done as part of the
organization internally the option “INTERNAL” can be used.

google-ads-api-integration-using-postman-09 Google Ads API Integration Using Postman: Step-by-Step Guide

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

After selecting the project, you will find the project name is updated near “Google Cloud
Platform” menu icon. Now click on “Enable APIs and Services”.

google-ads-api-integration-using-postman-05 Google Ads API Integration Using Postman: Step-by-Step Guide

Search and find the “Google Ads” in the listed API library and click on it.

google-ads-api-integration-using-postman-06 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Enable” button.

google-ads-api-integration-using-postman-07 Google Ads API Integration Using Postman: Step-by-Step Guide

Once your “Google Ads API is enabled”, you will get the below screen. Click on
“Create Credentials” on top right. Fill in the details and create the credentials for
Application.

google-ads-api-integration-using-postman-08 Google Ads API Integration Using Postman: Step-by-Step Guide

Click ondr53xc“
‘Configure Consent Screen” to first configure “OAuth Consent screen” before
generating credentials. Select the ‘external’ radio button to configure test users to
access the application and click on “CREATE”. If testing is done as part of the
organization internally the option “INTERNAL” can be used.

google-ads-api-integration-using-postman-09 Google Ads API Integration Using Postman: Step-by-Step Guide

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Once the project is created, you will have a pop up on the right side to select that project you
want to integrate with Google Ads.

google-ads-api-integration-using-postman-04 Google Ads API Integration Using Postman: Step-by-Step Guide

After selecting the project, you will find the project name is updated near “Google Cloud
Platform” menu icon. Now click on “Enable APIs and Services”.

google-ads-api-integration-using-postman-05 Google Ads API Integration Using Postman: Step-by-Step Guide

Search and find the “Google Ads” in the listed API library and click on it.

google-ads-api-integration-using-postman-06 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Enable” button.

google-ads-api-integration-using-postman-07 Google Ads API Integration Using Postman: Step-by-Step Guide

Once your “Google Ads API is enabled”, you will get the below screen. Click on
“Create Credentials” on top right. Fill in the details and create the credentials for
Application.

google-ads-api-integration-using-postman-08 Google Ads API Integration Using Postman: Step-by-Step Guide

Click ondr53xc“
‘Configure Consent Screen” to first configure “OAuth Consent screen” before
generating credentials. Select the ‘external’ radio button to configure test users to
access the application and click on “CREATE”. If testing is done as part of the
organization internally the option “INTERNAL” can be used.

google-ads-api-integration-using-postman-09 Google Ads API Integration Using Postman: Step-by-Step Guide

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Click on “New Project”. The below window appears with various fields. Fill the project name and click “CREATE”.

google-ads-api-integration-using-postman-03 Google Ads API Integration Using Postman: Step-by-Step Guide

Once the project is created, you will have a pop up on the right side to select that project you
want to integrate with Google Ads.

google-ads-api-integration-using-postman-04 Google Ads API Integration Using Postman: Step-by-Step Guide

After selecting the project, you will find the project name is updated near “Google Cloud
Platform” menu icon. Now click on “Enable APIs and Services”.

google-ads-api-integration-using-postman-05 Google Ads API Integration Using Postman: Step-by-Step Guide

Search and find the “Google Ads” in the listed API library and click on it.

google-ads-api-integration-using-postman-06 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Enable” button.

google-ads-api-integration-using-postman-07 Google Ads API Integration Using Postman: Step-by-Step Guide

Once your “Google Ads API is enabled”, you will get the below screen. Click on
“Create Credentials” on top right. Fill in the details and create the credentials for
Application.

google-ads-api-integration-using-postman-08 Google Ads API Integration Using Postman: Step-by-Step Guide

Click ondr53xc“
‘Configure Consent Screen” to first configure “OAuth Consent screen” before
generating credentials. Select the ‘external’ radio button to configure test users to
access the application and click on “CREATE”. If testing is done as part of the
organization internally the option “INTERNAL” can be used.

google-ads-api-integration-using-postman-09 Google Ads API Integration Using Postman: Step-by-Step Guide

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Clicking on the dropdown near the project name. Select the organization –Innovalleyworks.com

google-ads-api-integration-using-postman-02 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “New Project”. The below window appears with various fields. Fill the project name and click “CREATE”.

google-ads-api-integration-using-postman-03 Google Ads API Integration Using Postman: Step-by-Step Guide

Once the project is created, you will have a pop up on the right side to select that project you
want to integrate with Google Ads.

google-ads-api-integration-using-postman-04 Google Ads API Integration Using Postman: Step-by-Step Guide

After selecting the project, you will find the project name is updated near “Google Cloud
Platform” menu icon. Now click on “Enable APIs and Services”.

google-ads-api-integration-using-postman-05 Google Ads API Integration Using Postman: Step-by-Step Guide

Search and find the “Google Ads” in the listed API library and click on it.

google-ads-api-integration-using-postman-06 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Enable” button.

google-ads-api-integration-using-postman-07 Google Ads API Integration Using Postman: Step-by-Step Guide

Once your “Google Ads API is enabled”, you will get the below screen. Click on
“Create Credentials” on top right. Fill in the details and create the credentials for
Application.

google-ads-api-integration-using-postman-08 Google Ads API Integration Using Postman: Step-by-Step Guide

Click ondr53xc“
‘Configure Consent Screen” to first configure “OAuth Consent screen” before
generating credentials. Select the ‘external’ radio button to configure test users to
access the application and click on “CREATE”. If testing is done as part of the
organization internally the option “INTERNAL” can be used.

google-ads-api-integration-using-postman-09 Google Ads API Integration Using Postman: Step-by-Step Guide

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

1. Setting Up Google Ads API

To get started with Google Ads API Integration using Postman, you first need to create a project in the Google API Console. Then, sign in to the Google Account in which you want the Google Ads to be integrated. Go to the APIs & Services section and enable the Google Ads API.

google-ads-api-integration-using-postman-01 Google Ads API Integration Using Postman: Step-by-Step Guide

Create a project to start enabling the APIs and services. By default, it is set to “Quick Start”.
But to create a project, you have an option on the menu bar as highlighted in the image
below.

Clicking on the dropdown near the project name. Select the organization –Innovalleyworks.com

google-ads-api-integration-using-postman-02 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “New Project”. The below window appears with various fields. Fill the project name and click “CREATE”.

google-ads-api-integration-using-postman-03 Google Ads API Integration Using Postman: Step-by-Step Guide

Once the project is created, you will have a pop up on the right side to select that project you
want to integrate with Google Ads.

google-ads-api-integration-using-postman-04 Google Ads API Integration Using Postman: Step-by-Step Guide

After selecting the project, you will find the project name is updated near “Google Cloud
Platform” menu icon. Now click on “Enable APIs and Services”.

google-ads-api-integration-using-postman-05 Google Ads API Integration Using Postman: Step-by-Step Guide

Search and find the “Google Ads” in the listed API library and click on it.

google-ads-api-integration-using-postman-06 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Enable” button.

google-ads-api-integration-using-postman-07 Google Ads API Integration Using Postman: Step-by-Step Guide

Once your “Google Ads API is enabled”, you will get the below screen. Click on
“Create Credentials” on top right. Fill in the details and create the credentials for
Application.

google-ads-api-integration-using-postman-08 Google Ads API Integration Using Postman: Step-by-Step Guide

Click ondr53xc“
‘Configure Consent Screen” to first configure “OAuth Consent screen” before
generating credentials. Select the ‘external’ radio button to configure test users to
access the application and click on “CREATE”. If testing is done as part of the
organization internally the option “INTERNAL” can be used.

google-ads-api-integration-using-postman-09 Google Ads API Integration Using Postman: Step-by-Step Guide

This will redirect to the app registration page. Fill in the mandatory details and “Save
and Continue”. This will be enough to configure it.

google-ads-api-integration-using-postman-10 Google Ads API Integration Using Postman: Step-by-Step Guide

Fill in if any scopes required

google-ads-api-integration-using-postman-11 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Add Users” to create Test Users.

google-ads-api-integration-using-postman-12 Google Ads API Integration Using Postman: Step-by-Step Guide

Once all is done, all details will be listed as summary.

google-ads-api-integration-using-postman-13 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on the “Credentials” on left above the “OAuth Consent screen” option. In the list, you
will see three options listed. Select each to get the “API key and client ID”.

google-ads-api-integration-using-postman-14 Google Ads API Integration Using Postman: Step-by-Step Guide

For “Client ID” generation, below details need to be added and click on “CREATE”.
Click on “Create Credentials”, you will see three options listed. Select each to get the
“API key and client ID”.

google-ads-api-integration-using-postman-15 Google Ads API Integration Using Postman: Step-by-Step Guide

2.Get the refresh token Using OAuth 2.0 to Access Google APIs

https://developers.google.com/identity/protocols/oauth2

google-ads-api-integration-using-postman-16 Google Ads API Integration Using Postman: Step-by-Step Guide

Click the above link and Authorise the “Google Ads API”

google-ads-api-integration-using-postman-17 Google Ads API Integration Using Postman: Step-by-Step Guide

Click on “Exchange authorization code for tokens” button then get the refresh token

google-ads-api-integration-using-postman-18 Google Ads API Integration Using Postman: Step-by-Step Guide

3.Generate Access Token Using Postman

Use the below CURL with your details of API and generate the access token

curl –location –request POST ‘https://www.googleapis.com/oauth2/v3/token’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–data-urlencode ‘grant_type=refresh_token’ \
–data-urlencode ‘client_id=””’ \
–data-urlencode ‘client_secret=””’ \
–data-urlencode ‘refresh_token=

Sample Response:

google-ads-api-integration-using-postman-19 Google Ads API Integration Using Postman: Step-by-Step Guide
{ "
access_token":
"ya29.A0ARrdaM_2dAKHTIryWLlDcwmLYqWW5wiVxx9bkESQPE461iBz47l2GiCBd3mRX5RUgvT0w
80Ize4hQ36igpjjPckfJ9hGOs32c_Ku6MLUONXToxsf_WUEsIBbWxuvmjAM8kIYl7mSidW9moD799L6
bYJeDq8rib0",
"expires_in": 3599,
"scope": "https://www.googleapis.com/auth/adwords",
"token_type": "Bearer"
}

4.Get the Customer Id and Developer token from Google AdSense

First, we need to sign into “Google AdSense”. Then we get the customer id and
developer token from under the account information menu.

google-ads-api-integration-using-postman-20 Google Ads API Integration Using Postman: Step-by-Step Guide

5.Get the Google Ads Data Using Postman

Use the below CURL with your details of API and get the google ads data

curl–location–requestPOST
‘https://googleads.googleapis.com/v8/customers/1681829967/googleAds:search’ \
–header ‘developer-token: “”’ \
–header ‘login-customer-id: “”’ \
–header’Authorization:Bearer””’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“pageSize”: 5,
“query”: SELECT campaign.id,campaign.name,campaign_budget.amount_micros,
campaign.status,campaign.start_date,campaign.end_date,
campaign.optimization_score,campaign.advertising_channel_type,metrics.clicks,
metrics.impressions,metrics.ctr,metrics.average_cpc,metrics.cost_micros,
campaign.bidding_strategy_type,campaign.optimization_score,segments.date
FROM campaign WHERE segments.date DURING LAST_7_DAYS
AND campaign.status != REMOVED”
}

Sample Request:

google-ads-api-integration-using-postman-21 Google Ads API Integration Using Postman: Step-by-Step Guide

Response will be in JSON format with all campaign details.

Need help putting this into practice in your org? Our Salesforce integration services team can help you plan, build and support it.

Share:

Inno Valley Works delivers expert Salesforce consulting, implementation, and managed services to help businesses optimize processes, improve customer experiences, and drive digital growth.

Inno Valley Works LLC

200 Continental Drive Christiana, Ste 401, Newark, DE 19713, United States

Inno Valley Works (P) Ltd

No.25, AGT Business Park, Avinashi Road, Coimbatore 641014, India.

Inno Valley Works (P) Ltd

RMZ Millenia, Kodandarama Nagar, Perungudi, Chennai 600096, India.

INNO VALLEY WORKS L.L.C-FZ

Meydan Grandstand, 6th floor, Meydan Road, Nad Al Sheba, Dubai, U.A.E.