Handle Authentication error when user logged in with non adwords account using Adwords API

53 views
Skip to first unread message

raman kumar

unread,
Nov 25, 2014, 12:58:53 AM11/25/14
to adwor...@googlegroups.com
Hello,

Is there any way to handle Authentication error in PHP when user logged in with non adwords account using Adwords API?

Any help regarding this is highly apperciable.....

Waiting for the response.

With Regards,
Raman

Danial Klimkin

unread,
Nov 26, 2014, 6:26:22 AM11/26/14
to adwor...@googlegroups.com
Hello Raman,


I don't understand the question. If user logged in under a login w/o AdWords account, you'll get a NOT_ADS_USER error.

You can send the user to the login page then to re-auth.


-Danial, AdWords API Team.

Raman Dadhwal

unread,
Nov 26, 2014, 9:12:53 AM11/26/14
to adwor...@googlegroups.com
Hello Danial,

Thanks for your valuable response.

The Adwords API version that i am using while fetching Adwords data is v201409.
Will you please guide me in displaying campaign performance data.
I have successfully display the campaign performance report but data displayed on my website is not similar with data displayed in Google adwords account like..
1) How can i fetch the Budget field from CAMPAIGN_PERFORMANCE_REPORT ?
    The predicate that i have used to display the campaign data 
                new Predicate('Status', 'NOT_IN', array('REMOVED')
    which results in inaccurate budget in Campaign table, rest all data is accurate.
    But when i use the below predicate i.e.,
                new Predicate('Status', 'NOT_IN', array('REMOVED','PAUSED')
    then the budget displayed in Campaign table is accurate,  rest all data is inaccurate.
2) How can i fetch the following data:
    a) Total- Display Network
    b) Total- Search Network
    c) Total- All but removed campaigns
    d) Total- All campaigns
   
Problem mentioned in First point persist in first two options i.e., c) and d)
    For last two option a) and b), Google Adwords provide me any api that will help me in displaying data or it has been done manually ?
3) How can i fetch Campaign Sub type as field with Campaign Sub-Type does not exists in CAMPAIGN_PERFORMANCE_REPORT ?

Along with this, please provide me the references so that i can easily fetch the accurate result which is similar with the Campaign data displayed in Google Adwords.
 
With Regards,
Raman

Danial Klimkin

unread,
Nov 27, 2014, 8:06:54 AM11/27/14
to adwor...@googlegroups.com
Hello Raman,


1. You can request "BudgetId" column. Further budget parameters can be obtained by this ID.

2. You'll need campaign performance and display reports: See the reporting reference:


3. Campaign Sub-Type is a UI-only field. It is only used to define which options are visible in the UI. It has no effect on delivery and not reflected in the API.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages