Ads API Help

89 views
Skip to first unread message

puneet sharma

unread,
Feb 1, 2021, 5:01:32 AM2/1/21
to AdWords API and Google Ads API Forum
Hello Team,
I am not able to get campaign, campaign Groups by ads API and also I need to get ads wise reporting data for the purpose of Analytics. Could someone please help me to get data. Also please suggest which Library we should use to get these type of data and If possible please share example code with configuration file. 

Thanks,

Google Ads API Forum Advisor Prod

unread,
Feb 1, 2021, 10:03:14 PM2/1/21
to puneet...@gmail.com, adwor...@googlegroups.com
Hi Puneet,

Thank you for posting your concern.

Please clarify if you want to use Google Ads API or AdWords API on retrieving campaigns, campaign groups and ads information.

You will need to set up your API environment first and you may refer to a specific document below:
Google Ads API - https://developers.google.com/google-ads/api/docs/first-call/overview
AdWords API - https://developers.google.com/adwords/api/docs/guides/first-api-call

Then, you will need to be familiarized with the reporting of the said APIs and I would recommend referring to the links below:
Google Ads API - https://developers.google.com/google-ads/api/docs/reporting/overview
AdWords API - https://developers.google.com/adwords/api/docs/guides/reporting

Lastly, you may specifically use the Campaign Performance ReportCampaign Group Performance Report and Ad Performance Report if using AdWords API. As for the Google Ads API, you may refer to this document to see the equivalent reports of the said report types on this API.

For the client library that you will use, you should be the one to decide which client library you will setup. You may choose your prefer client library on this link for AdWords API and this link for Google Ads API.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2BcdiI:ref

puneet sharma

unread,
Feb 2, 2021, 1:35:14 AM2/2/21
to AdWords API and Google Ads API Forum
Hello Team,
Below is brief description about my Requirement.
I need to Authenticate the user first for access ads Account exist into their account and then store Ads account, campaigns, campaign groups and ads information and also ads insights data like Reach, impression etc. for the purpose of Analytics. So which API should I use  Google Ads API or AdWords API  ?

 What is difference between  Google Ads API or AdWords API ?

 Please Specify so that I can integrate API Accordingly.

Thanks,

Google Ads API Forum Advisor Prod

unread,
Feb 2, 2021, 1:54:51 PM2/2/21
to puneet...@gmail.com, adwor...@googlegroups.com
Hello,

The Google Ads API is the next generation of the AdWords API, so we recommend using the Google Ads API. The Ads API exposes both standard JSON REST endpoints and a gRPC interface, whereas the AdWords API is a SOAP API. Although you may not be using the AdWords API, you can find more information about changes that were made between the two APIs in the migration guide

If you have any other questions about either API, please let us know.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2BcdiI:ref

puneet sharma

unread,
Feb 3, 2021, 12:21:50 AM2/3/21
to AdWords API and Google Ads API Forum
I am using google ads API. Here in the root folder there is a file with name adsapi_php.ini. We have to set configuration data here. So If I have to change these all data dynamically and set data of login user(who is getting permission to our Application) so how I can do this. We need to set all data of current user who has authenticate the Application.

Google Ads API Forum Advisor Prod

unread,
Feb 3, 2021, 4:36:49 PM2/3/21
to puneet...@gmail.com, adwor...@googlegroups.com

Hi Puneet,

Thank you for reaching out. You could either have a logic in your code to write the current user’s OAuth2 credentials into the configuration file or do it inline in the code by replacing the fromPropertiesFile() to fromProperties(Properties properties).

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2BcdiI:ref
Reply all
Reply to author
Forward
0 new messages